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
PIM Messagelib
Commits
e5330ea1
Commit
e5330ea1
authored
Aug 11, 2021
by
Laurent Montel
😁
Browse files
Use KSharedConfig::openStateConfig for size only
parent
25ee01bd
Pipeline
#74259
passed with stage
in 41 minutes and 32 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
messagecomposer/src/recipient/distributionlistdialog.cpp
View file @
e5330ea1
...
...
@@ -332,7 +332,7 @@ void DistributionListDialog::slotTitleChanged(const QString &text)
void
DistributionListDialog
::
readConfig
()
{
KSharedConfig
::
Ptr
cfg
=
KSharedConfig
::
openConfig
();
KSharedConfig
::
Ptr
cfg
=
KSharedConfig
::
open
State
Config
();
KConfigGroup
group
(
cfg
,
"DistributionListDialog"
);
const
QSize
size
=
group
.
readEntry
(
"Size"
,
QSize
());
if
(
!
size
.
isEmpty
())
{
...
...
@@ -343,7 +343,7 @@ void DistributionListDialog::readConfig()
void
DistributionListDialog
::
writeConfig
()
{
KSharedConfig
::
Ptr
cfg
=
KSharedConfig
::
openConfig
();
KSharedConfig
::
Ptr
cfg
=
KSharedConfig
::
open
State
Config
();
KConfigGroup
group
(
cfg
,
"DistributionListDialog"
);
group
.
writeEntry
(
"Size"
,
size
());
group
.
writeEntry
(
"Header"
,
mRecipientsList
->
header
()
->
saveState
());
...
...
messagecomposer/src/recipient/recipientspicker.cpp
View file @
e5330ea1
...
...
@@ -182,7 +182,7 @@ void RecipientsPicker::keyPressEvent(QKeyEvent *event)
void
RecipientsPicker
::
readConfig
()
{
KSharedConfig
::
Ptr
cfg
=
KSharedConfig
::
openConfig
();
KSharedConfig
::
Ptr
cfg
=
KSharedConfig
::
open
State
Config
();
KConfigGroup
group
(
cfg
,
"RecipientsPicker"
);
QSize
size
=
group
.
readEntry
(
"Size"
,
QSize
());
if
(
!
size
.
isEmpty
())
{
...
...
@@ -192,7 +192,7 @@ void RecipientsPicker::readConfig()
void
RecipientsPicker
::
writeConfig
()
{
KSharedConfig
::
Ptr
cfg
=
KSharedConfig
::
openConfig
();
KSharedConfig
::
Ptr
cfg
=
KSharedConfig
::
open
State
Config
();
KConfigGroup
group
(
cfg
,
"RecipientsPicker"
);
group
.
writeEntry
(
"Size"
,
size
());
}
...
...
messageviewer/src/viewer/mimeparttree/mimeparttreeview.cpp
View file @
e5330ea1
...
...
@@ -48,13 +48,13 @@ MimeTreeModel *MimePartTreeView::mimePartModel() const
void
MimePartTreeView
::
restoreMimePartTreeConfig
()
{
KConfigGroup
grp
(
KSharedConfig
::
openConfig
(),
myMimePartTreeViewConfigGroupName
);
KConfigGroup
grp
(
KSharedConfig
::
open
State
Config
(),
myMimePartTreeViewConfigGroupName
);
header
()
->
restoreState
(
grp
.
readEntry
(
"State"
,
QByteArray
()));
}
void
MimePartTreeView
::
saveMimePartTreeConfig
()
{
KConfigGroup
grp
(
KSharedConfig
::
openConfig
(),
myMimePartTreeViewConfigGroupName
);
KConfigGroup
grp
(
KSharedConfig
::
open
State
Config
(),
myMimePartTreeViewConfigGroupName
);
grp
.
writeEntry
(
"State"
,
header
()
->
saveState
());
}
...
...
Write
Preview
Supports
Markdown
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