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
Kontact
Commits
f32877d2
Commit
f32877d2
authored
Aug 11, 2021
by
Laurent Montel
😁
Browse files
Use KSharedConfig::openStateConfig here too
parent
f5cb1a94
Pipeline
#74307
passed with stage
in 4 minutes and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/kontactconfiguredialog.cpp
View file @
f32877d2
...
...
@@ -14,7 +14,10 @@
#include <QPushButton>
using
namespace
Kontact
;
namespace
{
static
const
char
myKontactConfigureDialogConfigGroupName
[]
=
"KontactConfigureDialog"
;
}
KontactConfigureDialog
::
KontactConfigureDialog
(
QWidget
*
parent
)
:
KontactSettingsDialog
(
parent
)
{
...
...
@@ -25,7 +28,7 @@ KontactConfigureDialog::KontactConfigureDialog(QWidget *parent)
KontactConfigureDialog
::~
KontactConfigureDialog
()
{
KConfigGroup
group
(
KSharedConfig
::
openConfig
(),
"
KontactConfigureDialog
"
);
KConfigGroup
group
(
KSharedConfig
::
open
State
Config
(),
my
KontactConfigureDialog
ConfigGroupName
);
group
.
writeEntry
(
"width"
,
width
());
group
.
writeEntry
(
"height"
,
height
());
}
...
...
@@ -70,7 +73,7 @@ void KontactConfigureDialog::slotOk()
QSize
KontactConfigureDialog
::
sizeHint
()
const
{
KConfigGroup
group
(
KSharedConfig
::
openConfig
(),
"
KontactConfigureDialog
"
);
KConfigGroup
group
(
KSharedConfig
::
open
State
Config
(),
my
KontactConfigureDialog
ConfigGroupName
);
const
int
width
=
group
.
readEntry
(
"width"
,
800
);
const
int
height
=
group
.
readEntry
(
"height"
,
600
);
return
QSize
(
width
,
height
);
...
...
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