Commit 6590093b authored by Scott Wheeler's avatar Scott Wheeler

Changed FileListItem to be derived from KListViewItem instead of

QListViewItem.

svn path=/trunk/kdemultimedia/juk/; revision=141943
parent 74f7f010
......@@ -33,13 +33,13 @@ FileList::FileList(QWidget *parent = 0, const char *name = 0) : KListView(parent
setup();
}
FileList::FileList(QString item, QWidget *parent = 0, const char *name = 0)
FileList::FileList(QString item, QWidget *parent = 0, const char *name = 0) : KListView(parent, name)
{
setup();
append(item);
}
FileList::FileList(QStringList *items, QWidget *parent = 0, const char *name = 0)
FileList::FileList(QStringList *items, QWidget *parent = 0, const char *name = 0) : KListView(parent, name)
{
setup();
append(items);
......@@ -114,7 +114,7 @@ void FileList::appendImpl(QString item)
}
else {
// QFileInfo::extension() doesn't always work, so I'm getting old-school on this.
QString extension=file->filePath().right(file->filePath().length() - (file->filePath().findRev(".")+1));
QString extension=file->filePath().right(file->filePath().length() - (file->filePath().findRev(".") + 1));
if(extensions.contains(extension) > 0 && members.contains(file->absFilePath()) == 0) {
members.append(file->absFilePath());
(void) new FileListItem(file, this);
......
......@@ -19,7 +19,7 @@
#include "filelistitem.h"
FileListItem::FileListItem(QFileInfo *file, QListView *parent) : QListViewItem(parent)
FileListItem::FileListItem(QFileInfo *file, KListView *parent) : KListViewItem(parent)
{
header = 0;
fileInfo = file;
......
......@@ -18,15 +18,15 @@
#ifndef FILELISTITEM_H
#define FILELISTITEM_H
#include <qlistview.h>
#include <klistview.h>
#include <qfileinfo.h>
#include "tag.h"
#include "MPEGHeader.h"
class FileListItem : public QListViewItem {
class FileListItem : public KListViewItem {
public:
FileListItem(QFileInfo *file, QListView *parent);
FileListItem(QFileInfo *file, KListView *parent);
~FileListItem();
QFileInfo *getFileInfo();
......
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