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
52b8bbea
Commit
52b8bbea
authored
Jun 02, 2017
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use QToolButton here
parent
eb30062b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/ksieveui/autocreatescripts/sieveactions/widgets/selectflagswidget.cpp
...ocreatescripts/sieveactions/widgets/selectflagswidget.cpp
+4
-2
No files found.
src/ksieveui/autocreatescripts/sieveactions/widgets/selectflagswidget.cpp
View file @
52b8bbea
...
...
@@ -29,6 +29,7 @@
#include <QPointer>
#include <QDialogButtonBox>
#include <QVBoxLayout>
#include <QToolButton>
using
namespace
KSieveUi
;
...
...
@@ -37,10 +38,10 @@ SelectFlagsListDialog::SelectFlagsListDialog(QWidget *parent)
{
setWindowTitle
(
i18n
(
"Flags"
));
QVBoxLayout
*
mainLayout
=
new
QVBoxLayout
(
this
);
QDialogButtonBox
*
buttonBox
=
new
QDialogButtonBox
(
QDialogButtonBox
::
Ok
|
QDialogButtonBox
::
Cancel
,
this
);
mListWidget
=
new
SelectFlagsListWidget
(
this
);
mainLayout
->
addWidget
(
mListWidget
);
QDialogButtonBox
*
buttonBox
=
new
QDialogButtonBox
(
QDialogButtonBox
::
Ok
|
QDialogButtonBox
::
Cancel
,
this
);
QPushButton
*
okButton
=
buttonBox
->
button
(
QDialogButtonBox
::
Ok
);
okButton
->
setDefault
(
true
);
okButton
->
setShortcut
(
Qt
::
CTRL
|
Qt
::
Key_Return
);
...
...
@@ -145,7 +146,8 @@ SelectFlagsWidget::SelectFlagsWidget(QWidget *parent)
mEdit
->
setReadOnly
(
true
);
connect
(
mEdit
,
&
QLineEdit
::
textChanged
,
this
,
&
SelectFlagsWidget
::
valueChanged
);
lay
->
addWidget
(
mEdit
);
QPushButton
*
selectFlags
=
new
QPushButton
(
i18n
(
"..."
),
this
);
QToolButton
*
selectFlags
=
new
QToolButton
(
this
);
selectFlags
->
setText
(
i18n
(
"..."
));
connect
(
selectFlags
,
&
QPushButton
::
clicked
,
this
,
&
SelectFlagsWidget
::
slotSelectFlags
);
lay
->
addWidget
(
selectFlags
);
}
...
...
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