Skip to content

13 files changed

+44
-43
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ src/qt/*.moc
4848
src/qt/moc_*.cpp
4949
src/qml/components/moc_*.cpp
5050
src/qml/controls/moc_*.cpp
51+
src/qml/models/moc_*.cpp
5152
src/qt/forms/ui_*.h
5253

5354
src/qt/test/moc*.cpp

src/Makefile.qt.include

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ QT_FORMS_UI = \
3737
QT_MOC_CPP = \
3838
qml/components/moc_blockclockdial.cpp \
3939
qml/controls/moc_linegraph.cpp \
40+
qml/models/moc_chainmodel.cpp \
41+
qml/models/moc_networktraffictower.cpp \
42+
qml/models/moc_nodemodel.cpp \
43+
qml/models/moc_options_model.cpp \
44+
qml/models/moc_peerlistsortproxy.cpp \
4045
qml/moc_appmode.cpp \
41-
qml/moc_chainmodel.cpp \
42-
qml/moc_networktraffictower.cpp \
43-
qml/moc_nodemodel.cpp \
44-
qml/moc_options_model.cpp \
45-
qml/moc_peerlistsortproxy.cpp \
4646
qt/moc_addressbookpage.cpp \
4747
qt/moc_addresstablemodel.cpp \
4848
qt/moc_askpassphrasedialog.cpp \
@@ -114,16 +114,16 @@ QT_QRC_LOCALE_CPP = qt/qrc_bitcoin_locale.cpp
114114
QT_QRC_LOCALE = qt/bitcoin_locale.qrc
115115

116116
BITCOIN_QT_H = \
117-
qml/appmode.h \
118-
qml/bitcoin.h \
119-
qml/chainmodel.h \
120117
qml/components/blockclockdial.h \
121118
qml/controls/linegraph.h \
119+
qml/models/chainmodel.h \
120+
qml/models/networktraffictower.h \
121+
qml/models/nodemodel.h \
122+
qml/models/options_model.h \
123+
qml/models/peerlistsortproxy.h \
124+
qml/appmode.h \
125+
qml/bitcoin.h \
122126
qml/imageprovider.h \
123-
qml/networktraffictower.h \
124-
qml/nodemodel.h \
125-
qml/options_model.h \
126-
qml/peerlistsortproxy.h \
127127
qml/util.h \
128128
qt/addressbookpage.h \
129129
qt/addresstablemodel.h \
@@ -301,14 +301,14 @@ BITCOIN_QT_WALLET_CPP = \
301301

302302
BITCOIN_QML_BASE_CPP = \
303303
qml/bitcoin.cpp \
304-
qml/chainmodel.cpp \
305304
qml/components/blockclockdial.cpp \
306305
qml/controls/linegraph.cpp \
306+
qml/models/chainmodel.cpp \
307+
qml/models/networktraffictower.cpp \
308+
qml/models/nodemodel.cpp \
309+
qml/models/options_model.cpp \
310+
qml/models/peerlistsortproxy.cpp \
307311
qml/imageprovider.cpp \
308-
qml/networktraffictower.cpp \
309-
qml/nodemodel.cpp \
310-
qml/options_model.cpp \
311-
qml/peerlistsortproxy.cpp \
312312
qml/util.cpp
313313

314314
QML_RES_FONTS = \

src/qml/bitcoin.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
#include <node/interface_ui.h>
1414
#include <noui.h>
1515
#include <qml/appmode.h>
16-
#include <qml/chainmodel.h>
1716
#include <qml/components/blockclockdial.h>
1817
#include <qml/controls/linegraph.h>
19-
#include <qml/networktraffictower.h>
18+
#include <qml/models/chainmodel.h>
19+
#include <qml/models/networktraffictower.h>
20+
#include <qml/models/nodemodel.h>
21+
#include <qml/models/options_model.h>
22+
#include <qml/models/peerlistsortproxy.h>
2023
#include <qml/imageprovider.h>
21-
#include <qml/nodemodel.h>
22-
#include <qml/options_model.h>
23-
#include <qml/peerlistsortproxy.h>
2424
#include <qml/util.h>
2525
#include <qt/guiconstants.h>
2626
#include <qt/guiutil.h>

src/qml/chainmodel.cpp renamed to src/qml/models/chainmodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#include <qml/chainmodel.h>
5+
#include <qml/models/chainmodel.h>
66

77
#include <QDateTime>
88
#include <QString>

src/qml/chainmodel.h renamed to src/qml/models/chainmodel.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#ifndef BITCOIN_QML_CHAINMODEL_H
6-
#define BITCOIN_QML_CHAINMODEL_H
5+
#ifndef BITCOIN_QML_MODELS_CHAINMODEL_H
6+
#define BITCOIN_QML_MODELS_CHAINMODEL_H
77

88
#include <chainparams.h>
99
#include <interfaces/chain.h>
@@ -64,4 +64,4 @@ public Q_SLOTS:
6464
interfaces::Chain& m_chain;
6565
};
6666

67-
#endif // BITCOIN_QML_CHAINMODEL_H
67+
#endif // BITCOIN_QML_MODELS_CHAINMODEL_H

src/qml/networktraffictower.cpp renamed to src/qml/models/networktraffictower.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#include <qml/networktraffictower.h>
5+
#include <qml/models/networktraffictower.h>
66

77
#include <QObject>
88
#include <QThread>

src/qml/networktraffictower.h renamed to src/qml/models/networktraffictower.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#ifndef BITCOIN_QML_NETWORKTRAFFICTOWER_H
6-
#define BITCOIN_QML_NETWORKTRAFFICTOWER_H
5+
#ifndef BITCOIN_QML_MODELS_NETWORKTRAFFICTOWER_H
6+
#define BITCOIN_QML_MODELS_NETWORKTRAFFICTOWER_H
77

8-
#include <qml/nodemodel.h>
8+
#include <qml/models/nodemodel.h>
99

1010
#include <QObject>
1111
#include <QQueue>
@@ -64,4 +64,4 @@ public Q_SLOTS:
6464
QQueue<float> m_smoothed_sent_rate_list;
6565
};
6666

67-
#endif // BITCOIN_QML_NETWORKTRAFFICTOWER_H
67+
#endif // BITCOIN_QML_MODELS_NETWORKTRAFFICTOWER_H

src/qml/nodemodel.cpp renamed to src/qml/models/nodemodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#include <qml/nodemodel.h>
5+
#include <qml/models/nodemodel.h>
66

77
#include <interfaces/node.h>
88
#include <net.h>

src/qml/nodemodel.h renamed to src/qml/models/nodemodel.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#ifndef BITCOIN_QML_NODEMODEL_H
6-
#define BITCOIN_QML_NODEMODEL_H
5+
#ifndef BITCOIN_QML_MODELS_NODEMODEL_H
6+
#define BITCOIN_QML_MODELS_NODEMODEL_H
77

88
#include <interfaces/handler.h>
99
#include <interfaces/node.h>
@@ -98,4 +98,4 @@ public Q_SLOTS:
9898
void ConnectToNumConnectionsChangedSignal();
9999
};
100100

101-
#endif // BITCOIN_QML_NODEMODEL_H
101+
#endif // BITCOIN_QML_MODELS_NODEMODEL_H

src/qml/options_model.cpp renamed to src/qml/models/options_model.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#include <qml/options_model.h>
5+
#include <qml/models/options_model.h>
66

77
#include <interfaces/node.h>
88
#include <qt/guiconstants.h>

0 commit comments

Comments
 (0)