From c5f5292d9e2c7bf07d4c41a384569da8736d3fb0 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Mon, 11 Jan 2016 00:04:12 +0800 Subject: [PATCH] Set icon directly in .ui file --- src/gui/about.ui | 6 +++++- src/gui/about_imp.h | 3 +-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/gui/about.ui b/src/gui/about.ui index 5671086b5..4d0a77cb5 100644 --- a/src/gui/about.ui +++ b/src/gui/about.ui @@ -18,7 +18,11 @@ - + + + :/icons/skin/qbittorrent32.png + + diff --git a/src/gui/about_imp.h b/src/gui/about_imp.h index 869cf942e..f2ca6f72a 100644 --- a/src/gui/about_imp.h +++ b/src/gui/about_imp.h @@ -47,8 +47,7 @@ public: setupUi(this); setAttribute(Qt::WA_DeleteOnClose); - // Title & icon - logo->setPixmap(QPixmap(":/icons/skin/qbittorrent32.png")); + // Title lb_name->setText("

qBittorrent " VERSION "

"); // About