mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 02:42:55 +00:00
minor QAbstractButton::setText optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
ed49b9945f
commit
bb6a1d74a7
1 changed files with 1 additions and 2 deletions
|
@ -600,8 +600,7 @@ void QAbstractButton::setText(const QString &text)
|
||||||
return;
|
return;
|
||||||
d->text = text;
|
d->text = text;
|
||||||
#ifndef QT_NO_SHORTCUT
|
#ifndef QT_NO_SHORTCUT
|
||||||
QKeySequence newMnemonic = QKeySequence::mnemonic(text);
|
setShortcut(QKeySequence::mnemonic(text));
|
||||||
setShortcut(newMnemonic);
|
|
||||||
#endif
|
#endif
|
||||||
d->sizeHint = QSize();
|
d->sizeHint = QSize();
|
||||||
updateGeometry();
|
updateGeometry();
|
||||||
|
|
Loading…
Add table
Reference in a new issue