Commit 3cda34d8 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add autotest + add label in layout

parent 776e365d
Pipeline #134295 passed with stage
in 9 minutes and 54 seconds
......@@ -7,6 +7,7 @@
#include "openurlwithconfigurecreatewidgettest.h"
#include "openurlwithconfigurecreatewidget.h"
#include <QFormLayout>
#include <QLabel>
#include <QLineEdit>
#include <QTest>
QTEST_MAIN(OpenUrlWithConfigureCreateWidgetTest)
......@@ -30,4 +31,8 @@ void OpenUrlWithConfigureCreateWidgetTest::shouldHaveDefaultValues()
auto mCommand = w.findChild<QLineEdit *>(QStringLiteral("mCommand"));
QVERIFY(mCommand);
QVERIFY(mCommand->text().isEmpty());
auto formatHelp = w.findChild<QLabel *>(QStringLiteral("formatHelp"));
QVERIFY(formatHelp);
QCOMPARE(formatHelp->contextMenuPolicy(), Qt::NoContextMenu);
}
......@@ -36,6 +36,7 @@ OpenUrlWithConfigureCreateWidget::OpenUrlWithConfigureCreateWidget(QWidget *pare
"</ul>"
"</strong></p></qt>");
formatHelp->setWhatsThis(mCommandWhatsThis);
mainLayout->addWidget(formatHelp);
mCommand->setObjectName(QStringLiteral("mCommand"));
mainLayout->addRow(i18n("Command:"), mCommand);
......
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