mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
update QAbstractButton geometry before updating it
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
a8068fc969
commit
ba2536a22c
1 changed files with 2 additions and 2 deletions
|
@ -604,8 +604,8 @@ void QAbstractButton::setText(const QString &text)
|
||||||
setShortcut(newMnemonic);
|
setShortcut(newMnemonic);
|
||||||
#endif
|
#endif
|
||||||
d->sizeHint = QSize();
|
d->sizeHint = QSize();
|
||||||
update();
|
|
||||||
updateGeometry();
|
updateGeometry();
|
||||||
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
QString QAbstractButton::text() const
|
QString QAbstractButton::text() const
|
||||||
|
@ -627,8 +627,8 @@ void QAbstractButton::setIcon(const QIcon &icon)
|
||||||
Q_D(QAbstractButton);
|
Q_D(QAbstractButton);
|
||||||
d->icon = icon;
|
d->icon = icon;
|
||||||
d->sizeHint = QSize();
|
d->sizeHint = QSize();
|
||||||
update();
|
|
||||||
updateGeometry();
|
updateGeometry();
|
||||||
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
QIcon QAbstractButton::icon() const
|
QIcon QAbstractButton::icon() const
|
||||||
|
|
Loading…
Add table
Reference in a new issue