aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Ui/skinned/playlistheader.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2015-03-08 20:13:36 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2015-03-08 20:13:36 +0000
commit03afd18b5d80871c1fee4c6b57ba22a7a1886970 (patch)
tree53a4e19a2407097196a06826485e898324710544 /src/plugins/Ui/skinned/playlistheader.h
parent9e4946702bde29f2f8bd59b0770cd34fae2b85d6 (diff)
downloadqmmp-03afd18b5d80871c1fee4c6b57ba22a7a1886970.tar.gz
qmmp-03afd18b5d80871c1fee4c6b57ba22a7a1886970.tar.bz2
qmmp-03afd18b5d80871c1fee4c6b57ba22a7a1886970.zip
added feature to move columns
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@4769 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Ui/skinned/playlistheader.h')
-rw-r--r--src/plugins/Ui/skinned/playlistheader.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/plugins/Ui/skinned/playlistheader.h b/src/plugins/Ui/skinned/playlistheader.h
index ccb75e282..f1f145706 100644
--- a/src/plugins/Ui/skinned/playlistheader.h
+++ b/src/plugins/Ui/skinned/playlistheader.h
@@ -51,7 +51,7 @@ private slots:
private:
void mousePressEvent(QMouseEvent *e);
- void mouseReleaseEvent(QMouseEvent *e);
+ void mouseReleaseEvent(QMouseEvent *);
void mouseMoveEvent(QMouseEvent *e);
void resizeEvent(QResizeEvent *);
void paintEvent(QPaintEvent *);
@@ -62,7 +62,7 @@ private:
QFontMetrics *m_metrics;
QFont m_font;
bool m_scrollable;
- QColor m_normal, m_selected_bg;
+ QColor m_normal, m_normal_bg, m_selected_bg, m_current;
bool m_show_number;
bool m_align_numbres;
int m_number_width;
@@ -70,9 +70,17 @@ private:
QList <QRect> m_rects;
QStringList m_names;
QPoint m_pressed_pos;
- int m_pressed_index;
- int m_size;
- bool m_resize;
+ int m_pressed_column;
+ int m_old_size;
+ QPoint m_mouse_pos;
+ int m_press_offset;
+
+ enum
+ {
+ NO_TASK = -1,
+ RESIZE,
+ MOVE
+ } m_task;
};