playback/player: qt: elide long titles

Fixes #121
This commit is contained in:
Alexandre Moreno 2015-10-24 21:47:38 +08:00 committed by Sebastian Dröge
parent 3542cae138
commit 512051bdd6

View file

@ -76,14 +76,6 @@ ApplicationWindow {
onTriggered: fileDialog.open()
}
menuBar: MenuBar {
Menu {
title: "&File"
MenuItem { action: fileOpenAction }
MenuItem { text: "Quit"; onTriggered: Qt.quit() }
}
}
Item {
anchors.fill: parent
FontLoader {
@ -452,8 +444,10 @@ ApplicationWindow {
height: 38
Text {
anchors.centerIn: parent
width: parent.width
text: player.mediaInfo.title
font.pointSize: 15
elide: Text.ElideRight
}
}