mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Added the toggle picture button and hoocked it up
This patch adds the toggle picture button and hoocks it up with the rest of the code. I'v also changed a call from ProfileWidget because it caused errors on the ui generated code, where it would try to call an still-to-be instantiated object. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
8940f29ead
commit
503a150af0
6 changed files with 38 additions and 7 deletions
|
@ -93,6 +93,7 @@ MainWindow::MainWindow() : QMainWindow(),
|
|||
#endif
|
||||
|
||||
ui.mainErrorMessage->hide();
|
||||
ui.newProfile->setEmptyState();
|
||||
initialUiSetup();
|
||||
readSettings();
|
||||
ui.ListWidget->reload(DiveTripModel::TREE);
|
||||
|
@ -1334,6 +1335,12 @@ void MainWindow::on_profScaled_clicked(bool triggered)
|
|||
TOOLBOX_PREF_PROFILE(zoomed_plot);
|
||||
}
|
||||
|
||||
void MainWindow::on_profTogglePicture_clicked(bool triggered)
|
||||
{
|
||||
prefs.show_pictures_in_profile = triggered;
|
||||
TOOLBOX_PREF_PROFILE(show_pictures_in_planner);
|
||||
}
|
||||
|
||||
#undef TOOLBOX_PREF_PROFILE
|
||||
|
||||
void MainWindow::on_actionExport_triggered()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue