summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2010-01-27 09:16:21 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2010-01-29 11:32:04 (GMT)
commit85961bbaa7402bf73a47ba53501b5b35a3de909f (patch)
treed07c8568ee2f76a2b210ad4a134dfce58e97e4a4
parente7a080749cb47b22d0993bc51f06335f8f0c220b (diff)
downloadQt-85961bbaa7402bf73a47ba53501b5b35a3de909f.zip
Qt-85961bbaa7402bf73a47ba53501b5b35a3de909f.tar.gz
Qt-85961bbaa7402bf73a47ba53501b5b35a3de909f.tar.bz2
doc: Specified default values for constructors.
Task-number: QTBUG-7628 (cherry picked from commit a2c153f01c9b12eb6f1d46ffaf5533bb7b3695e2)
-rw-r--r--src/gui/text/qtextoption.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/text/qtextoption.cpp b/src/gui/text/qtextoption.cpp
index 0c8aeec..c1e254c 100644
--- a/src/gui/text/qtextoption.cpp
+++ b/src/gui/text/qtextoption.cpp
@@ -52,6 +52,9 @@ struct QTextOptionPrivate
/*!
Constructs a text option with default properties for text.
+ The text alignment property is set to Qt::AlignLeft. The
+ word wrap property is set to QTextOption::WordWrap. The
+ using of design metrics flag is set to false.
*/
QTextOption::QTextOption()
: align(Qt::AlignLeft),
@@ -67,6 +70,8 @@ QTextOption::QTextOption()
/*!
Constructs a text option with the given \a alignment for text.
+ The word wrap property is set to QTextOption::WordWrap. The using
+ of design metrics flag is set to false.
*/
QTextOption::QTextOption(Qt::Alignment alignment)
: align(alignment),