Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KMail
Commits
da271c47
Commit
da271c47
authored
Dec 03, 2021
by
Laurent Montel
😁
Browse files
Const(ify pointer
parent
f5f605f0
Pipeline
#104717
passed with stage
in 3 minutes and 50 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/kmmainwidget.cpp
View file @
da271c47
...
...
@@ -198,26 +198,19 @@ static KMMainWidget *myMainWidget = nullptr;
//-----------------------------------------------------------------------------
KMMainWidget
::
KMMainWidget
(
QWidget
*
parent
,
KXMLGUIClient
*
aGUIClient
,
KActionCollection
*
actionCollection
,
const
KSharedConfig
::
Ptr
&
config
)
:
QWidget
(
parent
)
,
mToolbarActionSeparator
(
new
QAction
(
this
))
,
mSievePasswordProvider
(
new
KMSieveImapPasswordProvider
(
this
))
,
mLaunchExternalComponent
(
new
KMLaunchExternalComponent
(
this
,
this
))
,
mManageShowCollectionProperties
(
new
ManageShowCollectionProperties
(
this
,
this
))
,
mCollectionSwitcherTreeViewManager
(
new
CollectionSwitcherTreeViewManager
(
this
))
{
// must be the first line of the constructor:
mStartupDone
=
false
;
mWasEverShown
=
false
;
mReaderWindowActive
=
true
;
mReaderWindowBelow
=
true
;
mFolderHtmlLoadExtPreference
=
false
;
mDestructed
=
false
;
mActionCollection
=
actionCollection
;
mTopLayout
=
new
QVBoxLayout
(
this
);
mTopLayout
->
setContentsMargins
({});
mConfig
=
config
;
mGUIClient
=
aGUIClient
;
mFolderTreeWidget
=
nullptr
;
Akonadi
::
ControlGui
::
widgetNeedsAkonadi
(
this
);
mFavoritesModel
=
nullptr
;
mSievePasswordProvider
=
new
KMSieveImapPasswordProvider
(
this
);
mVacationManager
=
new
KSieveUi
::
VacationManager
(
mSievePasswordProvider
,
this
);
connect
(
mVacationManager
,
&
KSieveUi
::
VacationManager
::
updateVacationScriptStatus
,
...
...
@@ -229,7 +222,6 @@ KMMainWidget::KMMainWidget(QWidget *parent, KXMLGUIClient *aGUIClient, KActionCo
userFeedBackNotificationPopup
->
setFeedbackProvider
(
kmkernel
->
userFeedbackProvider
());
#endif
mToolbarActionSeparator
=
new
QAction
(
this
);
mToolbarActionSeparator
->
setSeparator
(
true
);
KMailPluginInterface
::
self
()
->
setActionCollection
(
mActionCollection
);
...
...
src/kmmainwidget.h
View file @
da271c47
...
...
@@ -585,8 +585,8 @@ private:
bool
mHtmlGlobalSetting
=
false
;
bool
mHtmlLoadExtGlobalSetting
=
false
;
bool
mFolderHtmlLoadExtPreference
=
false
;
bool
mReaderWindowActive
=
fals
e
;
bool
mReaderWindowBelow
=
fals
e
;
bool
mReaderWindowActive
=
tru
e
;
bool
mReaderWindowBelow
=
tru
e
;
bool
mEnableFavoriteFolderView
=
false
;
bool
mEnableFolderQuickSearch
=
false
;
...
...
@@ -604,7 +604,7 @@ private:
KSieveUi
::
VacationManager
*
mVacationManager
=
nullptr
;
KActionCollection
*
mActionCollection
=
nullptr
;
QAction
*
mToolbarActionSeparator
=
nullptr
;
QAction
*
const
mToolbarActionSeparator
;
QVBoxLayout
*
mTopLayout
=
nullptr
;
bool
mDestructed
=
false
;
QList
<
QAction
*>
mFilterMenuActions
;
...
...
@@ -632,7 +632,7 @@ private:
QTimer
mCheckMailTimer
;
KSieveUi
::
SieveImapPasswordProvider
*
mSievePasswordProvider
=
nullptr
;
KSieveUi
::
SieveImapPasswordProvider
*
const
mSievePasswordProvider
;
QPointer
<
MailCommon
::
FolderSelectionDialog
>
mMoveOrCopyToDialog
;
QPointer
<
MailCommon
::
FolderSelectionDialog
>
mSelectFromAllFoldersDialog
;
QAction
*
mServerSideSubscription
=
nullptr
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment