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 {
|
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.")
|
||||||
|
|
36
main.qml
36
main.qml
|
@ -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 {
|
Component {
|
||||||
anchors.fill: parent
|
id: delegate
|
||||||
Component {
|
Text { text: title }
|
||||||
id: delegate
|
}
|
||||||
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 {
|
|
||||||
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 {
|
Login {
|
||||||
id: login
|
id: login
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue