}
WebView {
- id: newsCommentsWebView
width: column.width
+ id: newsCommentsWebView
url: commentURL
preferredWidth: column.width
-// preferredHeight: parent.height - titleRow.height
+
+ // on the maemo platform, the background is dark gray by default, so change it to white
+ onLoadFinished: {
+ newsCommentsWebView.evaluateJavaScript("document.bgColor = '#FFFFFF';")
+ }
}
}
}
window.windowViewsModel.append({ component: listSourceModel[index].listViews[0].viewComponent,
componentDepth: 1 })
- window.currentSourceIndex = index
+ //window.currentSourceIndex = index // doesn't work well with Qt 4.7.3 on Maemo...
+ window.currentContentX = 1*window.width
}
}
}
property variant currentSource: listSourceModel[currentSourceIndex]
property bool loading: currentSource.loading
- property ListModel windowViewsModel: viewsModel
- property ListView windowViewsList: viewsList
+ property alias windowViewsModel: viewsModel
+ property alias windowViewsList: viewsList
+ property alias currentContentX: viewsList.contentX
ListModel {
id: viewsModel
highlightRangeMode: ListView.StrictlyEnforceRange
boundsBehavior: Flickable.StopAtBounds
+ Behavior on contentX {
+ NumberAnimation { duration: 500; easing.type: Easing.InOutCubic }
+ }
+
model: viewsModel
delegate: Loader {
id: modelLoader
source: component
ListView.onAdd: {
- viewsList.currentIndex = componentDepth
+ viewsList.contentX = componentDepth*window.width
+ //viewsList.currentIndex = componentDepth // doesn't work well with Qt 4.7.3 on Maemo...
}
}
}