|
|
|
|
@ -101,7 +101,7 @@ Dialog::Dialog(QWidget *parent) : QDialog(parent), ui(new Ui::Dialog)
|
|
|
|
|
m_menu->addAction(m_quit);
|
|
|
|
|
m_hideIcon->setContextMenu(m_menu);
|
|
|
|
|
m_hideIcon->show();
|
|
|
|
|
connect(m_showWindow, &QAction::triggered, this, &Dialog::slotShow);
|
|
|
|
|
connect(m_showWindow, &QAction::triggered, this, &Dialog::show);
|
|
|
|
|
connect(m_quit, &QAction::triggered, this, [this]() {
|
|
|
|
|
m_hideIcon->hide();
|
|
|
|
|
qApp->quit();
|
|
|
|
|
@ -238,12 +238,6 @@ QString Dialog::getGameScript(const QString &fileName)
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Dialog::slotShow()
|
|
|
|
|
{
|
|
|
|
|
this->show();
|
|
|
|
|
m_hideIcon->hide();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Dialog::slotActivated(QSystemTrayIcon::ActivationReason reason)
|
|
|
|
|
{
|
|
|
|
|
switch (reason) {
|
|
|
|
|
|