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

connect signal/Slot

parent 7d1ff526
Pipeline #195611 passed with stage
in 5 minutes and 13 seconds
......@@ -46,7 +46,6 @@
#include <MailCommon/MailUtil>
#include <MailCommon/SearchRuleStatus>
#include <MessageComposer/MDNWarningWidgetJob>
#include <MessageViewer/MDNWarningWidget>
#include "collectionpage/collectionmailinglistpage.h"
#include "collectionpage/collectionquotapage.h"
......@@ -1055,6 +1054,7 @@ void KMMainWidget::createWidgets()
connect(mMsgView->viewer(), &MessageViewer::Viewer::replyMessageTo, this, &KMMainWidget::slotReplyMessageTo);
connect(mMsgView->viewer(), &MessageViewer::Viewer::showStatusBarMessage, this, &KMMainWidget::setShowStatusBarMessage);
connect(mMsgView->viewer(), &MessageViewer::Viewer::zoomChanged, this, &KMMainWidget::setZoomChanged);
connect(mMsgView->viewer()->mdnWarning(), &MessageViewer::MDNWarningWidget::sendResponse, this, &KMMainWidget::slotSendMdnResponse);
if (mShowIntroductionAction) {
mShowIntroductionAction->setEnabled(true);
}
......@@ -1184,6 +1184,11 @@ void KMMainWidget::createWidgets()
connect(kmkernel->folderCollectionMonitor(), &Monitor::collectionStatisticsChanged, this, &KMMainWidget::slotCollectionStatisticsChanged);
}
void KMMainWidget::slotSendMdnResponse(MessageViewer::MDNWarningWidget::ResponseType type)
{
// TODO
}
void KMMainWidget::updateMoveAction(const Akonadi::CollectionStatistics &statistic)
{
const bool hasUnreadMails = (statistic.unreadCount() > 0);
......
......@@ -14,6 +14,7 @@
#include "kmreaderwin.h" //for inline actions
#include <MailCommon/FolderTreeWidget>
#include <MessageViewer/MDNWarningWidget>
#include "messageactions.h"
#include <Akonadi/StandardMailActionManager>
......@@ -514,6 +515,7 @@ private Q_SLOTS:
void slotReplyMessageTo(const KMime::Message::Ptr &message, bool replyToAll);
private:
void slotSendMdnResponse(MessageViewer::MDNWarningWidget::ResponseType type);
void slotSetFocusToViewer();
void deleteSelectedMessages(bool confirmDelete); // completely delete message
bool showSearchDialog();
......
Supports Markdown
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