added a small fileinfo dialog to the playlistwidget

This commit is contained in:
Thomas Frauendorfer 2008-02-14 20:21:13 +01:00
parent 0369b3aa37
commit 8dc34b1759
9 changed files with 406 additions and 6 deletions

View file

@ -19,12 +19,15 @@
//include "Playlist.h"
#include <xmmsclient/xmmsclient++.h>
#include <entryinfo.h>
class Skin;
#include <QObject>
#include <QAbstractItemDelegate>
#include <QListView>
#include <QPointer>
class QWidget;
class QModelIndex;
class PlaylistDelegate : public QAbstractItemDelegate {
Q_OBJECT
@ -57,12 +60,16 @@ class PlaylistView : public QListView {
void invertSelection (void);
void cropSelected (void);
void removeSelected (void);
void showEntryInfo (void);
void settingsSaved (void);
void setPixmaps (Skin *skin);
protected:
void mouseDoubleClickEvent (QMouseEvent *event);
private slots:
void on_item_clicked (QModelIndex index);
private:
Xmms::Playback::Status m_status;
QFont *m_font;
@ -71,6 +78,7 @@ class PlaylistView : public QListView {
QColor m_color_selected;
QColor m_color_normal;
QColor m_color_normal_bg;
QPointer<EntryInfo> m_entry_info;
};