Mention Qt::ToolButtonFollowStyle in QToolBar/QMainWindow documentation

Improve the existing docu for Qt::ToolButtonFollowStyle in QToolButton
and show the same text in all other widgets that have toolButtonStyle property
(QToolBar and QMainWindow).

Change-Id: I26ff0ed332f8bd10b542a4111c6ae48a963d5667
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
bb10
David Faure 2014-07-07 23:17:37 +02:00
parent e112c2ee20
commit a8fb55bea7
3 changed files with 11 additions and 2 deletions

View File

@ -468,6 +468,10 @@ void QMainWindow::setIconSize(const QSize &iconSize)
/*! \property QMainWindow::toolButtonStyle
\brief style of toolbar buttons in this mainwindow.
To have the style of toolbuttons follow the system settings, set this property to Qt::ToolButtonFollowStyle.
On Unix, the user settings from the desktop environment will be used.
On other platforms, Qt::ToolButtonFollowStyle means icon only.
The default is Qt::ToolButtonIconOnly.
*/

View File

@ -720,6 +720,10 @@ void QToolBar::setIconSize(const QSize &iconSize)
as \l{QAction}s. Note that if you add a QToolButton with the
addWidget() method, it will not get this button style.
To have the style of toolbuttons follow the system settings, set this property to Qt::ToolButtonFollowStyle.
On Unix, the user settings from the desktop environment will be used.
On other platforms, Qt::ToolButtonFollowStyle means icon only.
The default is Qt::ToolButtonIconOnly.
*/

View File

@ -384,8 +384,9 @@ QSize QToolButton::minimumSizeHint() const
The default is Qt::ToolButtonIconOnly.
To have the style of toolbuttons follow the system settings (as available
in GNOME and KDE desktop environments), set this property to Qt::ToolButtonFollowStyle.
To have the style of toolbuttons follow the system settings, set this property to Qt::ToolButtonFollowStyle.
On Unix, the user settings from the desktop environment will be used.
On other platforms, Qt::ToolButtonFollowStyle means icon only.
QToolButton automatically connects this slot to the relevant
signal in the QMainWindow in which is resides.