mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-26 10:33:15 +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();
|
|
}
|