update the geometry of QPushButton before panting

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-05-14 13:17:32 +03:00
parent ba2536a22c
commit ed49b9945f

View file

@ -322,8 +322,8 @@ void QPushButton::setAutoDefault(bool enable)
return;
d->autoDefault = state;
d->sizeHint = QSize();
update();
updateGeometry();
update();
}
bool QPushButton::autoDefault() const
@ -509,8 +509,8 @@ void QPushButton::setMenu(QMenu* menu)
d->resetLayoutItemMargins();
d->sizeHint = QSize();
update();
updateGeometry();
update();
}
/*!
@ -615,8 +615,8 @@ void QPushButton::setFlat(bool flat)
d->flat = flat;
d->resetLayoutItemMargins();
d->sizeHint = QSize();
update();
updateGeometry();
update();
}
bool QPushButton::isFlat() const