Changeset 176 for smplayer/trunk/src/timeslider.h
- Timestamp:
- May 3, 2016, 5:25:45 PM (9 years ago)
- Location:
- smplayer/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/trunk
- Property svn:mergeinfo changed
/smplayer/vendor/current merged: 175
- Property svn:mergeinfo changed
-
smplayer/trunk/src/timeslider.h
r170 r176 1 1 /* smplayer, GUI front-end for mplayer. 2 Copyright (C) 2006-201 4Ricardo Villalba <rvm@users.sourceforge.net>2 Copyright (C) 2006-2016 Ricardo Villalba <rvm@users.sourceforge.net> 3 3 4 4 This program is free software; you can redistribute it and/or modify … … 17 17 */ 18 18 19 #ifndef _TIMESLIDER_H_20 #define _TIMESLIDER_H_19 #ifndef TIMESLIDER_H 20 #define TIMESLIDER_H 21 21 22 22 #include "myslider.h" … … 34 34 virtual void setPos(int); // Don't use setValue! 35 35 virtual int pos(); 36 virtual void setDuration(double t) { total_time = t; }; 37 virtual double duration() { return total_time; }; 36 38 #if ENABLE_DELAYED_DRAGGING 37 39 void setDragDelay(int); … … 59 61 #endif 60 62 63 protected: 61 64 virtual void wheelEvent(QWheelEvent * e); 65 virtual bool event(QEvent *event); 62 66 63 67 private: 64 68 bool dont_update; 65 69 int position; 66 70 double total_time; 71 67 72 #if ENABLE_DELAYED_DRAGGING 68 73 int last_pos_to_send;
Note:
See TracChangeset
for help on using the changeset viewer.