Commit 15ea7bc7 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use QVBoxLayout

parent e34fbebd
Pipeline #80871 canceled with stage
......@@ -7,8 +7,8 @@
#include "emoticontexteditselectortest.h"
#include "emoticon/emoticontexteditselector.h"
#include "emoticon/emoticonunicodetab.h"
#include <QHBoxLayout>
#include <QTest>
#include <QVBoxLayout>
QTEST_MAIN(EmoticonTextEditSelectorTest)
EmoticonTextEditSelectorTest::EmoticonTextEditSelectorTest(QObject *parent)
......@@ -19,7 +19,7 @@ EmoticonTextEditSelectorTest::EmoticonTextEditSelectorTest(QObject *parent)
void EmoticonTextEditSelectorTest::shouldHaveDefaultValues()
{
KPIMTextEdit::EmoticonTextEditSelector w;
auto mainLayout = w.findChild<QHBoxLayout *>(QStringLiteral("mainLayout"));
auto mainLayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainLayout"));
QVERIFY(mainLayout);
QCOMPARE(mainLayout->contentsMargins(), {});
......
......@@ -9,7 +9,7 @@
#include "emoticonunicodetab.h"
#include "textutils.h"
#include <QHBoxLayout>
#include <QVBoxLayout>
using namespace KPIMTextEdit;
......@@ -17,7 +17,7 @@ EmoticonTextEditSelector::EmoticonTextEditSelector(QWidget *parent)
: QWidget(parent)
, mUnicodeTab(new EmoticonUnicodeTab(this))
{
auto mainLayout = new QHBoxLayout(this);
auto mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainLayout"));
mainLayout->setSpacing(0);
mainLayout->setContentsMargins({});
......
Supports Markdown
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