Allow different icon on RoundButton hover.
This commit is contained in:
parent
239cec923f
commit
55a97c0106
2 changed files with 5 additions and 1 deletions
|
|
@ -392,7 +392,10 @@ void RoundButton::paintEvent(QPaintEvent *e) {
|
||||||
_numbers->paint(p, textLeft, textTop, width());
|
_numbers->paint(p, textLeft, textTop, width());
|
||||||
}
|
}
|
||||||
if (!_st.icon.empty()) {
|
if (!_st.icon.empty()) {
|
||||||
_st.icon.paint(p, QPoint(iconLeft, iconTop), width());
|
const auto ¤t = ((over || down) && !_st.iconOver.empty())
|
||||||
|
? _st.iconOver
|
||||||
|
: _st.icon;
|
||||||
|
current.paint(p, QPoint(iconLeft, iconTop), width());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -93,6 +93,7 @@ RoundButton {
|
||||||
textTop: pixels;
|
textTop: pixels;
|
||||||
|
|
||||||
icon: icon;
|
icon: icon;
|
||||||
|
iconOver: icon;
|
||||||
iconPosition: point;
|
iconPosition: point;
|
||||||
|
|
||||||
font: font;
|
font: font;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue