Skip to content

Commit d96528d

Browse files
Johnny CarlsonJohnny Carlson
authored andcommitted
qmltest: rename onboardingtests to setup
1 parent 574dcef commit d96528d

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

src/Makefile.qmltest.include

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
bin_PROGRAMS += qml/test/test_bitcoin-qt
66
TESTS += qml/test/test_bitcoin-qt
77

8-
TEST_QML_MOC_CPP = qml/test/moc_onboardingtests.cpp
8+
TEST_QML_MOC_CPP = qml/test/moc_setup.cpp
99

10-
TEST_QML_H = qml/test/onboardingtests.h qml/test/testimageprovider.h
10+
TEST_QML_H = qml/test/setup.h qml/test/testimageprovider.h
1111

1212
qml_test_test_bitcoin_qt_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(BITCOIN_QT_INCLUDES) \
1313
$(QT_INCLUDES) $(QT_TEST_INCLUDES) $(QT_QUICKTEST_INCLUDES) $(BOOST_CPPFLAGS) $(QT_QUICKTEST_CFLAGS)
1414

1515
qml_test_test_bitcoin_qt_SOURCES = \
16-
qml/test/onboardingtests.cpp \
16+
qml/test/setup.cpp \
1717
qml/bitcoin_qml.qrc \
1818
qml/test/testimageprovider.cpp \
1919
$(TEST_QML_H)

src/qml/test/onboardingtests.cpp renamed to src/qml/test/setup.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
// Copyright (c) 2023 The Bitcoin Core developers
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
#include <qml/test/setup.h>
5+
46
#include <QtQuickTest>
57
#include <QQmlEngine>
68
#include <QQmlContext>
79
#include <qml/test/testimageprovider.h>
8-
#include <qml/test/onboardingtests.h>
9-
10-
Setup::Setup()
11-
{
12-
}
1310

1411
void Setup::qmlEngineAvailable(QQmlEngine * engine) {
1512
engine->addImageProvider(QStringLiteral("images"), new TestImageProvider());

src/qml/test/onboardingtests.h renamed to src/qml/test/setup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Setup : public QObject
1212
Q_OBJECT
1313

1414
public:
15-
Setup();
15+
Setup() = default;
1616
~Setup() = default;
1717

1818
public Q_SLOTS:

0 commit comments

Comments
 (0)