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
PIM IncidenceEditor
Commits
95fe8d3e
Commit
95fe8d3e
authored
Oct 03, 2022
by
Laurent Montel
Browse files
Use namespace for dialog name
parent
2d1b3e66
Pipeline
#240954
passed with stage
in 3 minutes and 57 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/incidencedialog.cpp
View file @
95fe8d3e
...
...
@@ -51,7 +51,10 @@
#include
<QWindow>
using
namespace
IncidenceEditorNG
;
namespace
{
static
const
char
myIncidenceDialogConfigGroupName
[]
=
"IncidenceDialog"
;
}
namespace
IncidenceEditorNG
{
enum
Tabs
{
GeneralTab
=
0
,
AttendeesTab
,
ResourcesTab
,
AlarmsTab
,
RecurrenceTab
,
AttachmentsTab
};
...
...
@@ -704,7 +707,7 @@ IncidenceDialog::~IncidenceDialog()
void
IncidenceDialog
::
writeConfig
()
{
KConfigGroup
group
(
KSharedConfig
::
openStateConfig
(),
"
IncidenceDialog
"
);
KConfigGroup
group
(
KSharedConfig
::
openStateConfig
(),
my
IncidenceDialog
ConfigGroupName
);
KWindowConfig
::
saveWindowSize
(
windowHandle
(),
group
);
}
...
...
@@ -712,7 +715,7 @@ void IncidenceDialog::readConfig()
{
create
();
// ensure a window is created
windowHandle
()
->
resize
(
QSize
(
500
,
500
));
KConfigGroup
group
(
KSharedConfig
::
openStateConfig
(),
"
IncidenceDialog
"
);
KConfigGroup
group
(
KSharedConfig
::
openStateConfig
(),
my
IncidenceDialog
ConfigGroupName
);
KWindowConfig
::
restoreWindowSize
(
windowHandle
(),
group
);
resize
(
windowHandle
()
->
size
());
// workaround for QTBUG-40584
}
...
...
src/resourcemanagement.cpp
View file @
95fe8d3e
...
...
@@ -29,7 +29,10 @@
#include
<QWindow>
using
namespace
IncidenceEditorNG
;
namespace
{
static
const
char
myResourceManagementConfigGroupName
[]
=
"ResourceManagement"
;
}
class
FreebusyViewCalendar
:
public
EventViews
::
ViewCalendar
{
public:
...
...
@@ -150,14 +153,14 @@ void ResourceManagement::readConfig()
{
create
();
// ensure a window is created
windowHandle
()
->
resize
(
QSize
(
600
,
400
));
KConfigGroup
group
(
KSharedConfig
::
openStateConfig
(),
"
ResourceManagement
"
);
KConfigGroup
group
(
KSharedConfig
::
openStateConfig
(),
my
ResourceManagement
ConfigGroupName
);
KWindowConfig
::
restoreWindowSize
(
windowHandle
(),
group
);
resize
(
windowHandle
()
->
size
());
// workaround for QTBUG-40584
}
void
ResourceManagement
::
writeConfig
()
{
KConfigGroup
group
(
KSharedConfig
::
openStateConfig
(),
"
ResourceManagement
"
);
KConfigGroup
group
(
KSharedConfig
::
openStateConfig
(),
my
ResourceManagement
ConfigGroupName
);
KWindowConfig
::
saveWindowSize
(
windowHandle
(),
group
);
group
.
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