Skip to content

Commit

Permalink
tr dialog ui changes
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 committed Jun 24, 2015
1 parent f2bcd94 commit cb8886e
Show file tree
Hide file tree
Showing 6 changed files with 112 additions and 132 deletions.
1 change: 1 addition & 0 deletions qml/Ether.qml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ RowLayout {
{
id: units
visible: displayUnitSelection;
implicitWidth: 145
onCurrentTextChanged:
{
if (value)
Expand Down
23 changes: 8 additions & 15 deletions qml/QHashTypeView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,15 @@ Item
id: boldFont
}

Rectangle {
anchors.fill: parent
radius: 4
TextInput {
id: textinput
text: value
TextInput {
id: textinput
text: value
wrapMode: Text.WrapAnywhere
MouseArea {
id: mouseArea
anchors.fill: parent
wrapMode: Text.WrapAnywhere
clip: true
font.family: boldFont.name
MouseArea {
id: mouseArea
anchors.fill: parent
hoverEnabled: true
onClicked: textinput.forceActiveFocus()
}
hoverEnabled: true
onClicked: textinput.forceActiveFocus()
}
}
}
33 changes: 12 additions & 21 deletions qml/QIntTypeView.qml
Original file line number Diff line number Diff line change
@@ -1,35 +1,26 @@
import QtQuick 2.0

import QtQuick.Controls 1.1
Item
{
property alias value: textinput.text
property alias readOnly: textinput.readOnly
id: editRoot
width: readOnly ? textinput.implicitWidth : 150

width: 200
DebuggerPaneStyle {
id: dbgStyle
}

Rectangle {
anchors.fill: parent
radius: 4
TextInput {
anchors.verticalCenter: parent.verticalCenter
id: textinput
font.family: dbgStyle.general.basicFont
clip: true
selectByMouse: true
text: value
TextField {
anchors.verticalCenter: parent.verticalCenter
id: textinput
selectByMouse: true
text: value
implicitWidth: 200
MouseArea {
id: mouseArea
anchors.fill: parent
font.pointSize: dbgStyle.general.basicFontSize
color: dbgStyle.general.basicColor
MouseArea {
id: mouseArea
anchors.fill: parent
hoverEnabled: true
onClicked: textinput.forceActiveFocus()
}
hoverEnabled: true
onClicked: textinput.forceActiveFocus()
}
}
}
28 changes: 10 additions & 18 deletions qml/QStringTypeView.qml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import QtQuick 2.0
import QtQuick.Controls 1.1

Item
{
Expand All @@ -11,25 +12,16 @@ Item
id: dbgStyle
}

Rectangle {
anchors.fill: parent
radius: 4
TextInput {
anchors.verticalCenter: parent.verticalCenter
id: textinput
font.family: dbgStyle.general.basicFont
clip: true
selectByMouse: true
text: value
TextField {
anchors.verticalCenter: parent.verticalCenter
id: textinput
selectByMouse: true
text: value
MouseArea {
id: mouseArea
anchors.fill: parent
font.pointSize: dbgStyle.general.basicFontSize
color: dbgStyle.general.basicColor
MouseArea {
id: mouseArea
anchors.fill: parent
hoverEnabled: true
onClicked: textinput.forceActiveFocus()
}
hoverEnabled: true
onClicked: textinput.forceActiveFocus()
}
}
}
Expand Down
8 changes: 2 additions & 6 deletions qml/StructView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ Column
property int transactionIndex
property string context
Layout.fillWidth: true
spacing: 15
spacing: 5
Repeater
{
id: repeater
visible: model.length > 0
RowLayout
{
id: row
height: 20 + (members[index].type.category === QSolidityType.Struct ? (20 * members[index].type.members.length) : 0)
height: 30 + (members[index].type.category === QSolidityType.Struct ? (30 * members[index].type.members.length) : 0)
Layout.fillWidth: true
Rectangle
{
Expand All @@ -31,13 +31,11 @@ Column
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
Label {
height: 20
id: nameLabel
text: modelData.name
}

Label {
height: 20
id: typeLabel
text: " (" + modelData.type.name + ")"
font.italic: true
Expand All @@ -49,8 +47,6 @@ Column
Loader
{
id: typeLoader
height: 20
anchors.verticalCenter: parent.verticalCenter
sourceComponent:
{
var t = modelData.type.category;
Expand Down
Loading

0 comments on commit cb8886e

Please sign in to comment.