/***************************************************************************
- * 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 *
#ifndef ADDITIONALINFODIALOG_H
#define ADDITIONALINFODIALOG_H
-#include <kdialog.h>
-#include <kfileitemdelegate.h>
+#include <QDialog>
+#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
+class AdditionalInfoDialog : public QDialog
{
Q_OBJECT
public:
- explicit AdditionalInfoDialog(QWidget* parent, KFileItemDelegate::InformationList info);
+ AdditionalInfoDialog(QWidget* parent, const QList<QByteArray>& visibleRoles);
virtual ~AdditionalInfoDialog();
- KFileItemDelegate::InformationList additionalInfo() const;
+ QList<QByteArray> visibleRoles() const;
-private slots:
- void slotOk();
+public slots:
+ void accept() Q_DECL_OVERRIDE;
private:
- KFileItemDelegate::InformationList m_info;
- QCheckBox* m_size;
- QCheckBox* m_date;
- QCheckBox* m_permissions;
- QCheckBox* m_owner;
- QCheckBox* m_group;
- QCheckBox* m_type;
+ QList<QByteArray> m_visibleRoles;
+ QListWidget* m_listWidget;
};
#endif