Commit f4fa86f2 authored by Scott Wheeler's avatar Scott Wheeler

Changed FileListItem to require a FileList as it's parent (in the

constructors).

svn path=/trunk/kdemultimedia/juk/; revision=157152
parent f9ebd182
......@@ -18,18 +18,19 @@
#include <kdebug.h>
#include "filelistitem.h"
#include "filelist.h"
////////////////////////////////////////////////////////////////////////////////
// public methods
////////////////////////////////////////////////////////////////////////////////
FileListItem::FileListItem(QFileInfo &file, KListView *parent) : QObject(parent), KListViewItem(parent)
FileListItem::FileListItem(QFileInfo &file, FileList *parent) : QObject(parent), KListViewItem(parent)
{
data = new FileListItemData(file);
refresh();
}
FileListItem::FileListItem(FileListItem &item, KListView *parent) : QObject(parent), KListViewItem(parent)
FileListItem::FileListItem(FileListItem &item, FileList *parent) : QObject(parent), KListViewItem(parent)
{
data = item.getData()->newUser();
// connect(&item, SIGNAL(destroyed(FileListItem *)), this, SLOT(parentDestroyed(FileListItem *)));
......
......@@ -27,14 +27,16 @@
#include "audiodata.h"
#include "filelistitemdata.h"
class FileList;
class FileListItem : public QObject, public KListViewItem {
Q_OBJECT
public:
enum ColumnType { TrackColumn = 0, ArtistColumn = 1, AlbumColumn = 2, TrackNumberColumn = 3,
GenreColumn = 4, YearColumn = 5, LengthColumn = 6, FileNameColumn = 7 };
FileListItem(QFileInfo &file, KListView *parent);
FileListItem(FileListItem &item, KListView *parent);
FileListItem(QFileInfo &file, FileList *parent);
FileListItem(FileListItem &item, FileList *parent);
~FileListItem();
FileListItemData *getData();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment