summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-28 05:09:20 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-28 05:09:20 (GMT)
commite1f296ccc08fad51434c83146b37d274ae375d30 (patch)
tree0cbd914b489f4c343ec06fbb1370a3b0eb54d54d
parentc11988bb7c86643cba28db4e52c7aeb8f757dd55 (diff)
Use ViewerPluginExternalScriptInfo
-rw-r--r--plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternaleditdialog.cpp5
-rw-r--r--plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternaleditdialog.h4
-rw-r--r--plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternaleditwidget.cpp5
-rw-r--r--plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternaleditwidget.h2
4 files changed, 16 insertions, 0 deletions
diff --git a/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternaleditdialog.cpp b/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternaleditdialog.cpp
index 0ba561b..2f17ec4 100644
--- a/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternaleditdialog.cpp
+++ b/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternaleditdialog.cpp
@@ -40,3 +40,8 @@ ViewerPluginExternalEditDialog::~ViewerPluginExternalEditDialog()
{
}
+
+void ViewerPluginExternalEditDialog::setScriptInfo(const ViewerPluginExternalScriptInfo &info)
+{
+ mEditWidget->setScriptInfo(info);
+}
diff --git a/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternaleditdialog.h b/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternaleditdialog.h
index 307fae8..d402299 100644
--- a/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternaleditdialog.h
+++ b/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternaleditdialog.h
@@ -23,6 +23,8 @@
#include <QDialog>
+#include "../viewerpluginexternalscriptinfo.h"
+
class ViewerPluginExternalEditWidget;
class ViewerPluginExternalEditDialog : public QDialog
{
@@ -30,6 +32,8 @@ class ViewerPluginExternalEditDialog : public QDialog
public:
explicit ViewerPluginExternalEditDialog(QWidget *parent = Q_NULLPTR);
~ViewerPluginExternalEditDialog();
+
+ void setScriptInfo(const ViewerPluginExternalScriptInfo &info);
private:
ViewerPluginExternalEditWidget *mEditWidget;
};
diff --git a/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternaleditwidget.cpp b/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternaleditwidget.cpp
index ef105c6..f19186e 100644
--- a/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternaleditwidget.cpp
+++ b/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternaleditwidget.cpp
@@ -35,3 +35,8 @@ ViewerPluginExternalEditWidget::~ViewerPluginExternalEditWidget()
{
}
+
+void ViewerPluginExternalEditWidget::setScriptInfo(const ViewerPluginExternalScriptInfo &info)
+{
+ //TODO
+}
diff --git a/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternaleditwidget.h b/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternaleditwidget.h
index 2408350..86370e3 100644
--- a/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternaleditwidget.h
+++ b/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternaleditwidget.h
@@ -22,6 +22,7 @@
#define VIEWERPLUGINEXTERNALEDITWIDGET_H
#include <QWidget>
+#include "../viewerpluginexternalscriptinfo.h"
class ViewerPluginExternalEditWidget : public QWidget
{
@@ -29,6 +30,7 @@ class ViewerPluginExternalEditWidget : public QWidget
public:
explicit ViewerPluginExternalEditWidget(QWidget *parent = Q_NULLPTR);
~ViewerPluginExternalEditWidget();
+ void setScriptInfo(const ViewerPluginExternalScriptInfo &info);
};
#endif // VIEWERPLUGINEXTERNALEDITWIDGET_H