mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
update the geometry of QPushButton before panting
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
ba2536a22c
commit
ed49b9945f
1 changed files with 3 additions and 3 deletions
|
@ -322,8 +322,8 @@ void QPushButton::setAutoDefault(bool enable)
|
||||||
return;
|
return;
|
||||||
d->autoDefault = state;
|
d->autoDefault = state;
|
||||||
d->sizeHint = QSize();
|
d->sizeHint = QSize();
|
||||||
update();
|
|
||||||
updateGeometry();
|
updateGeometry();
|
||||||
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool QPushButton::autoDefault() const
|
bool QPushButton::autoDefault() const
|
||||||
|
@ -509,8 +509,8 @@ void QPushButton::setMenu(QMenu* menu)
|
||||||
|
|
||||||
d->resetLayoutItemMargins();
|
d->resetLayoutItemMargins();
|
||||||
d->sizeHint = QSize();
|
d->sizeHint = QSize();
|
||||||
update();
|
|
||||||
updateGeometry();
|
updateGeometry();
|
||||||
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
@ -615,8 +615,8 @@ void QPushButton::setFlat(bool flat)
|
||||||
d->flat = flat;
|
d->flat = flat;
|
||||||
d->resetLayoutItemMargins();
|
d->resetLayoutItemMargins();
|
||||||
d->sizeHint = QSize();
|
d->sizeHint = QSize();
|
||||||
update();
|
|
||||||
updateGeometry();
|
updateGeometry();
|
||||||
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool QPushButton::isFlat() const
|
bool QPushButton::isFlat() const
|
||||||
|
|
Loading…
Add table
Reference in a new issue