mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 10:22: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;
|
||||
d->text = text;
|
||||
#ifndef QT_NO_SHORTCUT
|
||||
QKeySequence newMnemonic = QKeySequence::mnemonic(text);
|
||||
setShortcut(newMnemonic);
|
||||
setShortcut(QKeySequence::mnemonic(text));
|
||||
#endif
|
||||
d->sizeHint = QSize();
|
||||
updateGeometry();
|
||||
|
|
Loading…
Add table
Reference in a new issue