Sergio Martins
de068dc6ff
Use less relative includes, some of them were wrong
...
The example now includes them, so we can detect build failures
if they get wrong again
Fixes #140
2021-01-18 18:57:15 +00:00
Allen Winter
a2f4c972a6
update copyright year
2021-01-02 09:27:50 -05:00
Sergio Martins
6a90a5125f
TitleBar: these 4 getters are only for development mode
2020-11-23 20:22:45 +00:00
Sergio Martins
675edfe6db
qtquick: Move the floating button logic one level up, to the base class
...
So QtQuick can use the same logic.
Fixes tst_nonDockable too.
2020-11-20 15:35:46 +00:00
Sergio Martins
0331f90791
Move title bar logic regarding close button to base class
...
So QtQuick can use it too
2020-11-19 22:09:40 +00:00
Allen Winter
f5099167b6
misspelling--
2020-10-10 05:29:08 -04:00
Sergio Martins
f062ab7a64
TitleBar: Move button construction into the FrameWorkWidgetFactory
...
So it can be more easily overridden by the user.
A virtual in TitleBarWidget is not good enough as we can't call virtuals
when in the ctor
2020-10-03 14:52:44 +01:00
Sergio Martins
f86a818e69
TitleBar: Add an enum to describe each button type
2020-10-03 14:24:40 +01:00
Sergio Martins
aa42ea15f7
Add high-res versions for auto-hide and unauto-hide png
...
1.5x is disabled for now, as Qt < 5.15.2 has a rounding bug
rendering them
2020-10-03 11:28:21 +01:00
Sergio Martins
9dd778d55d
Pass the correct icon size when rendering a button
...
Needed when rendering with different scaling
2020-10-03 10:57:54 +01:00
Sergio Martins
e1085fb770
Add experimental support for minimization to side-bar
...
Auto-hide not working yet. Just minimization.
Internal for now. Will be public once finished.
2020-09-18 18:35:41 +01:00
Sergio Martins
e92ef472b3
Floating windows now support a minimize button
...
Introduced Flag_TitleBarHasMinimizeButton for it.
It implies Flag_DontUseUtilityFloatingWindows too, since Qt::Tool
don't appear in the task bar.
example: kddockwidgets_example -k
2020-09-17 21:46:28 +01:00
Allen Winter
b4f49895c2
clarify: licensing is GPL2 or GPL3 or commercial licensed
...
follow the REUSE specs
2020-07-24 18:16:13 -04:00
Sergio Martins
beaa45d16d
Use QStyleOption::initFrom() instead of QStyleOption::init()
...
The later is deprecated and removed in Qt6
2020-07-18 18:08:26 +01:00
Sergio Martins
6ee3cfbb2d
Introduce "Maximize/restore" title bar button support
...
As happens with other docking frameworks:
- Maximized/restore button only visible when window is floating
- floating button is never visible
Available by setting Flag_TitleBarHasMaximizeButton.
Added example too.
Fixes : #37
2020-04-20 19:55:51 +01:00
Allen Winter
df692686e7
various - update copyright year
2020-01-07 11:36:56 -05:00
Sergio Martins
945dbc1f27
Fix build with namespaced Qt
...
Fixes #18
2019-11-27 16:17:48 +00:00
Sergio Martins
38949fac2a
Fix build without find_package()
...
Some of our projects have kddockwidgets directly in their build
2019-10-21 14:30:04 +01:00
Sergio Martins
787f7802be
Move the private code into a private/ folder
...
It's nice to have a similar include hierarchy at build time and install
time.
It also makes things more explicit
2019-10-20 19:24:54 +01:00