diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2015-02-15 17:22:04 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2015-02-15 17:22:04 +0000 |
| commit | 631f5b826ce2547fa55a22133e95f232a03c4b3f (patch) | |
| tree | 90a0f5ffa6b1f3fa5c655c171bf31bddb2080c18 /src/plugins/Ui/skinned/listwidget.h | |
| parent | 14be2d439ed0bf0b3d1389bc6b9174808606974c (diff) | |
| download | qmmp-631f5b826ce2547fa55a22133e95f232a03c4b3f.tar.gz qmmp-631f5b826ce2547fa55a22133e95f232a03c4b3f.tar.bz2 qmmp-631f5b826ce2547fa55a22133e95f232a03c4b3f.zip | |
moved drawing functions to separate class
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@4725 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Ui/skinned/listwidget.h')
| -rw-r--r-- | src/plugins/Ui/skinned/listwidget.h | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/src/plugins/Ui/skinned/listwidget.h b/src/plugins/Ui/skinned/listwidget.h index bb6ddcc4c..79967e944 100644 --- a/src/plugins/Ui/skinned/listwidget.h +++ b/src/plugins/Ui/skinned/listwidget.h @@ -24,6 +24,7 @@ #include <QDir> #include <QContextMenuEvent> #include <QPen> +#include "listwidgetdrawer.h" class QFont; class QFontMetrics; @@ -97,27 +98,10 @@ private slots: void scrollToCurrent(); private: - struct ListWidgetRow - { - QString title; - QString length; - QString extraString; - int number; - bool separator; - bool selected; - bool current; - //geometry - int bgY; //top of the background - int textY; //base line of the text - }; enum ScrollDirection { NONE = 0,TOP,DOWN }; - - void drawBackground(QPainter *painter, int i); - void drawSeparator(QPainter *painter, ListWidgetRow *row, bool rtl); - void drawTrack(QPainter *painter, ListWidgetRow *row, bool rtl); void loadColors(); /*! * Returns string with queue number or(and) repeate flag for the item number \b i. @@ -151,6 +135,7 @@ private: QmmpUiSettings *m_ui_settings; PlayListPopup::PopupWidget *m_popupWidget; QTimer *m_timer; + ListWidgetDrawer m_drawer; }; #endif |
