aboutsummaryrefslogtreecommitdiff
path: root/src/ui/mainwindow.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2011-02-19 07:30:54 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2011-02-19 07:30:54 +0000
commit30e11dd37f98c78193d5768c634931865821af10 (patch)
tree2091503c63750f738be7b830a8be586ad7f9b1c7 /src/ui/mainwindow.cpp
parent37f66aa3c4e031812b0c2a415f07c661d8ee13aa (diff)
downloadqmmp-30e11dd37f98c78193d5768c634931865821af10.tar.gz
qmmp-30e11dd37f98c78193d5768c634931865821af10.tar.bz2
qmmp-30e11dd37f98c78193d5768c634931865821af10.zip
added position tracking
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2062 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/mainwindow.cpp')
-rw-r--r--src/ui/mainwindow.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp
index d2d68f943..2a4c967b0 100644
--- a/src/ui/mainwindow.cpp
+++ b/src/ui/mainwindow.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2006-2010 by Ilya Kotov *
+ * Copyright (C) 2006-2011 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -152,19 +152,14 @@ void MainWindow::replay()
play();
}
-void MainWindow::seek(qint64 pos)
-{
- m_core->seek(pos);
-}
-
void MainWindow::forward()
{
- seek(m_core->elapsed() + KEY_OFFSET);
+ m_core->seek(m_core->elapsed() + KEY_OFFSET);
}
void MainWindow::backward()
{
- seek(qMax(qint64(0), m_core->elapsed() - KEY_OFFSET));
+ m_core->seek(qMax(qint64(0), m_core->elapsed() - KEY_OFFSET));
}
void MainWindow::setVolume(int volume, int balance)