From e0d1361af4bd113ec4f71597e0ddfe8ad745355a Mon Sep 17 00:00:00 2001 From: DavidXanatos Date: Thu, 19 May 2022 18:28:25 +0200 Subject: [PATCH] 1.1.0 --- SandboxiePlus/SandMan/SandMan.cpp | 38 +++++++++++++++---------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/SandboxiePlus/SandMan/SandMan.cpp b/SandboxiePlus/SandMan/SandMan.cpp index acf581a6..04bd9afc 100644 --- a/SandboxiePlus/SandMan/SandMan.cpp +++ b/SandboxiePlus/SandMan/SandMan.cpp @@ -204,25 +204,6 @@ CSandMan::CSandMan(QWidget *parent) CreateTrayMenu(); - /*QWidgetAction* pBoxWidget = new QWidgetAction(m_pTrayMenu); - - QWidget* pWidget = new QWidget(); - pWidget->setMaximumHeight(200); - QGridLayout* pLayout = new QGridLayout(); - pLayout->addWidget(pBar, 0, 0); - pWidget->setLayout(pLayout); - pBoxWidget->setDefaultWidget(pWidget);*/ - - /*QLabel* pLabel = new QLabel("test"); - pLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); - pLabel->setAlignment(Qt::AlignCenter); - pBoxWidget->setDefaultWidget(pLabel);*/ - - //m_pTrayMenu->addAction(pBoxWidget); - //m_pTrayMenu->addSeparator(); - - m_pTrayMenu->addAction(m_pExit); - bool bAutoRun = QApplication::arguments().contains("-autorun"); if(g_PendingMessage.isEmpty()){ @@ -598,6 +579,25 @@ void CSandMan::CreateTrayMenu() m_pDisableForce2 = m_pTrayMenu->addAction(tr("Pause Forcing Programs"), this, SLOT(OnDisableForce2())); m_pDisableForce2->setCheckable(true); m_pTrayMenu->addSeparator(); + + /*QWidgetAction* pBoxWidget = new QWidgetAction(m_pTrayMenu); + + QWidget* pWidget = new QWidget(); + pWidget->setMaximumHeight(200); + QGridLayout* pLayout = new QGridLayout(); + pLayout->addWidget(pBar, 0, 0); + pWidget->setLayout(pLayout); + pBoxWidget->setDefaultWidget(pWidget);*/ + + /*QLabel* pLabel = new QLabel("test"); + pLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); + pLabel->setAlignment(Qt::AlignCenter); + pBoxWidget->setDefaultWidget(pLabel);*/ + + //m_pTrayMenu->addAction(pBoxWidget); + //m_pTrayMenu->addSeparator(); + + m_pTrayMenu->addAction(m_pExit); } void CSandMan::OnExit()