Commit Graph

33 Commits (1aa8279cf88c72d279afd1afb209368bd1cca718)

Author SHA1 Message Date
Teo Mrnjavac 1aa8279cf8 Try the forbidden cursor when hovering an unselectable partition.
Teo Mrnjavac 61685cec86 Remove old count.
Teo Mrnjavac fb4c22c274 Use correct count.
Teo Mrnjavac aaeb28e45e Don't round size estimate down to an int.
Teo Mrnjavac 3d5753e97c Better way to compute items in nested/non-nested partitions mode.
Teo Mrnjavac 086634ae7b Nested partitions mode support in PartitionBarsView.
Teo Mrnjavac 051282d9bf Do the same in PartitionBarsView.
Teo Mrnjavac ddf4878ec7 Apply SelectionFilter in Partition{Labels,Bars}View.
Teo Mrnjavac 10c51528a9 Repaint viewport on selection change.
Teo Mrnjavac 1a48524a9a Repaint viewport on selection changed.
This issue wasn't noticeable earlier because every selection change
implied additional operations (in Replace) which used to trigger a
repaint at the right time for free. With this we make sure we get a
repaint.
Teo Mrnjavac 80d908e75b Document properly.
Teo Mrnjavac 08f9753aa2 Experimental: try to enforce a minimum partition size.
This breaks any hope of inline-resizing small partitions.
Teo Mrnjavac 7b66514bf5 Clean up debug spam.
Teo Mrnjavac 333214f7ca Finally fix selection.
Teo Mrnjavac f154a135d8 Test out awful hack to try to make selection work properly.
Teo Mrnjavac 3fc354284a Improve debug output.
Teo Mrnjavac 8acb70de5c Use currentIndex instead of selection.
Teo Mrnjavac 99a5ac8e4d Debug output.
Teo Mrnjavac fecb50779a Only paint selection and hover if selectionMode is not NoSelection.
Teo Mrnjavac 2f35aa1258 And selectionModel() better exist...
Teo Mrnjavac 584ca6da18 Rely on selectionModel() instead of currentIndex().
Teo Mrnjavac 517f958616 Magic numbers for view height.
Teo Mrnjavac df9cec14f7 More arbitrary magic to try to fix all the pixels properly.
Teo Mrnjavac 9b60040bab Magic numbers.
Teo Mrnjavac a27a5496b7 Try a statically calculated selection margin.
Teo Mrnjavac 798a491296 Adjust padding.
Teo Mrnjavac 5aa8cd4a9b Use semitransparent overlay rounded rect for PBV selection.
Teo Mrnjavac 7c80f846f1 Add debug output.
Teo Mrnjavac c2cb367753 Remember QPersistentModelIndex rather than row for hover effect.
Teo Mrnjavac 36f30b1ede Support selection and better hover.
Teo Mrnjavac cc5520edda Add hover and click support to PartitionBarsView.
Teo Mrnjavac eed8d3b83b Split out Labels view from Bars view.
Both are QAbstractItemViews and can be used on top of a PartitionModel,
together or separately.
Teo Mrnjavac b65fe87503 PartitionPreview is now PartitionBarsView.