From 6925380098f9de4841534db7e8285ba0c18c2ca2 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Tue, 18 Mar 2008 11:47:14 +0000 Subject: 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 --- src/ui/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ui/mainwindow.cpp') 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; -- cgit v1.2.3-13-gbd6f