Commit 1ffffe00 authored by Jonah Brüchert's avatar Jonah Brüchert
Browse files

Calculate tab width from gridUnit

Since we may want to display more than two columns, especially in landscape mode
parent f9d361ca
......@@ -38,16 +38,13 @@ Kirigami.ScrollablePage {
title: i18n("Tabs")
property int itemHeight: Math.round(itemWidth/ 3 * 2)
property int itemWidth: (width / 2) - Kirigami.Units.gridUnit
property int itemWidth: Kirigami.Units.gridUnit * 9
//Rectangle { anchors.fill: parent; color: "brown"; opacity: 0.5; }
GridView {
//columns: 2
anchors.fill: parent
//model: tabs.count +
model: tabs.model
//model: 4
cellWidth: itemWidth
cellHeight: itemHeight
......
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