diff options
author | Alex Borisov <borisov.alexandr@rambler.ru> | 2011-11-09 01:54:13 +0200 |
---|---|---|
committer | Alex Borisov <borisov.alexandr@rambler.ru> | 2011-11-09 01:54:13 +0200 |
commit | eafceb72d288068cdef79c3c4e63e54978d0ae50 (patch) | |
tree | da64dd4060086b80265f596df1259dfe2afa337d /client/ProxyClientApp.cpp | |
parent | 76bee6ee8fcd00811753e427c526b06ef456b6cd (diff) |
Move tray icon to resources. Debug regime wo SSL verification
Diffstat (limited to 'client/ProxyClientApp.cpp')
-rwxr-xr-x | client/ProxyClientApp.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/client/ProxyClientApp.cpp b/client/ProxyClientApp.cpp index bbdce0f..8f06473 100755 --- a/client/ProxyClientApp.cpp +++ b/client/ProxyClientApp.cpp @@ -25,9 +25,8 @@ ProxyClientApp::ProxyClientApp(int &argc, char *argv[]): QApplication(argc, argv trayMenu->addAction(showAction); trayMenu->addAction(quitAction); -// QIcon *icon = new QIcon(QCoreApplication::applicationDirPath() + "/icon.png"); //does not work %) - QIcon *icon = new QIcon(this_app->applicationDirPath() + "/icon.png"); - trayIcon = new QSystemTrayIcon(*icon); + QIcon *icon = new QIcon(":/icon.png"); + trayIcon = new QSystemTrayIcon(*icon); connect(trayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), this, SLOT(trayActivated(QSystemTrayIcon::ActivationReason))); trayIcon->setContextMenu(trayMenu); |