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>
This commit is contained in:
Tomaz Canabrava 2015-02-09 16:37:26 -02:00 committed by Dirk Hohndel
parent 5098e8672e
commit 486226be18
4 changed files with 20 additions and 3 deletions

View file

@ -1266,3 +1266,8 @@ void DivePlannerPointsModel::createPlan(bool replanCopy)
setPlanMode(NOTHING); setPlanMode(NOTHING);
planCreated(); planCreated();
} }
PlannerDetails::PlannerDetails(QWidget *parent) : QWidget(parent)
{
ui.setupUi(this);
}

View file

@ -186,6 +186,17 @@ private:
void updateUnitsUI(); 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); QString dpGasToStr(const divedatapoint &p);
#endif // DIVEPLANNER_H #endif // DIVEPLANNER_H

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0"> <ui version="4.0">
<class>Form</class> <class>plannerDetails</class>
<widget class="QWidget" name="Form"> <widget class="QWidget" name="plannerDetails">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>

View file

@ -237,7 +237,8 @@ FORMS = \
qt-ui/configuredivecomputerdialog.ui \ qt-ui/configuredivecomputerdialog.ui \
qt-ui/listfilter.ui \ qt-ui/listfilter.ui \
qt-ui/diveshareexportdialog.ui \ qt-ui/diveshareexportdialog.ui \
qt-ui/filterwidget.ui qt-ui/filterwidget.ui \
qt-ui/plannerDetails.ui
# Nether usermanual or printing is supported on android right now # Nether usermanual or printing is supported on android right now
android: FORMS -= qt-ui/printoptions.ui android: FORMS -= qt-ui/printoptions.ui