summaryrefslogtreecommitdiff
path: root/SystrayIcon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'SystrayIcon.cpp')
-rwxr-xr-xSystrayIcon.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/SystrayIcon.cpp b/SystrayIcon.cpp
index ceed27d..9294104 100755
--- a/SystrayIcon.cpp
+++ b/SystrayIcon.cpp
@@ -12,7 +12,6 @@
#include "ThemesManager.h"
#include "LanguagesManager.h"
#include "HelpDialog.h"
-#include "ProductKey.h"
#ifdef Q_OS_MAC
//extern void qt_mac_set_dock_menu(QMenu *menu);
@@ -34,7 +33,6 @@ SystrayIcon::SystrayIcon(QObject * parent) :
#endif
actionMenuQuit = new QAction(this);
actionOptions = new QAction(this);
- actionProductKey = new QAction(this);
//actionTransfer = new QAction(this);
#ifdef TREEMENU
copyMenu = NULL;
@@ -63,7 +61,6 @@ SystrayIcon::SystrayIcon(QObject * parent) :
connect(actionMenuQuit, &QAction::triggered, this, &SystrayIcon::quit);
connect(actionMenuAbout, &QAction::triggered, this, &SystrayIcon::showHelp);
connect(actionOptions, &QAction::triggered, this, &SystrayIcon::showOptions);
- connect(actionProductKey, &QAction::triggered, this, &SystrayIcon::showProductKey);
connect(this, &SystrayIcon::activated, this, &SystrayIcon::CatchAction);
#ifdef ULTRACOPIER_INTERNET_SUPPORT
connect(this, &QSystemTrayIcon::messageClicked, this, &SystrayIcon::messageClicked);
@@ -80,10 +77,6 @@ SystrayIcon::SystrayIcon(QObject * parent) :
#ifdef ULTRACOPIER_DEBUG
systrayMenu->addAction(actionSaveBugReport);
#endif
- #ifndef Q_OS_LINUX
- if(!ProductKey::productKey->isUltimate())
- systrayMenu->addAction(actionProductKey);
- #endif
systrayMenu->addAction(actionMenuQuit);
#ifndef Q_OS_MAC
systrayMenu->insertSeparator(actionOptions);
@@ -118,7 +111,6 @@ SystrayIcon::~SystrayIcon()
#endif
delete actionMenuAbout;
delete actionOptions;
- delete actionProductKey;
delete systrayMenu;
#ifdef TREEMENU
if(copyMenu!=NULL)
@@ -358,8 +350,6 @@ void SystrayIcon::updateCurrentTheme()
IconOptions=QIcon("");
actionOptions->setIcon(IconOptions);
- actionProductKey->setIcon(IconInfo);
-
tempIcon=ThemesManager::themesManager->loadIcon("SystemTrayIcon/add.png");
if(!tempIcon.isNull())
IconAdd=QIcon(tempIcon);
@@ -452,7 +442,6 @@ void SystrayIcon::retranslateTheUI()
#endif
actionMenuQuit ->setText(tr("&Quit"));
actionOptions ->setText(tr("&Options"));
- actionProductKey ->setText(tr("&Product key"));
reloadEngineList();
updateSystrayIcon();
}
@@ -572,8 +561,3 @@ void SystrayIcon::reloadEngineList()
}
setContextMenu(systrayMenu);
}
-
-void SystrayIcon::changeToUltimate()
-{
- systrayMenu->removeAction(actionProductKey);
-}