Browse Source

Merge pull request #8926 from DonLakeFlyer/VerticalFactValueGrid

Horizontal scrolling as needed
QGC4.4
Don Gagne 5 years ago committed by GitHub
parent
commit
825c5ab68d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      src/QmlControls/VerticalFactValueGrid.qml

15
src/QmlControls/VerticalFactValueGrid.qml

@ -32,18 +32,25 @@ T.VerticalFactValueGrid {
QGCPalette { id: qgcPal; colorGroupEnabled: enabled } QGCPalette { id: qgcPal; colorGroupEnabled: enabled }
QGCFlickable {
width: parent.width
height: topLevelRowLayout.height
flickableDirection: QGCFlickable.HorizontalFlick
contentWidth: topLevelRowLayout.width
RowLayout { RowLayout {
id: topLevelRowLayout id: topLevelRowLayout
width: parent.width spacing: 0
ColumnLayout { ColumnLayout {
Layout.fillWidth: true spacing: 0
GridLayout { GridLayout {
id: valueGrid id: valueGrid
Layout.preferredWidth: _root.width Layout.minimumWidth: _root.width - (columnButtons.visible? columnButtons.width + columnSpacing : 0)
rows: _root.rows.count * 2 rows: _root.rows.count * 2
rowSpacing: 0 rowSpacing: 0
columnSpacing: 5
Repeater { Repeater {
model: _root.rows model: _root.rows
@ -109,6 +116,7 @@ T.VerticalFactValueGrid {
} }
ColumnLayout { ColumnLayout {
id: columnButtons
Layout.fillHeight: true Layout.fillHeight: true
Layout.bottomMargin: rowButtons.height Layout.bottomMargin: rowButtons.height
width: ScreenTools.minTouchPixels / 2 width: ScreenTools.minTouchPixels / 2
@ -155,6 +163,7 @@ T.VerticalFactValueGrid {
color: "transparent" color: "transparent"
}*/ }*/
} }
}
Component { Component {
id: valueEditDialog id: valueEditDialog

Loading…
Cancel
Save