refactor: some mini feature changes in BaseWindow (#6074)
This commit is contained in:
@@ -14,13 +14,16 @@ namespace chatterino {
|
||||
using namespace literals;
|
||||
|
||||
AccountSwitchPopup::AccountSwitchPopup(QWidget *parent)
|
||||
: BaseWindow({BaseWindow::TopMost, BaseWindow::Frameless,
|
||||
BaseWindow::DisableLayoutSave},
|
||||
parent)
|
||||
: BaseWindow(
|
||||
{
|
||||
BaseWindow::TopMost,
|
||||
BaseWindow::Frameless,
|
||||
BaseWindow::DisableLayoutSave,
|
||||
BaseWindow::LinuxPopup,
|
||||
},
|
||||
parent)
|
||||
{
|
||||
#ifdef Q_OS_LINUX
|
||||
this->setWindowFlag(Qt::Popup);
|
||||
#endif
|
||||
this->focusOutAction = FocusOutAction::Hide;
|
||||
|
||||
this->setContentsMargins(0, 0, 0, 0);
|
||||
|
||||
@@ -92,11 +95,6 @@ void AccountSwitchPopup::refresh()
|
||||
this->ui_.accountSwitchWidget->refresh();
|
||||
}
|
||||
|
||||
void AccountSwitchPopup::focusOutEvent(QFocusEvent *)
|
||||
{
|
||||
this->hide();
|
||||
}
|
||||
|
||||
void AccountSwitchPopup::paintEvent(QPaintEvent *)
|
||||
{
|
||||
QPainter painter(this);
|
||||
|
||||
Reference in New Issue
Block a user