implemented playlist contents interactive dragging

This commit is contained in:
Brian Hrebec 2010-05-25 20:13:14 -05:00
parent b4e5959f2d
commit 714d629752
4 changed files with 113 additions and 3 deletions

View file

@ -26,6 +26,7 @@ class PlaylistModel;
#include <QAbstractItemDelegate>
#include <QListView>
#include <QPointer>
#include <QSet>
class QWidget;
class QModelIndex;
@ -69,9 +70,11 @@ class PlaylistView : public QListView {
void settingsChanged (void);
void setPixmaps (Skin *skin);
void currentPosChanged (QModelIndex);
void entryMoved(QModelIndex, QModelIndex);
protected:
void mouseDoubleClickEvent (QMouseEvent *event);
void mouseMoveEvent (QMouseEvent *event);
protected slots:
void selectionChanged (const QItemSelection &, const QItemSelection &);
@ -85,6 +88,9 @@ class PlaylistView : public QListView {
QColor m_color_normal;
QColor m_color_normal_bg;
QPointer<EntryInfo> m_entry_info;
QSet<int> m_old_selection;
int m_old_current_index;
};