diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-02-09 16:37:26 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-02-10 10:45:45 -0800 |
commit | 486226be181196439d56bd43dc03e8b2fae8ea69 (patch) | |
tree | 33a2e8d5c91c53ed3c5e6b1d09058450fb3e0f5e /qt-ui | |
parent | 5098e8672eb836e141816b3ae38ce6e3c0328ac2 (diff) | |
download | subsurface-486226be181196439d56bd43dc03e8b2fae8ea69.tar.gz |
Add the PlannerDetails class
This is the last of the current dialogs to be ported to the
new widgets system. now we need to clean the mainwindow of the
old code.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/diveplanner.cpp | 5 | ||||
-rw-r--r-- | qt-ui/diveplanner.h | 11 | ||||
-rw-r--r-- | qt-ui/plannerDetails.ui | 4 |
3 files changed, 18 insertions, 2 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index 84555bcd6..3587d3c22 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -1266,3 +1266,8 @@ void DivePlannerPointsModel::createPlan(bool replanCopy) setPlanMode(NOTHING); planCreated(); } + +PlannerDetails::PlannerDetails(QWidget *parent) : QWidget(parent) +{ + ui.setupUi(this); +} diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h index 4093bacd1..49fd43ff6 100644 --- a/qt-ui/diveplanner.h +++ b/qt-ui/diveplanner.h @@ -186,6 +186,17 @@ private: void updateUnitsUI(); }; +#include "ui_plannerDetails.h" + +class PlannerDetails : public QWidget { + Q_OBJECT +public: + explicit PlannerDetails(QWidget *parent = 0); +private: + Ui::plannerDetails ui; +}; + + QString dpGasToStr(const divedatapoint &p); #endif // DIVEPLANNER_H diff --git a/qt-ui/plannerDetails.ui b/qt-ui/plannerDetails.ui index 73e5b1465..349ec536a 100644 --- a/qt-ui/plannerDetails.ui +++ b/qt-ui/plannerDetails.ui @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> - <class>Form</class> - <widget class="QWidget" name="Form"> + <class>plannerDetails</class> + <widget class="QWidget" name="plannerDetails"> <property name="geometry"> <rect> <x>0</x> |