mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-04 22:52:33 -06:00
Initial support for system Icons (incomplete but good progress)
This commit is contained in:
@@ -64,10 +64,6 @@
|
||||
<property name="text">
|
||||
<string>Add file</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../icons.qrc">
|
||||
<normaloff>:/Icons/oxygen/document-new.png</normaloff>:/Icons/oxygen/document-new.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
@@ -75,10 +71,6 @@
|
||||
<property name="text">
|
||||
<string>Add folder</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../icons.qrc">
|
||||
<normaloff>:/Icons/oxygen/folder-new.png</normaloff>:/Icons/oxygen/folder-new.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
@@ -317,8 +309,6 @@
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="../icons.qrc"/>
|
||||
</resources>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
||||
@@ -45,6 +45,12 @@ using namespace libtorrent;
|
||||
|
||||
TorrentCreatorDlg::TorrentCreatorDlg(QWidget *parent): QDialog(parent), creatorThread(0) {
|
||||
setupUi(this);
|
||||
// Icons
|
||||
addFile_button->setIcon(misc::getIcon("document-new"));
|
||||
addFolder_button->setIcon(misc::getIcon("folder-new"));
|
||||
createButton->setIcon(misc::getIcon("document-save"));
|
||||
cancelButton->setIcon(misc::getIcon("dialog-cancel"));
|
||||
|
||||
setAttribute(Qt::WA_DeleteOnClose);
|
||||
setModal(true);
|
||||
showProgressBar(false);
|
||||
|
||||
Reference in New Issue
Block a user