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>
This commit is contained in:
Tomaz Canabrava 2015-06-26 13:23:53 -03:00 committed by Dirk Hohndel
parent 266e754d08
commit 32928b3880
4 changed files with 33 additions and 2 deletions

View file

@ -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();