From 69277f5538035f11a8df1370a6e50801e514b103 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 25 Dec 2019 21:52:26 +0100 Subject: [PATCH] LibGUI: Add space for sort order indicators in autosized table columns --- Libraries/LibGUI/GAbstractColumnView.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Libraries/LibGUI/GAbstractColumnView.cpp b/Libraries/LibGUI/GAbstractColumnView.cpp index d1d339e171..c334400d70 100644 --- a/Libraries/LibGUI/GAbstractColumnView.cpp +++ b/Libraries/LibGUI/GAbstractColumnView.cpp @@ -33,11 +33,14 @@ void GAbstractColumnView::update_column_sizes() auto& model = *this->model(); int column_count = model.column_count(); int row_count = model.row_count(); + int key_column = model.key_column(); for (int column = 0; column < column_count; ++column) { if (is_column_hidden(column)) continue; int header_width = header_font().width(model.column_name(column)); + if (column == key_column) + header_width += font().width(" \xc3\xb6"); int column_width = header_width; for (int row = 0; row < row_count; ++row) { auto cell_data = model.data(model.index(row, column));