mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
6cf875ed92
commit
7bea2e1be0
3 changed files with 9 additions and 1 deletions
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue