summaryrefslogtreecommitdiffstats
path: root/examples/mainwindows/sdi/main.cpp
diff options
context:
space:
mode:
authorNorwegian Rock Cat <qt-info@nokia.com>2009-07-14 09:09:06 (GMT)
committerNorwegian Rock Cat <qt-info@nokia.com>2009-07-14 09:18:23 (GMT)
commite3c1fdc994a3743f5c69d944003b1c67698ba6d8 (patch)
tree0cfd07703dd7e676e514a274a02272c4f87d44ce /examples/mainwindows/sdi/main.cpp
parent43d2ed37baf0f5d05ffe06a91ea4782b9694a1d3 (diff)
downloadQt-e3c1fdc994a3743f5c69d944003b1c67698ba6d8.zip
Qt-e3c1fdc994a3743f5c69d944003b1c67698ba6d8.tar.gz
Qt-e3c1fdc994a3743f5c69d944003b1c67698ba6d8.tar.bz2
Make the mainwindow examples use setWindowFilePath
Should have done this a while ago. Use setWindowFilePath to get proxy icons on mac and simplify window title handling on the other platforms. The only downside is that we do have to specify the application name to get the exact same behavior. But on the other hand, QSettings handlig is a bit better.
Diffstat (limited to 'examples/mainwindows/sdi/main.cpp')
-rw-r--r--examples/mainwindows/sdi/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/mainwindows/sdi/main.cpp b/examples/mainwindows/sdi/main.cpp
index a7e20d8..055d761 100644
--- a/examples/mainwindows/sdi/main.cpp
+++ b/examples/mainwindows/sdi/main.cpp
@@ -47,6 +47,8 @@ int main(int argc, char *argv[])
{
Q_INIT_RESOURCE(sdi);
QApplication app(argc, argv);
+ app.setApplicationName("SDI Example");
+ app.setOrganizationName("Trolltech");
MainWindow *mainWin = new MainWindow;
mainWin->show();
return app.exec();