brings back nwidget

This commit is contained in:
Atul R 2019-09-07 11:28:44 +02:00
parent bf1aecfa8b
commit e5a5425f0b

View File

@ -11,14 +11,14 @@ class NWidget: public QWidget, public NodeWidget
public:
using QWidget::QWidget;
// https://doc.qt.io/qt-5/stylesheet-reference.html
// void paintEvent(QPaintEvent *e)
// {
// QStyleOption opt;
// opt.init(this);
// QPainter p(this);
// style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
// QWidget::paintEvent(e);
// }
void paintEvent(QPaintEvent *e)
{
QStyleOption opt;
opt.init(this);
QPainter p(this);
style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
QWidget::paintEvent(e);
}
};