baldurk
a292838f43
Add a custom tooltip to display elided data in RDTreeViews
2017-06-09 18:41:21 +01:00
Peter Gal
4263b55ffa
Fix enum flag usages in the qrenderdoc
...
There are a few places where the logical 'and' operator
was used to check if a given flag is enabled however
that is not the correct operator.
The binary 'and' operator should be used where
the enum acts as a flag.
2017-06-08 08:34:54 -07:00
baldurk
231c07d390
Make sure to initialise update queueing variable to false
2017-06-03 00:49:16 +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
b311e65dbd
Change margins to be a minimum instead of adding them
...
* The style itself may have added some margins and we don't want to add
extra margins, just set a minimum.
2017-06-01 18:47:42 +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
5c877ae1ae
Add default-enabled grid lines to RDTreeView (and so RDTreeWidget)
2017-06-01 14:17:36 +01:00
baldurk
3076b4337b
Move size delegate into item margins implemented by RDTreeView
2017-06-01 14:17:00 +01:00
baldurk
a30c704e46
Inherit RDTreeWIdget from RDTreeView instead of QTreeView
2017-06-01 14:15:17 +01:00
baldurk
26862d92b2
Add a toggle to RDLabel to preserve the aspect ratio of its pixmap
2017-05-30 17:08:37 +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
886ec3190c
Use WindowText color for custom painting on RDSplitterHandle
2017-05-29 17:52:01 +01:00
baldurk
09c9ae94d2
Change the vulkan layer warning to be theme-friendly
...
* The hardcoded background color didn't work on light-on-dark themes,
so instead just use the tooltip base color, and darken on hover.
2017-05-29 16:51:57 +01:00
baldurk
5dc10bcc3d
Make sure to call parent event handlers when we override to emit signals
2017-05-17 16:42:37 +01:00
baldurk
f9908927ad
Add RDTreeWidgetItem overload that constructs from QVariantList
2017-05-15 10:11:55 +01:00
baldurk
441d136177
Add extended RDToolButton
2017-05-10 17:20:39 +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
a740696dbe
Add an extended RDTextEdit control subclassed from QTextEdit
2017-04-18 14:57:49 +01:00
Dimitris Kapnopoulos
6e06eb5164
Added tooltips for all QToolButtons. RDSplitter checks for valid index.
...
handleDoubleClicked in RDSplitter checks if the index argument is less than zero or bigger than count
2017-03-28 02:54:15 -07:00
Dimitris Kapnopoulos
4ab61286e4
Added custom Splitter class, RDSplitter, with titles in the handles
2017-03-13 10:02:43 -07:00
baldurk
0c79d778e9
Add shortcuts for functionality in event browser
2017-02-13 19:20:13 +00:00
baldurk
4d8e799a0e
Add pixel history window
2017-02-09 23:21:45 +00:00
baldurk
e1d180246c
Add dialog for both managing remote hosts (add/remove) and attaching
2017-02-09 19:28:23 +00:00
baldurk
95d84f2da7
Add extended RDTableWidget with row re-ordering
2017-02-09 19:28:20 +00:00
baldurk
030cbfde9a
Batch update copyright years everywhere
2017-01-06 12:13:31 +00:00
baldurk
060a1caa8f
Add extended RDTableView to expose viewOptions()
2016-11-28 17:45:49 +01:00
baldurk
81f3bb4680
Add extended RDTreeWidget with hovering capabilities
2016-11-24 17:16:02 +01:00
baldurk
10d1dc6e53
Add extended RDListWidget, which adds mouse click/double-click
2016-11-14 14:12:51 +01:00
baldurk
04004e3243
Add mousemove event to RDLabel
2016-11-14 14:12:50 +01:00
baldurk
f0c359b329
Remove include guards and change to #pragma once
2016-10-11 21:38:16 +02:00
baldurk
d72e0f0cf4
Add missing MIT license from some files
2016-10-11 21:34:06 +02:00
baldurk
48a60104bb
Create more of a directory structure for qrenderdoc files
2016-10-11 21:31:57 +02:00