mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +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);
 | 
						setPlanMode(NOTHING);
 | 
				
			||||||
	planCreated();
 | 
						planCreated();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					PlannerDetails::PlannerDetails(QWidget *parent) : QWidget(parent)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						ui.setupUi(this);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue