]> cloud.milkyroute.net Git - dolphin.git/commit
Port ViewModeSettings from macros to std::variant
authorFelix Ernst <fe.a.ernst@gmail.com>
Sat, 7 Aug 2021 13:48:02 +0000 (15:48 +0200)
committerNate Graham <nate@kde.org>
Wed, 3 Nov 2021 16:02:46 +0000 (16:02 +0000)
commit81c32c18a5ea52c026ab8566b299601e48efa0b5
tree666a5a46e76c5c503e378ae3d4d31232fbac0580
parent1118413c6307435c7eb5b639a49580ebb888e612
Port ViewModeSettings from macros to std::variant

Macros should be avoided if possible. Instead this commit replaces
the usage of macros with an std::variant of the ViewModeSettings.

As part of this cleanup, code that belongs to the VideModeSettings
class is moved there. Some parameters are also renamed to be more
in line with typical naming conventions.
src/settings/viewmodes/viewmodesettings.cpp
src/settings/viewmodes/viewmodesettings.h
src/settings/viewmodes/viewsettingstab.cpp
src/settings/viewmodes/viewsettingstab.h
src/views/dolphinitemlistview.cpp
src/views/dolphinitemlistview.h
src/views/dolphinview.cpp