summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorOlivier Goffart <olivier.goffart@nokia.com>2011-04-04 13:14:57 (GMT)
committerOlivier Goffart <olivier.goffart@nokia.com>2011-04-04 16:52:46 (GMT)
commita0cf0a18603d5c466747cd7b0657abdff5015b85 (patch)
treee9a1320b56f2b5fa3649f64c596b9d426992b752 /src/corelib
parent66a7e4361f9f07962c7d22409aa6274da2dce9de (diff)
downloadQt-a0cf0a18603d5c466747cd7b0657abdff5015b85.zip
Qt-a0cf0a18603d5c466747cd7b0657abdff5015b85.tar.gz
Qt-a0cf0a18603d5c466747cd7b0657abdff5015b85.tar.bz2
Documentation for the initilize_list constructor
Reviewed-by: Joao
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/tools/qlist.cpp8
-rw-r--r--src/corelib/tools/qstringlist.cpp9
-rw-r--r--src/corelib/tools/qvector.cpp9
3 files changed, 26 insertions, 0 deletions
diff --git a/src/corelib/tools/qlist.cpp b/src/corelib/tools/qlist.cpp
index 7bbdc16..1501daf 100644
--- a/src/corelib/tools/qlist.cpp
+++ b/src/corelib/tools/qlist.cpp
@@ -590,6 +590,14 @@ void **QListData::erase(void **xi)
\sa operator=()
*/
+/*! \fn QList::QList(std::initializer_list<T> args)
+ \since 4.8
+
+ Construct a list from a std::initilizer_list.
+
+ This constructor is only enabled if the compiler supports C++0x
+*/
+
/*! \fn QList::~QList()
Destroys the list. References to the values in the list and all
diff --git a/src/corelib/tools/qstringlist.cpp b/src/corelib/tools/qstringlist.cpp
index a560cca..21269a8 100644
--- a/src/corelib/tools/qstringlist.cpp
+++ b/src/corelib/tools/qstringlist.cpp
@@ -680,4 +680,13 @@ int QtPrivate::QStringList_removeDuplicates(QStringList *that)
return n - j;
}
+/*! \fn QStringList::QStringList(std::initializer_list<QString> args)
+ \since 4.8
+
+ Construct a list from a std::initilizer_list.
+
+ This constructor is only enabled if the compiler supports C++0x
+*/
+
+
QT_END_NAMESPACE
diff --git a/src/corelib/tools/qvector.cpp b/src/corelib/tools/qvector.cpp
index e2e366d..06ed6bb 100644
--- a/src/corelib/tools/qvector.cpp
+++ b/src/corelib/tools/qvector.cpp
@@ -274,6 +274,15 @@ int QVectorData::grow(int sizeofTypedData, int size, int sizeofT, bool excessive
\sa operator=()
*/
+/*! \fn QVector::QVector(std::initializer_list<T> args)
+ \since 4.8
+
+ Construct a vector from a std::initilizer_list.
+
+ This constructor is only enabled if the compiler supports C++0x
+*/
+
+
/*! \fn QVector::~QVector()
Destroys the vector.