mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-10 14:57:52 +00:00
- Hide priority buttons if queueing system is disabled
This commit is contained in:
parent
c835502692
commit
badd36e81e
@ -113,7 +113,8 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), dis
|
|||||||
connecStatusLblIcon->setFrameShape(QFrame::NoFrame);
|
connecStatusLblIcon->setFrameShape(QFrame::NoFrame);
|
||||||
connecStatusLblIcon->setPixmap(QPixmap(QString::fromUtf8(":/Icons/skin/disconnected.png")));
|
connecStatusLblIcon->setPixmap(QPixmap(QString::fromUtf8(":/Icons/skin/disconnected.png")));
|
||||||
connecStatusLblIcon->setToolTip(QString::fromUtf8("<b>")+tr("Connection status:")+QString::fromUtf8("</b><br>")+tr("Offline")+QString::fromUtf8("<br><i>")+tr("No peers found...")+QString::fromUtf8("</i>"));
|
connecStatusLblIcon->setToolTip(QString::fromUtf8("<b>")+tr("Connection status:")+QString::fromUtf8("</b><br>")+tr("Offline")+QString::fromUtf8("<br><i>")+tr("No peers found...")+QString::fromUtf8("</i>"));
|
||||||
toolBar->addWidget(connecStatusLblIcon);
|
toolBar->insertWidget(actionDecreasePriority, connecStatusLblIcon);
|
||||||
|
toolBar->insertSeparator(actionDecreasePriority);
|
||||||
actionDelete_Permanently->setIcon(QIcon(QString::fromUtf8(":/Icons/skin/delete_perm.png")));
|
actionDelete_Permanently->setIcon(QIcon(QString::fromUtf8(":/Icons/skin/delete_perm.png")));
|
||||||
actionTorrent_Properties->setIcon(QIcon(QString::fromUtf8(":/Icons/skin/properties.png")));
|
actionTorrent_Properties->setIcon(QIcon(QString::fromUtf8(":/Icons/skin/properties.png")));
|
||||||
actionCreate_torrent->setIcon(QIcon(QString::fromUtf8(":/Icons/skin/new.png")));
|
actionCreate_torrent->setIcon(QIcon(QString::fromUtf8(":/Icons/skin/new.png")));
|
||||||
@ -1117,6 +1118,9 @@ void GUI::configureSession(bool deleteOptions) {
|
|||||||
if(!BTSession->isQueueingEnabled()) {
|
if(!BTSession->isQueueingEnabled()) {
|
||||||
downloadingTorrentTab->hidePriorityColumn(false);
|
downloadingTorrentTab->hidePriorityColumn(false);
|
||||||
finishedTorrentTab->hidePriorityColumn(false);
|
finishedTorrentTab->hidePriorityColumn(false);
|
||||||
|
actionDecreasePriority->setVisible(true);
|
||||||
|
actionIncreasePriority->setVisible(true);
|
||||||
|
toolBar->layout()->setSpacing(7);
|
||||||
}
|
}
|
||||||
int max_torrents = options->getMaxActiveTorrents();
|
int max_torrents = options->getMaxActiveTorrents();
|
||||||
int max_downloads = options->getMaxActiveDownloads();
|
int max_downloads = options->getMaxActiveDownloads();
|
||||||
@ -1130,6 +1134,9 @@ void GUI::configureSession(bool deleteOptions) {
|
|||||||
BTSession->setQueueingEnabled(false);
|
BTSession->setQueueingEnabled(false);
|
||||||
downloadingTorrentTab->hidePriorityColumn(true);
|
downloadingTorrentTab->hidePriorityColumn(true);
|
||||||
finishedTorrentTab->hidePriorityColumn(true);
|
finishedTorrentTab->hidePriorityColumn(true);
|
||||||
|
actionDecreasePriority->setVisible(false);
|
||||||
|
actionIncreasePriority->setVisible(false);
|
||||||
|
toolBar->layout()->setSpacing(7);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Clean up
|
// Clean up
|
||||||
|
@ -90,6 +90,9 @@
|
|||||||
<height>32</height>
|
<height>32</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="floatable" >
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
<attribute name="toolBarArea" >
|
<attribute name="toolBarArea" >
|
||||||
<enum>TopToolBarArea</enum>
|
<enum>TopToolBarArea</enum>
|
||||||
</attribute>
|
</attribute>
|
||||||
@ -110,12 +113,11 @@
|
|||||||
<addaction name="actionStart_All" />
|
<addaction name="actionStart_All" />
|
||||||
<addaction name="actionPause_All" />
|
<addaction name="actionPause_All" />
|
||||||
<addaction name="separator" />
|
<addaction name="separator" />
|
||||||
<addaction name="actionDecreasePriority" />
|
|
||||||
<addaction name="actionIncreasePriority" />
|
|
||||||
<addaction name="separator" />
|
|
||||||
<addaction name="actionOptions" />
|
<addaction name="actionOptions" />
|
||||||
<addaction name="actionExit" />
|
<addaction name="actionExit" />
|
||||||
<addaction name="separator" />
|
<addaction name="separator" />
|
||||||
|
<addaction name="actionDecreasePriority" />
|
||||||
|
<addaction name="actionIncreasePriority" />
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QStatusBar" name="statusBar" />
|
<widget class="QStatusBar" name="statusBar" />
|
||||||
<action name="actionOpen" >
|
<action name="actionOpen" >
|
||||||
@ -235,6 +237,9 @@
|
|||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>Decrease priority</string>
|
<string>Decrease priority</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="visible" >
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="actionIncreasePriority" >
|
<action name="actionIncreasePriority" >
|
||||||
<property name="icon" >
|
<property name="icon" >
|
||||||
@ -243,6 +248,9 @@
|
|||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>Increase priority</string>
|
<string>Increase priority</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="visible" >
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
</action>
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<resources>
|
<resources>
|
||||||
|
Loading…
Reference in New Issue
Block a user