summaryrefslogtreecommitdiffstats
path: root/demos/embeddeddialogs/main.cpp
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-06-09 12:05:03 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2009-06-09 12:06:25 (GMT)
commit7cd3e8233090f2937e38aff846a30635bcd14eb6 (patch)
treeb4e767e4d070bd630fe6156f78542386a51eafd2 /demos/embeddeddialogs/main.cpp
parent923cadc12b993a0b41200750f151d73662856482 (diff)
downloadQt-7cd3e8233090f2937e38aff846a30635bcd14eb6.zip
Qt-7cd3e8233090f2937e38aff846a30635bcd14eb6.tar.gz
Qt-7cd3e8233090f2937e38aff846a30635bcd14eb6.tar.bz2
Removed background caching in embeddeddialogs demo.
No point in caching a background that is already a pixmap. When maximizing the window this pixmap gets huge, and it doesn't help performance either. Reviewed-by: Trond
Diffstat (limited to 'demos/embeddeddialogs/main.cpp')
-rw-r--r--demos/embeddeddialogs/main.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/demos/embeddeddialogs/main.cpp b/demos/embeddeddialogs/main.cpp
index cfb31c4..c9b6ee1 100644
--- a/demos/embeddeddialogs/main.cpp
+++ b/demos/embeddeddialogs/main.cpp
@@ -76,7 +76,6 @@ int main(int argc, char *argv[])
view.scale(0.5, 0.5);
view.setRenderHints(view.renderHints() | QPainter::Antialiasing | QPainter::SmoothPixmapTransform);
view.setBackgroundBrush(QPixmap(":/No-Ones-Laughing-3.jpg"));
- view.setCacheMode(QGraphicsView::CacheBackground);
view.setViewportUpdateMode(QGraphicsView::BoundingRectViewportUpdate);
view.show();
view.setWindowTitle("Embedded Dialogs Demo");