summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/GColumnsView.h
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibGUI/GColumnsView.h')
-rw-r--r--Libraries/LibGUI/GColumnsView.h24
1 files changed, 14 insertions, 10 deletions
diff --git a/Libraries/LibGUI/GColumnsView.h b/Libraries/LibGUI/GColumnsView.h
index b0f65fa94e..60da79ef56 100644
--- a/Libraries/LibGUI/GColumnsView.h
+++ b/Libraries/LibGUI/GColumnsView.h
@@ -29,18 +29,20 @@
#include <AK/Vector.h>
#include <LibGUI/GAbstractView.h>
-class GColumnsView : public GAbstractView {
- C_OBJECT(GColumnsView)
+namespace GUI {
+
+class ColumnsView : public AbstractView {
+ C_OBJECT(ColumnsView)
public:
int model_column() const { return m_model_column; }
void set_model_column(int column) { m_model_column = column; }
- virtual GModelIndex index_at_event_position(const Point&) const override;
+ virtual ModelIndex index_at_event_position(const Point&) const override;
private:
- GColumnsView(GWidget* parent = nullptr);
- virtual ~GColumnsView();
- void push_column(GModelIndex& parent_index);
+ ColumnsView(Widget* parent = nullptr);
+ virtual ~ColumnsView();
+ void push_column(ModelIndex& parent_index);
void update_column_sizes();
int item_height() const { return 16; }
@@ -49,12 +51,12 @@ private:
int text_padding() const { return 2; }
virtual void did_update_model() override;
- virtual void paint_event(GPaintEvent&) override;
- virtual void mousedown_event(GMouseEvent& event) override;
- virtual void keydown_event(GKeyEvent& event) override;
+ virtual void paint_event(PaintEvent&) override;
+ virtual void mousedown_event(MouseEvent& event) override;
+ virtual void keydown_event(KeyEvent& event) override;
struct Column {
- GModelIndex parent_index;
+ ModelIndex parent_index;
int width;
// TODO: per-column vertical scroll?
};
@@ -62,3 +64,5 @@ private:
Vector<Column> m_columns;
int m_model_column { 0 };
};
+
+}