summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-27 11:49:02 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-27 12:01:27 (GMT)
commit051ebcf4d1924920dc652400b2a7c7d6c9e22d3c (patch)
tree7cb028a9fcd81c0404cb138210bf95ea8b005c5e
parent9165d7fa382b0f1b888f79e413f843beece50289 (diff)
Fill list
-rw-r--r--plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternalconfigurewidget.cpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternalconfigurewidget.cpp b/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternalconfigurewidget.cpp
index a098624..d579c4f 100644
--- a/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternalconfigurewidget.cpp
+++ b/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternalconfigurewidget.cpp
@@ -97,19 +97,12 @@ void ViewerPluginExternalConfigureWidget::fillScriptInfo(const QVector<ViewerPlu
{
Q_FOREACH (const ViewerPluginExternalScriptInfo &script, scriptInfos) {
QListWidgetItem *item = new QListWidgetItem(mListExternal);
-/*
- FileName = Qt::UserRole + 1,
- ReadOnly = Qt::UserRole + 2,
- CommandName = Qt::UserRole + 3,
- Executable = Qt::UserRole + 4,
- IconName = Qt::UserRole + 5,
- */
item->setData(ReadOnly, script.isReadOnly());
-
- //item->setData(FileName, script.);
+ item->setData(FileName, script.fileName());
+ item->setData(CommandName, script.commandLine());
+ item->setData(Executable, script.executable());
+ item->setData(IconName, script.icon());
}
-
- //TODO
}
void ViewerPluginExternalConfigureWidget::save()