summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@nokia.com>2009-07-18 11:21:25 (GMT)
committerVolker Hilsheimer <volker.hilsheimer@nokia.com>2009-07-18 11:21:25 (GMT)
commit50624a969d130ec55a6fd8e908b5b5e4e17636fb (patch)
treeb0d752a6177cfa83b43bce846aca32b10d38e5c0 /src/gui
parent3338292e48671a71c8edb69626df13ae615901c0 (diff)
downloadQt-50624a969d130ec55a6fd8e908b5b5e4e17636fb.zip
Qt-50624a969d130ec55a6fd8e908b5b5e4e17636fb.tar.gz
Qt-50624a969d130ec55a6fd8e908b5b5e4e17636fb.tar.bz2
Doc: Document QAction::Priority and Qt::ToolButtonFollowStyle.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/kernel/qaction.cpp29
-rw-r--r--src/gui/widgets/qtoolbutton.cpp5
2 files changed, 27 insertions, 7 deletions
diff --git a/src/gui/kernel/qaction.cpp b/src/gui/kernel/qaction.cpp
index 09ba6cc..5952320 100644
--- a/src/gui/kernel/qaction.cpp
+++ b/src/gui/kernel/qaction.cpp
@@ -910,14 +910,35 @@ QString QAction::whatsThis() const
}
/*!
+ \enum QAction::Priority
+ \since 4.6
+
+ This enum defines priorities for actions in user interface.
+
+ \value LowPriority The action will not be prioritized in
+ collapsible layouts when not enough space for all actions is
+ available.
+
+ \value NormalPriority
+
+ \value HighPriority The action will be prioritized by
+ collapsible layouts when not enough space for all actions is
+ available.
+
+ \sa priority
+*/
+
+
+/*!
\property QAction::priority
\since 4.6
- \brief tells collapsible layouts how the action should be prioritized
+ \brief the actions's priority in the user interface.
- This property can be set to indicate that an action should be prioritied
- in a layout. For instance when toolbars have the Qt::ToolButtonTextBesideIcon
- mode is set, lower priority actions will hide text labels to preserve space.
+ This property can be set to indicate how the action should be prioritized
+ in a collapsible layout. For instance, when toolbars have the Qt::ToolButtonTextBesideIcon
+ mode set, then lower priority actions will hide text labels to preserve
+ horizontal space if necessary.
*/
void QAction::setPriority(Priority priority)
{
diff --git a/src/gui/widgets/qtoolbutton.cpp b/src/gui/widgets/qtoolbutton.cpp
index 3901245..2c85dc5 100644
--- a/src/gui/widgets/qtoolbutton.cpp
+++ b/src/gui/widgets/qtoolbutton.cpp
@@ -486,9 +486,8 @@ QSize QToolButton::minimumSizeHint() const
The default is Qt::ToolButtonIconOnly.
- If you want your toolbars to depend on system settings,
- as is possible in GNOME and KDE desktop environments you should
- use the ToolButtonFollowStyle.
+ To have the style of toolbuttons follow the system settings (as available
+ in GNOME and KDE desktop environments), set this property to Qt::ToolButtonFollowStyle.
QToolButton automatically connects this slot to the relevant
signal in the QMainWindow in which is resides.