mirror of
https://gitlab.com/eql/lqml.git
synced 2025-12-06 02:30:38 -08:00
revisions
This commit is contained in:
parent
ce371b402e
commit
fd0207e381
2 changed files with 14 additions and 8 deletions
|
|
@ -24,7 +24,7 @@ Item {
|
||||||
id: planets
|
id: planets
|
||||||
objectName: "planets"
|
objectName: "planets"
|
||||||
|
|
||||||
// example
|
// example of inline item
|
||||||
//ListElement { name: "Earth"; shape: "img/earth.png"; map: "img/earth-map.jpg"; info: "..." }
|
//ListElement { name: "Earth"; shape: "img/earth.png"; map: "img/earth-map.jpg"; info: "..." }
|
||||||
|
|
||||||
function addPlanet(planet) {
|
function addPlanet(planet) {
|
||||||
|
|
@ -32,7 +32,7 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
property int itemHeight: 35
|
property int itemHeight: 44
|
||||||
|
|
||||||
Component {
|
Component {
|
||||||
id: planetInfo
|
id: planetInfo
|
||||||
|
|
@ -54,7 +54,7 @@ Item {
|
||||||
x: 15
|
x: 15
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.leftMargin: 4
|
anchors.leftMargin: 4
|
||||||
font.pixelSize: parent.height - 12
|
font.pixelSize: parent.height - 22
|
||||||
color: "#f0f0f0"
|
color: "#f0f0f0"
|
||||||
text: name // see Lisp keyword name
|
text: name // see Lisp keyword name
|
||||||
}
|
}
|
||||||
|
|
@ -76,7 +76,7 @@ Item {
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
id: shapeImage
|
id: shapeImage
|
||||||
height: parent.height / (mapImage.visible ? 2 : 1)
|
height: parent.height - mapImage.height
|
||||||
width: parent.width
|
width: parent.width
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
source: shape // see Lisp keyword name
|
source: shape // see Lisp keyword name
|
||||||
|
|
@ -85,8 +85,8 @@ Item {
|
||||||
Image {
|
Image {
|
||||||
id: mapImage
|
id: mapImage
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
height: 0
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
visible: (wrapper.state === "expanded")
|
|
||||||
source: map // see Lisp keyword name
|
source: map // see Lisp keyword name
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -107,7 +107,7 @@ Item {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: "lightyellow"
|
color: "#303060"
|
||||||
border.color: "#101010"
|
border.color: "#101010"
|
||||||
border.width: 1
|
border.width: 1
|
||||||
|
|
||||||
|
|
@ -132,9 +132,10 @@ Item {
|
||||||
|
|
||||||
TextEdit {
|
TextEdit {
|
||||||
id: edit
|
id: edit
|
||||||
readOnly: true
|
|
||||||
width: flick.width
|
width: flick.width
|
||||||
font.pixelSize: 14
|
color: "#f0f0f0"
|
||||||
|
font.pixelSize: 16
|
||||||
|
readOnly: true
|
||||||
focus: true
|
focus: true
|
||||||
wrapMode: TextEdit.Wrap
|
wrapMode: TextEdit.Wrap
|
||||||
onCursorRectangleChanged: flick.ensureVisible(cursorRectangle)
|
onCursorRectangleChanged: flick.ensureVisible(cursorRectangle)
|
||||||
|
|
@ -175,6 +176,7 @@ Item {
|
||||||
|
|
||||||
PropertyChanges { target: wrapper; height: view.height }
|
PropertyChanges { target: wrapper; height: view.height }
|
||||||
PropertyChanges { target: image; width: view.width; height: view.height * 2/3; anchors.rightMargin: 0; anchors.topMargin: itemHeight }
|
PropertyChanges { target: image; width: view.width; height: view.height * 2/3; anchors.rightMargin: 0; anchors.topMargin: itemHeight }
|
||||||
|
PropertyChanges { target: mapImage; height: view.height * 1/3 }
|
||||||
PropertyChanges { target: infoView; opacity: 1 }
|
PropertyChanges { target: infoView; opacity: 1 }
|
||||||
PropertyChanges { target: closeButton; opacity: 1 }
|
PropertyChanges { target: closeButton; opacity: 1 }
|
||||||
PropertyChanges { target: wrapper.ListView.view; contentY: wrapper.y; interactive: false }
|
PropertyChanges { target: wrapper.ListView.view; contentY: wrapper.y; interactive: false }
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,10 @@ Important note
|
||||||
* **Qt**: in the above case, a `make clean` will also force the recompilation
|
* **Qt**: in the above case, a `make clean` will also force the recompilation
|
||||||
of any Lisp code next time you do a build.
|
of any Lisp code next time you do a build.
|
||||||
|
|
||||||
|
* **LQML**: any time you upgrade LQML, please purge the build directories in
|
||||||
|
`src/` (see also `src/mkdirs.sh`) and rebuild the whole library for every
|
||||||
|
single platform.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Build executable
|
Build executable
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue