yubioath-flutter/systemtray.cpp
2017-08-14 12:27:04 +02:00

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();
}