/***************************************************************************
- * Copyright (C) 2007 by Peter Penz (peter.penz@gmx.at) *
+ * Copyright (C) 2007-2012 by Peter Penz <peter.penz19@gmail.com> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
#define ADDITIONALINFODIALOG_H
#include <KDialog>
-#include <KFileItemDelegate>
#include <QList>
+#include <QListWidget>
class QCheckBox;
/**
- * @brief Dialog for changing the additional information properties of a directory.
+ * @brief Dialog for changing the additional information shown in the view.
*/
class AdditionalInfoDialog : public KDialog
{
Q_OBJECT
public:
- AdditionalInfoDialog(QWidget* parent, KFileItemDelegate::InformationList infoList);
+ AdditionalInfoDialog(QWidget* parent, const QList<QByteArray>& visibleRoles);
virtual ~AdditionalInfoDialog();
- KFileItemDelegate::InformationList informationList() const;
+ QList<QByteArray> visibleRoles() const;
private slots:
void slotOk();
private:
- KFileItemDelegate::InformationList m_infoList;
- QList<QCheckBox*> m_checkBoxes;
+ QList<QByteArray> m_visibleRoles;
+ QListWidget* m_listWidget;
};
#endif