hide page indicator when only one page

This commit is contained in:
Alexander Ivash 2018-04-27 22:50:02 +03:00
parent 1916df6c81
commit f8917a835a

View file

@ -646,6 +646,7 @@ Rectangle {
text: "\ue01d"; text: "\ue01d";
size: 50 size: 50
color: view.hasPrev ? 'black' : 'gray' color: view.hasPrev ? 'black' : 'gray'
visible: view.hasNext || view.hasPrev
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
@ -662,6 +663,7 @@ Rectangle {
text: "\ue01d"; text: "\ue01d";
size: 50 size: 50
color: view.hasNext ? 'black' : 'gray' color: view.hasNext ? 'black' : 'gray'
visible: view.hasNext || view.hasPrev
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent