Work on dark skin.
This commit is contained in:
parent
06d4988336
commit
5827863910
2 changed files with 3 additions and 20 deletions
File diff suppressed because one or more lines are too long
|
|
@ -14,25 +14,8 @@ PlainToolButton::~PlainToolButton() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void PlainToolButton::paintEvent(QPaintEvent *e) {
|
void PlainToolButton::paintEvent(QPaintEvent *e) {
|
||||||
|
Q_UNUSED(e)
|
||||||
|
|
||||||
QPainter p(this);
|
QPainter p(this);
|
||||||
icon().paint(&p, QRect(QPoint(0, 0), size()));
|
icon().paint(&p, QRect(QPoint(0, 0), size()));
|
||||||
|
|
||||||
/*
|
|
||||||
if (underMouse()) {
|
|
||||||
QStyleOptionFrameV3 style_option;
|
|
||||||
int frame_shape = QFrame::Sunken & QFrame::Shape_Mask;
|
|
||||||
|
|
||||||
style_option.init(this);
|
|
||||||
style_option.frameShape = QFrame::Shape(int(style_option.frameShape) |
|
|
||||||
QFrame::StyledPanel |
|
|
||||||
frame_shape);
|
|
||||||
style_option.rect = rect();
|
|
||||||
style_option.lineWidth = 1;
|
|
||||||
style_option.midLineWidth = 0;
|
|
||||||
|
|
||||||
style()->drawControl(QStyle::CE_ShapedFrame,
|
|
||||||
&style_option, &p,
|
|
||||||
this);
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue