diff options
| author | Qt Continuous Integration System <qt-info@nokia.com> | 2011-09-23 12:12:38 (GMT) |
|---|---|---|
| committer | Qt Continuous Integration System <qt-info@nokia.com> | 2011-09-23 12:12:38 (GMT) |
| commit | 3ddab0c939ded21ed530dff685f6a0d491457065 (patch) | |
| tree | b48599d06403500217b41b2d1f30ef8353649fa9 /doc/src/snippets/code | |
| parent | fe9c071ac33673fa4e8c94ef3dfc27dbf1f36d06 (diff) | |
| parent | 6a8a3f7f8171bb56bc5ff5a5f503213180e6465f (diff) | |
| download | Qt-3ddab0c939ded21ed530dff685f6a0d491457065.zip Qt-3ddab0c939ded21ed530dff685f6a0d491457065.tar.gz Qt-3ddab0c939ded21ed530dff685f6a0d491457065.tar.bz2 | |
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qt-releng-team
* 'master' of git://scm.dev.nokia.troll.no/qt/qt-releng-team: (84 commits)
Disabled activeqt/webbrowser example from mingw build.
Fix broken Solaris build (getpwnam_r usage)
Sentences should end with a period! (Poor man's rebuild trigger.)
Workaround MSVC2010 problems when linking QtWebKit
dos2unix on a webkit source file (fix support for Visual Studio)
Update changelog for Qt 4.8
add 4.8 changes created/merged by me
Fixed automatic plugin path resolving for predefined Qt plugins.
Resolve a number of compilation issues with INTEGRITY
runonphone: Include USB serial ports on OS X for CODA, too
Update changelog for Qt 4.8.0
Fix compile issue when building with QT_NO_CONCURRENT and QT_NO_FUTURE
Update changelog for Qt 4.8
QGraphicsWidget::setLayoutDirection doesn't propagate to new children
Update changelog for Qt 4.8
Prevent unnecessary graphics item updates when graphics effect changes.
Updated change-log for 4.8
Update changes file for 4.8.0
Update changelog for Qt 4.8
runonphone: Implement traceswitch support for coda
...
Diffstat (limited to 'doc/src/snippets/code')
| -rw-r--r-- | doc/src/snippets/code/src_corelib_io_qsettings.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/src/snippets/code/src_corelib_io_qsettings.cpp b/doc/src/snippets/code/src_corelib_io_qsettings.cpp index 5abb0e3..269aa44 100644 --- a/doc/src/snippets/code/src_corelib_io_qsettings.cpp +++ b/doc/src/snippets/code/src_corelib_io_qsettings.cpp @@ -314,3 +314,24 @@ int main(int argc, char *argv[]) ... } //! [29] + +//! [30] +QSettings settings(QApplication::applicationDirPath() + "/MySoft.conf"); +//! [30] + +//! [31] +#include <QSettings> +#include <QDesktopServices> +int main(int argc, char *argv[]) +{ +#ifdef Q_OS_SYMBIAN + // Use QDesktopServices:storageLocation as QApplication is not yet created + QSettings::setPath( + QSettings::NativeFormat, QSettings::UserScope, + QDesktopServices::storageLocation(QDesktopServices::DataLocation) + "/settings"); +#endif + QApplication app(argc, argv); + + ... +} +//! [31] |
