added sidebar
This commit is contained in:
parent
13893312d8
commit
48d2646545
2 changed files with 22 additions and 17 deletions
|
@ -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.")
|
||||
|
|
26
main.qml
26
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 }
|
||||
}
|
||||
|
||||
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
|
||||
width: parent.width / 3 * 2
|
||||
anchors.right: parent.right
|
||||
anchors.top: parent.top
|
||||
anchors.bottom: parent.bottom
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Login {
|
||||
id: login
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue