Commit b2a2bdd8 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add KUserFeedback::NotificationPopup

parent 35193f98
...@@ -193,6 +193,11 @@ ...@@ -193,6 +193,11 @@
#include <MessageViewer/DKIMWidgetInfo> #include <MessageViewer/DKIMWidgetInfo>
#include <MessageViewer/DKIMViewerMenu> #include <MessageViewer/DKIMViewerMenu>
#ifdef WITH_KUSERFEEDBACK
#include <KUserFeedback/NotificationPopup>
#include <KUserFeedback/Provider>
#endif
using namespace KMime; using namespace KMime;
using namespace Akonadi; using namespace Akonadi;
...@@ -230,6 +235,12 @@ KMMainWidget::KMMainWidget(QWidget *parent, KXMLGUIClient *aGUIClient, KActionCo ...@@ -230,6 +235,12 @@ KMMainWidget::KMMainWidget(QWidget *parent, KXMLGUIClient *aGUIClient, KActionCo
mVacationManager = new KSieveUi::VacationManager(mSievePasswordProvider, this); mVacationManager = new KSieveUi::VacationManager(mSievePasswordProvider, this);
connect(mVacationManager, &KSieveUi::VacationManager::updateVacationScriptStatus, this, qOverload<bool, const QString &>(&KMMainWidget::updateVacationScriptStatus)); connect(mVacationManager, &KSieveUi::VacationManager::updateVacationScriptStatus, this, qOverload<bool, const QString &>(&KMMainWidget::updateVacationScriptStatus));
#ifdef WITH_KUSERFEEDBACK
mUserFeedBackNotificationPopup = new KUserFeedback::NotificationPopup(this);
mUserFeedBackNotificationPopup->setFeedbackProvider(kmkernel->userFeedbackProvider());
#endif
mToolbarActionSeparator = new QAction(this); mToolbarActionSeparator = new QAction(this);
mToolbarActionSeparator->setSeparator(true); mToolbarActionSeparator->setSeparator(true);
......
...@@ -37,6 +37,12 @@ ...@@ -37,6 +37,12 @@
#include <AkonadiCore/tag.h> #include <AkonadiCore/tag.h>
#include <MessageList/View> #include <MessageList/View>
#ifdef WITH_KUSERFEEDBACK
namespace KUserFeedback {
class NotificationPopup;
}
#endif
namespace MailTransport { namespace MailTransport {
class Transport; class Transport;
} }
...@@ -642,6 +648,9 @@ private: ...@@ -642,6 +648,9 @@ private:
Akonadi::Collection mCurrentCollection; Akonadi::Collection mCurrentCollection;
QStatusBar *mCurrentStatusBar = nullptr; QStatusBar *mCurrentStatusBar = nullptr;
ZoomLabelWidget *mZoomLabelIndicator = nullptr; ZoomLabelWidget *mZoomLabelIndicator = nullptr;
#ifdef WITH_KUSERFEEDBACK
KUserFeedback::NotificationPopup *mUserFeedBackNotificationPopup = nullptr;
#endif
}; };
#endif #endif
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