added sidebar

This commit is contained in:
Jeena 2015-01-15 18:25:47 +01:00
parent 13893312d8
commit 48d2646545
2 changed files with 22 additions and 17 deletions

View file

@ -11,7 +11,8 @@ Rectangle {
Column { Column {
width: parent.width width: parent.width
anchors.margins: 20 anchors.margins: parent.width / 4
spacing: 10
Text { Text {
text: qsTr("Please specify a server url, a username and a password.") text: qsTr("Please specify a server url, a username and a password.")

View file

@ -1,35 +1,39 @@
import QtQuick 2.3 import QtQuick 2.3
import QtQuick.Controls 1.2 import QtQuick.Controls 1.3
import TTRSS 1.0 import TTRSS 1.0
ApplicationWindow { ApplicationWindow {
id: window id: window
visible: true visible: true
width: 360 width: 1024
height: 360 height: 800
menuBar: TheMenuBar {} menuBar: TheMenuBar {}
Row {
anchors.fill: parent
Component { Component {
id: delegate id: delegate
Text { text: title } Text { text: title }
} }
ScrollView {
width: parent.width / 3
anchors.bottom: parent.bottom
anchors.top: parent.top
ListView { ListView {
anchors.fill: parent anchors.top: parent.top
anchors.bottom: parent.bottom
spacing: 5
model: server.posts model: server.posts
delegate: delegate delegate: delegate
} }
}
Content { Content {
id: content width: parent.width / 3 * 2
anchors.fill: parent anchors.right: parent.right
visible: false anchors.top: parent.top
anchors.bottom: parent.bottom
} }
}
Login { Login {
id: login id: login