From 3516ff2ab27905bc7698d5b052084b162042427f Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Wed, 11 Feb 2015 13:13:52 -0200 Subject: Create simple class to hold the location management. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/locationInformation.ui | 4 ++-- qt-ui/simplewidgets.cpp | 4 ++++ qt-ui/simplewidgets.h | 11 +++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) (limited to 'qt-ui') 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 @@ - GroupBox - + LocationInformation + 0 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 +#include #include #include @@ -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); -- cgit v1.2.3-70-g09d2