Added Windows icon.

Use a 16x16 tray icon under Windows.
Fix disk space funcion under Windows.
This commit is contained in:
codestation
2013-09-16 00:46:43 -04:30
parent 6d432bfafb
commit 092e0d9aa0
6 changed files with 11 additions and 2 deletions

View File

@@ -129,7 +129,11 @@ void MainWidget::createTrayIcon()
trayIcon = new QSystemTrayIcon(this);
trayIcon->setContextMenu(trayIconMenu);
#ifndef Q_OS_WIN32
trayIcon->setIcon(QIcon(":/main/resources/psv_icon.png"));
#else
trayIcon->setIcon(QIcon(":/main/resources/psv_icon_16.png"));
#endif
trayIcon->show();
// try to avoid the iconTray Qt bug
Sleeper::sleep(1);