ReaderPage: dichiarata property ready (era usata ma mai dichiarata = spinner infinito) + PullDownMenu dentro la vista Silica (fix segfault)
This commit is contained in:
+14
-11
@@ -12,6 +12,7 @@ Page {
|
||||
|
||||
property int currentChapter: 0
|
||||
property double chapterFraction: 0.0
|
||||
property bool ready: false
|
||||
property bool restoring: false
|
||||
property int saveCounter: 0
|
||||
property int syncCounter: 0
|
||||
@@ -29,6 +30,19 @@ Page {
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: toolbar.top
|
||||
contentHeight: parent.height
|
||||
|
||||
// il PullDownMenu va DENTRO una vista Silica, non a livello di Page
|
||||
PullDownMenu {
|
||||
MenuItem {
|
||||
text: "Indice capitoli"
|
||||
onClicked: showChapterList()
|
||||
}
|
||||
MenuItem {
|
||||
text: "Aggiorna posizione sul server"
|
||||
onClicked: syncNow()
|
||||
}
|
||||
}
|
||||
|
||||
WebView {
|
||||
id: web
|
||||
anchors.fill: parent
|
||||
@@ -132,17 +146,6 @@ Page {
|
||||
}
|
||||
}
|
||||
|
||||
PullDownMenu {
|
||||
MenuItem {
|
||||
text: "Indice capitoli"
|
||||
onClicked: showChapterList()
|
||||
}
|
||||
MenuItem {
|
||||
text: "Aggiorna posizione sul server"
|
||||
onClicked: syncNow()
|
||||
}
|
||||
}
|
||||
|
||||
// ---- timer di tracciamento ----
|
||||
Timer {
|
||||
id: trackTimer
|
||||
|
||||
Reference in New Issue
Block a user