Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
KDebugSettings
Commits
e141ad3a
Commit
e141ad3a
authored
Dec 21, 2020
by
Laurent Montel
😁
Browse files
Create widget
parent
418ff1ad
Pipeline
#44855
passed with stage
in 9 minutes and 18 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
autotests/groupmanagementwidgettest.cpp
View file @
e141ad3a
...
...
@@ -21,6 +21,7 @@
#include "groupmanagementwidgettest.h"
#include "groupmanagementwidget.h"
#include <QTest>
#include <QVBoxLayout>
QTEST_MAIN
(
GroupManagementWidgetTest
)
GroupManagementWidgetTest
::
GroupManagementWidgetTest
(
QObject
*
parent
)
...
...
@@ -32,5 +33,7 @@ GroupManagementWidgetTest::GroupManagementWidgetTest(QObject *parent)
void
GroupManagementWidgetTest
::
shouldHaveDefaultValues
()
{
GroupManagementWidget
w
;
//TODO
auto
mainLayout
=
w
.
findChild
<
QVBoxLayout
*>
(
QStringLiteral
(
"mainLayout"
));
QVERIFY
(
mainLayout
);
QCOMPARE
(
mainLayout
->
contentsMargins
(),
{});
}
src/groupmanagementwidget.cpp
View file @
e141ad3a
...
...
@@ -19,11 +19,14 @@
*/
#include "groupmanagementwidget.h"
#include <KLocalizedString>
#include <QVBoxLayout>
GroupManagementWidget
::
GroupManagementWidget
(
QWidget
*
parent
)
:
QWidget
(
parent
)
{
auto
mainLayout
=
new
QVBoxLayout
(
this
);
mainLayout
->
setContentsMargins
({});
mainLayout
->
setObjectName
(
QStringLiteral
(
"mainLayout"
));
}
GroupManagementWidget
::~
GroupManagementWidget
()
...
...
Write
Preview
Supports
Markdown
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