mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-12-01 14:58:47 +03:00
parent
0fddb7ebff
commit
23431362d9
1 changed files with 4 additions and 1 deletions
|
@ -15,6 +15,7 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <QApplication>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
|
||||||
#include "TrayIcon.h"
|
#include "TrayIcon.h"
|
||||||
|
@ -69,7 +70,9 @@ TrayIcon::TrayIcon(const QString &filename, QWidget *parent)
|
||||||
quitAction_ = new QAction("Quit", parent);
|
quitAction_ = new QAction("Quit", parent);
|
||||||
|
|
||||||
connect(viewAction_, SIGNAL(triggered()), parent, SLOT(show()));
|
connect(viewAction_, SIGNAL(triggered()), parent, SLOT(show()));
|
||||||
connect(quitAction_, SIGNAL(triggered()), parent, SLOT(close()));
|
connect(quitAction_, &QAction::triggered, this, [=]() {
|
||||||
|
QApplication::quit();
|
||||||
|
});
|
||||||
|
|
||||||
menu->addAction(viewAction_);
|
menu->addAction(viewAction_);
|
||||||
menu->addAction(quitAction_);
|
menu->addAction(quitAction_);
|
||||||
|
|
Loading…
Reference in a new issue