Browse Source

Change go to compilation error btn

cl-refactor
yann300 10 years ago
parent
commit
585c1a1040
  1. 4
      mix/CodeModel.cpp
  2. 67
      mix/qml/StatusPane.qml

4
mix/CodeModel.cpp

@ -193,10 +193,6 @@ void CodeModel::reset(QVariantMap const& _documents)
void CodeModel::registerCodeChange(QString const& _documentId, QString const& _code) void CodeModel::registerCodeChange(QString const& _documentId, QString const& _code)
{ {
CompiledContract* contract = contractByDocumentId(_documentId);
if (contract != nullptr && contract->m_sourceHash == qHash(_code))
return;
{ {
Guard pl(x_pendingContracts); Guard pl(x_pendingContracts);
m_pendingContracts[_documentId] = _code; m_pendingContracts[_documentId] = _code;

67
mix/qml/StatusPane.qml

@ -185,7 +185,6 @@ Rectangle {
else else
width = undefined width = undefined
} }
}
Button Button
{ {
@ -207,6 +206,39 @@ Rectangle {
} }
} }
} }
}
Rectangle
{
visible: false
color: "transparent"
width: 40
height: parent.height
anchors.top: parent.top
anchors.left: status.right
anchors.leftMargin: 15
id: goToLine
RowLayout
{
anchors.fill: parent
Rectangle
{
color: "transparent"
anchors.fill: parent
Button
{
z: 4
anchors.right: parent.right
anchors.rightMargin: 9
anchors.verticalCenter: parent.verticalCenter
id: goToLineBtn
text: ""
iconSource: "qrc:/qml/img/signerroricon32.png"
action: goToCompilationError
}
}
}
}
Action { Action {
id: toolTipInfo id: toolTipInfo
@ -276,39 +308,6 @@ Rectangle {
} }
} }
Rectangle
{
visible: false
color: "transparent"
width: 40
height: parent.height
anchors.top: parent.top
anchors.left: statusContainer.right
anchors.leftMargin: 15
id: goToLine
RowLayout
{
anchors.fill: parent
Rectangle
{
color: "transparent"
anchors.fill: parent
Button
{
z: 4
anchors.right: parent.right
anchors.rightMargin: 9
anchors.verticalCenter: parent.verticalCenter
id: goToLineBtn
text: ""
iconSource: "qrc:/qml/img/signerroricon32.png"
action: goToCompilationError
}
}
}
}
Rectangle Rectangle
{ {
color: "transparent" color: "transparent"

Loading…
Cancel
Save