Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

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

Move code in .cpp file

parent 36c63fd5
......@@ -4271,6 +4271,46 @@ QSharedPointer<FolderSettings> KMMainWidget::currentFolder() const
return mCurrentFolderSettings;
}
QAction *KMMainWidget::action(const QString &name)
{
return mActionCollection->action(name);
}
KActionMenu *KMMainWidget::filterMenu() const
{
return mFilterMenu;
}
KActionMenu *KMMainWidget::mailingListActionMenu() const
{
return mMsgActions->mailingListActionMenu();
}
QAction *KMMainWidget::editAction() const
{
return mMsgActions->editAction();
}
QAction *KMMainWidget::sendAgainAction() const
{
return mSendAgainAction;
}
QAction *KMMainWidget::sendQueuedAction() const
{
return mSendQueued;
}
KActionMenuTransport *KMMainWidget::sendQueueViaMenu() const
{
return mSendActionMenu;
}
KMail::MessageActions *KMMainWidget::messageActions() const
{
return mMsgActions;
}
//-----------------------------------------------------------------------------
QString KMMainWidget::overrideEncoding() const
{
......@@ -4358,6 +4398,16 @@ void KMMainWidget::updateVacationScriptStatus()
updateVacationScriptStatus(mVacationIndicatorActive);
}
FolderTreeView *KMMainWidget::folderTreeView() const
{
return mFolderTreeWidget->folderTreeView();
}
KXMLGUIClient *KMMainWidget::guiClient() const
{
return mGUIClient;
}
KMail::TagActionManager *KMMainWidget::tagActionManager() const
{
return mTagActionManager;
......
......@@ -125,45 +125,21 @@ public:
QSharedPointer<MailCommon::FolderSettings> currentFolder() const;
static void cleanup();
QAction *action(const QString &name)
{
return mActionCollection->action(name);
}
KActionMenu *filterMenu() const
{
return mFilterMenu;
}
KActionMenu *mailingListActionMenu() const
{
return mMsgActions->mailingListActionMenu();
}
QAction *editAction() const
{
return mMsgActions->editAction();
}
QAction *sendAgainAction() const
{
return mSendAgainAction;
}
QAction *sendQueuedAction() const
{
return mSendQueued;
}
KActionMenuTransport *sendQueueViaMenu() const
{
return mSendActionMenu;
}
KMail::MessageActions *messageActions() const
{
return mMsgActions;
}
QAction *action(const QString &name);
KActionMenu *filterMenu() const;
KActionMenu *mailingListActionMenu() const;
QAction *editAction() const;
QAction *sendAgainAction() const;
QAction *sendQueuedAction() const;
KActionMenuTransport *sendQueueViaMenu() const;
KMail::MessageActions *messageActions() const;
/**
Returns a list of all KMMainWidgets. Warning, the list itself can be 0.
......@@ -174,16 +150,10 @@ public:
QWidget *vacationScriptIndicator() const;
void updateVacationScriptStatus();
MailCommon::FolderTreeView *folderTreeView() const
{
return mFolderTreeWidget->folderTreeView();
}
MailCommon::FolderTreeView *folderTreeView() const;
/** Returns the XML GUI client. */
KXMLGUIClient *guiClient() const
{
return mGUIClient;
}
KXMLGUIClient *guiClient() const;
KMail::TagActionManager *tagActionManager() const;
......@@ -653,8 +623,8 @@ private:
MailCommon::FolderTreeWidget *mFolderTreeWidget = nullptr;
KMail::VacationScriptIndicatorWidget *mVacationScriptIndicator = nullptr;
bool mVacationIndicatorActive;
bool mGoToFirstUnreadMessageInSelectedFolder;
bool mVacationIndicatorActive = false;
bool mGoToFirstUnreadMessageInSelectedFolder = false;
MessageList::Core::PreSelectionMode mPreSelectionMode;
QTimer mCheckMailTimer;
......
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