summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Moreno <alexmorenocano@gmail.com>2015-10-24 21:47:38 +0800
committerSebastian Dröge <sebastian@centricular.com>2015-10-24 20:37:05 +0300
commitc0a5e72f37b1616ce072b33f47c2799fbac7907e (patch)
tree14666cb3b8bcfcd13f41595025ad5f88c7901a70
parentf327c85d2520a97e52a19f9f3debe0ec78cdfd33 (diff)
qt: elide long titles
Fixes #121
-rw-r--r--qt/main.qml10
1 files changed, 2 insertions, 8 deletions
diff --git a/qt/main.qml b/qt/main.qml
index 85014c3..b3eb188 100644
--- a/qt/main.qml
+++ b/qt/main.qml
@@ -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
}
}