summaryrefslogtreecommitdiffstats
path: root/qt-models
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-08 12:44:01 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-08 12:44:01 -0800
commit3e4636151897d0022743aec73046182d89a5862a (patch)
treea031210e31537fbd78eca5c0d35317fa37b8bc1d /qt-models
parentc6a844fbad02680fd37bd6b5dbece95dd89f007a (diff)
downloadsubsurface-3e4636151897d0022743aec73046182d89a5862a.tar.gz
QML UI: DiveDetailsView - set fixed column widths
In order for wrapping to work, the Text and TextEdit elements need to have a defined width. Normally the GridLayout is supposed to be able to figure out optimal widths for the different colums if you tell it which ones should stretch, but that has repeatedly caused infinite loops and crashes in the layout engine. For now, in order to get both wrapping (and therefore no clipping of the content) and avoid crashes, we hard code the width of the four columns by setting Layout.maxWidth for each element in the first row of the grid. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models')
0 files changed, 0 insertions, 0 deletions