diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-08-29 19:29:03 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-08-29 19:29:03 +0000 |
| commit | a0c457d7dd9d609bdf8de45d9b5ac6e578ae38b2 (patch) | |
| tree | ec0b5e90acc2445f9888c222af2ab530daf91ffb /src/ui/mainwindow.cpp | |
| parent | 9aa6aaa154d5671fa1ab656b2ae739b2c1129f36 (diff) | |
| download | qmmp-a0c457d7dd9d609bdf8de45d9b5ac6e578ae38b2.tar.gz qmmp-a0c457d7dd9d609bdf8de45d9b5ac6e578ae38b2.tar.bz2 qmmp-a0c457d7dd9d609bdf8de45d9b5ac6e578ae38b2.zip | |
added 'auto stop' option (patch by Avihay Baratz)
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1862 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/mainwindow.cpp')
| -rw-r--r-- | src/ui/mainwindow.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp index 4e92f9678..2b23fe17b 100644 --- a/src/ui/mainwindow.cpp +++ b/src/ui/mainwindow.cpp @@ -427,19 +427,24 @@ void MainWindow::createActions() m_mainMenu->addAction(tr("&Play/Pause"),this, SLOT(playPause()), tr("Space")); m_mainMenu->addSeparator(); QAction *repeateAllAction = m_mainMenu->addAction(tr("&Repeat Playlist")); - QAction *repeateTrackAction = m_mainMenu->addAction(tr("&Repeat Track")); QAction *shuffleAction = m_mainMenu->addAction(tr("&Shuffle")); + QAction *autoStopAction = m_mainMenu->addAction(tr("&Auto Stop")); + QAction *repeateTrackAction = m_mainMenu->addAction(tr("&Repeat Track")); repeateAllAction->setCheckable (true); repeateTrackAction->setCheckable (true); + autoStopAction->setCheckable (true); shuffleAction->setCheckable (true); repeateAllAction->setShortcut(tr("R")) ; repeateTrackAction->setShortcut(tr("Ctrl+R")) ; + autoStopAction->setShortcut(tr("Ctrl+S")) ; shuffleAction->setShortcut(tr("S")) ; connect(repeateAllAction, SIGNAL(triggered (bool)), m_pl_manager, SLOT(setRepeatableList(bool))); connect(repeateTrackAction, SIGNAL(triggered (bool)), m_player, SLOT(setRepeatable(bool))); + connect(autoStopAction, SIGNAL(triggered (bool)), m_player, SLOT(setAutoStop(bool))); connect(shuffleAction, SIGNAL(triggered (bool)), m_pl_manager, SLOT(setShuffle(bool))); connect(m_pl_manager, SIGNAL(repeatableListChanged(bool)), repeateAllAction, SLOT(setChecked(bool))); connect(m_player, SIGNAL (repeatableChanged(bool)), repeateTrackAction, SLOT(setChecked(bool))); + connect(m_player, SIGNAL (autoStopChanged(bool)), autoStopAction, SLOT(setChecked(bool))); connect(m_pl_manager, SIGNAL(shuffleChanged(bool)), shuffleAction, SLOT(setChecked(bool))); m_mainMenu->addSeparator(); m_mainMenu->addAction(QIcon::fromTheme("go-up"), tr("&Jump To File"), |
