summaryrefslogtreecommitdiff
path: root/LibGUI
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-09 21:38:13 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-09 21:38:13 +0100
commit963e95cb1a938710215495fc74cf9141912b3659 (patch)
treebbf9f090f0d6c1dbb0d3e9a3869505c7cc6ae355 /LibGUI
parent0a7137617d4ba4579f75db0d5ca966b6797a24cf (diff)
downloadserenity-963e95cb1a938710215495fc74cf9141912b3659.zip
GTableView: Minor painting cleanup.
Diffstat (limited to 'LibGUI')
-rw-r--r--LibGUI/GFilePicker.h10
-rw-r--r--LibGUI/GTableView.cpp3
2 files changed, 11 insertions, 2 deletions
diff --git a/LibGUI/GFilePicker.h b/LibGUI/GFilePicker.h
new file mode 100644
index 0000000000..56ea97228b
--- /dev/null
+++ b/LibGUI/GFilePicker.h
@@ -0,0 +1,10 @@
+#include <LibGUI/GWindow.h>
+
+class GFilePicker final : public GWindow {
+public:
+ GFilePicker();
+ virtual ~GFilePicker() override;
+
+private:
+ virtual const char* class_name() const override { return "GFilePicker"; }
+};
diff --git a/LibGUI/GTableView.cpp b/LibGUI/GTableView.cpp
index f36d998d1c..61f64df896 100644
--- a/LibGUI/GTableView.cpp
+++ b/LibGUI/GTableView.cpp
@@ -197,8 +197,7 @@ void GTableView::paint_event(GPaintEvent& event)
if (is_key_column) {
painter.fill_rect(cell_rect.shrunken(2, 2), Color::from_rgb(0xdddddd));
}
- painter.set_font(Font::default_bold_font());
- painter.draw_text(cell_rect.translated(horizontal_padding(), 0), m_model->column_name(column_index), TextAlignment::CenterLeft, Color::Black);
+ painter.draw_text(cell_rect.translated(horizontal_padding(), 0), m_model->column_name(column_index), Font::default_bold_font(), TextAlignment::CenterLeft, Color::Black);
x_offset += column_width + horizontal_padding() * 2;
// Draw column separator.
painter.draw_line(cell_rect.top_left().translated(0, 1), cell_rect.bottom_left().translated(0, -1), Color::White);