summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-10-14 06:19:34 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-10-14 06:19:34 (GMT)
commitb01c2c90bf58a96afadc6fc5547203a6a37893c5 (patch)
tree96125e444f32691c73bc87f0bc938993b7737899 /doc/src/snippets/code
parent2e7a64a60be75f9f814cb5eb6839edde20b4baf2 (diff)
parent01057867c3e5e97fc8b58601e3cee6dfef0df205 (diff)
downloadQt-b01c2c90bf58a96afadc6fc5547203a6a37893c5.zip
Qt-b01c2c90bf58a96afadc6fc5547203a6a37893c5.tar.gz
Qt-b01c2c90bf58a96afadc6fc5547203a6a37893c5.tar.bz2
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qt-symbian-team
* 'master' of git://scm.dev.nokia.troll.no/qt/qt-symbian-team: (69 commits) runonphone timestamps nanosecond formating set to 9 chars, 0 padded Add -nn for .cpp MOC preprocessing for INTEGRITY Remove commented out code. Update Polish translations for 4.8 Fixes: libpng symbols exported from QtGui.dll on Windows omit unassigned (and too recent codepoints) from the text Normalization process purge "Translation Rules for Plurals" add -list-languages option to lupdate Fix QSysInfo::WindowsVersion checking (QSysInfo::WV_NT_based is a mask) Ukrainian translation updated QHostInfo: fix a race condition under CE Do not let QGLContext get out of sync when doing mixed VG-GL rendering Build fix for WINCE to qfilesystemengine_win.cpp Fixed typo in QSettings documentation. Doc updates to "Installing Qt for the Symbian Platform" page. Create auto test for http HEAD request QNAM - fix poor performance of HEAD request with authentication Added Qt Quick Components link to document remove dead code Added text about -random and -seed options in QTest to changelog ...
Diffstat (limited to 'doc/src/snippets/code')
-rw-r--r--doc/src/snippets/code/doc_src_unix-signal-handlers.cpp6
-rw-r--r--doc/src/snippets/code/src_corelib_concurrent_qtconcurrentrun.cpp4
-rw-r--r--doc/src/snippets/code/src_corelib_io_qsettings.cpp2
3 files changed, 6 insertions, 6 deletions
diff --git a/doc/src/snippets/code/doc_src_unix-signal-handlers.cpp b/doc/src/snippets/code/doc_src_unix-signal-handlers.cpp
index fd5f386..a5f3ed1 100644
--- a/doc/src/snippets/code/doc_src_unix-signal-handlers.cpp
+++ b/doc/src/snippets/code/doc_src_unix-signal-handlers.cpp
@@ -44,7 +44,7 @@ class MyDaemon : public QObject
Q_OBJECT
public:
- MyDaemon(QObject *parent = 0, const char *name = 0);
+ MyDaemon(QObject *parent = 0);
~MyDaemon();
// Unix signal handlers.
@@ -67,8 +67,8 @@ class MyDaemon : public QObject
//! [1]
-MyDaemon::MyDaemon(QObject *parent, const char *name)
- : QObject(parent,name)
+MyDaemon::MyDaemon(QObject *parent)
+ : QObject(parent)
{
if (::socketpair(AF_UNIX, SOCK_STREAM, 0, sighupFd))
qFatal("Couldn't create HUP socketpair");
diff --git a/doc/src/snippets/code/src_corelib_concurrent_qtconcurrentrun.cpp b/doc/src/snippets/code/src_corelib_concurrent_qtconcurrentrun.cpp
index 11f5163..e695572 100644
--- a/doc/src/snippets/code/src_corelib_concurrent_qtconcurrentrun.cpp
+++ b/doc/src/snippets/code/src_corelib_concurrent_qtconcurrentrun.cpp
@@ -76,7 +76,7 @@ QString result = future.result();
//! [4]
// call 'QList<QByteArray> QByteArray::split(char sep) const' in a separate thread
QByteArray bytearray = "hello world";
-QFuture<QList<QByteArray> > future = QtConcurrent::run(bytearray, &QByteArray::split), ',');
+QFuture<QList<QByteArray> > future = QtConcurrent::run(bytearray, &QByteArray::split, ',');
...
QList<QByteArray> result = future.result();
//! [4]
@@ -84,7 +84,7 @@ QList<QByteArray> result = future.result();
//! [5]
// call 'void QImage::invertPixels(InvertMode mode)' in a separate thread
QImage image = ...;
-QFuture<void> future = QtConcurrent::run(image, &QImage::invertPixels, QImage::InvertRgba);
+QFuture<void> future = QtConcurrent::run(&image, &QImage::invertPixels, QImage::InvertRgba);
...
future.waitForFinished();
// At this point, the pixels in 'image' have been inverted
diff --git a/doc/src/snippets/code/src_corelib_io_qsettings.cpp b/doc/src/snippets/code/src_corelib_io_qsettings.cpp
index 269aa44..91c5401 100644
--- a/doc/src/snippets/code/src_corelib_io_qsettings.cpp
+++ b/doc/src/snippets/code/src_corelib_io_qsettings.cpp
@@ -230,7 +230,7 @@ settings.setValue("sofa", true);
settings.setValue("tv", false);
QStringList groups = settings.childGroups();
-// group: ["fridge"]
+// groups: ["fridge"]
//! [21]