summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-06-26 13:23:53 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-26 18:50:22 -0700
commit32928b38808ddac56021bc0ddb8ea2dd01c590fa (patch)
treef06eebd03b98c5dbf77469e0e52444657ab93735 /qt-ui/maintab.cpp
parent266e754d08499a4ed45024d4886c4e799e7951e7 (diff)
downloadsubsurface-32928b38808ddac56021bc0ddb8ea2dd01c590fa.tar.gz
Dive site rewrite: create a dive site edit dialog without borders
Plan is to make it pretty later. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 31a94b73a..592157111 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -22,6 +22,7 @@
#include "divecomputerextradatamodel.h"
#include "divelocationmodel.h"
#include "divesite.h"
+#include "locationinformation.h"
#if defined(FBSUPPORT)
#include "socialnetworks.h"
@@ -57,7 +58,7 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent),
ui.extraData->setModel(extraDataModel);
closeMessage();
- connect(ui.addDiveSite, SIGNAL(clicked()), this, SIGNAL(requestDiveSiteAdd()));
+ connect(ui.addDiveSite, SIGNAL(clicked()), this, SLOT(showDiveSiteSimpleEdit()));
QAction *action = new QAction(tr("Apply changes"), this);
connect(action, SIGNAL(triggered(bool)), this, SLOT(acceptChanges()));
@@ -237,6 +238,12 @@ void MainTab::setCurrentLocationIndex()
}
}
+void MainTab::showDiveSiteSimpleEdit()
+{
+ SimpleDiveSiteEditDialog dlg(this);
+ dlg.exec();
+}
+
void MainTab::enableGeoLookupEdition()
{
ui.waitingSpinner->stop();