Commit 52043359 authored by Laurent Montel's avatar Laurent Montel 😁

Add specific interface

parent 96b0e478
......@@ -55,6 +55,12 @@ CustomToolsWidgetNg::~CustomToolsWidgetNg()
delete d;
}
void CustomToolsWidgetNg::addCustomToolViewInterface(PimCommon::CustomToolsViewInterface *plugin)
{
d->mListInterfaceView.append(plugin);
d->mStackedWidget->addWidget(plugin);
}
void CustomToolsWidgetNg::initializeView(KActionCollection *ac, const QVector<CustomToolsPlugin *> &localPluginsList)
{
for (CustomToolsPlugin *plugin : localPluginsList) {
......
......@@ -26,6 +26,7 @@ class KActionCollection;
namespace PimCommon {
class CustomToolsWidgetNgPrivate;
class CustomToolsPlugin;
class CustomToolsViewInterface;
class PIMCOMMON_EXPORT CustomToolsWidgetNg : public QWidget
{
Q_OBJECT
......@@ -38,6 +39,8 @@ public:
void setText(const QString &text);
void addCustomToolViewInterface(PimCommon::CustomToolsViewInterface *plugin);
public Q_SLOTS:
void slotToolsWasClosed();
void slotActivateView(QWidget *w);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment