~ubuntu-branches/debian/sid/smplayer/sid

« back to all changes in this revision

Viewing changes to src/seekwidget.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Breuil Cyril
  • Date: 2007-06-24 16:35:29 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070624163529-hhckbmd24uicada7
Tags: 0.5.20-0ubuntu1
* New upstream release
* Change Maintainer Email

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
}
32
32
 
33
33
void SeekWidget::setTime(int secs) {
34
 
        /*
35
 
        int m = (int) secs / 60;
36
 
        int s = secs - (m*60);
37
 
 
38
 
        minutes->setValue(m);
39
 
        seconds->setValue(s);
40
 
        */
41
34
        QTime t;
42
35
        time_edit->setTime(t.addSecs(secs));
43
36
}
44
37
 
45
38
int SeekWidget::time() const {
46
 
        /*
47
 
        return (minutes->value() * 60) + seconds->value();
48
 
        */
49
39
        QTime t = time_edit->time();
50
40
        return (t.minute() * 60) + t.second();
51
41
}