summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.ui
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-04 16:12:43 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-04 19:49:52 -0700
commit8353d571643c83514012a84cdc904353d2c4972e (patch)
treed862bb5b805ffae00f075723ce72788837dbb684 /qt-ui/mainwindow.ui
parentfcd6903621da975a83bfb6c9a9769221c4203ad9 (diff)
downloadsubsurface-8353d571643c83514012a84cdc904353d2c4972e.tar.gz
Started the code for the Profile Plotting
This small patch adds a new class - ProfileGraphicsView it's a QGraphicsView based class that will holds all graphics-items for the plotting. The setup is simple, just call ui->ListView->plot( dive ) ( that's already a ProfileGraphicsView and magic will happen. Since Im using a QGraphicsView , the size of the canvas doesn't matter and I'm fixing it at 0,0,100,100. when a resize is done, the resizeEvent will be called, fitting the scene's rectangle on the view. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.ui')
-rw-r--r--qt-ui/mainwindow.ui9
1 files changed, 7 insertions, 2 deletions
diff --git a/qt-ui/mainwindow.ui b/qt-ui/mainwindow.ui
index fe97d98b4..7dfbae746 100644
--- a/qt-ui/mainwindow.ui
+++ b/qt-ui/mainwindow.ui
@@ -25,7 +25,7 @@
<enum>Qt::Horizontal</enum>
</property>
<widget class="MainTab" name="InfoWidget" native="true"/>
- <widget class="QGraphicsView" name="ProfileWidget"/>
+ <widget class="ProfileGraphicsView" name="ProfileWidget"/>
</widget>
<widget class="DiveListView" name="ListWidget">
<property name="styleSheet">
@@ -88,7 +88,7 @@
<x>0</x>
<y>0</y>
<width>763</width>
- <height>19</height>
+ <height>25</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
@@ -339,6 +339,11 @@
<extends>QTreeView</extends>
<header>divelistview.h</header>
</customwidget>
+ <customwidget>
+ <class>ProfileGraphicsView</class>
+ <extends>QGraphicsView</extends>
+ <header>profilegraphics.h</header>
+ </customwidget>
</customwidgets>
<resources/>
<connections/>