mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-22 14:23:35 -07:00
Set icon directly in .ui file
This commit is contained in:
parent
6c7350fce0
commit
2fe6b76968
2 changed files with 6 additions and 3 deletions
|
@ -18,7 +18,11 @@
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="titleHBoxLayout">
|
<layout class="QHBoxLayout" name="titleHBoxLayout">
|
||||||
<item>
|
<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>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="lb_name">
|
<widget class="QLabel" name="lb_name">
|
||||||
|
|
|
@ -47,8 +47,7 @@ public:
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
setAttribute(Qt::WA_DeleteOnClose);
|
setAttribute(Qt::WA_DeleteOnClose);
|
||||||
|
|
||||||
// Title & icon
|
// Title
|
||||||
logo->setPixmap(QPixmap(":/icons/skin/qbittorrent32.png"));
|
|
||||||
lb_name->setText("<b><h2>qBittorrent " VERSION "</h2></b>");
|
lb_name->setText("<b><h2>qBittorrent " VERSION "</h2></b>");
|
||||||
|
|
||||||
// About
|
// About
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue