mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-09 06:17:58 +00:00
Fix priority up/down separators
This commit is contained in:
parent
897d0be08e
commit
4065972179
@ -135,10 +135,6 @@ MainWindow::MainWindow(QWidget *parent, QStringList torrentCmdLine) : QMainWindo
|
|||||||
QAction *defineUiLockPasswdAct = lockMenu->addAction(tr("Set the password..."));
|
QAction *defineUiLockPasswdAct = lockMenu->addAction(tr("Set the password..."));
|
||||||
connect(defineUiLockPasswdAct, SIGNAL(triggered()), this, SLOT(defineUILockPassword()));
|
connect(defineUiLockPasswdAct, SIGNAL(triggered()), this, SLOT(defineUILockPassword()));
|
||||||
actionLock_qBittorrent->setMenu(lockMenu);
|
actionLock_qBittorrent->setMenu(lockMenu);
|
||||||
prioSeparator = toolBar->insertSeparator(actionDecreasePriority);
|
|
||||||
prioSeparator2 = menu_Edit->insertSeparator(actionDecreasePriority);
|
|
||||||
prioSeparator->setVisible(false);
|
|
||||||
prioSeparator2->setVisible(false);
|
|
||||||
// Fix Tool bar layout
|
// Fix Tool bar layout
|
||||||
toolBar->layout()->setSpacing(TOOLBAR_SPACING);
|
toolBar->layout()->setSpacing(TOOLBAR_SPACING);
|
||||||
// Creating Bittorrent session
|
// Creating Bittorrent session
|
||||||
@ -186,6 +182,9 @@ MainWindow::MainWindow(QWidget *parent, QStringList torrentCmdLine) : QMainWindo
|
|||||||
spacer->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
|
spacer->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
|
||||||
toolBar->insertWidget(actionLock_qBittorrent, spacer);
|
toolBar->insertWidget(actionLock_qBittorrent, spacer);
|
||||||
|
|
||||||
|
prioSeparator = toolBar->insertSeparator(actionDecreasePriority);
|
||||||
|
prioSeparatorMenu = menu_Edit->insertSeparator(actionDecreasePriority);
|
||||||
|
|
||||||
// Transfer list slots
|
// Transfer list slots
|
||||||
connect(actionStart, SIGNAL(triggered()), transferList, SLOT(startSelectedTorrents()));
|
connect(actionStart, SIGNAL(triggered()), transferList, SLOT(startSelectedTorrents()));
|
||||||
connect(actionStart_All, SIGNAL(triggered()), QBtSession::instance(), SLOT(resumeAllTorrents()));
|
connect(actionStart_All, SIGNAL(triggered()), QBtSession::instance(), SLOT(resumeAllTorrents()));
|
||||||
@ -968,7 +967,7 @@ void MainWindow::loadPreferences(bool configure_session) {
|
|||||||
actionDecreasePriority->setVisible(true);
|
actionDecreasePriority->setVisible(true);
|
||||||
actionIncreasePriority->setVisible(true);
|
actionIncreasePriority->setVisible(true);
|
||||||
prioSeparator->setVisible(true);
|
prioSeparator->setVisible(true);
|
||||||
prioSeparator2->setVisible(true);
|
prioSeparatorMenu->setVisible(true);
|
||||||
toolBar->layout()->setSpacing(TOOLBAR_SPACING);
|
toolBar->layout()->setSpacing(TOOLBAR_SPACING);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -977,7 +976,7 @@ void MainWindow::loadPreferences(bool configure_session) {
|
|||||||
actionDecreasePriority->setVisible(false);
|
actionDecreasePriority->setVisible(false);
|
||||||
actionIncreasePriority->setVisible(false);
|
actionIncreasePriority->setVisible(false);
|
||||||
prioSeparator->setVisible(false);
|
prioSeparator->setVisible(false);
|
||||||
prioSeparator2->setVisible(false);
|
prioSeparatorMenu->setVisible(false);
|
||||||
toolBar->layout()->setSpacing(TOOLBAR_SPACING);
|
toolBar->layout()->setSpacing(TOOLBAR_SPACING);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -172,7 +172,7 @@ private:
|
|||||||
QShortcut *switchRSSShortcut;
|
QShortcut *switchRSSShortcut;
|
||||||
// Widgets
|
// Widgets
|
||||||
QAction *prioSeparator;
|
QAction *prioSeparator;
|
||||||
QAction *prioSeparator2;
|
QAction *prioSeparatorMenu;
|
||||||
QSplitter *hSplitter;
|
QSplitter *hSplitter;
|
||||||
QSplitter *vSplitter;
|
QSplitter *vSplitter;
|
||||||
// Search
|
// Search
|
||||||
|
@ -40,8 +40,8 @@
|
|||||||
<addaction name="actionStart"/>
|
<addaction name="actionStart"/>
|
||||||
<addaction name="actionPause"/>
|
<addaction name="actionPause"/>
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
<addaction name="separator"/>
|
|
||||||
<addaction name="actionDelete"/>
|
<addaction name="actionDelete"/>
|
||||||
|
<addaction name="separator"/>
|
||||||
<addaction name="actionDecreasePriority"/>
|
<addaction name="actionDecreasePriority"/>
|
||||||
<addaction name="actionIncreasePriority"/>
|
<addaction name="actionIncreasePriority"/>
|
||||||
</widget>
|
</widget>
|
||||||
@ -127,9 +127,9 @@
|
|||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
<addaction name="actionStart"/>
|
<addaction name="actionStart"/>
|
||||||
<addaction name="actionPause"/>
|
<addaction name="actionPause"/>
|
||||||
<addaction name="separator"/>
|
|
||||||
<addaction name="actionDecreasePriority"/>
|
<addaction name="actionDecreasePriority"/>
|
||||||
<addaction name="actionIncreasePriority"/>
|
<addaction name="actionIncreasePriority"/>
|
||||||
|
<addaction name="separator"/>
|
||||||
<addaction name="actionOptions"/>
|
<addaction name="actionOptions"/>
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
<addaction name="actionLock_qBittorrent"/>
|
<addaction name="actionLock_qBittorrent"/>
|
||||||
@ -227,7 +227,7 @@
|
|||||||
<string>Decrease priority</string>
|
<string>Decrease priority</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="visible">
|
<property name="visible">
|
||||||
<bool>false</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="actionIncreasePriority">
|
<action name="actionIncreasePriority">
|
||||||
@ -235,7 +235,7 @@
|
|||||||
<string>Increase priority</string>
|
<string>Increase priority</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="visible">
|
<property name="visible">
|
||||||
<bool>false</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="actionUse_alternative_speed_limits">
|
<action name="actionUse_alternative_speed_limits">
|
||||||
|
Loading…
Reference in New Issue
Block a user