Minimum hooking-up done, divelogs.de shows on menu-activation.

This patch does the hooking up to show the dialog of the
divelogs.de window when the user selects it on the menu.:

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
Tomaz Canabrava 2013-10-24 23:02:59 -02:00
parent 6cf875ed92
commit 7bea2e1be0
3 changed files with 9 additions and 1 deletions

View file

@ -255,6 +255,11 @@ void MainWindow::on_actionDownloadWeb_triggered()
SubsurfaceWebServices::instance()->exec();
}
void MainWindow::on_actionDivelogs_de_triggered()
{
DivelogsDeWebServices::instance()->exec();
}
void MainWindow::on_actionEditDeviceNames_triggered()
{
DiveComputerManagementDialog::instance()->init();

View file

@ -69,6 +69,7 @@ private slots:
/* log menu actions */
void on_actionDownloadDC_triggered();
void on_actionDownloadWeb_triggered();
void on_actionDivelogs_de_triggered();
void on_actionEditDeviceNames_triggered();
void on_actionAddDive_triggered();
void on_actionRenumber_triggered();

View file

@ -269,7 +269,9 @@ static bool merge_locations_into_dives(void)
DivelogsDeWebServices* DivelogsDeWebServices::instance()
{
static DivelogsDeWebServices *self = new DivelogsDeWebServices();
self->setAttribute(Qt::WA_QuitOnClose, false);
return self;
}
DivelogsDeWebServices::DivelogsDeWebServices(QWidget* parent, Qt::WindowFlags f): WebServices(parent, f)