Changeset 163 for smplayer/vendor/current/src/timedialog.cpp
- Timestamp:
- May 15, 2014, 7:53:54 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/src/timedialog.cpp
r140 r163 1 1 /* smplayer, GUI front-end for mplayer. 2 Copyright (C) 2006-201 3Ricardo Villalba <rvm@users.sourceforge.net>2 Copyright (C) 2006-2014 Ricardo Villalba <rvm@users.sourceforge.net> 3 3 4 4 This program is free software; you can redistribute it and/or modify … … 31 31 32 32 void TimeDialog::setTime(int seconds) { 33 QTime t ;33 QTime t(0,0); 34 34 time_edit->setTime(t.addSecs(seconds)); 35 35 } 36 36 37 37 int TimeDialog::time() { 38 QTime t ;38 QTime t(0,0); 39 39 return t.secsTo(time_edit->time()); 40 40 } 41 41 42 42 void TimeDialog::setMaximumTime( int seconds ) { 43 QTime t ;43 QTime t(0,0); 44 44 time_edit->setMaximumTime(t.addSecs(seconds)); 45 45 } 46 46 47 47 int TimeDialog::maximumTime() { 48 QTime t ;48 QTime t(0,0); 49 49 return t.secsTo(time_edit->maximumTime()); 50 50 }
Note:
See TracChangeset
for help on using the changeset viewer.