equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the QtGui module of the Qt Toolkit. |
7 ** This file is part of the QtGui module of the Qt Toolkit. |
8 ** |
8 ** |
50 QList<QTextOption::Tab> tabStops; |
50 QList<QTextOption::Tab> tabStops; |
51 }; |
51 }; |
52 |
52 |
53 /*! |
53 /*! |
54 Constructs a text option with default properties for text. |
54 Constructs a text option with default properties for text. |
|
55 The text alignment property is set to Qt::AlignLeft. The |
|
56 word wrap property is set to QTextOption::WordWrap. The |
|
57 using of design metrics flag is set to false. |
55 */ |
58 */ |
56 QTextOption::QTextOption() |
59 QTextOption::QTextOption() |
57 : align(Qt::AlignLeft), |
60 : align(Qt::AlignLeft), |
58 wordWrap(QTextOption::WordWrap), |
61 wordWrap(QTextOption::WordWrap), |
59 design(false), |
62 design(false), |
65 direction = QApplication::layoutDirection(); |
68 direction = QApplication::layoutDirection(); |
66 } |
69 } |
67 |
70 |
68 /*! |
71 /*! |
69 Constructs a text option with the given \a alignment for text. |
72 Constructs a text option with the given \a alignment for text. |
|
73 The word wrap property is set to QTextOption::WordWrap. The using |
|
74 of design metrics flag is set to false. |
70 */ |
75 */ |
71 QTextOption::QTextOption(Qt::Alignment alignment) |
76 QTextOption::QTextOption(Qt::Alignment alignment) |
72 : align(alignment), |
77 : align(alignment), |
73 wordWrap(QTextOption::WordWrap), |
78 wordWrap(QTextOption::WordWrap), |
74 design(false), |
79 design(false), |