summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/MultiView.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-27 14:41:49 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-27 14:43:35 +0100
commit3523071bb7527159f213d3710f4c74d10cf93b1a (patch)
treed9c8132e7b748300102a37fd24ffe2d85986dee7 /Libraries/LibGUI/MultiView.h
parente52d1a02c8c767dd29c448819cf0fd62a47fd53a (diff)
downloadserenity-3523071bb7527159f213d3710f4c74d10cf93b1a.zip
LibGUI: Disable the ColumnsView subview in MultiView for now
This is causing FilePicker to log a bunch of debug noise due to the missing support for tree models in SortingProxyModel and it's not helping anyone so let's just disable it. This needs fixing in SortingProxyModel.
Diffstat (limited to 'Libraries/LibGUI/MultiView.h')
-rw-r--r--Libraries/LibGUI/MultiView.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/Libraries/LibGUI/MultiView.h b/Libraries/LibGUI/MultiView.h
index 19e9a27749..98abc88b9b 100644
--- a/Libraries/LibGUI/MultiView.h
+++ b/Libraries/LibGUI/MultiView.h
@@ -32,6 +32,8 @@
#include <LibGUI/StackWidget.h>
#include <LibGUI/TableView.h>
+//#define MULTIVIEW_WITH_COLUMNSVIEW
+
namespace GUI {
class MultiView final : public GUI::StackWidget {
@@ -65,8 +67,10 @@ public:
switch (m_view_mode) {
case ViewMode::List:
return *m_table_view;
+#ifdef MULTIVIEW_WITH_COLUMNSVIEW
case ViewMode::Columns:
return *m_columns_view;
+#endif
case ViewMode::Icon:
return *m_item_view;
default:
@@ -82,7 +86,9 @@ public:
{
callback(*m_table_view);
callback(*m_item_view);
+#ifdef MULTIVIEW_WITH_COLUMNSVIEW
callback(*m_columns_view);
+#endif
}
Model* model() { return m_model; }
@@ -92,7 +98,9 @@ public:
Action& view_as_table_action() { return *m_view_as_table_action; }
Action& view_as_icons_action() { return *m_view_as_icons_action; }
+#ifdef MULTIVIEW_WITH_COLUMNSVIEW
Action& view_as_columns_action() { return *m_view_as_columns_action; }
+#endif
private:
MultiView();
@@ -106,11 +114,15 @@ private:
RefPtr<TableView> m_table_view;
RefPtr<ItemView> m_item_view;
+#ifdef MULTIVIEW_WITH_COLUMNSVIEW
RefPtr<ColumnsView> m_columns_view;
+#endif
RefPtr<Action> m_view_as_table_action;
RefPtr<Action> m_view_as_icons_action;
+#ifdef MULTIVIEW_WITH_COLUMNSVIEW
RefPtr<Action> m_view_as_columns_action;
+#endif
OwnPtr<ActionGroup> m_view_type_action_group;
};