forked from jeena/FeedTheMonkey
40 lines
675 B
QML
40 lines
675 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 {}
|
|
|
|
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
|
|
}
|
|
}
|