Skip to content

Commit

Permalink
fixed listview in discovery page only showing 1 device
Browse files Browse the repository at this point in the history
  • Loading branch information
sigurg committed Oct 3, 2018
1 parent 8825a25 commit d3c0447
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.pro.user*
rpm/*.spec.*
6 changes: 4 additions & 2 deletions qml/pages/discovery.qml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ Page {
}

SilicaListView {
anchors.top: header.bottom
width: parent.width - 2*Theme.paddingMedium
height: page.height - header.height
id: view
currentIndex: -1
model: blescanner.devicesList
anchors.horizontalCenter: parent.horizontalCenter

VerticalScrollDecorator {}

ViewPlaceholder {
enabled: view.count == 0
//% "No Mooshimeters found"
Expand All @@ -45,6 +47,7 @@ Page {

delegate: BackgroundItem {
id: backgroundItem
height: Theme.fontSizeExtraLarge * 2

ListView.onAdd: AddAnimation {
target: backgroundItem
Expand All @@ -53,7 +56,6 @@ Page {
target: backgroundItem
}


Column {
Label {
text: modelData.name
Expand Down

0 comments on commit d3c0447

Please sign in to comment.