Skip to content
Snippets Groups Projects

Display tab title

Merged Jonah Brüchert requested to merge tab-title into master
1 file
+ 14
10
Compare changes
  • Side-by-side
  • Inline
+ 14
10
@@ -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 {
Loading