Landscape mode support, better square view layout

This commit is contained in:
Thomas Perl 2014-03-18 20:36:18 +01:00
parent 9eb422f892
commit 56c9139dd2
3 changed files with 9 additions and 8 deletions

View file

@ -56,9 +56,12 @@ Rectangle {
id: contents
property int border: parent.width * 0.1
width: parent.fullWidth ? parent.width : (parent.width - 2 * border)
property int maxHeight: parent.height - 4 * border
property int maxHeight: parent.height - toolbar.height
height: ((page.contentHeight > 0 && page.contentHeight < maxHeight) ? page.contentHeight : maxHeight) * parent.opacity
anchors.centerIn: parent
anchors {
horizontalCenter: parent.horizontalCenter
top: parent.top
}
color: Constants.colors.dialog
clip: true
}

View file

@ -32,7 +32,8 @@ Item {
GPodderPodcastListModel { id: podcastListModel }
property real scalef: width / 480
property real scalef: (width < height) ? (width / 480) : (height / 480)
property int shorterSide: (width < height) ? width : height
property int dialogsVisible: 0
anchors.fill: parent

View file

@ -44,11 +44,6 @@ Dialog {
width: flickable.width
spacing: 10 * pgst.scalef
SlidePageHeader {
title: 'Now playing'
color: Constants.colors.playback
}
Column {
anchors {
left: parent.left
@ -56,6 +51,8 @@ Dialog {
margins: 30 * pgst.scalef
}
Item { width: parent.width; height: 20 * pgst.scalef }
PLabel {
anchors {
left: parent.left