summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-02-11 10:14:45 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-11 16:34:02 -0800
commit42afb4972ad2928f7f93dd9806234154c62f42cd (patch)
tree2c05194241d283c7118e6694430c8e48a5139903 /qt-ui/maintab.cpp
parentd769c6016fb9fd484cfee90aa58eaac67f0d536a (diff)
downloadsubsurface-42afb4972ad2928f7f93dd9806234154c62f42cd.tar.gz
Pass a fake dive site UUID to the callback.
This is the start of the preparations to edit the dive site, passing a uuid so we can retrieve it 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.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 2f39c17db..571d38b9d 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -49,7 +49,7 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent),
ui.extraData->setModel(extraDataModel);
closeMessage();
- connect(ui.manageDiveSite, SIGNAL(clicked()), this, SIGNAL(requestDiveSiteEdit()));
+ connect(ui.manageDiveSite, SIGNAL(clicked()), this, SLOT(prepareDiveSiteEdit()));
QAction *action = new QAction(tr("Apply changes"), this);
connect(action, SIGNAL(triggered(bool)), this, SLOT(acceptChanges()));
@@ -213,6 +213,11 @@ MainTab::~MainTab()
}
}
+void MainTab::prepareDiveSiteEdit() {
+ //TODO: GET THE CORRECT DIVESITE UUID HERE
+ QUuid id = QUuid::createUuid();
+ emit requestDiveSiteEdit(id);
+}
void MainTab::toggleTriggeredColumn()
{
QAction *action = qobject_cast<QAction *>(sender());