aboutsummaryrefslogtreecommitdiff
path: root/src/ui/textscroller.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2008-07-04 08:39:23 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2008-07-04 08:39:23 +0000
commit8b6b8eba5ecd95826cf07071f8f63a97d34796a8 (patch)
tree32f05e7275b52588e5ba1dd17b69826520ce88e2 /src/ui/textscroller.h
parent8cc55a4feeb218f0362a97eec3b1a3e43b6263c4 (diff)
downloadqmmp-8b6b8eba5ecd95826cf07071f8f63a97d34796a8.tar.gz
qmmp-8b6b8eba5ecd95826cf07071f8f63a97d34796a8.tar.bz2
qmmp-8b6b8eba5ecd95826cf07071f8f63a97d34796a8.zip
improved text scroller
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@435 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/textscroller.h')
-rw-r--r--src/ui/textscroller.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/ui/textscroller.h b/src/ui/textscroller.h
index 67a4079db..bab7b5998 100644
--- a/src/ui/textscroller.h
+++ b/src/ui/textscroller.h
@@ -20,17 +20,18 @@
#ifndef TEXTSCROLLER_H
#define TEXTSCROLLER_H
-#include <pixmapwidget.h>
+#include <QWidget>
/**
@author Ilya Kotov <forkotov02@hotmail.ru>
*/
class QTimer;
+class QMenu;
class Skin;
-class TextScroller : public PixmapWidget
+class TextScroller : public QWidget
{
Q_OBJECT
public:
@@ -49,10 +50,13 @@ public slots:
private slots:
void addOffset();
void updateSkin();
+ void setAutoscroll(bool);
protected:
- void hideEvent ( QHideEvent *);
- void showEvent ( QShowEvent *);
+ void hideEvent (QHideEvent *);
+ void showEvent (QShowEvent *);
+ void paintEvent (QPaintEvent *);
+ void mousePressEvent (QMouseEvent *);
private:
bool m_update;
@@ -62,9 +66,13 @@ private:
QFont m_font;
QFontMetrics *m_metrics;
QString m_text;
+ QString m_scrollText;
Skin *m_skin;
QColor m_color;
QTimer *m_timer;
+ int m_progress;
+ bool m_autoscroll;
+ QMenu *m_menu;
};
#endif