2014-09-08 21:28:18 +02:00
|
|
|
diff --git a/src/widgets/kernel/qwidgetwindow.cpp b/src/widgets/kernel/qwidgetwindow.cpp
|
|
|
|
index 35a526e..d417e41 100644
|
|
|
|
--- a/src/widgets/kernel/qwidgetwindow.cpp
|
|
|
|
+++ b/src/widgets/kernel/qwidgetwindow.cpp
|
2014-12-21 11:59:22 +01:00
|
|
|
@@ -573,6 +573,14 @@ bool QWidgetWindow::updatePos()
|
|
|
|
void QWidgetWindow::updateMargins()
|
|
|
|
{
|
2014-09-08 21:28:18 +02:00
|
|
|
const QMargins margins = frameMargins();
|
2014-12-21 11:59:22 +01:00
|
|
|
+
|
2014-09-08 21:28:18 +02:00
|
|
|
+ if (geometry().x() != m_widget->data->crect.x() ||
|
|
|
|
+ geometry().y() != m_widget->data->crect.y())
|
|
|
|
+ m_widget->setAttribute(Qt::WA_Moved);
|
|
|
|
+ if (geometry().width() != m_widget->data->crect.width() ||
|
|
|
|
+ geometry().height() != m_widget->data->crect.height())
|
|
|
|
+ m_widget->setAttribute(Qt::WA_Resized);
|
|
|
|
+
|
|
|
|
QTLWExtra *te = m_widget->d_func()->topData();
|
|
|
|
te->posIncludesFrame= false;
|
2014-12-21 11:59:22 +01:00
|
|
|
te->frameStrut.setCoords(margins.left(), margins.top(), margins.right(), margins.bottom());
|