diff options
author | Thomas Preud'homme <robotux@celest.fr> | 2020-09-21 21:52:17 +0100 |
---|---|---|
committer | Thomas Preud'homme <robotux@celest.fr> | 2020-09-21 21:52:17 +0100 |
commit | 08b0288421b2cd69bbfd8a8a109572f04df69bbe (patch) | |
tree | dbdbaa997e8c7b771cb42034128ef0a500ea40b4 /EventDispatcher.cpp | |
parent | ac95ce6e0538249e9c395904b49b078234fdcb5e (diff) |
New upstream version 2.2.4.7
Diffstat (limited to 'EventDispatcher.cpp')
-rwxr-xr-x | EventDispatcher.cpp | 10 |
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; |