LibGUI: Register many properties of AbstractView

This commit is contained in:
kleines Filmröllchen 2022-04-04 23:13:23 +02:00 committed by Andreas Kling
commit fc6ffbc006
Notes: sideshowbarker 2024-07-17 20:22:04 +09:00
2 changed files with 19 additions and 0 deletions

View file

@ -114,7 +114,9 @@ public:
void set_key_column_and_sort_order(int column, SortOrder);
int key_column() const { return m_key_column; }
void set_key_column(int column) { set_key_column_and_sort_order(column, sort_order()); }
SortOrder sort_order() const { return m_sort_order; }
void set_sort_order(SortOrder order) { set_key_column_and_sort_order(key_column(), order); }
virtual void scroll_into_view(ModelIndex const&, [[maybe_unused]] bool scroll_horizontally = true, [[maybe_unused]] bool scroll_vertically = true) { }
@ -126,6 +128,7 @@ public:
void set_tab_key_navigation_enabled(bool enabled) { m_tab_key_navigation_enabled = enabled; }
void set_draw_item_text_with_shadow(bool b) { m_draw_item_text_with_shadow = b; }
bool does_draw_item_text_with_shadow() const { return m_draw_item_text_with_shadow; }
protected:
AbstractView();