filter: add (very primitive) filterpresetmodel

Implement a trivial model to provide the filter preset names
to the UI. Sadly, for now this features the QWidget/QML
column / name dichotomy. However, in this simple case that
shouldn't be too much of an issue.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-05-27 08:17:06 +02:00 committed by Dirk Hohndel
parent 937fdb500b
commit 536fc05dd6
4 changed files with 93 additions and 0 deletions

View file

@ -146,6 +146,7 @@ SOURCES += ../../subsurface-mobile-main.cpp \
../../qt-models/models.cpp \
../../qt-models/weightsysteminfomodel.cpp \
../../qt-models/filterconstraintmodel.cpp \
../../qt-models/filterpresetmodel.cpp \
../../profile-widget/qmlprofile.cpp \
../../profile-widget/divecartesianaxis.cpp \
../../profile-widget/diveeventitem.cpp \
@ -297,6 +298,7 @@ HEADERS += \
../../qt-models/models.h \
../../qt-models/weightsysteminfomodel.h \
../../qt-models/filterconstraintmodel.h \
../../qt-models/filterpresetmodel.h \
../../profile-widget/qmlprofile.h \
../../profile-widget/diveprofileitem.h \
../../profile-widget/profilewidget2.h \