Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KDE PIM Runtime
Commits
c6f11746
Commit
c6f11746
authored
Apr 18, 2021
by
Laurent Montel
Browse files
GIT_SILENT: Use KSharedConfig::openStateConfig for storing window size
parent
2eca2d11
Pipeline
#58551
failed with stage
in 24 minutes and 31 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
resources/dav/resource/configdialog.cpp
View file @
c6f11746
...
...
@@ -86,7 +86,7 @@ ConfigDialog::~ConfigDialog()
void
ConfigDialog
::
readConfig
()
{
KConfigGroup
grp
(
KSharedConfig
::
openConfig
(),
"ConfigDialog"
);
KConfigGroup
grp
(
KSharedConfig
::
open
State
Config
(),
"ConfigDialog"
);
const
QSize
size
=
grp
.
readEntry
(
"Size"
,
QSize
(
300
,
200
));
if
(
size
.
isValid
())
{
resize
(
size
);
...
...
@@ -95,7 +95,7 @@ void ConfigDialog::readConfig()
void
ConfigDialog
::
writeConfig
()
{
KConfigGroup
grp
(
KSharedConfig
::
openConfig
(),
"ConfigDialog"
);
KConfigGroup
grp
(
KSharedConfig
::
open
State
Config
(),
"ConfigDialog"
);
grp
.
writeEntry
(
"Size"
,
size
());
grp
.
sync
();
}
...
...
resources/dav/resource/urlconfigurationdialog.cpp
View file @
c6f11746
...
...
@@ -67,7 +67,7 @@ UrlConfigurationDialog::~UrlConfigurationDialog()
void
UrlConfigurationDialog
::
readConfig
()
{
KConfigGroup
grp
(
KSharedConfig
::
openConfig
(),
"UrlConfigurationDialog"
);
KConfigGroup
grp
(
KSharedConfig
::
open
State
Config
(),
"UrlConfigurationDialog"
);
const
QSize
size
=
grp
.
readEntry
(
"Size"
,
QSize
(
300
,
200
));
if
(
size
.
isValid
())
{
resize
(
size
);
...
...
@@ -76,7 +76,7 @@ void UrlConfigurationDialog::readConfig()
void
UrlConfigurationDialog
::
writeConfig
()
{
KConfigGroup
grp
(
KSharedConfig
::
openConfig
(),
"UrlConfigurationDialog"
);
KConfigGroup
grp
(
KSharedConfig
::
open
State
Config
(),
"UrlConfigurationDialog"
);
grp
.
writeEntry
(
"Size"
,
size
());
grp
.
sync
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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