summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2009-09-03 15:39:44 +0200
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2009-09-03 15:41:54 +0200
commit9ac8b0d3215e25a45d2119dbfe3c02770c29e923 (patch)
tree2cf40528b0681c308abf6e4daf9b3a9f8835bcda /demos
parente7ff8a7eebd111483a561190011dc14f234a6313 (diff)
Make sure that the dialog in the boxes demo paints window decorations.
tst_QGraphicsProxyWidget::windowFlags() demonstrates that this is intended behaviour. Reviewed-by: Kim
Diffstat (limited to 'demos')
-rw-r--r--demos/boxes/scene.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/demos/boxes/scene.h b/demos/boxes/scene.h
index efe1e3fce9..23f17e53e4 100644
--- a/demos/boxes/scene.h
+++ b/demos/boxes/scene.h
@@ -108,6 +108,8 @@ private:
class GraphicsWidget : public QGraphicsProxyWidget
{
+public:
+ GraphicsWidget() : QGraphicsProxyWidget(0, Qt::Window) {}
protected:
virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value);
virtual void resizeEvent(QGraphicsSceneResizeEvent *event);