refactored BaseWidget

This commit is contained in:
fourtf
2018-07-06 17:11:37 +02:00
parent 741c1f7820
commit b639604a47
31 changed files with 121 additions and 134 deletions
+3 -3
View File
@@ -217,7 +217,7 @@ void Scrollbar::paintEvent(QPaintEvent *)
int xOffset = mouseOver ? 0 : width() - int(4 * this->getScale());
QPainter painter(this);
painter.fillRect(rect(), this->themeManager->scrollbars.background);
painter.fillRect(rect(), this->theme->scrollbars.background);
// painter.fillRect(QRect(xOffset, 0, width(), this->buttonHeight),
// this->themeManager->ScrollbarArrow);
@@ -229,11 +229,11 @@ void Scrollbar::paintEvent(QPaintEvent *)
// mouse over thumb
if (this->mouseDownIndex_ == 2) {
painter.fillRect(this->thumbRect_, this->themeManager->scrollbars.thumbSelected);
painter.fillRect(this->thumbRect_, this->theme->scrollbars.thumbSelected);
}
// mouse not over thumb
else {
painter.fillRect(this->thumbRect_, this->themeManager->scrollbars.thumb);
painter.fillRect(this->thumbRect_, this->theme->scrollbars.thumb);
}
// draw highlights