aboutsummaryrefslogtreecommitdiff
path: root/src/ui/mainwindow.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2008-03-18 11:47:14 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2008-03-18 11:47:14 +0000
commit6925380098f9de4841534db7e8285ba0c18c2ca2 (patch)
treea29374713c232d31b49afead88707f924e8c9f76 /src/ui/mainwindow.cpp
parent625b2712c1c9fa46ba43684a24a477aa60d88089 (diff)
downloadqmmp-6925380098f9de4841534db7e8285ba0c18c2ca2.tar.gz
qmmp-6925380098f9de4841534db7e8285ba0c18c2ca2.tar.bz2
qmmp-6925380098f9de4841534db7e8285ba0c18c2ca2.zip
make seek and time accessible by general plugins
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@278 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/mainwindow.cpp')
-rw-r--r--src/ui/mainwindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp
index 46bf23c65..64996785e 100644
--- a/src/ui/mainwindow.cpp
+++ b/src/ui/mainwindow.cpp
@@ -146,6 +146,7 @@ MainWindow::MainWindow(const QStringList& args,CommandLineOptionManager* option_
connect(m_generalHandler, SIGNAL(previousCalled()), SLOT(previous()));
connect(m_generalHandler, SIGNAL(stopCalled()), SLOT(stop()));
connect(m_generalHandler, SIGNAL(pauseCalled()), SLOT(pause()));
+ connect(m_generalHandler, SIGNAL(seekCalled(int)), SLOT(seek(int)));
connect(m_generalHandler, SIGNAL(toggleVisibilityCalled()), SLOT(toggleVisibility()));
connect(m_generalHandler, SIGNAL(exitCalled()), SLOT(close()));
connect(m_generalHandler, SIGNAL(volumeChanged(int, int)),
@@ -324,6 +325,7 @@ void MainWindow::showOutputState(const OutputState &st)
case OutputState::Playing:
{
m_generalHandler->setState(General::Playing);
+ m_generalHandler->setTime(st.elapsedSeconds());
if (m_playListModel->currentItem())
{
SongInfo info;