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

add const

parent 7e4f1386
Pipeline #26063 failed with stage
in 4 minutes and 47 seconds
......@@ -36,9 +36,11 @@ public:
ComposerPrivate(Composer *qq)
: JobBasePrivate(qq)
{
qDebug() << " ComposerPrivate(Composer *qq)" << this;
Please register or sign in to reply
}
~ComposerPrivate()
{
qDebug() << " ~ComposerPrivate() " << this;
//delete skeletonMessage;
}
......@@ -437,11 +439,13 @@ Composer::Composer(QObject *parent)
: JobBase(*new ComposerPrivate(this), parent)
{
Q_D(Composer);
qDebug() << " Composer::Composer(QObject *parent) " << this;
d->init();
}
Composer::~Composer()
{
qDebug() << "Composer::~Composer() " << this;
}
QVector<KMime::Message::Ptr> Composer::resultMessages() const
......
......@@ -1190,6 +1190,7 @@ void ComposerViewBase::slotAutoSaveComposeResult(KJob *job)
Q_EMIT failed(i18n("Could not autosave message: %1", job->errorString()), AutoSave);
}
qDebug() << " REMOVE ComposerViewBase::slotAutoSaveComposeResult " << this << " composer " << composer;
m_composers.removeAll(composer);
}
......@@ -1236,6 +1237,8 @@ void ComposerViewBase::writeAutoSaveToDisk(const KMime::Message::Ptr &message)
m_autoSaveErrorShown = false;
}
file.commit();
message->clear();
}
void ComposerViewBase::saveMessage(const KMime::Message::Ptr &message, MessageComposer::MessageSender::SaveIn saveIn)
......
......@@ -35,7 +35,7 @@ public:
QHash<QString, MessageViewer::HeaderStyleInterface *> lstInterface;
QActionGroup *group = nullptr;
KActionMenu *headerMenu = nullptr;
HeaderStyleMenuManager *q = nullptr;
HeaderStyleMenuManager *const q = nullptr;
};
void HeaderStyleMenuManagerPrivate::setPluginName(const QString &pluginName)
......
......@@ -34,7 +34,7 @@ public:
QList<MessageViewer::ViewerPluginInterface *> mListInterface;
KActionCollection *mActionCollection = nullptr;
QWidget *mParentWidget = nullptr;
ViewerPluginToolManager *q = nullptr;
ViewerPluginToolManager *const q = nullptr;
void setPluginDirectory(const QString &directory);
};
......
......@@ -59,7 +59,7 @@ public:
QWebEngineView *mWebEngine = nullptr;
AccessKeyState mAccessKeyActivated = NotActivated;
KActionCollection *mActionCollection = nullptr;
WebEngineAccessKey *q = nullptr;
WebEngineAccessKey *const q = nullptr;
};
static QString linkElementKey(const WebEngineViewer::WebEngineAccessKeyAnchor &element, const QUrl &baseUrl)
......
......@@ -30,7 +30,7 @@ public:
QAction *mZoomOutAction = nullptr;
QAction *mZoomResetAction = nullptr;
KActionCollection *mActionCollection = nullptr;
KActionMenu *q = nullptr;
KActionMenu *const q = nullptr;
};
ZoomActionMenu::ZoomActionMenu(QObject *parent)
......
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