diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2020-02-19 18:32:55 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2020-02-19 18:32:55 +0000 |
| commit | dec8a9be93a1f7f1157b93f2a722f72f1b2cdc92 (patch) | |
| tree | 370f71c95eca3dd46ee8842da4987fc5356e7e35 /src/plugins/Ui/qsui/mainwindow.cpp | |
| parent | c8f1c3d7a85f2c73d338401433e96a46941e7d37 (diff) | |
| download | qmmp-dec8a9be93a1f7f1157b93f2a722f72f1b2cdc92.tar.gz qmmp-dec8a9be93a1f7f1157b93f2a722f72f1b2cdc92.tar.bz2 qmmp-dec8a9be93a1f7f1157b93f2a722f72f1b2cdc92.zip | |
added playlist transition option
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9232 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Ui/qsui/mainwindow.cpp')
| -rw-r--r-- | src/plugins/Ui/qsui/mainwindow.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/plugins/Ui/qsui/mainwindow.cpp b/src/plugins/Ui/qsui/mainwindow.cpp index 2893fe9eb..d88ecc2d7 100644 --- a/src/plugins/Ui/qsui/mainwindow.cpp +++ b/src/plugins/Ui/qsui/mainwindow.cpp @@ -446,6 +446,7 @@ void MainWindow::createActions() ACTION(ActionManager::REPEAT_TRACK)->setChecked(m_ui_settings->isRepeatableTrack()); ACTION(ActionManager::SHUFFLE)->setChecked(m_ui_settings->isShuffle()); ACTION(ActionManager::NO_PL_ADVANCE)->setChecked(m_ui_settings->isNoPlayListAdvance()); + ACTION(ActionManager::TRANSIT_BETWEEN_PLAYLISTS)->setChecked(m_ui_settings->isPlayListTransitionEnabled()); connect(m_ui_settings, SIGNAL(repeatableListChanged(bool)), ACTION(ActionManager::REPEAT_ALL), SLOT(setChecked(bool))); @@ -455,6 +456,8 @@ void MainWindow::createActions() ACTION(ActionManager::NO_PL_ADVANCE), SLOT(setChecked(bool))); connect(m_ui_settings, SIGNAL(shuffleChanged(bool)), ACTION(ActionManager::SHUFFLE), SLOT(setChecked(bool))); + connect(m_ui_settings, SIGNAL(playListTransitionChanged(bool)), + ACTION(ActionManager::TRANSIT_BETWEEN_PLAYLISTS), SLOT(setChecked(bool))); //register external actions ActionManager::instance()->registerAction(ActionManager::UI_ANALYZER, m_ui.analyzerDockWidget->toggleViewAction(), @@ -535,7 +538,7 @@ void MainWindow::createActions() m_ui.menuView->addAction(SET_ACTION(ActionManager::UI_BLOCK_TOOLBARS, this, SLOT(setToolBarsBlocked(bool)))); m_ui.menuView->addAction(tr("Edit Toolbars"), this, SLOT(editToolBar())); - QMenu* sort_mode_menu = new QMenu (tr("Sort List"), this); + QMenu *sort_mode_menu = new QMenu (tr("Sort List"), this); sort_mode_menu->setIcon(QIcon::fromTheme("view-sort-ascending")); QAction *titleAct = sort_mode_menu->addAction(tr ("By Title")); @@ -645,8 +648,11 @@ void MainWindow::createActions() SLOT(setShuffle(bool)))); m_ui.menuPlayback->addAction(SET_ACTION(ActionManager::NO_PL_ADVANCE, m_ui_settings, SLOT(setNoPlayListAdvance(bool)))); + m_ui.menuPlayback->addAction(SET_ACTION(ActionManager::TRANSIT_BETWEEN_PLAYLISTS, m_ui_settings, + SLOT(setPlayListTransitionEnabled(bool)))); m_ui.menuPlayback->addAction(SET_ACTION(ActionManager::STOP_AFTER_SELECTED, m_pl_manager, SLOT(stopAfterSelected()))); + m_ui.menuPlayback->addSeparator(); m_ui.menuPlayback->addAction(SET_ACTION(ActionManager::VOL_ENC, m_core, SLOT(volumeUp()))); m_ui.menuPlayback->addAction(SET_ACTION(ActionManager::VOL_DEC, m_core, SLOT(volumeDown()))); |
