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

const'ify pointer

parent 6db7c0d6
Pipeline #193153 passed with stage
in 5 minutes and 14 seconds
......@@ -28,6 +28,7 @@
K_PLUGIN_CLASS_WITH_JSON(KCMKMailSummary, "kcmkmailsummary.json")
KCMKMailSummary::KCMKMailSummary(QWidget *parent, const QVariantList &args)
: KCModule(parent, args)
, mFullPath(new QCheckBox(i18n("Show full path for folders"), this))
{
initGUI();
......@@ -59,7 +60,6 @@ void KCMKMailSummary::initGUI()
mCheckedCollectionWidget = new PimCommon::CheckedCollectionWidget(KMime::Message::mimeType());
mFullPath = new QCheckBox(i18n("Show full path for folders"), this);
mFullPath->setToolTip(i18nc("@info:tooltip", "Show full path for each folder"));
mFullPath->setWhatsThis(i18nc("@info:whatsthis",
"Enable this option if you want to see the full path "
......
......@@ -42,6 +42,6 @@ private:
void storeFolders();
PimCommon::CheckedCollectionWidget *mCheckedCollectionWidget = nullptr;
QCheckBox *mFullPath = nullptr;
QCheckBox *const mFullPath;
KViewStateMaintainer<Akonadi::ETMViewStateSaver> *mModelState = nullptr;
};
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