Commit e141ad3a authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Create widget

parent 418ff1ad
Pipeline #44855 passed with stage
in 9 minutes and 18 seconds
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include "groupmanagementwidgettest.h" #include "groupmanagementwidgettest.h"
#include "groupmanagementwidget.h" #include "groupmanagementwidget.h"
#include <QTest> #include <QTest>
#include <QVBoxLayout>
QTEST_MAIN(GroupManagementWidgetTest) QTEST_MAIN(GroupManagementWidgetTest)
GroupManagementWidgetTest::GroupManagementWidgetTest(QObject *parent) GroupManagementWidgetTest::GroupManagementWidgetTest(QObject *parent)
...@@ -32,5 +33,7 @@ GroupManagementWidgetTest::GroupManagementWidgetTest(QObject *parent) ...@@ -32,5 +33,7 @@ GroupManagementWidgetTest::GroupManagementWidgetTest(QObject *parent)
void GroupManagementWidgetTest::shouldHaveDefaultValues() void GroupManagementWidgetTest::shouldHaveDefaultValues()
{ {
GroupManagementWidget w; GroupManagementWidget w;
//TODO auto mainLayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainLayout"));
QVERIFY(mainLayout);
QCOMPARE(mainLayout->contentsMargins(), {});
} }
...@@ -19,11 +19,14 @@ ...@@ -19,11 +19,14 @@
*/ */
#include "groupmanagementwidget.h" #include "groupmanagementwidget.h"
#include <KLocalizedString>
#include <QVBoxLayout>
GroupManagementWidget::GroupManagementWidget(QWidget *parent) GroupManagementWidget::GroupManagementWidget(QWidget *parent)
: QWidget(parent) : QWidget(parent)
{ {
auto mainLayout = new QVBoxLayout(this);
mainLayout->setContentsMargins({});
mainLayout->setObjectName(QStringLiteral("mainLayout"));
} }
GroupManagementWidget::~GroupManagementWidget() GroupManagementWidget::~GroupManagementWidget()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment