mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Added real support for the marble widget
The marble widget now shows the dive locations and also will center on the dive that the user clicked in the dive list. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
parent
4098922b55
commit
9038b3aa6e
3 changed files with 54 additions and 5 deletions
|
@ -35,11 +35,13 @@ MainWindow::MainWindow() : ui(new Ui::MainWindow())
|
|||
ui->ProfileWidget->setFocusProxy(ui->ListWidget);
|
||||
ui->ListWidget->reload();
|
||||
ui->ListWidget->setFocus();
|
||||
ui->widget->reload();
|
||||
}
|
||||
|
||||
void MainWindow::current_dive_changed(int divenr)
|
||||
{
|
||||
select_dive(divenr);
|
||||
ui->widget->centerOn(get_dive(selected_dive));
|
||||
redrawProfile();
|
||||
ui->InfoWidget->updateDiveInfo(divenr);
|
||||
}
|
||||
|
@ -77,7 +79,7 @@ void MainWindow::on_actionOpen_triggered()
|
|||
process_dives(FALSE, FALSE);
|
||||
|
||||
ui->InfoWidget->reload();
|
||||
|
||||
ui->widget->reload();
|
||||
ui->ListWidget->reload();
|
||||
ui->ListWidget->setFocus();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue