Browse Source

clean code, add icons

cl-refactor
yann300 10 years ago
parent
commit
4d03f86b34
  1. 2
      mix/ClientModel.h
  2. 2
      mix/qml/BlockChain.qml
  3. 8
      mix/qml/ScenarioLoader.qml
  4. 12
      mix/qml/Watchers.qml
  5. 5
      mix/res.qrc

2
mix/ClientModel.h

@ -246,8 +246,6 @@ signals:
void stateCleared();
/// new state has been processed
void newState(unsigned _record, QVariantMap _accounts);
/// account has been added to the model
void accountAdded(QString _address, QString _amount);
private:
RecordLogEntry* lastBlock() const;

2
mix/qml/BlockChain.qml

@ -429,7 +429,7 @@ ColumnLayout {
height: 30
buttonShortcut: ""
sourceImg: "qrc:/qml/img/addblock@2x.png"
sourceImg: "qrc:/qml/img/newblock@2x.png"
}
}

8
mix/qml/ScenarioLoader.qml

@ -107,11 +107,13 @@ ColumnLayout
Rectangle
{
id: editIconRect
anchors.top: scenarioName.top
anchors.topMargin: 6
anchors.left: scenarioName.right
anchors.leftMargin: 15
anchors.leftMargin: 20
Image {
source: "qrc:/qml/img/edit.png"
width: 10
source: "qrc:/qml/img/edittransaction.png"
width: 30
fillMode: Image.PreserveAspectFit
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter

12
mix/qml/Watchers.qml

@ -70,15 +70,15 @@ Rectangle {
spacing: 15
Rectangle
{
height: 20
height: 15
width: parent.width - 30
color: "transparent"
Row
{
id: rowHeader
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
height: 5
anchors.top: rowHeader.parent.top
anchors.topMargin: 6
spacing: 5
Label {
id: fromLabel
@ -119,9 +119,9 @@ Rectangle {
Image {
anchors.right: rowHeader.parent.right
anchors.top: rowHeader.parent.top
anchors.topMargin: 10
source: "qrc:/qml/img/edit.png"
height: 15
anchors.topMargin: -3
source: "qrc:/qml/img/edittransaction2.png"
height: 30
fillMode: Image.PreserveAspectFit
visible: from.text !== ""
MouseArea

5
mix/res.qrc

@ -90,5 +90,10 @@
<file>qml/img/saveicon@2x.png</file>
<file>qml/img/sendtransactionicon.png</file>
<file>qml/img/sendtransactionicon@2x.png</file>
<file>qml/img/edittransaction@2x.png</file>
<file>qml/img/newblock@2x.png</file>
<file>qml/img/edittransaction2@2x.png</file>
<file>qml/img/edittransaction.png</file>
<file>qml/img/edittransaction2.png</file>
</qresource>
</RCC>

Loading…
Cancel
Save