27 Commits

Author SHA1 Message Date
baldurk 2322e165de Update copyright years to 2025 2025-03-14 18:54:37 +00:00
baldurk 1ad23f64ca Use hack to customise expander colour in treeview branches. Closes #3319 2024-05-17 11:41:53 +01:00
baldurk 9f4f0e6aa1 Update copyright years to 2024 2024-02-12 11:04:52 +00:00
William Pearson afbe26768d Draw arrows next to all tool buttons with menus
Before, only MenuButtonPopup had an arrow. This makes it more obvious
as to whether the button will immediately do something when clicked or
if it will open a menu to choose a specific action.
2023-04-14 19:04:15 +01:00
William Pearson 4c45c07160 Move subControlRect for CC_ToolButton to RDTweakedNativeStyle
This means the full rect won't be returned for SC_ToolButtonMenu if it
is used in a context where the default style doesn't expect the menu.

This is a separate commit to isolate future changes to this function.
2023-04-14 19:04:15 +01:00
baldurk d47e79ae07 Update copyright years to 2023 2023-02-01 12:23:32 +00:00
baldurk fcdea67879 Update copyright years to 2022 2022-02-17 17:38:32 +00:00
baldurk a0ec249c75 Fix compilation with older Qt versions 2021-07-01 20:29:46 +01:00
baldurk fe81f57316 Remove recent filters button in favour of styling a fake combo box
* The filter icon was confusing since it had a 'refresh' badge instead of
  'save/load/recent' type badge, and making the latter readable in a few pixels
  is not feasible. Having the combo dropdown with saved filters is as intuitive
  and works in-line.
2021-07-01 15:15:04 +01:00
baldurk 5a1f6fdba8 Elide tool button text if the button isn't large enough 2021-07-01 15:15:04 +01:00
baldurk 026da176bb Update copyright years to 2021 2021-01-13 13:56:10 +00:00
baldurk b0f07dfee4 Fix some style issues with new Qt versions 2021-01-08 15:39:02 +00:00
baldurk 9fba077537 Add a couple of other missing QPainterPath includes 2020-06-07 00:44:35 +01:00
baldurk 2916c0f9f7 Update copyright years to 2020 2020-01-06 16:20:45 +00:00
baldurk 86ff87863e Update copyright years to 2019 2019-02-01 18:32:13 +00:00
baldurk c8cf35eb83 Don't disable itemview wordwarp workaround for QTBUG-14949 in 5.11
* It doesn't seem to be fixed.
2019-02-01 18:32:12 +00:00
baldurk 3ddeea088c Draw a divider in toolbuttons with menu dropdowns 2018-08-09 16:56:49 +01:00
baldurk 644217bcbf Workaround for QTBUG-14949, eliding multi-line itemview items breaks 2018-05-03 12:35:49 +01:00
baldurk e305029ddd Update copyright years to 2018 2018-01-01 17:55:29 +00:00
baldurk 67090cc085 Add handling to both RDStyle and RDTweakedNativeStyle for menus w/ icons 2017-12-19 12:26:33 +00:00
baldurk e3b0d8acc0 Ensure too-long popup menus have scroll buttons 2017-11-10 18:36:07 +00:00
baldurk 58d6e2540d Only highlight enabled toolbuttons on hover, not disabled ones 2017-07-28 19:06:46 +01:00
baldurk a6f0d07e09 Remove most stylesheet use as this messes with a custom style
* Use palettes where a certain colour is needed.
* Still need some solution for table borders in grid layouts
2017-07-28 19:06:44 +01:00
baldurk 048e2c0102 RDStyle is based on QCommonStyle
* This gives us a consistent baseline to start from and ensures that any
  things we don't customise and leave to defaults will still be the same
  wherever we are running.
2017-07-28 19:06:44 +01:00
baldurk 03cf4d2ce3 Customise button rendering in RDStyle 2017-07-28 19:06:42 +01:00
baldurk 3ea74aa73b Treeview expanders shouldn't be Dark, they should be Text 2017-07-28 19:06:41 +01:00
baldurk 9a782158fd Fork RDStyle to RDTweakedNativeStyle
* The idea is tha this style won't change the palette and will just do
  some minimal additions/changes to whatever the native style is, to
  work around some rough spots.
2017-07-28 19:06:41 +01:00