Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
KDE PIM Add-ons
Commits
47295e05
Commit
47295e05
authored
Oct 05, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use QGroupBox
parent
6a02c254
Pipeline
#36485
failed with stage
in 62 minutes and 56 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
10 deletions
+17
-10
plugins/messageviewerconfigureplugins/foldersettings/folderconfiguresettingspagebase.cpp
...lugins/foldersettings/folderconfiguresettingspagebase.cpp
+15
-8
plugins/messageviewerconfigureplugins/foldersettings/folderconfiguresettingspagebase.h
...eplugins/foldersettings/folderconfiguresettingspagebase.h
+2
-2
No files found.
plugins/messageviewerconfigureplugins/foldersettings/folderconfiguresettingspagebase.cpp
View file @
47295e05
...
...
@@ -8,19 +8,26 @@
#include <KLocalizedString>
#include <Q
Check
Box>
#include <Q
Group
Box>
#include <QVBoxLayout>
FolderConfigureSettingsPageBase
::
FolderConfigureSettingsPageBase
(
QWidget
*
parent
)
:
QWidget
(
parent
)
,
mMainLayout
(
new
QVBoxLayout
(
this
)
)
,
mMainLayout
(
new
QVBoxLayout
)
{
QVBoxLayout
*
topLayout
=
new
QVBoxLayout
(
this
);
topLayout
->
setObjectName
(
QStringLiteral
(
"topLayout"
));
mMainLayout
->
setObjectName
(
QStringLiteral
(
"mMainLayout"
));
mModifyCheckBox
=
new
QCheckBox
(
i18n
(
"Modify"
),
this
);
mModifyCheckBox
->
setObjectName
(
QStringLiteral
(
"mModifiedCheckBox"
));
mModifyCheckBox
->
setChecked
(
false
);
mMainLayout
->
addWidget
(
mModifyCheckBox
);
connect
(
mModifyCheckBox
,
&
QCheckBox
::
clicked
,
this
,
&
FolderConfigureSettingsPageBase
::
slotModifyClicked
);
mGroupBox
=
new
QGroupBox
(
i18n
(
"Modify"
),
this
);
mGroupBox
->
setObjectName
(
QStringLiteral
(
"mGroupBox"
));
mGroupBox
->
setCheckable
(
true
);
mGroupBox
->
setChecked
(
false
);
mGroupBox
->
setLayout
(
mMainLayout
);
topLayout
->
addWidget
(
mGroupBox
);
connect
(
mGroupBox
,
&
QGroupBox
::
clicked
,
this
,
&
FolderConfigureSettingsPageBase
::
slotModifyClicked
);
}
FolderConfigureSettingsPageBase
::~
FolderConfigureSettingsPageBase
()
...
...
@@ -35,7 +42,7 @@ void FolderConfigureSettingsPageBase::slotModifyClicked(bool clicked)
bool
FolderConfigureSettingsPageBase
::
wasModified
()
const
{
return
m
ModifyCheck
Box
->
isChecked
();
return
m
Group
Box
->
isChecked
();
}
void
FolderConfigureSettingsPageBase
::
addMainWidget
(
QWidget
*
widget
)
...
...
plugins/messageviewerconfigureplugins/foldersettings/folderconfiguresettingspagebase.h
View file @
47295e05
...
...
@@ -9,7 +9,7 @@
#include <QWidget>
class
QVBoxLayout
;
class
Q
Check
Box
;
class
Q
Group
Box
;
class
FolderConfigureSettingsPageBase
:
public
QWidget
{
Q_OBJECT
...
...
@@ -23,8 +23,8 @@ protected:
QVBoxLayout
*
const
mMainLayout
;
private:
void
slotModifyClicked
(
bool
clicked
);
QCheckBox
*
mModifyCheckBox
=
nullptr
;
QWidget
*
mMainWidget
=
nullptr
;
QGroupBox
*
mGroupBox
=
nullptr
;
};
#endif // FOLDERCONFIGURESETTINGSPAGEBASE_H
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