diff options
author | Werner Schweer <ws.seh.de> | 2006-09-23 21:03:12 +0000 |
---|---|---|
committer | Werner Schweer <ws.seh.de> | 2006-09-23 21:03:12 +0000 |
commit | fba231e9ca325c5247032ad3f6e9aea59c676431 (patch) | |
tree | 06af8423e3798ac03a0d111ef5886347ad316f85 | |
parent | 652af8d5a0a5c8328a0da08bbc891bc4dc1437cc (diff) |
make stopAction and playAction checkable
-rw-r--r-- | muse/muse/muse.cpp | 3 | ||||
-rw-r--r-- | muse/muse/song.cpp | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/muse/muse/muse.cpp b/muse/muse/muse.cpp index 69460a23..dc681ae8 100644 --- a/muse/muse/muse.cpp +++ b/muse/muse/muse.cpp @@ -476,6 +476,8 @@ MusE::MusE() forwardAction = new QAction(QIcon(":/xpm/fforward.xpm"), "forward", this); stopAction = new QAction(QIcon(":/xpm/stop.xpm"), "stop", this); playAction = new QAction(QIcon(":/xpm/play.xpm"), "play", this); + playAction->setCheckable(true); + stopAction->setCheckable(true); song->blockSignals(true); heartBeatTimer = new QTimer(this); @@ -1698,7 +1700,6 @@ void MusE::kbAccel(int key) } } else if (key == shortcuts[SHRT_STOP].key) { - //song->setPlay(false); song->setStop(true); } else if (key == shortcuts[SHRT_PLAY_SONG].key ) { diff --git a/muse/muse/song.cpp b/muse/muse/song.cpp index 888c4fe2..0f90625b 100644 --- a/muse/muse/song.cpp +++ b/muse/muse/song.cpp @@ -430,8 +430,10 @@ void Song::setMasterFlag(bool val) void Song::setPlay(bool f) { // only allow the user to set the button "on" - if (!f) + if (!f) { + printf(" setPlay checked\n"); muse->playAction->setChecked(true); + } else { if (recordAction->isChecked()) { startUndo(); |