mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Pass the current selected dive to the new Profile Widget.
This call just passes the selected dive to the new profile widget. No drawing is performed, I still have to setup the constructors and the rest of the initialization of the new Profile. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
581faa598e
commit
90fc7a23f2
1 changed files with 6 additions and 0 deletions
|
@ -97,6 +97,12 @@ void MainWindow::current_dive_changed(int divenr)
|
|||
void MainWindow::redrawProfile()
|
||||
{
|
||||
ui.ProfileWidget->refresh();
|
||||
/* It looks like it's a bit too cumberstone to send *one* dive using a QList,
|
||||
* but this is just futureproofness, it's the best way in the future to show more than
|
||||
* a single profile plot on the canvas. I know that we are using only one right now,
|
||||
* but let's keep like this so it's easy to change when we need? :)
|
||||
*/
|
||||
ui.graphicsView->plotDives( QList<dive*>() << (current_dive) );
|
||||
}
|
||||
|
||||
void MainWindow::on_actionNew_triggered()
|
||||
|
|
Loading…
Reference in a new issue