subsurface/qt-models
Berthold Stoeger 7d2fe2b7c6 Cleanup: remove redundant Roles:: qualifier in maplocationmodel.cpp
"Roles" is a C-style enum (i.e. not C++-style enum class). Since that
means that the names spill into the outer namespace, the names
themselves are prefixed with "Role". Nevertheless the code qualified
the names with "Roles::". This is redundant and unnecessary.

Remove this redundancy to show that we understand how the language
works.

Note: we could also transform the enum into an enum class and remove
the "Role" prefix from the names. That would arguably be "cleaner",
but then the enum doesn't auto-convert to/from int, but Qt uses int
to pass the roles to functions. So let's go the simple way that
avoids casting.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2019-09-06 11:48:47 -07:00
..
cleanertablemodel.cpp Cleanup: return directly from data() methods 2019-06-19 13:11:10 -07:00
cleanertablemodel.h
CMakeLists.txt Create DivesiteImportDialog to select sites to import 2019-05-06 10:48:44 +02:00
completionmodels.cpp Cleanup: move tag functions into own translation unit 2019-06-19 13:11:10 -07:00
completionmodels.h
cylindermodel.cpp Core: pass dive, cylinder-id to fill_default_cylinder 2019-08-08 16:26:31 -07:00
cylindermodel.h Undo: don't send signals batched by trip 2019-06-23 20:08:46 +02:00
divecomputerextradatamodel.cpp
divecomputerextradatamodel.h
divecomputermodel.cpp
divecomputermodel.h
diveimportedmodel.cpp Cleanup: remove includes from qthelper.h 2019-07-18 05:42:55 -07:00
diveimportedmodel.h
divelistmodel.cpp Mobile: fix bound check in DiveListModel::data() 2019-08-13 07:27:48 -07:00
divelistmodel.h
divelocationmodel.cpp Location model: treat invalid indexes gracefully 2019-08-10 09:55:11 -07:00
divelocationmodel.h
divepicturemodel.cpp
divepicturemodel.h
diveplannermodel.cpp Core: pass dive, cylinder-id to fill_default_cylinder 2019-08-08 16:26:31 -07:00
diveplannermodel.h Cleanup: move planner/deco related declarations planner/deco.h 2019-08-08 16:26:31 -07:00
diveplotdatamodel.cpp Profile: properly initialize plot_info structures 2019-08-28 07:10:09 -07:00
diveplotdatamodel.h Cleanup: move planner/deco related declarations planner/deco.h 2019-08-08 16:26:31 -07:00
divesiteimportmodel.cpp Create DivesiteImportDialog to select sites to import 2019-05-06 10:48:44 +02:00
divesiteimportmodel.h Create DivesiteImportDialog to select sites to import 2019-05-06 10:48:44 +02:00
divetripmodel.cpp Dive site: don't emit divesChanged signals when editing dive site 2019-09-06 11:48:47 -07:00
divetripmodel.h Dive site: don't emit divesChanged signals when editing dive site 2019-09-06 11:48:47 -07:00
filtermodels.cpp Map: highlight correct dive sites in dive site mode 2019-09-06 11:48:47 -07:00
filtermodels.h Filter: add reference counting for dive-site mode 2019-05-11 12:06:19 -07:00
gpslistmodel.cpp
gpslistmodel.h
maplocationmodel.cpp Cleanup: remove redundant Roles:: qualifier in maplocationmodel.cpp 2019-09-06 11:48:47 -07:00
maplocationmodel.h Cleanup: remove default constructor from MapLocation 2019-09-06 11:48:47 -07:00
messagehandlermodel.cpp
messagehandlermodel.h
models.cpp Cleanup: remove includes from qthelper.h 2019-07-18 05:42:55 -07:00
models.h Cleanup: remove includes from qt-models/models.h 2019-07-18 05:42:55 -07:00
tankinfomodel.cpp
tankinfomodel.h
treemodel.cpp
treemodel.h
weightmodel.cpp Core: dynamically resize weight table 2019-07-18 06:01:07 -07:00
weightmodel.h Undo: don't send signals batched by trip 2019-06-23 20:08:46 +02:00
weightsysteminfomodel.cpp
weightsysteminfomodel.h
yearlystatisticsmodel.cpp
yearlystatisticsmodel.h