added background color to the accountswitchwidget

This commit is contained in:
fourtf
2018-01-17 02:22:57 +01:00
parent 1fe7e652b1
commit e1ff4c818e
6 changed files with 19 additions and 11 deletions
+7
View File
@@ -4,6 +4,7 @@
#include <QHBoxLayout>
#include <QLayout>
#include <QPainter>
#include <QPushButton>
#include <QVBoxLayout>
@@ -47,5 +48,11 @@ void AccountSwitchPopupWidget::focusOutEvent(QFocusEvent *)
this->hide();
}
void AccountSwitchPopupWidget::paintEvent(QPaintEvent *event)
{
QPainter painter(this);
painter.fillRect(this->rect(), QColor(255, 255, 255));
}
} // namespace widgets
} // namespace chatterino