diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-04-04 01:50:04 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-04-04 01:50:04 +0200 |
commit | e785dda3e707f95c45d8cefd17fe04f69e01bf99 (patch) | |
tree | ed41d8839f8cde252164573e4362a3a3a97012a9 /Applications | |
parent | 96104b55249ad0201b1be805e1874c759fdd0ac9 (diff) | |
download | serenity-e785dda3e707f95c45d8cefd17fe04f69e01bf99.zip |
Taskbar: TaskbarWidget doesn't need a custom paint_event().
Diffstat (limited to 'Applications')
-rw-r--r-- | Applications/Taskbar/TaskbarWidget.cpp | 8 | ||||
-rw-r--r-- | Applications/Taskbar/TaskbarWidget.h | 2 |
2 files changed, 0 insertions, 10 deletions
diff --git a/Applications/Taskbar/TaskbarWidget.cpp b/Applications/Taskbar/TaskbarWidget.cpp index 9e25d96928..7778ccf704 100644 --- a/Applications/Taskbar/TaskbarWidget.cpp +++ b/Applications/Taskbar/TaskbarWidget.cpp @@ -22,11 +22,3 @@ TaskbarWidget::TaskbarWidget(WindowList& window_list, GWidget* parent) TaskbarWidget::~TaskbarWidget() { } - -void TaskbarWidget::paint_event(GPaintEvent& event) -{ - GFrame::paint_event(event); - - GPainter painter(*this); - painter.add_clip_rect(event.rect()); -} diff --git a/Applications/Taskbar/TaskbarWidget.h b/Applications/Taskbar/TaskbarWidget.h index 1226f3df83..4ba5b356c8 100644 --- a/Applications/Taskbar/TaskbarWidget.h +++ b/Applications/Taskbar/TaskbarWidget.h @@ -10,7 +10,5 @@ public: virtual const char* class_name() const override { return "TaskbarWidget"; } private: - virtual void paint_event(GPaintEvent&) override; - WindowList& m_window_list; }; |