summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qapplication.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@nokia.com>2010-01-26 18:31:01 (GMT)
committerAlessandro Portale <alessandro.portale@nokia.com>2010-01-26 18:31:01 (GMT)
commit9eea7172d4d4984a111f009a60f5eaa0568fcf89 (patch)
tree5e237ac1c8c76b6fbb63e20c0ac58e873444cbfb /src/gui/kernel/qapplication.cpp
parentc7636e37e62b8df54cad331989be3173ba4ca27d (diff)
downloadQt-9eea7172d4d4984a111f009a60f5eaa0568fcf89.zip
Qt-9eea7172d4d4984a111f009a60f5eaa0568fcf89.tar.gz
Qt-9eea7172d4d4984a111f009a60f5eaa0568fcf89.tar.bz2
Remove unneeded resources from QtGui
QtGui contains loads of resources. 337,160 bytes just for qstyle. And since this is nearly exclusively full of PNG files, it won't really be compressed in the qt.sis package. And it will eat unneccessary Ram. This patch removes about 260,000 bytes of resources. We only want the 32-pixel big icons. No 16- and 129- pixel versions. Task-number: QTBUG-7277 Reviewed-by: Sami Merila modified: src/gui/kernel/qapplication.cpp new file: src/gui/styles/qstyle_s60.qrc modified: src/gui/styles/styles.pri
Diffstat (limited to 'src/gui/kernel/qapplication.cpp')
-rw-r--r--src/gui/kernel/qapplication.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/kernel/qapplication.cpp b/src/gui/kernel/qapplication.cpp
index 12fe797..4fe3900 100644
--- a/src/gui/kernel/qapplication.cpp
+++ b/src/gui/kernel/qapplication.cpp
@@ -121,8 +121,10 @@ extern bool qt_wince_is_pocket_pc(); //qguifunctions_wince.cpp
static void initResources()
{
-#ifdef Q_WS_WINCE
+#if defined(Q_WS_WINCE)
Q_INIT_RESOURCE(qstyle_wince);
+#elif defined(Q_OS_SYMBIAN)
+ Q_INIT_RESOURCE(qstyle_s60);
#else
Q_INIT_RESOURCE(qstyle);
#endif