改善左键点击时菜单弹出的位置

This commit is contained in:
才明洋
2018-03-17 10:46:12 +08:00
parent 2aac621284
commit 5eb2456909
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ void MainTray::handleActivated(QSystemTrayIcon::ActivationReason reason)
{
switch (reason) {
case QSystemTrayIcon::Trigger:
contextMenu()->show();
contextMenu()->popup(this->geometry().topRight());
break;
default:
break;
+1
View File
@@ -37,6 +37,7 @@ private:
QByteArray user, passwd;
int msgDur = 500;
signals:
void exit();