Verified Commit 9b97e7fb authored by Jonah Brüchert's avatar Jonah Brüchert
Browse files

Tabs: Display title

parent 53d0e297
......@@ -109,17 +109,7 @@ Kirigami.ScrollablePage {
tabs.positionViewAtIndex(index, ListView.Beginning);
//tabs.positionViewAtEnd();
pageStack.layers.pop()
return;
if (tabItem.width < tabsRoot.width) {
// tabItem.width = currentWebView.width
// tabItem.height = currentWebView.height
} else {
tabItem.width = itemWidth
tabItem.height = itemHeight
}
}
}
Controls.ToolButton {
......@@ -132,6 +122,20 @@ Kirigami.ScrollablePage {
anchors.topMargin: Kirigami.Units.smallSpacing
onClicked: tabs.closeTab(index)
}
Controls.Label {
anchors {
left: tabItem.left
right: tabItem.right
bottom: tabItem.bottom
margins: Kirigami.Units.gridUnit * 0.5
}
width: itemWidth
text: tabs.itemAt(tabs.pageWidth * index, 0).title
elide: Qt.ElideRight
}
}
footer: Item {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment