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
libksieve
Commits
3c432f59
Commit
3c432f59
authored
Jun 30, 2016
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add objectName
parent
544e3669
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
15 deletions
+23
-15
src/ksieveui/vacation/vacationeditwidget.cpp
src/ksieveui/vacation/vacationeditwidget.cpp
+23
-15
No files found.
src/ksieveui/vacation/vacationeditwidget.cpp
View file @
3c432f59
...
...
@@ -52,13 +52,15 @@ VacationEditWidget::VacationEditWidget(QWidget *parent)
// explanation label:
++
row
;
glay
->
addWidget
(
new
QLabel
(
i18n
(
"Configure vacation "
"notifications to be sent:"
),
this
),
row
,
0
,
1
,
2
);
QLabel
*
configureVacationLabel
=
new
QLabel
(
i18n
(
"Configure vacation "
"notifications to be sent:"
),
this
);
configureVacationLabel
->
setObjectName
(
QStringLiteral
(
"configureVacationLabel"
));
glay
->
addWidget
(
configureVacationLabel
,
row
,
0
,
1
,
2
);
// Activate checkbox:
++
row
;
mActiveCheck
=
new
QCheckBox
(
i18n
(
"&Activate vacation notifications"
),
this
);
mActiveCheck
->
setObjectName
(
QStringLiteral
(
"mActiveCheck"
));
glay
->
addWidget
(
mActiveCheck
,
row
,
0
,
1
,
2
);
// Message text edit:
...
...
@@ -73,9 +75,10 @@ VacationEditWidget::VacationEditWidget(QWidget *parent)
mSubject
=
new
QLineEdit
(
this
);
mSubject
->
setObjectName
(
QStringLiteral
(
"mSubject"
));
mSubject
->
setClearButtonEnabled
(
true
);
QLabel
*
tmpLabel
=
new
QLabel
(
i18n
(
"&Subject of the vacation mail:"
),
this
);
tmpLabel
->
setBuddy
(
mSubject
);
glay
->
addWidget
(
tmpLabel
,
row
,
0
);
QLabel
*
subjectOfVacationLabel
=
new
QLabel
(
i18n
(
"&Subject of the vacation mail:"
),
this
);
subjectOfVacationLabel
->
setObjectName
(
QStringLiteral
(
"subjectOfVacationLabel"
));
subjectOfVacationLabel
->
setBuddy
(
mSubject
);
glay
->
addWidget
(
subjectOfVacationLabel
,
row
,
0
);
glay
->
addWidget
(
mSubject
,
row
,
1
);
++
row
;
...
...
@@ -91,6 +94,7 @@ VacationEditWidget::VacationEditWidget(QWidget *parent)
mStartTime
->
setEnabled
(
false
);
// Disable by default - we need an extension to support this
mStartTimeActive
=
new
QCheckBox
(
this
);
mStartTimeActive
->
setObjectName
(
QStringLiteral
(
"mStartTimeActive"
));
connect
(
mStartTimeActive
,
&
QCheckBox
::
toggled
,
mStartTime
,
&
KTimeComboBox
::
setEnabled
);
timeLayout
->
addWidget
(
mStartDate
);
...
...
@@ -117,6 +121,7 @@ VacationEditWidget::VacationEditWidget(QWidget *parent)
mEndTime
->
setEnabled
(
false
);
// Disable by default - we need an extension to support this
mEndTimeActive
=
new
QCheckBox
(
this
);
mEndTimeActive
->
setObjectName
(
QStringLiteral
(
"mEndTimeActive"
));
connect
(
mEndTimeActive
,
&
QCheckBox
::
toggled
,
mEndTime
,
&
KTimeComboBox
::
setEnabled
);
timeLayout
->
addWidget
(
mEndDate
);
...
...
@@ -144,9 +149,10 @@ VacationEditWidget::VacationEditWidget(QWidget *parent)
mIntervalSpin
->
setObjectName
(
QStringLiteral
(
"mIntervalSpin"
));
mIntervalSpin
->
setSuffix
(
i18np
(
" day"
,
" days"
,
defDayInterval
));
connect
(
mIntervalSpin
,
static_cast
<
void
(
QSpinBox
::*
)(
int
)
>
(
&
QSpinBox
::
valueChanged
),
this
,
&
VacationEditWidget
::
slotIntervalSpinChanged
);
QLabel
*
label
=
new
QLabel
(
i18n
(
"&Resend notification only after:"
),
this
);
label
->
setBuddy
(
mIntervalSpin
);
glay
->
addWidget
(
label
,
row
,
0
);
QLabel
*
resendNotificationLabel
=
new
QLabel
(
i18n
(
"&Resend notification only after:"
),
this
);
resendNotificationLabel
->
setObjectName
(
QStringLiteral
(
"resendNotificationLabel"
));
resendNotificationLabel
->
setBuddy
(
mIntervalSpin
);
glay
->
addWidget
(
resendNotificationLabel
,
row
,
0
);
glay
->
addWidget
(
mIntervalSpin
,
row
,
1
);
// "Send responses for these addresses" lineedit and label:
...
...
@@ -154,9 +160,10 @@ VacationEditWidget::VacationEditWidget(QWidget *parent)
mMailAliasesEdit
=
new
QLineEdit
(
this
);
mMailAliasesEdit
->
setObjectName
(
QStringLiteral
(
"mMailAliasesEdit"
));
mMailAliasesEdit
->
setClearButtonEnabled
(
true
);
tmpLabel
=
new
QLabel
(
i18n
(
"&Send responses for these addresses:"
),
this
);
tmpLabel
->
setBuddy
(
mMailAliasesEdit
);
glay
->
addWidget
(
tmpLabel
,
row
,
0
);
QLabel
*
sendResponseLabel
=
new
QLabel
(
i18n
(
"&Send responses for these addresses:"
),
this
);
sendResponseLabel
->
setObjectName
(
QStringLiteral
(
"sendResponseLabel"
));
sendResponseLabel
->
setBuddy
(
mMailAliasesEdit
);
glay
->
addWidget
(
sendResponseLabel
,
row
,
0
);
glay
->
addWidget
(
mMailAliasesEdit
,
row
,
1
);
// Action for incoming mails
...
...
@@ -178,9 +185,10 @@ VacationEditWidget::VacationEditWidget(QWidget *parent)
hLayout
->
addWidget
(
mMailActionRecipient
);
++
row
;
tmpLabel
=
new
QLabel
(
i18n
(
"&Action for incoming mails:"
),
this
);
tmpLabel
->
setBuddy
(
mMailAction
);
glay
->
addWidget
(
tmpLabel
,
row
,
0
);
QLabel
*
actionIncomingMailsLabel
=
new
QLabel
(
i18n
(
"&Action for incoming mails:"
),
this
);
actionIncomingMailsLabel
->
setBuddy
(
mMailAction
);
actionIncomingMailsLabel
->
setObjectName
(
QStringLiteral
(
"actionIncomingMailsLabel"
));
glay
->
addWidget
(
actionIncomingMailsLabel
,
row
,
0
);
glay
->
addLayout
(
hLayout
,
row
,
1
);
// "Send responses also to SPAM mail" checkbox:
...
...
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