baldurk
32a74e20e1
Extract out most code for text-with-ResourceId-links from RDTreeWidget
...
* The RDTreeWidget items still use this code, but it can now be reused
on other widgets like RDLabel.
2017-11-21 14:45:22 +00:00
baldurk
31b7662db1
Fix adding empty tree widget items in performance counter selection
2017-11-20 20:01:01 +00:00
baldurk
e790555914
Fix another case with not enough column data and protect against crashes
2017-11-17 17:06:51 +00:00
baldurk
d206a012f3
Fix incorrect data-to-column count when adding data to treewidget
...
* We also add an error in case it happens again.
2017-11-17 16:33:00 +00:00
baldurk
200f0799a4
Generate clickable links to resource inspector in RDTreeWidget
2017-11-17 16:30:56 +00:00
baldurk
fb6211a3db
Return user data from RDTreeWidget for UserRole variants
2017-11-17 16:30:47 +00:00
baldurk
62260a6404
Add column alignment function to RDTreeWidget
2017-10-27 12:26:01 +01:00
baldurk
01b1260734
Make sure to refresh model if only children were added
2017-08-31 18:34:16 +01:00
baldurk
d68f00ca72
Reset hover index when widget is cleared, don't leave it to be stale
2017-08-28 18:50:18 +01:00
baldurk
f295df15f4
Add missing override specifier
2017-08-24 22:38:16 +01:00
baldurk
5619ed66b4
Fix RDTreeWidget to allow for checkable items
2017-08-24 16:33:39 +01:00
baldurk
81ec99b58a
Don't crash in data() if no data has ever been set. Allow adding columns
2017-08-24 16:04:26 +01:00
baldurk
c0b123c575
Add itemChanged signal for RDTreeWidget
2017-08-24 16:03:49 +01:00
baldurk
1f13a1466e
Add RDTreeWidgetItemIterator for depth-first forward-only iteration
2017-08-24 16:03:01 +01:00
baldurk
1b88a39339
Optimise tree widget clearing and child adding by batching updates
...
* This takes a nice chunk of time off the pipeline state view in
particular when changing between events.
2017-08-21 17:14:21 +01:00
baldurk
b6a73a4bb0
Draw custom coloured tree widget lines over the top of built-in style
2017-07-28 19:06:40 +01:00
baldurk
3b6f63be0d
Make event browser columns properly resizable and re-orderable
...
* Annoyingly although Qt has an internal bool allowUserMoveOfSection0
which does exactly what we want allowing the tree column to be
movable, we can't enable it because it's private. So instead we have
to re-implement section moving ourselves.
* Minor tweak - also made RDTreeWidgets non-movable by default since
usually we don't want to allow it.
2017-06-03 00:38:02 +01:00
baldurk
0c3dec3b67
Go back to manually drawing PE_PanelItemViewItem in drawBranches()
...
* There's a messy order-of-operations thing to deal with various
different themes, as well as a couple of minor problems, but at least
the highlight and selection bars draw fairly consistently and don't
leave an ugly gap over the branches.
2017-06-02 17:30:41 +01:00
baldurk
bf791b7854
Use 20% highlight colour instead of window for hovering on tree widgets
2017-06-01 18:48:05 +01:00
baldurk
49243c0878
Use a style proxy setting SH_ItemView_ShowDecorationSelected to fill
...
* This still isn't perfect with some custom style stuff but it's next
to impossible to get working right. In theory we should manually
draw PE_PanelItemViewItem in the gap in drawRow() or so to make sure
we also draw any on-hover highlight over objects, but that doesn't
seem to work.
2017-06-01 18:28:13 +01:00
baldurk
a30c704e46
Inherit RDTreeWIdget from RDTreeView instead of QTreeView
2017-06-01 14:15:17 +01:00
baldurk
c95f7c4cea
Add default copy-paste handlers for RDListWidget and RDTreeWidget
2017-05-30 16:13:41 +01:00
baldurk
641eaf4665
Add option to instantly show tooltips over RDTreeWidget items
2017-05-30 14:08:44 +01:00
baldurk
f9908927ad
Add RDTreeWidgetItem overload that constructs from QVariantList
2017-05-15 10:11:55 +01:00
baldurk
4fb8b22b2d
QBrush() is not a 'use default' return value from a model, QVariant() is
2017-05-09 18:49:44 +01:00
baldurk
bbff0fce1c
Implement row colouring and tree colouring in event browser.
...
* Also do custom painting of branches to do proper full-row colouring
instead of leaving an ugly gap around the tree controls.
2017-05-04 20:36:46 +01:00
baldurk
4199a857f5
Add right-click context menu to event browser with expand/collapse all
2017-04-27 19:47:50 +01:00
baldurk
04bfcdff71
Fix linux build with problems overriding functions
2017-04-22 02:25:03 +01:00
baldurk
d699e89fd2
Switch RDTreeWidget to inherit from QTreeView instead of QTreeWidget
...
* We add our own custom item model to handle the cases we need. We can
also make a few assumptions and optimisations around things we can
safely assume like e.g. nodel columns won't really change after init.
* This lets us have full control over batching updates, which was the
main motivation, but it makes it easier to extend in future (e.g.
adding single per-item tags instead of the heavyweight Qt::UserRole
data elements).
2017-04-21 18:44:51 +01:00
baldurk
0c79d778e9
Add shortcuts for functionality in event browser
2017-02-13 19:20:13 +00:00
baldurk
e1d180246c
Add dialog for both managing remote hosts (add/remove) and attaching
2017-02-09 19:28:23 +00:00
baldurk
030cbfde9a
Batch update copyright years everywhere
2017-01-06 12:13:31 +00:00
baldurk
81f3bb4680
Add extended RDTreeWidget with hovering capabilities
2016-11-24 17:16:02 +01:00