diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-11-19 09:45:38 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-11-19 09:45:38 +0000 |
| commit | 1e12d4279bb187339b38d850db58f7345a9bfdd7 (patch) | |
| tree | b9c0a76087abaa407c199799c5d9fb3af6d1841c /src/ui/playlistselector.h | |
| parent | 3a0093c1f8baa2959e3247d819674e1bbd7aaefa (diff) | |
| download | qmmp-1e12d4279bb187339b38d850db58f7345a9bfdd7.tar.gz qmmp-1e12d4279bb187339b38d850db58f7345a9bfdd7.tar.bz2 qmmp-1e12d4279bb187339b38d850db58f7345a9bfdd7.zip | |
playlist selector: added scrolling
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1382 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/playlistselector.h')
| -rw-r--r-- | src/ui/playlistselector.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ui/playlistselector.h b/src/ui/playlistselector.h index 159a09996..8f54860af 100644 --- a/src/ui/playlistselector.h +++ b/src/ui/playlistselector.h @@ -23,6 +23,7 @@ #include <QWidget> #include <QColor> +#include <QPixmap> class QFontMetrics; class QFont; @@ -48,15 +49,24 @@ private slots: private: void paintEvent(QPaintEvent *); void mousePressEvent ( QMouseEvent *e); + void resizeEvent (QResizeEvent *); void updateOffsets(); void loadColors(); + void drawButtons(); + void updateScrollers(); + int firstVisible(); + int lastVisible(); PlayListManager *m_pl_manager; QFontMetrics *m_metrics; QFont m_font; bool m_update; + bool m_scrollable; QList <QRect> m_rects; Skin *m_skin; QColor m_normal, m_current, m_normal_bg, m_selected_bg; + QPixmap m_pixmap; + bool m_showButtons; + int m_offset, m_offset_max; }; #endif // PLAYLISTSELECTOR_H |
