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
KDE PIM Runtime
Commits
e7cab602
Commit
e7cab602
authored
Jul 11, 2021
by
Carl Schwan
🚴
Browse files
Port maildir account configuration to QFormLayout
Also fix memory leaks
parent
4362214b
Pipeline
#74138
failed with stage
in 26 minutes and 22 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
resources/folderarchivesettings/folderarchivesettingpage.cpp
View file @
e7cab602
...
...
@@ -18,9 +18,8 @@
#include
<QDBusConnectionInterface>
#include
<QDBusInterface>
#include
<QDBusReply>
#include
<Q
HBox
Layout>
#include
<Q
Form
Layout>
#include
<QLabel>
#include
<QVBoxLayout>
FolderArchiveComboBox
::
FolderArchiveComboBox
(
QWidget
*
parent
)
:
QComboBox
(
parent
)
...
...
@@ -58,28 +57,17 @@ FolderArchiveSettingPage::FolderArchiveSettingPage(const QString &instanceName,
:
QWidget
(
parent
)
,
mInstanceName
(
instanceName
)
{
auto
lay
=
new
Q
VBox
Layout
(
this
);
mEnabled
=
new
QCheckBox
(
i18n
(
"Enable"
));
auto
lay
=
new
Q
Form
Layout
(
this
);
mEnabled
=
new
QCheckBox
(
i18n
(
"Enable"
)
,
this
);
connect
(
mEnabled
,
&
QCheckBox
::
toggled
,
this
,
&
FolderArchiveSettingPage
::
slotEnableChanged
);
lay
->
add
Widget
(
mEnabled
);
lay
->
add
Row
(
QString
(),
mEnabled
);
auto
hbox
=
new
QHBoxLayout
;
auto
lab
=
new
QLabel
(
i18nc
(
"@label:chooser for the folder that messages will be archived under"
,
"Archive into:"
));
hbox
->
addWidget
(
lab
);
mArchiveFolder
=
new
Akonadi
::
CollectionRequester
(
this
);
mArchiveFolder
->
setMimeTypeFilter
(
QStringList
()
<<
KMime
::
Message
::
mimeType
());
hbox
->
addWidget
(
mArchiveFolder
);
lay
->
addLayout
(
hbox
);
lay
->
addRow
(
i18nc
(
"@label:chooser for the folder that messages will be archived under"
,
"Archive into:"
),
mArchiveFolder
);
hbox
=
new
QHBoxLayout
;
lab
=
new
QLabel
(
i18nc
(
"@label:listbox"
,
"Archive folder name:"
));
hbox
->
addWidget
(
lab
);
mArchiveNamed
=
new
FolderArchiveComboBox
;
hbox
->
addWidget
(
mArchiveNamed
);
lay
->
addLayout
(
hbox
);
lay
->
addStretch
();
mArchiveNamed
=
new
FolderArchiveComboBox
(
this
);
lay
->
addRow
(
i18nc
(
"@label:listbox"
,
"Archive folder name:"
),
mArchiveNamed
);
}
FolderArchiveSettingPage
::~
FolderArchiveSettingPage
()
...
...
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