diff --git a/Login.qml b/Login.qml index 2c993fb..d56635d 100644 --- a/Login.qml +++ b/Login.qml @@ -11,7 +11,8 @@ Rectangle { Column { width: parent.width - anchors.margins: 20 + anchors.margins: parent.width / 4 + spacing: 10 Text { text: qsTr("Please specify a server url, a username and a password.") diff --git a/main.qml b/main.qml index 05a6484..b2469e4 100644 --- a/main.qml +++ b/main.qml @@ -1,35 +1,39 @@ import QtQuick 2.3 -import QtQuick.Controls 1.2 +import QtQuick.Controls 1.3 import TTRSS 1.0 ApplicationWindow { id: window visible: true - width: 360 - height: 360 + width: 1024 + height: 800 menuBar: TheMenuBar {} - Row { - anchors.fill: parent - Component { - id: delegate - Text { text: title } - } + Component { + id: delegate + Text { text: title } + } + ScrollView { + width: parent.width / 3 + anchors.bottom: parent.bottom + anchors.top: parent.top ListView { - anchors.fill: parent + anchors.top: parent.top + anchors.bottom: parent.bottom + spacing: 5 model: server.posts delegate: delegate } - - Content { - id: content - anchors.fill: parent - visible: false - } } + Content { + width: parent.width / 3 * 2 + anchors.right: parent.right + anchors.top: parent.top + anchors.bottom: parent.bottom + } Login { id: login