From 8b6b8eba5ecd95826cf07071f8f63a97d34796a8 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Fri, 4 Jul 2008 08:39:23 +0000 Subject: improved text scroller git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@435 90c681e8-e032-0410-971d-27865f9a5e38 --- src/ui/textscroller.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'src/ui/textscroller.h') 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 +#include /** @author Ilya Kotov */ 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 -- cgit v1.2.3-13-gbd6f