Commit 09d2386e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Const'ify pointer

parent d441daa6
Pipeline #59691 passed with stage
in 22 minutes and 24 seconds
......@@ -32,7 +32,7 @@ public:
void moveFailed(const QString &msg);
void moveDone();
FolderArchiveCache *folderArchiveCache() const;
Q_REQUIRED_RESULT FolderArchiveCache *folderArchiveCache() const;
void reloadConfig();
public Q_SLOTS:
......@@ -44,7 +44,7 @@ private:
void slotFetchParentCollection(KJob *job);
void slotFetchCollection(KJob *job);
FolderArchiveAccountInfo *infoFromInstanceName(const QString &instanceName) const;
Q_REQUIRED_RESULT FolderArchiveAccountInfo *infoFromInstanceName(const QString &instanceName) const;
void nextJob();
void removeInfo(const QString &instanceName);
QQueue<FolderArchiveAgentJob *> mJobQueue;
......
......@@ -38,6 +38,8 @@ using namespace MessageViewer;
using namespace KMail;
XFaceConfigurator::XFaceConfigurator(QWidget *parent)
: QWidget(parent)
, mEnableCheck(new QCheckBox(i18n("&Send picture with every message"), this))
, mXFaceLabel(new QLabel(this))
{
auto vlay = new QVBoxLayout(this);
vlay->setObjectName(QStringLiteral("main layout"));
......@@ -45,14 +47,12 @@ XFaceConfigurator::XFaceConfigurator(QWidget *parent)
vlay->addLayout(hlay);
// "enable X-Face" checkbox:
mEnableCheck = new QCheckBox(i18n("&Send picture with every message"), this);
mEnableCheck->setWhatsThis(
i18n("Check this box if you want KMail to add a so-called X-Face header to messages "
"written with this identity. An X-Face is a small (48x48 pixels) black and "
"white image that some mail clients are able to display."));
hlay->addWidget(mEnableCheck, Qt::AlignLeft | Qt::AlignVCenter);
mXFaceLabel = new QLabel(this);
mXFaceLabel->setWhatsThis(i18n("This is a preview of the picture selected/entered below."));
mXFaceLabel->setFixedSize(48, 48);
mXFaceLabel->setFrameShape(QFrame::Box);
......
......@@ -45,9 +45,9 @@ private:
void slotDelayedSelectFromAddressbook(KJob *);
void slotUpdateXFace();
QCheckBox *mEnableCheck = nullptr;
QCheckBox *const mEnableCheck;
KPIMTextEdit::PlainTextEditorWidget *mTextEdit = nullptr;
QLabel *mXFaceLabel = nullptr;
QLabel *const mXFaceLabel;
};
} // namespace KMail
......@@ -58,13 +58,13 @@ using namespace KMail;
MessageActions::MessageActions(KActionCollection *ac, QWidget *parent)
: QObject(parent)
, mParent(parent)
, mReplyActionMenu(new KActionMenu(QIcon::fromTheme(QStringLiteral("mail-reply-sender")), i18nc("Message->", "&Reply"), this))
, mReplyAction(new QAction(QIcon::fromTheme(QStringLiteral("mail-reply-sender")), i18n("&Reply..."), this))
, mWebShortcutMenuManager(new KIO::KUriFilterSearchProviderActions(this))
{
mReplyActionMenu = new KActionMenu(QIcon::fromTheme(QStringLiteral("mail-reply-sender")), i18nc("Message->", "&Reply"), this);
ac->addAction(QStringLiteral("message_reply_menu"), mReplyActionMenu);
connect(mReplyActionMenu, &KActionMenu::triggered, this, &MessageActions::slotReplyToMsg);
mReplyAction = new QAction(QIcon::fromTheme(QStringLiteral("mail-reply-sender")), i18n("&Reply..."), this);
ac->addAction(QStringLiteral("reply"), mReplyAction);
ac->setDefaultShortcut(mReplyAction, Qt::Key_R);
connect(mReplyAction, &QAction::triggered, this, &MessageActions::slotReplyToMsg);
......
......@@ -148,8 +148,8 @@ private:
QWidget *const mParent;
KMReaderWin *mMessageView = nullptr;
KActionMenu *mReplyActionMenu = nullptr;
QAction *mReplyAction = nullptr;
KActionMenu *const mReplyActionMenu;
QAction *const mReplyAction;
QAction *mReplyAllAction = nullptr;
QAction *mReplyAuthorAction = nullptr;
QAction *mReplyListAction = nullptr;
......
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