Commit 7f97a20e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Initialize it

parent 4587e365
...@@ -58,11 +58,21 @@ ...@@ -58,11 +58,21 @@
#include <dialog/pimdataexporterconfiguredialog.h> #include <dialog/pimdataexporterconfiguredialog.h>
#ifdef WITH_KUSERFEEDBACK
#include "userfeedback/userfeedbackmanager.h"
#include <KUserFeedback/NotificationPopup>
#include <KUserFeedback/Provider>
#endif
PimDataExporterWindow::PimDataExporterWindow(QWidget *parent) PimDataExporterWindow::PimDataExporterWindow(QWidget *parent)
: KXmlGuiWindow(parent) : KXmlGuiWindow(parent)
{ {
//Initialize filtermanager //Initialize filtermanager
(void)MailCommon::FilterManager::instance(); (void)MailCommon::FilterManager::instance();
#ifdef WITH_KUSERFEEDBACK
//Initialize
(void)UserFeedBackManager::self();
#endif
PimDataExporterKernel *kernel = new PimDataExporterKernel(this); PimDataExporterKernel *kernel = new PimDataExporterKernel(this);
CommonKernel->registerKernelIf(kernel); //register KernelIf early, it is used by the Filter classes CommonKernel->registerKernelIf(kernel); //register KernelIf early, it is used by the Filter classes
CommonKernel->registerSettingsIf(kernel); //SettingsIf is used in FolderTreeWidget CommonKernel->registerSettingsIf(kernel); //SettingsIf is used in FolderTreeWidget
...@@ -76,6 +86,10 @@ PimDataExporterWindow::PimDataExporterWindow(QWidget *parent) ...@@ -76,6 +86,10 @@ PimDataExporterWindow::PimDataExporterWindow(QWidget *parent)
Akonadi::ControlGui::widgetNeedsAkonadi(this); Akonadi::ControlGui::widgetNeedsAkonadi(this);
statusBar()->hide(); statusBar()->hide();
mTrayIcon = new PimDataTrayIcon(this); mTrayIcon = new PimDataTrayIcon(this);
#ifdef WITH_KUSERFEEDBACK
KUserFeedback::NotificationPopup *userFeedBackNotificationPopup = new KUserFeedback::NotificationPopup(this);
userFeedBackNotificationPopup->setFeedbackProvider(UserFeedBackManager::self()->userFeedbackProvider());
#endif
} }
PimDataExporterWindow::~PimDataExporterWindow() PimDataExporterWindow::~PimDataExporterWindow()
......
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