aboutsummaryrefslogtreecommitdiff
path: root/src/ui/timeindicator.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-03-05 15:31:21 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-03-05 15:31:21 +0000
commit6f2cb48f2aefdea338d59111fd9f80440b6c1dc1 (patch)
tree0ff5ca4190ceb058964b8e34f22c667c88e63e0a /src/ui/timeindicator.h
parentd0175f9a6b22c72642d43819ce873d03be3f455f (diff)
downloadqmmp-6f2cb48f2aefdea338d59111fd9f80440b6c1dc1.tar.gz
qmmp-6f2cb48f2aefdea338d59111fd9f80440b6c1dc1.tar.bz2
qmmp-6f2cb48f2aefdea338d59111fd9f80440b6c1dc1.zip
fixed time indicator blinking
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@821 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/timeindicator.h')
-rw-r--r--src/ui/timeindicator.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ui/timeindicator.h b/src/ui/timeindicator.h
index 19981a4b3..f5608b21c 100644
--- a/src/ui/timeindicator.h
+++ b/src/ui/timeindicator.h
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2006 by Ilya Kotov *
+ * Copyright (C) 2006-2009 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -23,6 +23,7 @@
#include <pixmapwidget.h>
class QMouseEvent;
+class QTimer;
class Skin;
@@ -42,15 +43,18 @@ public:
void setTime ( int t );
void setSongDuration(int);
void setNeedToShowTime(bool);
+
protected:
virtual void mousePressEvent(QMouseEvent*);
virtual void mouseMoveEvent(QMouseEvent*);
virtual void mouseReleaseEvent(QMouseEvent*);
void writeSettings();
void readSettings();
- void reset();
+
private slots:
void updateSkin();
+ void reset();
+
private:
QPixmap m_pixmap;
Skin *m_skin;
@@ -58,6 +62,7 @@ private:
int m_songDuration;
bool m_elapsed;
bool m_needToShowTime;
+ QTimer *m_timer;
};
#endif