From 30e11dd37f98c78193d5768c634931865821af10 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 19 Feb 2011 07:30:54 +0000 Subject: added position tracking git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2062 90c681e8-e032-0410-971d-27865f9a5e38 --- src/ui/mainwindow.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/ui/mainwindow.cpp') 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) -- cgit v1.2.3-13-gbd6f