Commit 0a4cd594 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Improve autotest

parent fa128a16
Pipeline #162280 passed with stages
in 2 minutes and 46 seconds
......@@ -12,6 +12,7 @@
#include <QHeaderView>
#include <QPushButton>
#include <QTest>
#include <QVBoxLayout>
KDEApplicationDebugSettingPageTest::KDEApplicationDebugSettingPageTest(QObject *parent)
: QObject(parent)
......@@ -31,6 +32,9 @@ void KDEApplicationDebugSettingPageTest::shouldHaveDefaultValue()
QCOMPARE(listWidget->columnCount(), 4);
QVERIFY(listWidget->uniformRowHeights());
auto mainLayout = page.findChild<QVBoxLayout *>(QStringLiteral("mainLayout"));
QVERIFY(mainLayout);
auto selectAll = page.findChild<QPushButton *>(QStringLiteral("selectall"));
QVERIFY(selectAll);
QVERIFY(selectAll->isEnabled());
......
......@@ -23,6 +23,7 @@ KDEApplicationDebugSettingPage::KDEApplicationDebugSettingPage(QWidget *parent)
, mTurnOffAllMessages(new QPushButton(i18n("Turn Off All Messages"), this))
{
auto mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainLayout"));
mTreeListWidget->setObjectName(QStringLiteral("listwidget"));
......
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