diff --git a/client/gui-qt/top_bar.cpp b/client/gui-qt/top_bar.cpp index 045ba288de..983e6eb2b5 100644 --- a/client/gui-qt/top_bar.cpp +++ b/client/gui-qt/top_bar.cpp @@ -325,27 +325,6 @@ void top_bar::addWidget(top_bar_widget *fsw) layout->addWidget(fsw); } -/** - Paint event for top_bar - */ -void top_bar::paintEvent(QPaintEvent *event) -{ - QPainter painter; - - painter.begin(this); - paint(&painter, event); - painter.end(); -} - -/** - Paints dark rectangle as background for top_bar - */ -void top_bar::paint(QPainter *painter, QPaintEvent *event) -{ - painter->setBrush(QBrush(QColor(14, 14, 14))); - painter->drawRect(event->rect()); -} - /** Callback to show map */ diff --git a/client/gui-qt/top_bar.h b/client/gui-qt/top_bar.h index 672201a823..24a8009ddb 100644 --- a/client/gui-qt/top_bar.h +++ b/client/gui-qt/top_bar.h @@ -84,12 +84,8 @@ class top_bar : public QWidget { top_bar(); ~top_bar() override; void addWidget(top_bar_widget *fsw); - void paint(QPainter *painter, QPaintEvent *event); QList objects; -protected: - void paintEvent(QPaintEvent *event) override; - private: QHBoxLayout *layout; };