File tree 5 files changed +66
-2
lines changed
5 files changed +66
-2
lines changed Original file line number Diff line number Diff line change @@ -9,14 +9,16 @@ include(vendor/vendor.pri)
9
9
SOURCES += src/cpp/main.cpp \
10
10
src/cpp/rootstore.cpp \
11
11
src/cpp/environment.cpp \
12
- src/cpp/quarkprocess.cpp
12
+ src/cpp/quarkprocess.cpp \
13
+ src/cpp/debugger.cpp
13
14
14
15
HEADERS += \
15
16
src/cpp/rootstore.h \
16
17
src/cpp/environment.h \
17
18
src/cpp/quarkprocess.h \
18
19
src/cpp/either.h \
19
- src/cpp/logger.h
20
+ src/cpp/logger.h \
21
+ src/cpp/debugger.h
20
22
21
23
RESOURCES += qml.qrc
22
24
Original file line number Diff line number Diff line change 4
4
<file>src/qml/Quark/qmldir</file>
5
5
<file>src/qml/Quark/jsonpath.js</file>
6
6
<file>src/qml/Quark/ListModel.qml</file>
7
+ <file>src/qml/Debugger.qml</file>
7
8
</qresource>
8
9
</RCC>
Original file line number Diff line number Diff line change
1
+ #include " debugger.h"
2
+
3
+ Debugger::Debugger ()
4
+ {
5
+
6
+ }
Original file line number Diff line number Diff line change
1
+ #ifndef DEBUGGER_H
2
+ #define DEBUGGER_H
3
+
4
+ #include < QObject>
5
+ #include < QString>
6
+ #include < QQuickItem>
7
+ #include < QQmlApplicationEngine>
8
+
9
+ #include " logger.h"
10
+
11
+ class DebuggerLogger : public QObject , Logger {
12
+ public:
13
+ DebuggerLogger (QObject* parent = 0 ) : QObject(parent) {}
14
+
15
+ void printLine (QString msg) {
16
+ emit _log (msg);
17
+ }
18
+ signals:
19
+ void _log (QString msg);
20
+
21
+ };
22
+
23
+ class Debugger : public QObject
24
+ {
25
+ public:
26
+ Debugger ();
27
+ Logger* getLogger ();
28
+
29
+
30
+ private:
31
+ DebuggerLogger* log;
32
+ QQmlApplicationEngine* qmlEngine;
33
+
34
+ };
35
+
36
+ #endif // DEBUGGER_H
Original file line number Diff line number Diff line change
1
+ import QtQuick 2.2
2
+ import QtQuick.Controls 2.0
3
+ import QtQuick.Layouts 1.3
4
+ import Quark 1.0
5
+
6
+ ApplicationWindow {
7
+ id: window
8
+ visible: true
9
+ width: 300
10
+
11
+ TextArea {
12
+ anchors .fill : parent
13
+ text:
14
+ " Lorem ipsum dolor sit amet, consectetur adipisicing elit, " +
15
+ " sed do eiusmod tempor incididunt ut labore et dolore magna " +
16
+ " aliqua. Ut enim ad minim veniam, quis nostrud exercitation " +
17
+ " ullamco laboris nisi ut aliquip ex ea commodo cosnsequat. " ;
18
+ }
19
+ }
You can’t perform that action at this time.
0 commit comments