diff options
Diffstat (limited to 'tests/manual/repaint/task141091/main.cpp')
-rw-r--r-- | tests/manual/repaint/task141091/main.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/manual/repaint/task141091/main.cpp b/tests/manual/repaint/task141091/main.cpp index d2b0f76606..b5b6ae92d7 100644 --- a/tests/manual/repaint/task141091/main.cpp +++ b/tests/manual/repaint/task141091/main.cpp @@ -45,11 +45,12 @@ class MyWidget : public QWidget { public: - MyWidget() : QWidget() { - - + MyWidget() : QWidget() + { setAttribute(Qt::WA_OpaquePaintEvent); - setAttribute(Qt::WA_StaticContents); } + setAttribute(Qt::WA_StaticContents); + } + protected: void paintEvent(QPaintEvent *e) { qDebug() << e->rect(); } }; @@ -60,4 +61,4 @@ int main(int argc, char **argv) MyWidget w; w.show(); return a.exec(); -}
\ No newline at end of file +} |