summaryrefslogtreecommitdiffstats
path: root/demos/boxes
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2009-09-03 13:39:44 (GMT)
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2009-09-03 13:41:54 (GMT)
commit9ac8b0d3215e25a45d2119dbfe3c02770c29e923 (patch)
tree2cf40528b0681c308abf6e4daf9b3a9f8835bcda /demos/boxes
parente7ff8a7eebd111483a561190011dc14f234a6313 (diff)
downloadQt-9ac8b0d3215e25a45d2119dbfe3c02770c29e923.zip
Qt-9ac8b0d3215e25a45d2119dbfe3c02770c29e923.tar.gz
Qt-9ac8b0d3215e25a45d2119dbfe3c02770c29e923.tar.bz2
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/boxes')
-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 efe1e3f..23f17e5 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);