refactor: some mini feature changes in BaseWindow (#6074)

This commit is contained in:
pajlada
2025-03-13 22:20:03 +01:00
committed by GitHub
parent 55031c5108
commit fb375e149b
10 changed files with 86 additions and 68 deletions
+2
View File
@@ -15,6 +15,8 @@ UpdateDialog::UpdateDialog()
: BaseWindow({BaseWindow::Frameless, BaseWindow::TopMost,
BaseWindow::EnableCustomFrame, BaseWindow::DisableLayoutSave})
{
this->windowDeactivateAction = WindowDeactivateAction::Delete;
auto layout =
LayoutCreator<UpdateDialog>(this).setLayoutType<QVBoxLayout>();
@@ -48,8 +48,9 @@ QuickSwitcherPopup::QuickSwitcherPopup(Window *parent)
, switcherModel_(this)
, window(parent)
{
this->setWindowFlag(Qt::Dialog);
this->setActionOnFocusLoss(BaseWindow::ActionOnFocusLoss::Delete);
assert(this->windowFlags().testFlag(Qt::Dialog));
this->windowDeactivateAction = WindowDeactivateAction::Delete;
this->setMinimumSize(QuickSwitcherPopup::MINIMUM_SIZE);
this->initWidgets();