diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-10-17 20:15:21 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-10-17 20:15:21 +0200 |
commit | 8f23371ba8e894f5301cdccdce5e49e86a0222f8 (patch) | |
tree | 0c519485f113e0be75d425da31cf3e3afa039bfa /qfunctionconfigurator/qfunctionconfigurator.cpp | |
parent | 4d21a6c5db8ec555ed94c5f8a85482b988fec34b (diff) |
hardcode colors, since qt tabpage is somewhat 'special'
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Diffstat (limited to 'qfunctionconfigurator/qfunctionconfigurator.cpp')
-rw-r--r-- | qfunctionconfigurator/qfunctionconfigurator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qfunctionconfigurator/qfunctionconfigurator.cpp b/qfunctionconfigurator/qfunctionconfigurator.cpp index a068a53c..6bacf294 100644 --- a/qfunctionconfigurator/qfunctionconfigurator.cpp +++ b/qfunctionconfigurator/qfunctionconfigurator.cpp @@ -20,6 +20,7 @@ #include <QtDebug> #include <cmath> #include <QTabWidget> +#include <QTabBar> static const int pointSize = 5; @@ -111,9 +112,8 @@ void QFunctionConfigurator::drawBackground(const QRectF &fullRect) int i; QRect scale; _background = QPixmap(fullRect.width(), fullRect.height()); - auto bgColor = palette().button(); QPainter painter(&_background); - painter.fillRect(fullRect, bgColor); + painter.fillRect(fullRect, QColor::fromRgb(204, 204, 204)); painter.setRenderHint(QPainter::Antialiasing); QColor bg_color(112, 154, 209); painter.fillRect(range, bg_color); |