-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dmnk Freemountainer
authored and
Dmnk Freemountainer
committed
Nov 24, 2016
1 parent
2e4168a
commit b32d61e
Showing
5 changed files
with
66 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include "debugger.h" | ||
|
||
Debugger::Debugger() | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#ifndef DEBUGGER_H | ||
#define DEBUGGER_H | ||
|
||
#include <QObject> | ||
#include <QString> | ||
#include <QQuickItem> | ||
#include <QQmlApplicationEngine> | ||
|
||
#include "logger.h" | ||
|
||
class DebuggerLogger : public QObject, Logger { | ||
public: | ||
DebuggerLogger(QObject* parent = 0) : QObject(parent) {} | ||
|
||
void printLine(QString msg) { | ||
emit _log(msg); | ||
} | ||
signals: | ||
void _log(QString msg); | ||
|
||
}; | ||
|
||
class Debugger : public QObject | ||
{ | ||
public: | ||
Debugger(); | ||
Logger* getLogger(); | ||
|
||
|
||
private: | ||
DebuggerLogger* log; | ||
QQmlApplicationEngine* qmlEngine; | ||
|
||
}; | ||
|
||
#endif // DEBUGGER_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import QtQuick 2.2 | ||
import QtQuick.Controls 2.0 | ||
import QtQuick.Layouts 1.3 | ||
import Quark 1.0 | ||
|
||
ApplicationWindow { | ||
id: window | ||
visible: true | ||
width: 300 | ||
|
||
TextArea { | ||
anchors.fill: parent | ||
text: | ||
"Lorem ipsum dolor sit amet, consectetur adipisicing elit, " + | ||
"sed do eiusmod tempor incididunt ut labore et dolore magna " + | ||
"aliqua. Ut enim ad minim veniam, quis nostrud exercitation " + | ||
"ullamco laboris nisi ut aliquip ex ea commodo cosnsequat. "; | ||
} | ||
} |