From 70963c8f59c1f6f71ef317f803f8a153e282be92 Mon Sep 17 00:00:00 2001 From: NeoTheFox Date: Wed, 25 Mar 2015 23:00:05 +0300 Subject: [PATCH] No need for QPixmap --- mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 1e33e0c..de4cc3b 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -30,7 +30,7 @@ MainWindow::MainWindow(QWidget *parent) : ui->btmpspin->installEventFilter(this); recentMenu = new QMenu(this); trayIcon = new QSystemTrayIcon(this); - trayIcon->setIcon(QIcon(QPixmap(":icons/repraptor.png"))); + trayIcon->setIcon(QIcon(":icons/repraptor.png")); trayIconMenu = new QMenu(this); trayIconMenu->addAction(ui->actionOpen); trayIconMenu->addAction(ui->actionExit);