mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Create simple class to hold the location management.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									63e998b4bd
								
							
						
					
					
						commit
						3516ff2ab2
					
				
					 4 changed files with 19 additions and 3 deletions
				
			
		|  | @ -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>GroupBox</class> |  <class>LocationInformation</class> | ||||||
|  <widget class="QGroupBox" name="GroupBox"> |  <widget class="QGroupBox" name="LocationInformation"> | ||||||
|   <property name="geometry"> |   <property name="geometry"> | ||||||
|    <rect> |    <rect> | ||||||
|     <x>0</x> |     <x>0</x> | ||||||
|  |  | ||||||
|  | @ -646,3 +646,7 @@ void MultiFilter::closeFilter() | ||||||
| 	MultiFilterSortModel::instance()->clearFilter(); | 	MultiFilterSortModel::instance()->clearFilter(); | ||||||
| 	hide(); | 	hide(); | ||||||
| } | } | ||||||
|  | 
 | ||||||
|  | LocationInformationWidget::LocationInformationWidget(QWidget *parent) : QGroupBox(parent) { | ||||||
|  | 	ui.setupUi(this); | ||||||
|  | } | ||||||
|  |  | ||||||
|  | @ -6,6 +6,7 @@ class QAbstractButton; | ||||||
| class QNetworkReply; | class QNetworkReply; | ||||||
| 
 | 
 | ||||||
| #include <QWidget> | #include <QWidget> | ||||||
|  | #include <QGroupBox> | ||||||
| #include <QDialog> | #include <QDialog> | ||||||
| #include <stdint.h> | #include <stdint.h> | ||||||
| 
 | 
 | ||||||
|  | @ -214,6 +215,16 @@ private: | ||||||
| 	Ui::FilterWidget ui; | 	Ui::FilterWidget ui; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | #include "ui_locationInformation.h" | ||||||
|  | 
 | ||||||
|  | class LocationInformationWidget : public QGroupBox { | ||||||
|  | Q_OBJECT | ||||||
|  | public: | ||||||
|  | 	LocationInformationWidget(QWidget *parent = 0); | ||||||
|  | private: | ||||||
|  | 	Ui::LocationInformation ui; | ||||||
|  | }; | ||||||
|  | 
 | ||||||
| bool isGnome3Session(); | bool isGnome3Session(); | ||||||
| QImage grayImage(const QImage &coloredImg); | QImage grayImage(const QImage &coloredImg); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -238,7 +238,8 @@ FORMS = \ | ||||||
| 	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 | 	qt-ui/plannerDetails.ui \ | ||||||
|  | 	qt-ui/locationInformation.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