File tree Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 5
5
bin_PROGRAMS += qml/test/test_bitcoin-qt
6
6
TESTS += qml/test/test_bitcoin-qt
7
7
8
- TEST_QML_MOC_CPP = qml/test/moc_onboardingtests .cpp
8
+ TEST_QML_MOC_CPP = qml/test/moc_setup .cpp
9
9
10
- TEST_QML_H = qml/test/onboardingtests .h qml/test/testimageprovider.h
10
+ TEST_QML_H = qml/test/setup .h qml/test/testimageprovider.h
11
11
12
12
qml_test_test_bitcoin_qt_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(BITCOIN_QT_INCLUDES) \
13
13
$(QT_INCLUDES) $(QT_TEST_INCLUDES) $(QT_QUICKTEST_INCLUDES) $(BOOST_CPPFLAGS) $(QT_QUICKTEST_CFLAGS)
14
14
15
15
qml_test_test_bitcoin_qt_SOURCES = \
16
- qml/test/onboardingtests .cpp \
16
+ qml/test/setup .cpp \
17
17
qml/bitcoin_qml.qrc \
18
18
qml/test/testimageprovider.cpp \
19
19
$(TEST_QML_H)
Original file line number Diff line number Diff line change 1
1
// Copyright (c) 2023 The Bitcoin Core developers
2
2
// Distributed under the MIT software license, see the accompanying
3
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
+ #include < qml/test/setup.h>
5
+
4
6
#include < QtQuickTest>
5
7
#include < QQmlEngine>
6
8
#include < QQmlContext>
7
9
#include < qml/test/testimageprovider.h>
8
- #include < qml/test/onboardingtests.h>
9
-
10
- Setup::Setup ()
11
- {
12
- }
13
10
14
11
void Setup::qmlEngineAvailable (QQmlEngine * engine) {
15
12
engine->addImageProvider (QStringLiteral (" images" ), new TestImageProvider ());
Original file line number Diff line number Diff line change 1
1
// Copyright (c) 2014-2023 The Bitcoin Core developers
2
2
// Distributed under the MIT software license, see the accompanying
3
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
- #ifndef BITCOIN_QML_TEST_ONBOARDINGTESTS_H
5
- #define BITCOIN_QML_TEST_ONBOARDINGTESTS_H
4
+ #ifndef BITCOIN_QML_TEST_SETUP_H
5
+ #define BITCOIN_QML_TEST_SETUP_H
6
6
7
7
#include < QObject>
8
8
#include < QQmlEngine>
@@ -12,11 +12,11 @@ class Setup : public QObject
12
12
Q_OBJECT
13
13
14
14
public:
15
- Setup ();
15
+ Setup () = default ;
16
16
~Setup () = default ;
17
17
18
18
public Q_SLOTS:
19
19
void qmlEngineAvailable (QQmlEngine * engine);
20
20
};
21
21
22
- #endif // BITCOIN_QML_TEST_ONBOARDINGTESTS_H
22
+ #endif // BITCOIN_QML_TEST_SETUP_H
You can’t perform that action at this time.
0 commit comments