Fixed IconButtonWithText update when text changes.
This commit is contained in:
parent
e94d77847c
commit
289bcf50e9
1 changed files with 4 additions and 1 deletions
|
|
@ -35,7 +35,10 @@ void IconButtonWithText::paintEvent(QPaintEvent *e) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void IconButtonWithText::setText(const QString &text) {
|
void IconButtonWithText::setText(const QString &text) {
|
||||||
_text = text;
|
if (_text != text) {
|
||||||
|
_text = text;
|
||||||
|
update();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Ui
|
} // namespace Ui
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue