Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KDE PIM Add-ons
Commits
0565cb7c
Commit
0565cb7c
authored
Feb 03, 2022
by
Laurent Montel
Browse files
Fix layout
parent
737ac98f
Pipeline
#132238
passed with stage
in 13 minutes and 48 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
plugins/messageviewerconfigureplugins/openurlwith/autotests/openurlwithconfigurecreatewidgettest.cpp
View file @
0565cb7c
...
...
@@ -6,9 +6,9 @@
#include
"openurlwithconfigurecreatewidgettest.h"
#include
"openurlwithconfigurecreatewidget.h"
#include
<QFormLayout>
#include
<QLineEdit>
#include
<QTest>
#include
<QVBoxLayout>
QTEST_MAIN
(
OpenUrlWithConfigureCreateWidgetTest
)
OpenUrlWithConfigureCreateWidgetTest
::
OpenUrlWithConfigureCreateWidgetTest
(
QObject
*
parent
)
:
QObject
{
parent
}
...
...
@@ -19,7 +19,7 @@ void OpenUrlWithConfigureCreateWidgetTest::shouldHaveDefaultValues()
{
OpenUrlWithConfigureCreateWidget
w
;
auto
mainLayout
=
w
.
findChild
<
Q
VBox
Layout
*>
(
QStringLiteral
(
"mainlayout"
));
auto
mainLayout
=
w
.
findChild
<
Q
Form
Layout
*>
(
QStringLiteral
(
"mainlayout"
));
QVERIFY
(
mainLayout
);
QCOMPARE
(
mainLayout
->
contentsMargins
(),
QMargins
{});
...
...
plugins/messageviewerconfigureplugins/openurlwith/openurlwithconfigurecreatedialog.cpp
View file @
0565cb7c
...
...
@@ -12,7 +12,7 @@ OpenUrlWithConfigureCreateDialog::OpenUrlWithConfigureCreateDialog(QWidget *pare
:
QDialog
(
parent
)
,
mOpenUrlWithCreateWidget
(
new
OpenUrlWithConfigureCreateWidget
(
this
))
{
setWindowTitle
(
i18nc
(
"@title:window"
,
"C
onfigure Open Url With Plugin
"
));
setWindowTitle
(
i18nc
(
"@title:window"
,
"C
reate
"
));
auto
mainLayout
=
new
QVBoxLayout
(
this
);
mainLayout
->
setObjectName
(
QStringLiteral
(
"mainlayout"
));
...
...
@@ -38,5 +38,6 @@ OpenUrlWithConfigureCreateWidget::OpenUrlWithInfo OpenUrlWithConfigureCreateDial
void
OpenUrlWithConfigureCreateDialog
::
setInfo
(
const
OpenUrlWithConfigureCreateWidget
::
OpenUrlWithInfo
&
i
)
{
setWindowTitle
(
i18nc
(
"@title:window"
,
"Edit"
));
mOpenUrlWithCreateWidget
->
setInfo
(
i
);
}
plugins/messageviewerconfigureplugins/openurlwith/openurlwithconfigurecreatewidget.cpp
View file @
0565cb7c
...
...
@@ -6,26 +6,24 @@
#include
"openurlwithconfigurecreatewidget.h"
#include
<KLocalizedString>
#include
<QFormLayout>
#include
<QLabel>
#include
<QLineEdit>
#include
<QVBoxLayout>
OpenUrlWithConfigureCreateWidget
::
OpenUrlWithConfigureCreateWidget
(
QWidget
*
parent
)
:
QWidget
{
parent
}
,
mServerName
(
new
QLineEdit
(
this
))
,
mCommand
(
new
QLineEdit
(
this
))
{
auto
mainLayout
=
new
Q
VBox
Layout
(
this
);
auto
mainLayout
=
new
Q
Form
Layout
(
this
);
mainLayout
->
setObjectName
(
QStringLiteral
(
"mainlayout"
));
mainLayout
->
setContentsMargins
(
QMargins
());
auto
label
=
new
QLabel
(
i18n
(
"Server Name:"
),
this
);
mainLayout
->
addWidget
(
label
);
mServerName
->
setObjectName
(
QStringLiteral
(
"mServerName"
));
mainLayout
->
add
Widget
(
mServerName
);
mainLayout
->
add
Row
(
i18n
(
"Server Name:"
),
mServerName
);
mCommand
->
setObjectName
(
QStringLiteral
(
"mCommand"
));
mainLayout
->
add
Widget
(
mCommand
);
mainLayout
->
add
Row
(
i18n
(
"Command:"
),
mCommand
);
}
OpenUrlWithConfigureCreateWidget
::~
OpenUrlWithConfigureCreateWidget
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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