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
KIdentityManagement
Commits
b1c2f020
Commit
b1c2f020
authored
Nov 02, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modernize code
parent
ab99ec48
Pipeline
#39282
passed with stage
in 7 minutes and 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/signatureconfigurator.cpp
src/signatureconfigurator.cpp
+5
-5
No files found.
src/signatureconfigurator.cpp
View file @
b1c2f020
...
...
@@ -96,7 +96,7 @@ QString SignatureConfigurator::Private::asCleanedHTML() const
void
SignatureConfigurator
::
Private
::
init
()
{
QVBoxLayo
ut
*
vlay
=
new
QVBoxLayout
(
q
);
a
ut
o
*
vlay
=
new
QVBoxLayout
(
q
);
vlay
->
setObjectName
(
QStringLiteral
(
"main layout"
));
// "enable signature" checkbox:
...
...
@@ -107,7 +107,7 @@ void SignatureConfigurator::Private::init()
vlay
->
addWidget
(
mEnableCheck
);
// "obtain signature text from" combo and label:
QHBoxLayo
ut
*
hlay
=
new
QHBoxLayout
();
// inherits spacing
a
ut
o
*
hlay
=
new
QHBoxLayout
();
// inherits spacing
vlay
->
addLayout
(
hlay
);
mSourceCombo
=
new
QComboBox
(
q
);
mSourceCombo
->
setEditable
(
false
);
...
...
@@ -128,7 +128,7 @@ void SignatureConfigurator::Private::init()
hlay
->
addWidget
(
mSourceCombo
,
1
);
// widget stack that is controlled by the source combo:
QStackedWidget
*
widgetStack
=
new
QStackedWidget
(
q
);
auto
*
widgetStack
=
new
QStackedWidget
(
q
);
widgetStack
->
setEnabled
(
false
);
// since !mEnableCheck->isChecked()
vlay
->
addWidget
(
widgetStack
,
1
);
q
->
connect
(
mSourceCombo
,
QOverload
<
int
>::
of
(
&
QComboBox
::
currentIndexChanged
),
widgetStack
,
&
QStackedWidget
::
setCurrentIndex
);
...
...
@@ -145,7 +145,7 @@ void SignatureConfigurator::Private::init()
// page 0: input field for direct entering:
QWidget
*
page
=
new
QWidget
(
widgetStack
);
widgetStack
->
insertWidget
(
pageno
,
page
);
QVBoxLayo
ut
*
page_vlay
=
new
QVBoxLayout
(
page
);
a
ut
o
*
page_vlay
=
new
QVBoxLayout
(
page
);
page_vlay
->
setContentsMargins
(
0
,
0
,
0
,
0
);
#ifndef QT_NO_TOOLBAR
...
...
@@ -160,7 +160,7 @@ void SignatureConfigurator::Private::init()
mTextEdit
=
new
KPIMTextEdit
::
RichTextComposer
(
q
);
KPIMTextEdit
::
RichTextEditorWidget
*
richTextEditorwidget
=
new
KPIMTextEdit
::
RichTextEditorWidget
(
mTextEdit
,
q
);
auto
*
richTextEditorwidget
=
new
KPIMTextEdit
::
RichTextEditorWidget
(
mTextEdit
,
q
);
page_vlay
->
addWidget
(
richTextEditorwidget
,
2
);
mTextEdit
->
setWhatsThis
(
i18n
(
"Use this field to enter an arbitrary static signature."
));
...
...
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