From 81c32c18a5ea52c026ab8566b299601e48efa0b5 Mon Sep 17 00:00:00 2001 From: Felix Ernst Date: Sat, 7 Aug 2021 15:48:02 +0200 Subject: 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/views/dolphinitemlistview.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/views/dolphinitemlistview.h') diff --git a/src/views/dolphinitemlistview.h b/src/views/dolphinitemlistview.h index 283b22400..1637752a6 100644 --- a/src/views/dolphinitemlistview.h +++ b/src/views/dolphinitemlistview.h @@ -9,7 +9,6 @@ #include "dolphin_export.h" #include "kitemviews/kfileitemlistview.h" -#include "settings/viewmodes/viewmodesettings.h" class KFileItemListView; @@ -47,8 +46,6 @@ protected: private: void updateGridSize(); - ViewModeSettings::ViewMode viewMode() const; - private: int m_zoomLevel; }; -- cgit v1.3.1