always display at least one column

This commit is contained in:
Marco Martin 2012-08-08 11:36:30 +02:00
parent 01aaeae527
commit 7695197517

View File

@ -58,7 +58,7 @@ Item {
property ToolBar toolBar
property variant initialPage
//A column is wide enough for 30 characters
property int columnWidth: parent.width/Math.round(parent.width/(theme.defaultFont.mSize.width*30))
property int columnWidth: Math.round(parent.width/(theme.defaultFont.mSize.width*30)) > 0 ? parent.width/Math.round(parent.width/(theme.defaultFont.mSize.width*30)) : width
clip: true
// Indicates whether there is an ongoing page transition.