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

const'ify

parent cdc0ef48
......@@ -38,6 +38,9 @@ using namespace std::chrono_literals;
KMMainWin::KMMainWin(QWidget *)
: KXmlGuiWindow(nullptr)
, mProgressBar(new KPIM::ProgressStatusBarWidget(statusBar(), this))
, mMessageLabel(new QLabel(i18n("Starting...")))
{
setObjectName(QStringLiteral("kmail-mainwindow#"));
// Set this to be the group leader for all subdialogs - this means
......@@ -216,8 +219,6 @@ void KMMainWin::slotUpdateGui()
void KMMainWin::setupStatusBar()
{
/* Create a progress dialog and hide it. */
mProgressBar = new KPIM::ProgressStatusBarWidget(statusBar(), this);
mMessageLabel = new QLabel(i18n("Starting..."));
mMessageLabel->setAlignment(Qt::AlignLeft | Qt::AlignVCenter);
statusBar()->addWidget(mMessageLabel);
......
......@@ -58,10 +58,10 @@ private:
void updateHamburgerMenu();
void slotShortcutSaved();
void slotFullScreen(bool t);
KPIM::ProgressStatusBarWidget *mProgressBar = nullptr;
KPIM::ProgressStatusBarWidget *const mProgressBar;
KMMainWidget *mKMMainWidget = nullptr;
KToggleAction *mShowMenuBarAction = nullptr;
QLabel *mMessageLabel = nullptr;
QLabel *const mMessageLabel;
KHamburgerMenu *mHamburgerMenu = nullptr;
KToggleFullScreenAction *mShowFullScreenAction = nullptr;
bool mReallyClose = false;
......
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