diff options
author | thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> | 2021-03-11 10:35:40 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-12 09:59:03 +0100 |
commit | 0fc81d23f445c6706684e280aea501a5fa5bae87 (patch) | |
tree | 998192140ba9890df9cc017c1d53ce191e3e140c /Userland/Libraries/LibGUI/AbstractTableView.cpp | |
parent | 142ca4b818deee7df9766d4d9615d25dcd353642 (diff) | |
download | serenity-0fc81d23f445c6706684e280aea501a5fa5bae87.zip |
LibGUI: Add variable padding and center bitmaps in TableViews
This lets us make nicer looking bitmap tables and fixes a content
rect issue in TreeView. Also makes key column highlighting optional
Diffstat (limited to 'Userland/Libraries/LibGUI/AbstractTableView.cpp')
-rw-r--r-- | Userland/Libraries/LibGUI/AbstractTableView.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Userland/Libraries/LibGUI/AbstractTableView.cpp b/Userland/Libraries/LibGUI/AbstractTableView.cpp index 69e5c13458..64e1093479 100644 --- a/Userland/Libraries/LibGUI/AbstractTableView.cpp +++ b/Userland/Libraries/LibGUI/AbstractTableView.cpp @@ -392,14 +392,4 @@ void AbstractTableView::keydown_event(KeyEvent& event) AbstractView::keydown_event(event); } -int AbstractTableView::horizontal_padding() const -{ - return font().glyph_height() / 2; -} - -int AbstractTableView::row_height() const -{ - return font().glyph_height() + icon_padding(); -} - } |