FeedTheMonkey/main.qml
2015-01-14 23:37:55 +01:00

55 lines
956 B
QML

import QtQuick 2.3
import QtQuick.Controls 1.2
import TTRSS 1.0
ApplicationWindow {
id: window
visible: true
width: 360
height: 360
menuBar: TheMenuBar {}
Row {
anchors.fill: parent
Component {
id: delegate
Text { text: title }
}
ListView {
anchors.fill: parent
model: server.posts
delegate: delegate
}
Content {
id: content
anchors.fill: parent
visible: false
}
}
Login {
id: login
anchors.fill: parent
visible: true
function login() {
serverLogin.login(serverUrl, userName, password)
}
}
ServerLogin {
id: serverLogin
onSessionIdChanged: {
login.visible = false;
server.initialize(serverUrl, sessionId);
}
}
Server {
id: server
}
}