Commit 38d96b4e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix class name

parent ae30758c
Pipeline #44857 passed with stage
in 16 minutes and 27 seconds
...@@ -12,16 +12,16 @@ ...@@ -12,16 +12,16 @@
#include <QIcon> #include <QIcon>
#include <QTest> #include <QTest>
PreferredLineEditWidget::PreferredLineEditWidget(QObject *parent) PreferredLineEditWidgetTest::PreferredLineEditWidgetTest(QObject *parent)
: QObject(parent) : QObject(parent)
{ {
} }
PreferredLineEditWidget::~PreferredLineEditWidget() PreferredLineEditWidgetTest::~PreferredLineEditWidgetTest()
{ {
} }
void PreferredLineEditWidget::shouldHaveDefaultValue() void PreferredLineEditWidgetTest::shouldHaveDefaultValue()
{ {
ContactEditor::PreferredLineEditWidget w; ContactEditor::PreferredLineEditWidget w;
auto *act = w.findChild<QAction *>(QStringLiteral("preferredaction")); auto *act = w.findChild<QAction *>(QStringLiteral("preferredaction"));
...@@ -29,7 +29,7 @@ void PreferredLineEditWidget::shouldHaveDefaultValue() ...@@ -29,7 +29,7 @@ void PreferredLineEditWidget::shouldHaveDefaultValue()
QVERIFY(!w.preferred()); QVERIFY(!w.preferred());
} }
void PreferredLineEditWidget::shouldChangePreferredValue() void PreferredLineEditWidgetTest::shouldChangePreferredValue()
{ {
ContactEditor::PreferredLineEditWidget w; ContactEditor::PreferredLineEditWidget w;
auto *act = w.findChild<QAction *>(QStringLiteral("preferredaction")); auto *act = w.findChild<QAction *>(QStringLiteral("preferredaction"));
...@@ -45,4 +45,4 @@ void PreferredLineEditWidget::shouldChangePreferredValue() ...@@ -45,4 +45,4 @@ void PreferredLineEditWidget::shouldChangePreferredValue()
QCOMPARE(act->icon(), enabled); QCOMPARE(act->icon(), enabled);
} }
QTEST_MAIN(PreferredLineEditWidget) QTEST_MAIN(PreferredLineEditWidgetTest)
...@@ -11,12 +11,12 @@ ...@@ -11,12 +11,12 @@
#include <QObject> #include <QObject>
class PreferredLineEditWidget : public QObject class PreferredLineEditWidgetTest : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit PreferredLineEditWidget(QObject *parent = nullptr); explicit PreferredLineEditWidgetTest(QObject *parent = nullptr);
~PreferredLineEditWidget(); ~PreferredLineEditWidgetTest();
private Q_SLOTS: private Q_SLOTS:
void shouldHaveDefaultValue(); void shouldHaveDefaultValue();
......
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