mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
d769c6016f
commit
42afb4972a
4 changed files with 13 additions and 6 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue