summaryrefslogtreecommitdiffstats
path: root/qt-ui/profilegraphics.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-07-02 10:13:06 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-07-02 10:13:06 -0300
commitca517f1bf8f3c690e2d3651d7f74e1b68ed3bb98 (patch)
treef2b64ae2f938fd3a989ba9449a31db8ee18f7a9f /qt-ui/profilegraphics.cpp
parent2df0b398f347bfbcba1139a671bf9f8d5d221e1e (diff)
downloadsubsurface-ca517f1bf8f3c690e2d3651d7f74e1b68ed3bb98.tar.gz
Shared background for profile and planner.
Share the background for profile and planner. Those are not the same class, but they should behave somwheat the same. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/profilegraphics.cpp')
-rw-r--r--qt-ui/profilegraphics.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp
index 93f6dda6e..25538758c 100644
--- a/qt-ui/profilegraphics.cpp
+++ b/qt-ui/profilegraphics.cpp
@@ -43,8 +43,10 @@ extern int evn_used;
ProfileGraphicsView::ProfileGraphicsView(QWidget* parent) : QGraphicsView(parent), toolTip(0) , dive(0), diveDC(0)
{
gc.printer = false;
+ fill_profile_color();
setScene(new QGraphicsScene());
- setBackgroundBrush(QColor("#F3F3E6"));
+
+ setBackgroundBrush(profile_color[BACKGROUND].at(0));
scene()->installEventFilter(this);
setRenderHint(QPainter::Antialiasing);
@@ -59,7 +61,7 @@ ProfileGraphicsView::ProfileGraphicsView(QWidget* parent) : QGraphicsView(parent
setHorizontalScrollBarPolicy (Qt::ScrollBarAlwaysOff);
setVerticalScrollBarPolicy (Qt::ScrollBarAlwaysOff);
- fill_profile_color();
+
}
void ProfileGraphicsView::wheelEvent(QWheelEvent* event)