mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Preferences UI: add dive log tab
This adds a tab for dive log - related preferences. A suitable test programs is still required. Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b24caa4e2d
commit
b6c3cdb20c
35 changed files with 467 additions and 357 deletions
|
|
@ -16,6 +16,7 @@
|
|||
#include "qPrefUpdateManager.h"
|
||||
#include "qPrefEquipment.h"
|
||||
#include "qPrefMedia.h"
|
||||
#include "qPrefLog.h"
|
||||
|
||||
#include <QtQml>
|
||||
#include <QQmlContext>
|
||||
|
|
@ -42,6 +43,7 @@ void qPref::loadSync(bool doSync)
|
|||
qPrefUpdateManager::loadSync(doSync);
|
||||
qPrefEquipment::loadSync(doSync);
|
||||
qPrefMedia::loadSync(doSync);
|
||||
qPrefLog::loadSync(doSync);
|
||||
}
|
||||
|
||||
Q_DECLARE_METATYPE(deco_mode);
|
||||
|
|
@ -68,6 +70,7 @@ void qPref::registerQML(QQmlEngine *engine)
|
|||
ct->setContextProperty("PrefEquipment", qPrefUpdateManager::instance());
|
||||
ct->setContextProperty("PrefMedia", qPrefUpdateManager::instance());
|
||||
ct->setContextProperty("PrefClearDc", qPrefUpdateManager::instance());
|
||||
ct->setContextProperty("PrefLog", qPrefUpdateManager::instance());
|
||||
}
|
||||
|
||||
// Register special types
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue