qml: Move widgetMaxSize to the base class

The logic is not specific to QWidget. It will be reused for QtQuick
This commit is contained in:
Sergio Martins
2020-07-26 20:24:24 +01:00
parent e4c87f60e9
commit a84fea36fe
3 changed files with 35 additions and 33 deletions

View File

@@ -59,8 +59,6 @@ public:
QPoint mapFromGlobal(QPoint p) const override;
QPoint mapToGlobal(QPoint p) const override;
static QSize widgetMinSize(const QWidget *w);
static QSize widgetMaxSize(const QWidget *w);
private:
QWidget *const m_thisWidget;
Q_DISABLE_COPY(Widget_qwidget)