1 | /****************************************************************************
|
---|
2 | **
|
---|
3 | ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
---|
4 | ** All rights reserved.
|
---|
5 | ** Contact: Nokia Corporation ([email protected])
|
---|
6 | **
|
---|
7 | ** This file is part of the documentation of the Qt Toolkit.
|
---|
8 | **
|
---|
9 | ** $QT_BEGIN_LICENSE:LGPL$
|
---|
10 | ** Commercial Usage
|
---|
11 | ** Licensees holding valid Qt Commercial licenses may use this file in
|
---|
12 | ** accordance with the Qt Commercial License Agreement provided with the
|
---|
13 | ** Software or, alternatively, in accordance with the terms contained in
|
---|
14 | ** a written agreement between you and Nokia.
|
---|
15 | **
|
---|
16 | ** GNU Lesser General Public License Usage
|
---|
17 | ** Alternatively, this file may be used under the terms of the GNU Lesser
|
---|
18 | ** General Public License version 2.1 as published by the Free Software
|
---|
19 | ** Foundation and appearing in the file LICENSE.LGPL included in the
|
---|
20 | ** packaging of this file. Please review the following information to
|
---|
21 | ** ensure the GNU Lesser General Public License version 2.1 requirements
|
---|
22 | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
---|
23 | **
|
---|
24 | ** In addition, as a special exception, Nokia gives you certain additional
|
---|
25 | ** rights. These rights are described in the Nokia Qt LGPL Exception
|
---|
26 | ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
---|
27 | **
|
---|
28 | ** GNU General Public License Usage
|
---|
29 | ** Alternatively, this file may be used under the terms of the GNU
|
---|
30 | ** General Public License version 3.0 as published by the Free Software
|
---|
31 | ** Foundation and appearing in the file LICENSE.GPL included in the
|
---|
32 | ** packaging of this file. Please review the following information to
|
---|
33 | ** ensure the GNU General Public License version 3.0 requirements will be
|
---|
34 | ** met: http://www.gnu.org/copyleft/gpl.html.
|
---|
35 | **
|
---|
36 | ** If you have questions regarding the use of this file, please contact
|
---|
37 | ** Nokia at [email protected].
|
---|
38 | ** $QT_END_LICENSE$
|
---|
39 | **
|
---|
40 | ****************************************************************************/
|
---|
41 |
|
---|
42 | /*!
|
---|
43 | \namespace Qt
|
---|
44 | \inmodule QtCore
|
---|
45 |
|
---|
46 | \brief The Qt namespace contains miscellaneous identifiers
|
---|
47 | used throughout the Qt library.
|
---|
48 | */
|
---|
49 |
|
---|
50 | /*!
|
---|
51 | \enum Qt::Orientation
|
---|
52 |
|
---|
53 | This type is used to signify an object's orientation.
|
---|
54 |
|
---|
55 | \value Horizontal
|
---|
56 | \value Vertical
|
---|
57 |
|
---|
58 | Orientation is used with QScrollBar for example.
|
---|
59 | */
|
---|
60 |
|
---|
61 | /*!
|
---|
62 | \enum Qt::AlignmentFlag
|
---|
63 |
|
---|
64 | This enum type is used to describe alignment. It contains
|
---|
65 | horizontal and vertical flags that can be combined to produce
|
---|
66 | the required effect.
|
---|
67 |
|
---|
68 | The \l{TextElideMode} enum can also be used in many situations
|
---|
69 | to fine-tune the appearance of aligned text.
|
---|
70 |
|
---|
71 | The horizontal flags are:
|
---|
72 |
|
---|
73 | \value AlignLeft Aligns with the left edge.
|
---|
74 | \value AlignRight Aligns with the right edge.
|
---|
75 | \value AlignHCenter Centers horizontally in the available space.
|
---|
76 | \value AlignJustify Justifies the text in the available space.
|
---|
77 | \omitvalue AlignAuto
|
---|
78 |
|
---|
79 | The vertical flags are:
|
---|
80 |
|
---|
81 | \value AlignTop Aligns with the top.
|
---|
82 | \value AlignBottom Aligns with the bottom.
|
---|
83 | \value AlignVCenter Centers vertically in the available space.
|
---|
84 |
|
---|
85 | You can use only one of the horizontal flags at a time. There is
|
---|
86 | one two-dimensional flag:
|
---|
87 |
|
---|
88 | \value AlignCenter Centers in both dimensions.
|
---|
89 |
|
---|
90 | You can use at most one horizontal and one vertical flag at a
|
---|
91 | time. Qt::AlignCenter counts as both horizontal and vertical.
|
---|
92 |
|
---|
93 | Three enum values are useful in applications that can be run in
|
---|
94 | right-to-left mode:
|
---|
95 |
|
---|
96 | \value AlignAbsolute If the widget's layout direction is
|
---|
97 | Qt::RightToLeft (instead of Qt::LeftToRight, the default),
|
---|
98 | Qt::AlignLeft refers to the \e right edge and Qt::AlignRight
|
---|
99 | to the \e left edge. This is normally the desired behavior.
|
---|
100 | If you want Qt::AlignLeft to always mean "left" and
|
---|
101 | Qt::AlignRight to always mean "right", combine the flag with
|
---|
102 | Qt::AlignAbsolute.
|
---|
103 | \value AlignLeading Synonym for Qt::AlignLeft.
|
---|
104 | \value AlignTrailing Synonym for Qt::AlignRight.
|
---|
105 |
|
---|
106 | Masks:
|
---|
107 |
|
---|
108 | \value AlignHorizontal_Mask
|
---|
109 | \value AlignVertical_Mask
|
---|
110 |
|
---|
111 | Conflicting combinations of flags have undefined meanings.
|
---|
112 | */
|
---|
113 |
|
---|
114 | /*!
|
---|
115 | \enum Qt::ApplicationAttribute
|
---|
116 |
|
---|
117 | This enum describes attributes that change the behavior of
|
---|
118 | application-wide features. These are enabled and disabled using
|
---|
119 | QCoreApplication::setAttribute(), and can be tested for with
|
---|
120 | QCoreApplication::testAttribute().
|
---|
121 |
|
---|
122 | \value AA_ImmediateWidgetCreation Ensures that widgets are created
|
---|
123 | as soon as they are constructed. By default, resources for
|
---|
124 | widgets are allocated on demand to improve efficiency and
|
---|
125 | minimize resource usage. Setting or clearing this attribute
|
---|
126 | affects widgets constructed after the change. Setting it
|
---|
127 | tells Qt to create toplevel windows immediately.
|
---|
128 | Therefore, if it is important to minimize resource
|
---|
129 | consumption, do not set this attribute.
|
---|
130 |
|
---|
131 | \value AA_MSWindowsUseDirect3DByDefault This value is obsolete and
|
---|
132 | has no effect.
|
---|
133 |
|
---|
134 | \value AA_DontShowIconsInMenus Actions with the Icon property won't be
|
---|
135 | shown in any menus unless specifically set by the
|
---|
136 | QAction::iconVisibleInMenu property.
|
---|
137 | Menus that are currently open or menus already created in the native
|
---|
138 | Mac OS X menubar \e{may not} pick up a change in this attribute. Changes
|
---|
139 | in the QAction::iconVisibleInMenu property will always be picked up.
|
---|
140 |
|
---|
141 | \value AA_NativeWindows Ensures that widgets have native windows.
|
---|
142 |
|
---|
143 | \value AA_DontCreateNativeWidgetSiblings Ensures that siblings of native
|
---|
144 | widgets stay non-native unless specifically set by the
|
---|
145 | Qt::WA_NativeWindow attribute.
|
---|
146 |
|
---|
147 | \value AA_MacPluginApplication Stops the Qt mac application from doing
|
---|
148 | specific initializations that do not necessarily make sense when using Qt
|
---|
149 | to author a plugin. This includes avoiding loading our nib for the main
|
---|
150 | menu and not taking possession of the native menu bar. When setting this
|
---|
151 | attribute to true will also set the AA_DontUseNativeMenuBar attribute
|
---|
152 | to true.
|
---|
153 |
|
---|
154 | \value AA_DontUseNativeMenuBar All menubars created while this attribute is
|
---|
155 | set to true won't be used as a native menubar (e.g, the menubar at
|
---|
156 | the top of the main screen on Mac OS X or at the bottom in Windows CE).
|
---|
157 |
|
---|
158 | \value AA_MacDontSwapCtrlAndMeta On Mac OS X by default, Qt swaps the
|
---|
159 | Control and Meta (Command) keys (i.e., whenever Control is pressed, Qt
|
---|
160 | sends Meta and whenever Meta is pressed Control is sent. When this
|
---|
161 | attribute is true, Qt will not do the flip. QKeySequence::StandardShortcuts
|
---|
162 | will also flip accordingly (i.e., QKeySequence::Copy will be
|
---|
163 | Command+C on the keyboard regardless of the value set, though what is output for
|
---|
164 | QKeySequence::toString(QKeySequence::PortableText) will be different).
|
---|
165 |
|
---|
166 | \value AA_S60DontConstructApplicationPanes Stops Qt from initializing the S60 status
|
---|
167 | pane and softkey pane on Symbian. This is useful to save memory and reduce
|
---|
168 | startup time for applications that will run in fullscreen mode during their
|
---|
169 | whole lifetime. This attribute must be set before QApplication is
|
---|
170 | constructed.
|
---|
171 |
|
---|
172 | \omitvalue AA_AttributeCount
|
---|
173 | */
|
---|
174 |
|
---|
175 | /*!
|
---|
176 | \enum Qt::MouseButton
|
---|
177 |
|
---|
178 | This enum type describes the different mouse buttons.
|
---|
179 |
|
---|
180 | \value NoButton The button state does not refer to any
|
---|
181 | button (see QMouseEvent::button()).
|
---|
182 | \value LeftButton The left button is pressed, or an event refers
|
---|
183 | to the left button. (The left button may be the right button on
|
---|
184 | left-handed mice.)
|
---|
185 | \value RightButton The right button.
|
---|
186 | \value MidButton The middle button.
|
---|
187 | \value XButton1 The first X button.
|
---|
188 | \value XButton2 The second X button.
|
---|
189 |
|
---|
190 | \omitvalue MouseButtonMask
|
---|
191 |
|
---|
192 | \sa KeyboardModifier Modifier
|
---|
193 | */
|
---|
194 |
|
---|
195 | /*!
|
---|
196 | \enum Qt::KeyboardModifier
|
---|
197 |
|
---|
198 | This enum describes the modifier keys.
|
---|
199 |
|
---|
200 | \value NoModifier No modifier key is pressed.
|
---|
201 | \value ShiftModifier A Shift key on the keyboard is pressed.
|
---|
202 | \value ControlModifier A Ctrl key on the keyboard is pressed.
|
---|
203 | \value AltModifier An Alt key on the keyboard is pressed.
|
---|
204 | \value MetaModifier A Meta key on the keyboard is pressed.
|
---|
205 | \value KeypadModifier A keypad button is pressed.
|
---|
206 | \value GroupSwitchModifier X11 only. A Mode_switch key on the keyboard is pressed.
|
---|
207 |
|
---|
208 | \omitvalue KeyboardModifierMask
|
---|
209 |
|
---|
210 | \note On Mac OS X, the \c ControlModifier value corresponds to
|
---|
211 | the Command keys on the Macintosh keyboard, and the \c MetaModifier value
|
---|
212 | corresponds to the Control keys. The \c KeypadModifier value will also be set
|
---|
213 | when an arrow key is pressed as the arrow keys are considered part of the
|
---|
214 | keypad.
|
---|
215 |
|
---|
216 | \note On Windows Keyboards, Qt::MetaModifier and Qt::Key_Meta are mapped
|
---|
217 | to the Windows key.
|
---|
218 |
|
---|
219 | \sa MouseButton Modifier
|
---|
220 | */
|
---|
221 |
|
---|
222 | /*!
|
---|
223 | \enum Qt::Modifier
|
---|
224 |
|
---|
225 | This enum provides shorter names for the keyboard modifier keys
|
---|
226 | supported by Qt.
|
---|
227 |
|
---|
228 | \bold{Note:} On Mac OS X, the \c CTRL value corresponds to
|
---|
229 | the Command keys on the Macintosh keyboard, and the \c META value
|
---|
230 | corresponds to the Control keys.
|
---|
231 |
|
---|
232 | \value SHIFT The Shift keys provided on all standard keyboards.
|
---|
233 | \value META The Meta keys.
|
---|
234 | \value CTRL The Ctrl keys.
|
---|
235 | \value ALT The normal Alt keys, but not keys like AltGr.
|
---|
236 | \value UNICODE_ACCEL The shortcut is specified as a Unicode code
|
---|
237 | point, not as a Qt Key.
|
---|
238 | \omitvalue MODIFIER_MASK
|
---|
239 |
|
---|
240 | \sa KeyboardModifier MouseButton
|
---|
241 | */
|
---|
242 |
|
---|
243 | /*!
|
---|
244 | \enum Qt::GlobalColor
|
---|
245 |
|
---|
246 | \raw HTML
|
---|
247 | <style type="text/css" id="colorstyles">
|
---|
248 | #white { background-color: #ffffff; color: #000000 }
|
---|
249 | #black { background-color: #000000; color: #ffffff }
|
---|
250 | #red { background-color: #ff0000; color: #000000 }
|
---|
251 | #darkRed { background-color: #800000; color: #ffffff }
|
---|
252 | #green { background-color: #00ff00; color: #000000 }
|
---|
253 | #darkGreen { background-color: #008000; color: #ffffff }
|
---|
254 | #blue { background-color: #0000ff; color: #ffffff }
|
---|
255 | #darkBlue { background-color: #000080; color: #ffffff }
|
---|
256 | #cyan { background-color: #00ffff; color: #000000 }
|
---|
257 | #darkCyan { background-color: #008080; color: #ffffff }
|
---|
258 | #magenta { background-color: #ff00ff; color: #000000 }
|
---|
259 | #darkMagenta { background-color: #800080; color: #ffffff }
|
---|
260 | #yellow { background-color: #ffff00; color: #000000 }
|
---|
261 | #darkYellow { background-color: #808000; color: #ffffff }
|
---|
262 | #gray { background-color: #a0a0a4; color: #000000 }
|
---|
263 | #darkGray { background-color: #808080; color: #ffffff }
|
---|
264 | #lightGray { background-color: #c0c0c0; color: #000000 }
|
---|
265 | </style>
|
---|
266 | \endraw
|
---|
267 |
|
---|
268 | Qt's predefined QColor objects:
|
---|
269 |
|
---|
270 | \value white \raw HTML
|
---|
271 | White <tt id="white">(#ffffff)</tt>
|
---|
272 | \endraw
|
---|
273 | \value black \raw HTML
|
---|
274 | Black <tt id="black">(#000000)</tt>
|
---|
275 | \endraw
|
---|
276 | \value red \raw HTML
|
---|
277 | Red <tt id="red">(#ff0000)</tt>
|
---|
278 | \endraw
|
---|
279 | \value darkRed \raw HTML
|
---|
280 | Dark red <tt id="darkRed">(#800000)</tt>
|
---|
281 | \endraw
|
---|
282 | \value green \raw HTML
|
---|
283 | Green <tt id="green">(#00ff00)</tt>
|
---|
284 | \endraw
|
---|
285 | \value darkGreen \raw HTML
|
---|
286 | Dark green <tt id="darkGreen">(#008000)</tt>
|
---|
287 | \endraw
|
---|
288 | \value blue \raw HTML
|
---|
289 | Blue <tt id="blue">(#0000ff)</tt>
|
---|
290 | \endraw
|
---|
291 | \value darkBlue \raw HTML
|
---|
292 | Dark blue <tt id="darkBlue">(#000080)</tt>
|
---|
293 | \endraw
|
---|
294 | \value cyan \raw HTML
|
---|
295 | Cyan <tt id="cyan">(#00ffff)</tt>
|
---|
296 | \endraw
|
---|
297 | \value darkCyan \raw HTML
|
---|
298 | Dark cyan <tt id="darkCyan">(#008080)</tt>
|
---|
299 | \endraw
|
---|
300 | \value magenta \raw HTML
|
---|
301 | Magenta <tt id="magenta">(#ff00ff)</tt>
|
---|
302 | \endraw
|
---|
303 | \value darkMagenta \raw HTML
|
---|
304 | Dark magenta <tt id="darkMagenta">(#800080)</tt>
|
---|
305 | \endraw
|
---|
306 | \value yellow \raw HTML
|
---|
307 | Yellow <tt id="yellow">(#ffff00)</tt>
|
---|
308 | \endraw
|
---|
309 | \value darkYellow \raw HTML
|
---|
310 | Dark yellow <tt id="darkYellow">(#808000)</tt>
|
---|
311 | \endraw
|
---|
312 | \value gray \raw HTML
|
---|
313 | Gray <tt id="gray">(#a0a0a4)</tt>
|
---|
314 | \endraw
|
---|
315 | \value darkGray \raw HTML
|
---|
316 | Dark gray <tt id="darkGray">(#808080)</tt>
|
---|
317 | \endraw
|
---|
318 | \value lightGray \raw HTML
|
---|
319 | Light gray <tt id="lightGray">(#c0c0c0)</tt>
|
---|
320 | \endraw
|
---|
321 | \value transparent a transparent black value (i.e., QColor(0, 0, 0, 0))
|
---|
322 | \value color0 0 pixel value (for bitmaps)
|
---|
323 | \value color1 1 pixel value (for bitmaps)
|
---|
324 |
|
---|
325 | \sa QColor
|
---|
326 |
|
---|
327 | */
|
---|
328 |
|
---|
329 | /*!
|
---|
330 | \enum Qt::PenStyle
|
---|
331 |
|
---|
332 | This enum type defines the pen styles that can be drawn using
|
---|
333 | QPainter. The styles are:
|
---|
334 |
|
---|
335 | \table
|
---|
336 | \row
|
---|
337 | \o \inlineimage qpen-solid.png
|
---|
338 | \o \inlineimage qpen-dash.png
|
---|
339 | \o \inlineimage qpen-dot.png
|
---|
340 | \row
|
---|
341 | \o Qt::SolidLine
|
---|
342 | \o Qt::DashLine
|
---|
343 | \o Qt::DotLine
|
---|
344 | \row
|
---|
345 | \o \inlineimage qpen-dashdot.png
|
---|
346 | \o \inlineimage qpen-dashdotdot.png
|
---|
347 | \o \inlineimage qpen-custom.png
|
---|
348 | \row
|
---|
349 | \o Qt::DashDotLine
|
---|
350 | \o Qt::DashDotDotLine
|
---|
351 | \o Qt::CustomDashLine
|
---|
352 | \endtable
|
---|
353 |
|
---|
354 | \value NoPen no line at all. For example, QPainter::drawRect()
|
---|
355 | fills but does not draw any boundary line.
|
---|
356 |
|
---|
357 | \value SolidLine A plain line.
|
---|
358 | \value DashLine Dashes separated by a few pixels.
|
---|
359 | \value DotLine Dots separated by a few pixels.
|
---|
360 | \value DashDotLine Alternate dots and dashes.
|
---|
361 | \value DashDotDotLine One dash, two dots, one dash, two dots.
|
---|
362 | \value CustomDashLine A custom pattern defined using
|
---|
363 | QPainterPathStroker::setDashPattern().
|
---|
364 |
|
---|
365 | \omitvalue MPenStyle
|
---|
366 |
|
---|
367 | \sa QPen
|
---|
368 | */
|
---|
369 |
|
---|
370 | /*!
|
---|
371 | \enum Qt::PenCapStyle
|
---|
372 |
|
---|
373 | This enum type defines the pen cap styles supported by Qt, i.e.
|
---|
374 | the line end caps that can be drawn using QPainter.
|
---|
375 |
|
---|
376 | \table
|
---|
377 | \row
|
---|
378 | \o \inlineimage qpen-square.png
|
---|
379 | \o \inlineimage qpen-flat.png
|
---|
380 | \o \inlineimage qpen-roundcap.png
|
---|
381 | \row
|
---|
382 | \o Qt::SquareCap
|
---|
383 | \o Qt::FlatCap
|
---|
384 | \o Qt::RoundCap
|
---|
385 | \endtable
|
---|
386 |
|
---|
387 | \value FlatCap a square line end that does not cover the end
|
---|
388 | point of the line.
|
---|
389 | \value SquareCap a square line end that covers the end point and
|
---|
390 | extends beyond it by half the line width.
|
---|
391 | \value RoundCap a rounded line end.
|
---|
392 | \omitvalue MPenCapStyle
|
---|
393 |
|
---|
394 | \sa QPen
|
---|
395 | */
|
---|
396 |
|
---|
397 | /*!
|
---|
398 | \enum Qt::PenJoinStyle
|
---|
399 |
|
---|
400 | This enum type defines the pen join styles supported by Qt, i.e.
|
---|
401 | which joins between two connected lines can be drawn using
|
---|
402 | QPainter.
|
---|
403 |
|
---|
404 | \table
|
---|
405 | \row
|
---|
406 | \o \inlineimage qpen-bevel.png
|
---|
407 | \o \inlineimage qpen-miter.png
|
---|
408 | \o \inlineimage qpen-roundjoin.png
|
---|
409 | \row
|
---|
410 | \o Qt::BevelJoin
|
---|
411 | \o Qt::MiterJoin
|
---|
412 | \o Qt::RoundJoin
|
---|
413 | \endtable
|
---|
414 |
|
---|
415 | \value MiterJoin The outer edges of the lines are extended to
|
---|
416 | meet at an angle, and this area is filled.
|
---|
417 | \value BevelJoin The triangular notch between the two lines is filled.
|
---|
418 | \value RoundJoin A circular arc between the two lines is filled.
|
---|
419 | \value SvgMiterJoin A miter join corresponding to the definition of
|
---|
420 | a miter join in the \l{SVG 1.2 Tiny} specification.
|
---|
421 | \omitvalue MPenJoinStyle
|
---|
422 |
|
---|
423 | \sa QPen
|
---|
424 | */
|
---|
425 |
|
---|
426 | /*!
|
---|
427 | \enum Qt::BrushStyle
|
---|
428 |
|
---|
429 | This enum type defines the brush styles supported by Qt, i.e. the
|
---|
430 | fill pattern of shapes drawn using QPainter.
|
---|
431 |
|
---|
432 | \image brush-styles.png Brush Styles
|
---|
433 |
|
---|
434 | \value NoBrush No brush pattern.
|
---|
435 | \value SolidPattern Uniform color.
|
---|
436 | \value Dense1Pattern Extremely dense brush pattern.
|
---|
437 | \value Dense2Pattern Very dense brush pattern.
|
---|
438 | \value Dense3Pattern Somewhat dense brush pattern.
|
---|
439 | \value Dense4Pattern Half dense brush pattern.
|
---|
440 | \value Dense5Pattern Somewhat sparse brush pattern.
|
---|
441 | \value Dense6Pattern Very sparse brush pattern.
|
---|
442 | \value Dense7Pattern Extremely sparse brush pattern.
|
---|
443 | \value HorPattern Horizontal lines.
|
---|
444 | \value VerPattern Vertical lines.
|
---|
445 | \value CrossPattern Crossing horizontal and vertical lines.
|
---|
446 | \value BDiagPattern Backward diagonal lines.
|
---|
447 | \value FDiagPattern Forward diagonal lines.
|
---|
448 | \value DiagCrossPattern Crossing diagonal lines.
|
---|
449 | \value LinearGradientPattern Linear gradient (set using a dedicated QBrush constructor).
|
---|
450 | \value ConicalGradientPattern Conical gradient (set using a dedicated QBrush constructor).
|
---|
451 | \value RadialGradientPattern Radial gradient (set using a dedicated QBrush constructor).
|
---|
452 | \value TexturePattern Custom pattern (see QBrush::setTexture()).
|
---|
453 |
|
---|
454 | \omitvalue CustomPattern
|
---|
455 |
|
---|
456 | \sa QBrush
|
---|
457 | */
|
---|
458 |
|
---|
459 | /*!
|
---|
460 | \enum Qt::TextFlag
|
---|
461 |
|
---|
462 | This enum type is used to define some modifier flags. Some of
|
---|
463 | these flags only make sense in the context of printing:
|
---|
464 |
|
---|
465 | \value TextSingleLine Treats all whitespace as spaces and prints just
|
---|
466 | one line.
|
---|
467 | \value TextDontClip If it's impossible to stay within the given bounds,
|
---|
468 | it prints outside.
|
---|
469 | \value TextExpandTabs Makes the U+0009 (ASCII tab) character move to
|
---|
470 | the next tab stop.
|
---|
471 | \value TextShowMnemonic Displays the string "\&P" as \underline{P}
|
---|
472 | (see QButton for an example). For an ampersand, use "\&\&".
|
---|
473 | \value TextWordWrap Breaks lines at appropriate points, e.g. at word
|
---|
474 | boundaries.
|
---|
475 | \value TextWrapAnywhere Breaks lines anywhere, even within words.
|
---|
476 | \value TextHideMnemonic Same as Qt::TextShowMnemonic but doesn't draw the underlines.
|
---|
477 | \value TextDontPrint Treat this text as "hidden" and don't print
|
---|
478 | it.
|
---|
479 | \value IncludeTrailingSpaces When this option is set, QTextLine::naturalTextWidth() and naturalTextRect() will
|
---|
480 | return a value that includes the width of trailing spaces in the text; otherwise
|
---|
481 | this width is excluded.
|
---|
482 | \value TextIncludeTrailingSpaces Same as IncludeTrailingSpaces
|
---|
483 | \value TextJustificationForced Ensures that text lines are justified.
|
---|
484 |
|
---|
485 | \omitvalue BreakAnywhere
|
---|
486 | \omitvalue DontClip
|
---|
487 | \omitvalue DontPrint
|
---|
488 | \omitvalue ExpandTabs
|
---|
489 | \omitvalue IncludeTrailingSpaces
|
---|
490 | \omitvalue NoAccel
|
---|
491 | \omitvalue ShowPrefix
|
---|
492 | \omitvalue SingleLine
|
---|
493 | \omitvalue WordBreak
|
---|
494 | \omitvalue TextForceLeftToRight
|
---|
495 | \omitvalue TextForceRightToLeft
|
---|
496 | \omitvalue TextLongestVariant Always use the longest variant when computing the size of a multi-variant string
|
---|
497 |
|
---|
498 | You can use as many modifier flags as you want, except that
|
---|
499 | Qt::TextSingleLine and Qt::TextWordWrap cannot be combined.
|
---|
500 |
|
---|
501 | Flags that are inappropriate for a given use are generally
|
---|
502 | ignored.
|
---|
503 | */
|
---|
504 |
|
---|
505 | /*!
|
---|
506 | \enum Qt::BGMode
|
---|
507 |
|
---|
508 | Background mode:
|
---|
509 |
|
---|
510 | \value TransparentMode
|
---|
511 | \value OpaqueMode
|
---|
512 | */
|
---|
513 |
|
---|
514 | /*!
|
---|
515 | \enum Qt::ConnectionType
|
---|
516 |
|
---|
517 | This enum describes the types of connection that can be used
|
---|
518 | between signals and slots. In particular, it determines whether a
|
---|
519 | particular signal is delivered to a slot immediately or queued for
|
---|
520 | delivery at a later time.
|
---|
521 |
|
---|
522 | \value AutoConnection
|
---|
523 | (default) Same as DirectConnection, if the emitter and
|
---|
524 | receiver are in the same thread. Same as QueuedConnection,
|
---|
525 | if the emitter and receiver are in different threads.
|
---|
526 |
|
---|
527 | \value DirectConnection
|
---|
528 | The slot is invoked immediately, when the signal is
|
---|
529 | emitted.
|
---|
530 |
|
---|
531 | \value QueuedConnection
|
---|
532 | The slot is invoked when control returns to the event loop
|
---|
533 | of the receiver's thread. The slot is executed in the
|
---|
534 | receiver's thread.
|
---|
535 |
|
---|
536 | \value BlockingQueuedConnection
|
---|
537 | Same as QueuedConnection, except the current thread blocks
|
---|
538 | until the slot returns. This connection type should only be
|
---|
539 | used where the emitter and receiver are in different
|
---|
540 | threads. \note Violating this rule can cause your
|
---|
541 | application to deadlock.
|
---|
542 |
|
---|
543 | \value UniqueConnection
|
---|
544 | Same as AutoConnection, but the connection is made only if
|
---|
545 | it does not duplicate an existing connection. i.e., if the
|
---|
546 | same signal is already connected to the same slot for the
|
---|
547 | same pair of objects, then the connection will fail. This
|
---|
548 | connection type was introduced in Qt 4.6.
|
---|
549 |
|
---|
550 | \value AutoCompatConnection
|
---|
551 | The default type when Qt 3 support is enabled. Same as
|
---|
552 | AutoConnection but will also cause warnings to be output in
|
---|
553 | certain situations. See \l{Porting to Qt 4#Compatibility
|
---|
554 | Signals and Slots}{Compatibility Signals and Slots} for
|
---|
555 | further information.
|
---|
556 |
|
---|
557 | With queued connections, the parameters must be of types that are
|
---|
558 | known to Qt's meta-object system, because Qt needs to copy the
|
---|
559 | arguments to store them in an event behind the scenes. If you try
|
---|
560 | to use a queued connection and get the error message:
|
---|
561 |
|
---|
562 | \snippet doc/src/snippets/code/doc_src_qnamespace.qdoc 0
|
---|
563 |
|
---|
564 | Call qRegisterMetaType() to register the data type before you
|
---|
565 | establish the connection.
|
---|
566 |
|
---|
567 | When using signals and slots with multiple threads, see \l{Signals and Slots Across Threads}.
|
---|
568 |
|
---|
569 | \sa {Thread Support in Qt}, QObject::connect(), qRegisterMetaType()
|
---|
570 | */
|
---|
571 |
|
---|
572 | /*!
|
---|
573 | \enum Qt::DateFormat
|
---|
574 |
|
---|
575 | \value TextDate The default Qt format, which includes the day and month name,
|
---|
576 | the day number in the month, and the year in full. The day and month names will
|
---|
577 | be short, localized names. This is basically equivalent to using the date format
|
---|
578 | string, "ddd MMM d yyyy". See QDate::toString() for more information.
|
---|
579 |
|
---|
580 | \value ISODate ISO 8601 extended format: either \c{YYYY-MM-DD} for dates or
|
---|
581 | \c{YYYY-MM-DDTHH:MM:SS} for combined dates and times.
|
---|
582 |
|
---|
583 | \value SystemLocaleShortDate The \l{QLocale::ShortFormat}{short format} used
|
---|
584 | by the \l{QLocale::system()}{operating system}.
|
---|
585 |
|
---|
586 | \value SystemLocaleLongDate The \l{QLocale::LongFormat}{long format} used
|
---|
587 | by the \l{QLocale::system()}{operating system}.
|
---|
588 |
|
---|
589 | \value DefaultLocaleShortDate The \l{QLocale::ShortFormat}{short format} specified
|
---|
590 | by the \l{QLocale::setDefault()}{application's locale}.
|
---|
591 |
|
---|
592 | \value DefaultLocaleLongDate The \l{QLocale::LongFormat}{long format} used
|
---|
593 | by the \l{QLocale::setDefault()}{application's locale}.
|
---|
594 |
|
---|
595 | \value SystemLocaleDate \e{This enum value is deprecated.} Use Qt::SystemLocaleShortDate
|
---|
596 | instead (or Qt::SystemLocaleLongDate if you want long dates).
|
---|
597 |
|
---|
598 | \value LocaleDate \e{This enum value is deprecated.} Use Qt::DefaultLocaleShortDate
|
---|
599 | instead (or Qt::DefaultLocaleLongDate if you want long dates).
|
---|
600 |
|
---|
601 | \value LocalDate \e{This enum value is deprecated.} Use Qt::SystemLocaleShortDate
|
---|
602 | instead (or Qt::SystemLocaleLongDate if you want long dates).
|
---|
603 |
|
---|
604 | \note For \c ISODate formats, each \c Y, \c M and \c D represents a single digit
|
---|
605 | of the year, month and day used to specify the date. Each \c H, \c M and \c S
|
---|
606 | represents a single digit of the hour, minute and second used to specify the time.
|
---|
607 | The presence of a literal \c T character is used to separate the date and time when
|
---|
608 | both are specified.
|
---|
609 | */
|
---|
610 |
|
---|
611 |
|
---|
612 | /*!
|
---|
613 | \enum Qt::TimeSpec
|
---|
614 |
|
---|
615 | \value LocalTime Locale dependent time (Timezones and Daylight Savings Time).
|
---|
616 | \value UTC Coordinated Universal Time, replaces Greenwich Mean Time.
|
---|
617 | \value OffsetFromUTC An offset in seconds from Coordinated Universal Time.
|
---|
618 | */
|
---|
619 |
|
---|
620 | /*!
|
---|
621 | \enum Qt::DayOfWeek
|
---|
622 |
|
---|
623 | \value Monday
|
---|
624 | \value Tuesday
|
---|
625 | \value Wednesday
|
---|
626 | \value Thursday
|
---|
627 | \value Friday
|
---|
628 | \value Saturday
|
---|
629 | \value Sunday
|
---|
630 | */
|
---|
631 |
|
---|
|
---|