改善左键点击时菜单弹出的位置
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
@@ -37,6 +37,7 @@ private:
|
||||
QByteArray user, passwd;
|
||||
int msgDur = 500;
|
||||
|
||||
|
||||
signals:
|
||||
void exit();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user