Browse Source

Change go to compilation error btn

cl-refactor
yann300 10 years ago
parent
commit
585c1a1040
  1. 4
      mix/CodeModel.cpp
  2. 95
      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;

95
mix/qml/StatusPane.qml

@ -185,25 +185,57 @@ Rectangle {
else else
width = undefined width = undefined
} }
}
Button Button
{ {
anchors.fill: parent anchors.fill: parent
id: toolTip id: toolTip
action: toolTipInfo action: toolTipInfo
text: "" text: ""
z: 3; z: 3;
style: style:
ButtonStyle { ButtonStyle {
background:Rectangle { background:Rectangle {
color: "transparent" color: "transparent"
}
}
MouseArea {
anchors.fill: parent
onClicked: {
logsContainer.toggle();
}
} }
} }
MouseArea { }
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 anchors.fill: parent
onClicked: { Rectangle
logsContainer.toggle(); {
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
}
} }
} }
} }
@ -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