mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 06:15:26 +00:00
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:
parent
5098e8672e
commit
486226be18
4 changed files with 20 additions and 3 deletions
|
@ -1266,3 +1266,8 @@ void DivePlannerPointsModel::createPlan(bool replanCopy)
|
|||
setPlanMode(NOTHING);
|
||||
planCreated();
|
||||
}
|
||||
|
||||
PlannerDetails::PlannerDetails(QWidget *parent) : QWidget(parent)
|
||||
{
|
||||
ui.setupUi(this);
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -237,7 +237,8 @@ FORMS = \
|
|||
qt-ui/configuredivecomputerdialog.ui \
|
||||
qt-ui/listfilter.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
|
||||
android: FORMS -= qt-ui/printoptions.ui
|
||||
|
|
Loading…
Add table
Reference in a new issue