Browse Source

- Coding Standards.

- Cleaning.
cl-refactor
yann300 10 years ago
parent
commit
1d8fe29f6b
  1. 4
      mix/DebuggingStateWrapper.cpp
  2. 2
      mix/DebuggingStateWrapper.h
  3. 4
      mix/qml/Debugger.qml
  4. 3
      mix/qml/js/Debugger.js

4
mix/DebuggingStateWrapper.cpp

@ -128,10 +128,10 @@ QVariantList DebuggingStateWrapper::debugCallData()
return fillList(qVariantDump(dump), QVariant(filled)); return fillList(qVariantDump(dump), QVariant(filled));
} }
QVariantList DebuggingStateWrapper::qVariantDump(std::list<std::list<std::string>> const& dump) QVariantList DebuggingStateWrapper::qVariantDump(std::list<std::list<std::string>> const& _dump)
{ {
QVariantList ret; QVariantList ret;
for (std::list<std::string> line: dump) for (std::list<std::string> line: _dump)
{ {
QStringList qLine; QStringList qLine;
for (std::string cell: line) for (std::string cell: line)

2
mix/DebuggingStateWrapper.h

@ -136,7 +136,7 @@ private:
bytes m_data; bytes m_data;
QStringList fillList(QStringList& _list, QString const& _emptyValue); QStringList fillList(QStringList& _list, QString const& _emptyValue);
QVariantList fillList(QVariantList _list, QVariant const& _emptyValue); QVariantList fillList(QVariantList _list, QVariant const& _emptyValue);
QVariantList qVariantDump(std::list<std::list<std::string>> const& dump); QVariantList qVariantDump(std::list<std::list<std::string>> const& _dump);
}; };
} }

4
mix/qml/Debugger.qml

@ -64,10 +64,6 @@ Rectangle {
RowLayout RowLayout
{ {
height: 100 height: 100
Image {
id: compileFailed
source: "qrc:/qml/img/compilfailed.png"
}
ColumnLayout ColumnLayout
{ {
Text { Text {

3
mix/qml/js/Debugger.js

@ -7,7 +7,6 @@ var currentSelectedState = null;
var jumpStartingPoint = null; var jumpStartingPoint = null;
function init() function init()
{ {
console.log('popopop');
if (debugStates === undefined) if (debugStates === undefined)
return; return;
@ -16,7 +15,6 @@ function init()
statesList.model = humanReadableExecutionCode; statesList.model = humanReadableExecutionCode;
currentSelectedState = 0; currentSelectedState = 0;
select(currentSelectedState); select(currentSelectedState);
//displayReturnValue();
jumpoutbackaction.enabled(false); jumpoutbackaction.enabled(false);
jumpintobackaction.enabled(false); jumpintobackaction.enabled(false);
@ -30,7 +28,6 @@ function moveSelection(incr)
{ {
if (currentSelectedState + incr < debugStates.length) if (currentSelectedState + incr < debugStates.length)
select(currentSelectedState + incr); select(currentSelectedState + incr);
statesSlider.value = currentSelectedState; statesSlider.value = currentSelectedState;
} }
} }

Loading…
Cancel
Save