Commit d2675c18 authored by Laurent Montel's avatar Laurent Montel 😁

Fix margin

parent 69a51d98
......@@ -21,6 +21,7 @@
#include "../widgets/mergecontactloseinformationwarning.h"
#include <KaddressbookGrantlee/GrantleeContactViewer>
#include <QSplitter>
#include <QLayout>
#include <QTreeWidget>
#include <QLabel>
#include <qtest.h>
......@@ -65,6 +66,9 @@ SearchDuplicateResultWidgetTest::~SearchDuplicateResultWidgetTest()
void SearchDuplicateResultWidgetTest::shouldHaveDefaultValue()
{
KABMergeContacts::SearchDuplicateResultWidget w;
QCOMPARE(w.layout()->margin(), 0);
KABMergeContacts::ResultDuplicateTreeWidget *tree = w.findChild<KABMergeContacts::ResultDuplicateTreeWidget *>(QStringLiteral("result_treewidget"));
QVERIFY(tree);
QCOMPARE(tree->topLevelItemCount(), 0);
......
......@@ -40,6 +40,7 @@ SearchDuplicateResultWidget::SearchDuplicateResultWidget(QWidget *parent)
mIndexListContact(0)
{
QVBoxLayout *mainLayout = new QVBoxLayout;
mainLayout->setMargin(0);
setLayout(mainLayout);
QSplitter *splitter = new QSplitter;
......
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