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

Add KUserFeedback::NotificationPopup

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