summaryrefslogtreecommitdiffstats
path: root/archiveview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'archiveview.cpp')
-rw-r--r--archiveview.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/archiveview.cpp b/archiveview.cpp
index 9ca131d..27aacc9 100644
--- a/archiveview.cpp
+++ b/archiveview.cpp
@@ -406,30 +406,6 @@ bool ArchiveProxy::filterAcceptsRow(int sourceRow, const QModelIndex &sourcePare
ArchiveFilesProxy::ArchiveFilesProxy(QObject *parent) : QSortFilterProxyModel(parent) {}
-/* Delegate for file type */
-
-FileTypeDelegate::FileTypeDelegate(QObject *parent) : QStyledItemDelegate(parent){
- mFiletypeMap = SmGlobals::instance()->filetypeMap();
-}
-
-QString FileTypeDelegate::displayText(const QVariant &value, const QLocale &locale) const{
- Q_UNUSED(locale);
- int type = value.toInt();
- QString retval = mFiletypeMap.value(type);
- if(!retval.isEmpty()){
- return retval;
- }
- return tr("n/a");
-}
-
-QWidget *FileTypeDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const{
- Q_UNUSED(option);
- Q_UNUSED(index);
- QComboBox *retval = new QComboBox(parent);
- retval->addItems(mFiletypeMap.values());
- return retval;
-}
-
/* Mapping Editor Widget */
MappingEditorWidget::MappingEditorWidget(const QString &caption, QWidget *parent) : QWidget(parent), mCaption(caption){