Skip to content

TreeViewDelegate: Make it actually vertically centered

ivan tkachenko requested to merge work/ratijas/they-are-in-the-trees111 into master

Make it actually vertically centered

The verticalAlignment didn't make any difference without externally imposed height constraints.

Add return type annotations to methods

Unfortunately, that's the best we can do, since we still can't talk about the QModelIndex type in QML.

Replace top/bottom padding with vertical

Results in less bindings, less code, and more flexibility.

Why the diff is slightly larger than +1-2? Because the patch also moves left/right padding declarations closer to the related properties.

Edited by ivan tkachenko

Merge request reports