Browse Source

Set icon directly in .ui file

adaptive-webui-19844
Chocobo1 9 years ago
parent
commit
c5f5292d9e
  1. 6
      src/gui/about.ui
  2. 3
      src/gui/about_imp.h

6
src/gui/about.ui

@ -18,7 +18,11 @@ @@ -18,7 +18,11 @@
<item>
<layout class="QHBoxLayout" name="titleHBoxLayout">
<item>
<widget class="QLabel" name="logo"/>
<widget class="QLabel" name="logo">
<property name="pixmap">
<pixmap resource="../icons.qrc">:/icons/skin/qbittorrent32.png</pixmap>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="lb_name">

3
src/gui/about_imp.h

@ -47,8 +47,7 @@ public: @@ -47,8 +47,7 @@ public:
setupUi(this);
setAttribute(Qt::WA_DeleteOnClose);
// Title & icon
logo->setPixmap(QPixmap(":/icons/skin/qbittorrent32.png"));
// Title
lb_name->setText("<b><h2>qBittorrent " VERSION "</h2></b>");
// About

Loading…
Cancel
Save