moved serverLogin to main

This commit is contained in:
Jeena 2015-01-10 15:21:56 +01:00
parent bd1a80af61
commit 9cab3341b6
3 changed files with 17 additions and 10 deletions

View file

@ -1,5 +1,6 @@
import QtQuick 2.3
import QtQuick.Controls 1.2
import TTRSS 1.0
ApplicationWindow {
id: window
@ -10,12 +11,23 @@ ApplicationWindow {
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
}
}