aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/HistoryTable.qml6
-rw-r--r--components/IconButton.qml30
-rw-r--r--components/TextBlock.qml7
3 files changed, 25 insertions, 18 deletions
diff --git a/components/HistoryTable.qml b/components/HistoryTable.qml
index 933c606c..082822d3 100644
--- a/components/HistoryTable.qml
+++ b/components/HistoryTable.qml
@@ -259,11 +259,11 @@ ListView {
//elide: Text.ElideRight
font.family: "Arial"
font.pixelSize: 13
- color: (confirmations < 10)? "#FF6C3C" : "#545454"
+ color: (confirmations < confirmationsRequired)? "#FF6C3C" : "#545454"
text: {
if (!isPending)
- if(confirmations < 10)
- return blockHeight + " " + qsTr("(%1/10 confirmations)").arg(confirmations)
+ if(confirmations < confirmationsRequired)
+ return blockHeight + " " + qsTr("(%1/%2 confirmations)").arg(confirmations).arg(confirmationsRequired)
else
return blockHeight
if (!isOut)
diff --git a/components/IconButton.qml b/components/IconButton.qml
index eeb80267..042439f1 100644
--- a/components/IconButton.qml
+++ b/components/IconButton.qml
@@ -50,23 +50,23 @@ Item {
z: 100
}
-// MouseArea {
-// id: buttonArea
-// anchors.fill: parent
+ MouseArea {
+ id: buttonArea
+ anchors.fill: parent
-// onPressed: {
-// buttonImage.x = buttonImage.x + 2
-// buttonImage.y = buttonImage.y + 2
-// }
-// onReleased: {
-// buttonImage.x = buttonImage.x - 2
-// buttonImage.y = buttonImage.y - 2
-// }
+ onPressed: {
+ buttonImage.x = buttonImage.x + 2
+ buttonImage.y = buttonImage.y + 2
+ }
+ onReleased: {
+ buttonImage.x = buttonImage.x - 2
+ buttonImage.y = buttonImage.y - 2
+ }
-// onClicked: {
-// parent.clicked(mouse)
-// }
-// }
+ onClicked: {
+ parent.clicked(mouse)
+ }
+ }
}
diff --git a/components/TextBlock.qml b/components/TextBlock.qml
new file mode 100644
index 00000000..7c36088a
--- /dev/null
+++ b/components/TextBlock.qml
@@ -0,0 +1,7 @@
+import QtQuick 2.0
+
+TextEdit {
+ wrapMode: Text.Wrap
+ readOnly: true
+ selectByMouse: true
+}