forked from Public/monero-gui
StandardDropdown: fix for empty model
This commit is contained in:
@@ -107,7 +107,7 @@ Item {
|
|||||||
font.bold: true
|
font.bold: true
|
||||||
font.pixelSize: 12
|
font.pixelSize: 12
|
||||||
color: "#FFFFFF"
|
color: "#FFFFFF"
|
||||||
text: repeater.model.get(column.currentIndex).column1
|
text: column.currentIndex < repeater.model.rowCount() ? repeater.model.get(column.currentIndex).column1 : ""
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
@@ -119,7 +119,7 @@ Item {
|
|||||||
font.family: "Arial"
|
font.family: "Arial"
|
||||||
font.pixelSize: 12
|
font.pixelSize: 12
|
||||||
color: "#FFFFFF"
|
color: "#FFFFFF"
|
||||||
text: repeater.model.get(column.currentIndex).column2
|
text: column.currentIndex < repeater.model.rowCount() ? repeater.model.get(column.currentIndex).column2 : ""
|
||||||
|
|
||||||
property int w: 0
|
property int w: 0
|
||||||
Component.onCompleted: w = implicitWidth
|
Component.onCompleted: w = implicitWidth
|
||||||
|
|||||||
Reference in New Issue
Block a user