summaryrefslogtreecommitdiff
path: root/EventDispatcher.cpp
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2020-09-21 21:52:17 +0100
committerThomas Preud'homme <robotux@celest.fr>2020-09-21 21:52:17 +0100
commit08b0288421b2cd69bbfd8a8a109572f04df69bbe (patch)
treedbdbaa997e8c7b771cb42034128ef0a500ea40b4 /EventDispatcher.cpp
parentac95ce6e0538249e9c395904b49b078234fdcb5e (diff)
New upstream version 2.2.4.7
Diffstat (limited to 'EventDispatcher.cpp')
-rwxr-xr-xEventDispatcher.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/EventDispatcher.cpp b/EventDispatcher.cpp
index 4c49de7..67e2044 100755
--- a/EventDispatcher.cpp
+++ b/EventDispatcher.cpp
@@ -292,11 +292,21 @@ void EventDispatcher::initFunction()
std::cerr << "connect error at " << __FILE__ << ":" << std::to_string(__LINE__) << std::endl;
abort();
}
+ if(!connect(backgroundIcon, &SystrayIcon::showProductKey, ProductKey::productKey, &ProductKey::show,Qt::DirectConnection))
+ {
+ std::cerr << "connect error at " << __FILE__ << ":" << std::to_string(__LINE__) << std::endl;
+ abort();
+ }
if(!connect(core, &Core::askProductKey, ProductKey::productKey, &ProductKey::show,Qt::DirectConnection))
{
std::cerr << "connect error at " << __FILE__ << ":" << std::to_string(__LINE__) << std::endl;
abort();
}
+ if(!connect(ProductKey::productKey, &ProductKey::changeToUltimate,backgroundIcon, &SystrayIcon::changeToUltimate,Qt::DirectConnection))
+ {
+ std::cerr << "connect error at " << __FILE__ << ":" << std::to_string(__LINE__) << std::endl;
+ abort();
+ }
if(!connect(ProductKey::productKey, &ProductKey::changeToUltimate,core, &Core::changeToUltimate,Qt::DirectConnection))
{
std::cerr << "connect error at " << __FILE__ << ":" << std::to_string(__LINE__) << std::endl;