WindowHeapDelegate: set maximumLineCount to fix negative cell size
cell.bottomMargin
depends on caption.height
. For small windows
QRect::marginsRemoved
will produce negative size if caption.height
is too big, so limit the maximum line count here to limit its height.