summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qpushbutton.cpp
diff options
context:
space:
mode:
authorLeena Miettinen <riitta-leena.miettinen@qt.io>2017-05-31 10:32:39 +0200
committerLeena Miettinen <riitta-leena.miettinen@qt.io>2017-06-01 10:08:36 +0000
commit22a52d1d640f4ee6c68e8ef5da4573770efdb90a (patch)
treef704ab91f747bab48fb674a95ac8824486588be0 /src/widgets/widgets/qpushbutton.cpp
parent96d6e031635f6d838ae0109d2a91b852a65bbc60 (diff)
Doc: Remove references to screenshots illustrating different styles
... from widget class descriptions. Use one screenshot from Windows instead. The styles change and the screenshots become outdated very fast, so it is easier to update just one screenshot now and then. The styles can still be seen in the style gallery topics. The image files will be removed in a follow-up commit after all references to them have been removed. Change-Id: Id326c141f4884a2e4f67a4fe8681d8c65f8b24ba Reviewed-by: Martin Smith <martin.smith@qt.io>
Diffstat (limited to 'src/widgets/widgets/qpushbutton.cpp')
-rw-r--r--src/widgets/widgets/qpushbutton.cpp21
1 files changed, 7 insertions, 14 deletions
diff --git a/src/widgets/widgets/qpushbutton.cpp b/src/widgets/widgets/qpushbutton.cpp
index 5b1e10eb32..6aa1d68c32 100644
--- a/src/widgets/widgets/qpushbutton.cpp
+++ b/src/widgets/widgets/qpushbutton.cpp
@@ -81,6 +81,8 @@ QT_BEGIN_NAMESPACE
\ingroup basicwidgets
\inmodule QtWidgets
+ \image windows-pushbutton.jpg
+
The push button, or command button, is perhaps the most commonly
used widget in any graphical user interface. Push (click) a button
to command the computer to perform some action, or to answer a
@@ -152,6 +154,11 @@ QT_BEGIN_NAMESPACE
button is probably not what you want. When in doubt, use a tool
button.
+ \note On \macos when a push button's width becomes smaller than 50 or
+ its height becomes smaller than 30, the button's corners are
+ changed from round to square. Use the setMinimumSize()
+ function to prevent this behavior.
+
A variation of a command button is a menu button. These provide
not just one command, but several, since when they are clicked
they pop up a menu of options. Use the method setMenu() to
@@ -160,20 +167,6 @@ QT_BEGIN_NAMESPACE
Other classes of buttons are option buttons (see QRadioButton) and
check boxes (see QCheckBox).
- \table 100%
- \row \li \inlineimage macintosh-pushbutton.png Screenshot of a Macintosh style push button
- \li A push button shown in the \l{Macintosh Style Widget Gallery}{Macintosh widget style}.
-
- Note that when a button's width becomes smaller than 50 or
- its height becomes smaller than 30, the button's corners are
- changed from round to square. Use the setMinimumSize()
- function to prevent this behavior.
-
- \row \li \inlineimage windowsvista-pushbutton.png Screenshot of a Windows Vista style push button
- \li A push button shown in the \l{Windows Vista Style Widget Gallery}{Windows Vista widget style}.
- \row \li \inlineimage fusion-pushbutton.png Screenshot of a Fusion style push button
- \li A push button shown in the \l{Fusion Style Widget Gallery}{Fusion widget style}.
- \endtable
In Qt, the QAbstractButton base class provides most of the modes
and other API, and QPushButton provides GUI logic.