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
aae747bf
Commit
aae747bf
authored
May 29, 2017
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce duplicate code
parent
833cf18e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
src/ksieveui/autocreatescripts/sieveactionwidgetlister.cpp
src/ksieveui/autocreatescripts/sieveactionwidgetlister.cpp
+2
-4
No files found.
src/ksieveui/autocreatescripts/sieveactionwidgetlister.cpp
View file @
aae747bf
...
...
@@ -146,19 +146,16 @@ void SieveActionWidget::initWidget()
}
mHelpButton
=
new
SieveHelpButton
(
this
);
mHelpButton
->
setEnabled
(
false
);
connect
(
mHelpButton
,
&
SieveHelpButton
::
clicked
,
this
,
&
SieveActionWidget
::
slotHelp
);
mLayout
->
addWidget
(
mHelpButton
,
1
,
0
);
mCommentButton
=
new
QToolButton
(
this
);
mCommentButton
->
setToolTip
(
i18n
(
"Add comment"
));
mCommentButton
->
setEnabled
(
false
);
mLayout
->
addWidget
(
mCommentButton
,
1
,
1
);
mCommentButton
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"view-pim-notes"
)));
connect
(
mCommentButton
,
&
QToolButton
::
clicked
,
this
,
&
SieveActionWidget
::
slotAddComment
);
mComboBox
->
addItem
(
QLatin1String
(
""
));
mComboBox
->
setCurrentIndex
(
mComboBox
->
count
()
-
1
);
mComboBox
->
setMaxCount
(
mComboBox
->
count
());
mComboBox
->
setSizePolicy
(
QSizePolicy
(
QSizePolicy
::
Preferred
,
QSizePolicy
::
Fixed
));
...
...
@@ -185,7 +182,8 @@ void SieveActionWidget::initWidget()
connect
(
mAdd
,
&
QPushButton
::
clicked
,
this
,
&
SieveActionWidget
::
slotAddWidget
);
connect
(
mRemove
,
&
QPushButton
::
clicked
,
this
,
&
SieveActionWidget
::
slotRemoveWidget
);
setFilterAction
(
nullptr
);
clear
();
}
void
SieveActionWidget
::
slotHelp
()
...
...
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