* updates cmake file for windows plugin support * basic exports * minor export fixes * rename macro * rename export macro * fixes build error on windows * cleanup cmakelist * updated headers
27 lines
681 B
C++
27 lines
681 B
C++
#pragma once
|
|
#include <QPainter>
|
|
#include <QStyle>
|
|
#include <QStyleOption>
|
|
#include <QWidget>
|
|
|
|
#include "Extras/Utils/nutils.h"
|
|
#include "QtWidgets/QWidget/qwidget_macro.h"
|
|
#include "core/NodeWidget/nodewidget.h"
|
|
|
|
class DLL_EXPORT NWidget : public QWidget, public NodeWidget {
|
|
Q_OBJECT
|
|
NODEWIDGET_IMPLEMENTATIONS(QWidget)
|
|
public:
|
|
using QWidget::QWidget;
|
|
// https://doc.qt.io/qt-5/stylesheet-reference.html
|
|
void paintEvent(QPaintEvent* e) override {
|
|
QStyleOption opt;
|
|
opt.init(this);
|
|
QPainter p(this);
|
|
style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
|
|
QWidget::paintEvent(e);
|
|
}
|
|
|
|
void connectSignalsToEventEmitter() { QWIDGET_SIGNALS }
|
|
};
|