mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
change default quit icon in tray menu
This commit is contained in:
parent
f2866ecc44
commit
5e12c76ecd
|
@ -1706,8 +1706,7 @@ void Widget::onTryCreateTrayIcon()
|
|||
|
||||
actionQuit = new QAction(tr("&Exit"), this);
|
||||
actionQuit->setMenuRole(QAction::QuitRole);
|
||||
actionQuit->setShortcut(QKeySequence::Quit); // system default quit shorcut
|
||||
actionQuit->setIcon(style->standardIcon(QStyle::SP_DialogCloseButton)); // system default exit icon
|
||||
actionQuit->setIcon(style->standardIcon(QStyle::SP_DialogDiscardButton));
|
||||
connect(actionQuit, &QAction::triggered, qApp, &QApplication::quit);
|
||||
|
||||
trayMenu->addAction(statusOnline);
|
||||
|
|
Loading…
Reference in New Issue
Block a user