mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-22 20:44:15 +00:00
- Moved priority buttons
This commit is contained in:
parent
badd36e81e
commit
99e8ac3d36
@ -113,8 +113,9 @@ 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->insertWidget(actionDecreasePriority, connecStatusLblIcon);
|
toolBar->addWidget(connecStatusLblIcon);
|
||||||
toolBar->insertSeparator(actionDecreasePriority);
|
prioSeparator = toolBar->insertSeparator(actionDecreasePriority);
|
||||||
|
prioSeparator->setVisible(false);
|
||||||
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")));
|
||||||
@ -1120,6 +1121,7 @@ void GUI::configureSession(bool deleteOptions) {
|
|||||||
finishedTorrentTab->hidePriorityColumn(false);
|
finishedTorrentTab->hidePriorityColumn(false);
|
||||||
actionDecreasePriority->setVisible(true);
|
actionDecreasePriority->setVisible(true);
|
||||||
actionIncreasePriority->setVisible(true);
|
actionIncreasePriority->setVisible(true);
|
||||||
|
prioSeparator->setVisible(true);
|
||||||
toolBar->layout()->setSpacing(7);
|
toolBar->layout()->setSpacing(7);
|
||||||
}
|
}
|
||||||
int max_torrents = options->getMaxActiveTorrents();
|
int max_torrents = options->getMaxActiveTorrents();
|
||||||
@ -1136,6 +1138,7 @@ void GUI::configureSession(bool deleteOptions) {
|
|||||||
finishedTorrentTab->hidePriorityColumn(true);
|
finishedTorrentTab->hidePriorityColumn(true);
|
||||||
actionDecreasePriority->setVisible(false);
|
actionDecreasePriority->setVisible(false);
|
||||||
actionIncreasePriority->setVisible(false);
|
actionIncreasePriority->setVisible(false);
|
||||||
|
prioSeparator->setVisible(false);
|
||||||
toolBar->layout()->setSpacing(7);
|
toolBar->layout()->setSpacing(7);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -89,6 +89,7 @@ class GUI : public QMainWindow, private Ui::MainWindow{
|
|||||||
QShortcut *switchDownShortcut;
|
QShortcut *switchDownShortcut;
|
||||||
QShortcut *switchUpShortcut;
|
QShortcut *switchUpShortcut;
|
||||||
QShortcut *switchRSSShortcut;
|
QShortcut *switchRSSShortcut;
|
||||||
|
QAction *prioSeparator;
|
||||||
// Search
|
// Search
|
||||||
SearchEngine *searchEngine;
|
SearchEngine *searchEngine;
|
||||||
// RSS
|
// RSS
|
||||||
|
@ -114,10 +114,11 @@
|
|||||||
<addaction name="actionPause_All" />
|
<addaction name="actionPause_All" />
|
||||||
<addaction name="separator" />
|
<addaction name="separator" />
|
||||||
<addaction name="actionOptions" />
|
<addaction name="actionOptions" />
|
||||||
<addaction name="actionExit" />
|
|
||||||
<addaction name="separator" />
|
|
||||||
<addaction name="actionDecreasePriority" />
|
<addaction name="actionDecreasePriority" />
|
||||||
<addaction name="actionIncreasePriority" />
|
<addaction name="actionIncreasePriority" />
|
||||||
|
<addaction name="separator" />
|
||||||
|
<addaction name="actionExit" />
|
||||||
|
<addaction name="separator" />
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QStatusBar" name="statusBar" />
|
<widget class="QStatusBar" name="statusBar" />
|
||||||
<action name="actionOpen" >
|
<action name="actionOpen" >
|
||||||
|
Loading…
x
Reference in New Issue
Block a user