Ignore:
Timestamp:
Aug 31, 2016, 5:31:04 PM (9 years ago)
Author:
Silvan Scherrer
Message:

smplayer: update trunk to version 16.8.0

Location:
smplayer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk

  • smplayer/trunk/src/widgetactions.h

    r176 r181  
    127127
    128128public:
    129         TimeLabelAction( QWidget * parent );
     129        enum TimeLabelType { CurrentTime = 0, TotalTime = 1, CurrentAndTotalTime = 2, RemainingTime = 3 };
     130
     131        TimeLabelAction(TimeLabelType type, QWidget * parent );
    130132        ~TimeLabelAction();
    131133
    132         virtual QString text() { return _text; };
     134        virtual QString text() { return current_text; };
    133135
    134136public slots:
    135137        virtual void setText(QString s);
     138        virtual void setCurrentTime(double);
     139        virtual void setTotalTime(double);
    136140
    137141signals:
     
    140144protected:
    141145        virtual QWidget * createWidget ( QWidget * parent );
     146        virtual void updateText();
    142147
    143148private:
    144         QString _text;
     149        QString current_text;
     150        double current_time, total_time;
     151        TimeLabelType label_type;
    145152};
    146153
Note: See TracChangeset for help on using the changeset viewer.