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:
Tomaz Canabrava 2015-02-11 13:13:52 -02:00 committed by Dirk Hohndel
parent 63e998b4bd
commit 3516ff2ab2
4 changed files with 19 additions and 3 deletions

View file

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

View file

@ -646,3 +646,7 @@ void MultiFilter::closeFilter()
MultiFilterSortModel::instance()->clearFilter();
hide();
}
LocationInformationWidget::LocationInformationWidget(QWidget *parent) : QGroupBox(parent) {
ui.setupUi(this);
}

View file

@ -6,6 +6,7 @@ class QAbstractButton;
class QNetworkReply;
#include <QWidget>
#include <QGroupBox>
#include <QDialog>
#include <stdint.h>
@ -214,6 +215,16 @@ private:
Ui::FilterWidget ui;
};
#include "ui_locationInformation.h"
class LocationInformationWidget : public QGroupBox {
Q_OBJECT
public:
LocationInformationWidget(QWidget *parent = 0);
private:
Ui::LocationInformation ui;
};
bool isGnome3Session();
QImage grayImage(const QImage &coloredImg);

View file

@ -238,7 +238,8 @@ FORMS = \
qt-ui/listfilter.ui \
qt-ui/diveshareexportdialog.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
android: FORMS -= qt-ui/printoptions.ui