Ignore:
Timestamp:
May 3, 2016, 5:25:45 PM (9 years ago)
Author:
Silvan Scherrer
Message:

smplayer: update trunk to version 16.4

Location:
smplayer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk

  • smplayer/trunk/src/timeslider.h

    r170 r176  
    11/*  smplayer, GUI front-end for mplayer.
    2     Copyright (C) 2006-2014 Ricardo Villalba <rvm@users.sourceforge.net>
     2    Copyright (C) 2006-2016 Ricardo Villalba <rvm@users.sourceforge.net>
    33
    44    This program is free software; you can redistribute it and/or modify
     
    1717*/
    1818
    19 #ifndef _TIMESLIDER_H_
    20 #define _TIMESLIDER_H_
     19#ifndef TIMESLIDER_H
     20#define TIMESLIDER_H
    2121
    2222#include "myslider.h"
     
    3434        virtual void setPos(int); // Don't use setValue!
    3535        virtual int pos();
     36        virtual void setDuration(double t) { total_time = t; };
     37        virtual double duration() { return total_time; };
    3638#if ENABLE_DELAYED_DRAGGING
    3739        void setDragDelay(int);
     
    5961#endif
    6062
     63protected:
    6164        virtual void wheelEvent(QWheelEvent * e);
     65        virtual bool event(QEvent *event);
    6266
    6367private:
    6468        bool dont_update;
    6569        int position;
    66        
     70        double total_time;
     71
    6772#if ENABLE_DELAYED_DRAGGING
    6873        int last_pos_to_send;
Note: See TracChangeset for help on using the changeset viewer.