mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Enable the dive planning under a compile flag
Allow subsurface to show the dive planner in case a compile flag is given. qmake CONFIG+=planner Signed-off-by: Danilo Cesar Lemes de Paula <danilo.eu@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
772c9fb0b1
commit
31c45b8c4c
3 changed files with 10 additions and 0 deletions
|
@ -73,6 +73,10 @@ MainWindow::MainWindow() : QMainWindow(),
|
||||||
ui.ListWidget->scrollTo(ui.ListWidget->model()->index(0,0), QAbstractItemView::PositionAtCenter);
|
ui.ListWidget->scrollTo(ui.ListWidget->model()->index(0,0), QAbstractItemView::PositionAtCenter);
|
||||||
ui.divePlanner->settingsChanged();
|
ui.divePlanner->settingsChanged();
|
||||||
ui.divePlannerWidget->settingsChanged();
|
ui.divePlannerWidget->settingsChanged();
|
||||||
|
|
||||||
|
#ifndef ENABLE_PLANNER
|
||||||
|
ui.menuLog->removeAction(ui.actionDivePlanner);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// this gets called after we download dives from a divecomputer
|
// this gets called after we download dives from a divecomputer
|
||||||
|
|
|
@ -614,6 +614,7 @@
|
||||||
<string>&Log</string>
|
<string>&Log</string>
|
||||||
</property>
|
</property>
|
||||||
<addaction name="actionAddDive"/>
|
<addaction name="actionAddDive"/>
|
||||||
|
<addaction name="actionDivePlanner"/>
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
<addaction name="actionRenumber"/>
|
<addaction name="actionRenumber"/>
|
||||||
<addaction name="actionAutoGroup"/>
|
<addaction name="actionAutoGroup"/>
|
||||||
|
|
|
@ -233,5 +233,10 @@ QMAKE_INFO_PLIST = packaging/macosx/Info.plist.in
|
||||||
OTHER_FILES += $$DESKTOPFILE $$ICON $$MANPAGE $$XSLT_FILES $$DOC_FILES $$MARBLEDIR \
|
OTHER_FILES += $$DESKTOPFILE $$ICON $$MANPAGE $$XSLT_FILES $$DOC_FILES $$MARBLEDIR \
|
||||||
$$QMAKE_INFO_PLIST
|
$$QMAKE_INFO_PLIST
|
||||||
|
|
||||||
|
# enable or disable the dive planner
|
||||||
|
planner {
|
||||||
|
DEFINES += ENABLE_PLANNER
|
||||||
|
}
|
||||||
|
|
||||||
include(subsurface-gen-version.pri)
|
include(subsurface-gen-version.pri)
|
||||||
include(subsurface-install.pri)
|
include(subsurface-install.pri)
|
||||||
|
|
Loading…
Reference in a new issue