mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-02 05:50:34 +03:00
13 lines
325 B
C++
13 lines
325 B
C++
|
#include "systemtray.h"
|
||
|
|
||
|
SystemTray::SystemTray(QObject *parent) :
|
||
|
QSystemTrayIcon(parent)
|
||
|
{
|
||
|
connect(this, &SystemTray::activated, this, &SystemTray::onActivate);
|
||
|
}
|
||
|
|
||
|
void SystemTray::onActivate(QSystemTrayIcon::ActivationReason reason) {
|
||
|
if(reason == QSystemTrayIcon::DoubleClick)
|
||
|
emit doubleClicked();
|
||
|
}
|