Doc: specifically list the QToolButton properties that actions affect
Also, add a note that explains that autoRepeat does not affect QToolButton's autoRepeat property. Change-Id: I9e95cef9e9d1b5ee6cb1114d0b9a9fad562db601 Fixes: QTBUG-48204 Reviewed-by: Andy Shaw <andy.shaw@qt.io>
This commit is contained in:
parent
1eeebae7e3
commit
247baedb25
@ -898,7 +898,23 @@ bool QToolButton::autoRaise() const
|
||||
Sets the default action to \a action.
|
||||
|
||||
If a tool button has a default action, the action defines the
|
||||
button's properties like text, icon, tool tip, etc.
|
||||
following properties of the button:
|
||||
|
||||
\list
|
||||
\li \l {QAbstractButton::}{checkable}
|
||||
\li \l {QAbstractButton::}{checked}
|
||||
\li \l {QWidget::}{enabled}
|
||||
\li \l {QWidget::}{font}
|
||||
\li \l {QAbstractButton::}{icon}
|
||||
\li \l {QToolButton::}{popupMode} (assuming the action has a menu)
|
||||
\li \l {QWidget::}{statusTip}
|
||||
\li \l {QAbstractButton::}{text}
|
||||
\li \l {QWidget::}{toolTip}
|
||||
\li \l {QWidget::}{whatsThis}
|
||||
\endlist
|
||||
|
||||
Other properties, such as \l autoRepeat, are not affected
|
||||
by actions.
|
||||
*/
|
||||
void QToolButton::setDefaultAction(QAction *action)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user