From 43b05527e7729bb8089d0079d122216f26a7eed3 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Thu, 1 Feb 2024 21:01:01 -0500 Subject: add sort model in front of filter in channel tree --- src/components/channellist/channellisttree.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/components/channellist/channellisttree.hpp') diff --git a/src/components/channellist/channellisttree.hpp b/src/components/channellist/channellisttree.hpp index b49187a..9d065ec 100644 --- a/src/components/channellist/channellisttree.hpp +++ b/src/components/channellist/channellisttree.hpp @@ -90,7 +90,13 @@ protected: ModelColumns m_columns; Glib::RefPtr m_model; Glib::RefPtr m_filter_model; + Glib::RefPtr m_sort_model; + Gtk::TreePath ConvertModelPathToView(const Gtk::TreePath &path); + Gtk::TreeIter ConvertModelIterToView(const Gtk::TreeIter &iter); + Gtk::TreePath ConvertViewPathToModel(const Gtk::TreePath &path); + Gtk::TreeIter ConvertViewIterToModel(const Gtk::TreeIter &iter); + Gtk::TreePath GetViewPathFromViewIter(const Gtk::TreeIter &iter); Gtk::TreeModel::iterator AddFolder(const UserSettingsGuildFoldersEntry &folder); Gtk::TreeModel::iterator AddGuild(const GuildData &guild, const Gtk::TreeNodeChildren &root); Gtk::TreeModel::iterator UpdateCreateChannelCategory(const ChannelData &channel); -- cgit v1.2.3