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
KOrganizer
Commits
c5fcf74c
Commit
c5fcf74c
authored
Jul 19, 2020
by
Laurent Montel
😁
Browse files
Readd DefaultEmailAttachMethod enum
parent
ddd4302d
Pipeline
#27702
passed with stage
in 48 minutes and 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/prefs/koprefsdialogmain.cpp
View file @
c5fcf74c
...
...
@@ -83,8 +83,21 @@ KOPrefsDialogMain::KOPrefsDialogMain(QWidget *parent)
QButtonGroup
*
defaultEmailAttachGroup
=
new
QButtonGroup
(
this
);
QRadioButton
*
askRadioButton
=
new
QRadioButton
(
i18n
(
"Always ask"
),
this
);
defaultEmailAttachGroup
->
addButton
(
askRadioButton
,
IncidenceEditorNG
::
IncidenceEditorSettingsBase
::
EnumDefaultEmailAttachMethod
::
Ask
);
QRadioButton
*
linkRadioButton
=
new
QRadioButton
(
i18n
(
"Only attach link to message"
),
this
);
defaultEmailAttachGroup
->
addButton
(
linkRadioButton
,
IncidenceEditorNG
::
IncidenceEditorSettingsBase
::
EnumDefaultEmailAttachMethod
::
Link
);
QRadioButton
*
inlineFullRadioButton
=
new
QRadioButton
(
i18n
(
"Attach complete message"
),
this
);
defaultEmailAttachGroup
->
addButton
(
inlineFullRadioButton
,
IncidenceEditorNG
::
IncidenceEditorSettingsBase
::
EnumDefaultEmailAttachMethod
::
InlineFull
);
QRadioButton
*
inlineBodyRadioButton
=
new
QRadioButton
(
i18n
(
"Attach message without attachments"
),
this
);
defaultEmailAttachGroup
->
addButton
(
inlineBodyRadioButton
,
IncidenceEditorNG
::
IncidenceEditorSettingsBase
::
EnumDefaultEmailAttachMethod
::
InlineBody
);
QVBoxLayout
*
defaultEmailAttachMethodGroupBoxLayout
=
new
QVBoxLayout
(
defaultEmailAttachMethodGroupBox
);
defaultEmailAttachMethodGroupBoxLayout
->
addWidget
(
askRadioButton
);
defaultEmailAttachMethodGroupBoxLayout
->
addWidget
(
linkRadioButton
);
defaultEmailAttachMethodGroupBoxLayout
->
addWidget
(
inlineFullRadioButton
);
defaultEmailAttachMethodGroupBoxLayout
->
addWidget
(
inlineBodyRadioButton
);
personalLayout
->
addWidget
(
defaultEmailAttachMethodGroupBox
);
personalLayout
->
addStretch
(
1
);
...
...
@@ -150,6 +163,7 @@ KOPrefsDialogMain::KOPrefsDialogMain(QWidget *parent)
void
KOPrefsDialogMain
::
load
()
{
//TODO Load DefaultEmailAttachMethod
mEmailControlCenterCheckBox
->
setChecked
(
CalendarSupport
::
KCalPrefs
::
instance
()
->
emailControlCenter
());
mUserName
->
setText
(
CalendarSupport
::
KCalPrefs
::
instance
()
->
userName
());
mUserEmail
->
setText
(
CalendarSupport
::
KCalPrefs
::
instance
()
->
userEmail
());
...
...
@@ -160,6 +174,7 @@ void KOPrefsDialogMain::load()
void
KOPrefsDialogMain
::
save
()
{
//TODO Save DefaultEmailAttachMethod
CalendarSupport
::
KCalPrefs
::
instance
()
->
setEmailControlCenter
(
mEmailControlCenterCheckBox
->
isChecked
());
CalendarSupport
::
KCalPrefs
::
instance
()
->
setUserName
(
mUserName
->
text
());
CalendarSupport
::
KCalPrefs
::
instance
()
->
setUserEmail
(
mUserEmail
->
text
());
...
...
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