Fix QtQuick build
This commit is contained in:
@@ -257,7 +257,6 @@ QSize QWidgetAdapter::minimumSize() const
|
||||
|
||||
QSize QWidgetAdapter::maximumSize() const
|
||||
{
|
||||
|
||||
if (m_isWrapper) {
|
||||
const auto children = childItems();
|
||||
if (!children.isEmpty()) {
|
||||
@@ -305,6 +304,21 @@ QRect QWidgetAdapter::normalGeometry() const
|
||||
return QWidgetAdapter::geometry();
|
||||
}
|
||||
|
||||
void QWidgetAdapter::setNormalGeometry(QRect geo)
|
||||
{
|
||||
if (!isTopLevel())
|
||||
return;
|
||||
|
||||
if (QWindow *w = windowHandle()) {
|
||||
if (isNormalWindowState(w->windowStates())) {
|
||||
w->setGeometry(geo);
|
||||
} else {
|
||||
// Nothing better at this point, as QWindow doesn't have this concept
|
||||
qDebug() << Q_FUNC_INFO << "TODO";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
QRect QWidgetAdapter::rect() const
|
||||
{
|
||||
return QRectF(0, 0, width(), height()).toRect();
|
||||
|
||||
@@ -123,6 +123,7 @@ public:
|
||||
QRect frameGeometry() const;
|
||||
QRect geometry() const;
|
||||
QRect normalGeometry() const;
|
||||
void setNormalGeometry(QRect);
|
||||
QRect rect() const;
|
||||
QPoint pos() const;
|
||||
void show();
|
||||
|
||||
Reference in New Issue
Block a user