summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-02-11 13:13:52 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-11 16:34:02 -0800
commit3516ff2ab27905bc7698d5b052084b162042427f (patch)
treed58777e72543f47246f32dd401f46bbd396e9ae3 /qt-ui
parent63e998b4bdeeea6d4a79533845761ef0368552de (diff)
downloadsubsurface-3516ff2ab27905bc7698d5b052084b162042427f.tar.gz
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>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/locationInformation.ui4
-rw-r--r--qt-ui/simplewidgets.cpp4
-rw-r--r--qt-ui/simplewidgets.h11
3 files changed, 17 insertions, 2 deletions
diff --git a/qt-ui/locationInformation.ui b/qt-ui/locationInformation.ui
index 1d7afa77d..658395b35 100644
--- a/qt-ui/locationInformation.ui
+++ b/qt-ui/locationInformation.ui
@@ -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>
diff --git a/qt-ui/simplewidgets.cpp b/qt-ui/simplewidgets.cpp
index 5c08a3f7e..98d9bcf9f 100644
--- a/qt-ui/simplewidgets.cpp
+++ b/qt-ui/simplewidgets.cpp
@@ -646,3 +646,7 @@ void MultiFilter::closeFilter()
MultiFilterSortModel::instance()->clearFilter();
hide();
}
+
+LocationInformationWidget::LocationInformationWidget(QWidget *parent) : QGroupBox(parent) {
+ ui.setupUi(this);
+}
diff --git a/qt-ui/simplewidgets.h b/qt-ui/simplewidgets.h
index 8d5b4f73c..cfa9e0423 100644
--- a/qt-ui/simplewidgets.h
+++ b/qt-ui/simplewidgets.h
@@ -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);