mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 09:13:08 -07:00
- Use 16px tray icon on windows
This commit is contained in:
parent
f4120088c6
commit
85796d9c2c
1 changed files with 5 additions and 0 deletions
|
@ -1264,7 +1264,12 @@ void GUI::downloadFromURLList(const QStringList& urls) {
|
||||||
|
|
||||||
void GUI::createTrayIcon() {
|
void GUI::createTrayIcon() {
|
||||||
// Tray icon
|
// Tray icon
|
||||||
|
#ifdef Q_WS_WIN
|
||||||
|
myTrayIcon = new QSystemTrayIcon(QIcon(QString::fromUtf8(":/Icons/qbittorrent16.png")), this);
|
||||||
|
#endif
|
||||||
|
#ifndef Q_WS_WIN
|
||||||
myTrayIcon = new QSystemTrayIcon(QIcon(QString::fromUtf8(":/Icons/qbittorrent22.png")), this);
|
myTrayIcon = new QSystemTrayIcon(QIcon(QString::fromUtf8(":/Icons/qbittorrent22.png")), this);
|
||||||
|
#endif
|
||||||
// Tray icon Menu
|
// Tray icon Menu
|
||||||
myTrayIconMenu = new QMenu(this);
|
myTrayIconMenu = new QMenu(this);
|
||||||
myTrayIconMenu->addAction(actionOpen);
|
myTrayIconMenu->addAction(actionOpen);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue