1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:38:11 +00:00

LibGUI: Make AbstractTableView row height configurable

The row height is per-table, not per-row, but this is still nice.
This commit is contained in:
Andreas Kling 2020-08-26 20:34:07 +02:00
parent d125c624c6
commit c4347a16cf
5 changed files with 27 additions and 16 deletions

View file

@ -39,7 +39,8 @@ public:
class AbstractTableView : public AbstractView {
public:
int item_height() const { return 16; }
int row_height() const { return m_row_height; }
void set_row_height(int);
bool alternating_row_colors() const { return m_alternating_row_colors; }
void set_alternating_row_colors(bool b) { m_alternating_row_colors = b; }
@ -119,6 +120,7 @@ private:
bool m_alternating_row_colors { true };
bool m_highlight_selected_rows { true };
int m_horizontal_padding { 5 };
int m_row_height { 16 };
};
}