Sergio Martins
3f661d0322
Add dev-scripts/build-all.dart
...
This script builds all our supported configurations.
Useful if you don't have access to KDAB CI, or if you don't want
to wait for the results.
2020-12-19 17:51:29 +00:00
Sergio Martins
8dad079df5
Add a CMakePresets.json
...
Contains the configrations we support:
QtWidgets, QtQuick, static, Python and developer-build
2020-12-19 16:07:49 +00:00
Sergio Martins
1ab9688f58
Fix Python build
2020-12-19 15:44:44 +00:00
Sergio Martins
7b9673e4e2
Shrink the overlay popup when we shrink the main window
...
Should be enough for issue #118
2020-12-19 14:10:01 +00:00
Sergio Martins
7fbcbbacdf
Preserve overlay size when resizing main window
...
For issue #118
2020-12-19 14:09:27 +00:00
Sergio Martins
d1f48b0685
Save the last overlayed size
...
We might want to restore it
2020-12-19 14:09:27 +00:00
Allen Winter
e6c89c0564
setup for 1.2.1
2020-12-18 13:02:49 -05:00
Sergio Martins
8b97088c70
Fix QtQuick build
2020-12-18 17:39:24 +00:00
Sergio Martins
e5809c06c7
Enable resizing the overlayed dock widgets
...
Fixed WidgetResizeHandler to not allow it to resize the overlay
bigger than its parent
For issue #116
The size isn't remembered though. Next time you open the overlay
it will have the previous size.
2020-12-18 17:15:54 +00:00
Sergio Martins
23b69d4e9e
Fix overlay disappearing when we were resizing
...
We allow the user to click 4px outside of the overlay for better
resizing. But we also had code that would hide the overlay if we
clicked elsewhere. So these two requirements were in conflict.
So, before hidding, check if the frame accepted the press.
Also for issue #118
2020-12-18 16:02:35 +00:00
Sergio Martins
0f468033fb
Commit the code needed for resizing overlays/popups
...
Still not happy with it, so the actual part that enables it
is commented out
Also for issue #118
2020-12-18 15:35:43 +00:00
Sergio Martins
468074cda8
Fix min/max not being respected when resizing overlay popup
...
While the min size wasn't set the min size hint was.
Use our wrapper which honours the size hint.
Also for isssue #118
2020-12-18 15:32:43 +00:00
Sergio Martins
7acbe0c62e
Make the WidgetResizeHandler margin public
2020-12-18 15:23:52 +00:00
Sergio Martins
2c1a70280a
WidgetResizeHandler: Fix the geometry calculation for non-toplevels
2020-12-18 15:20:58 +00:00
Sergio Martins
d2fa5efafe
Add Utils::globalGeometry()
2020-12-18 14:29:44 +00:00
Sergio Martins
a437bc5d07
Minor WidgetResizeHandler cleanups
2020-12-18 12:11:28 +00:00
Sergio Martins
2447bb12c8
WidgetResizeHandler: Dont' accept the release if we're not resizing
2020-12-18 11:58:08 +00:00
Sergio Martins
1082d5e8e1
Added WidgetResizeHandler::setAllowedResizeSides()
2020-12-18 10:43:36 +00:00
Sergio Martins
4635405fb5
Allow WidgetResizeHandler to act on global event filter
...
Needed for widgets which are not top-levels
2020-12-17 19:47:19 +00:00
Sergio Martins
c481875e55
Fix WidgetResizeHandler::cursorPosition() for negative positions
...
Usually we don't get negative relative positions, since we're
tracking top-level widgets which wouldn't receive exterior mouse
events to begin with.
But we want the WidgetResizeHandler to work for embedded widgets
too, for example for the sidebar overlays.
2020-12-17 19:47:19 +00:00
Sergio Martins
62f50f9458
Minor coding style
2020-12-17 19:47:19 +00:00
Sergio Martins
c86252665c
Make WidgetResizeHandler::mouseMoveEvent() return bool
...
Returns true if it consumed the event
2020-12-17 19:47:19 +00:00
Sergio Martins
d141863ffb
Make a method private
2020-12-17 19:47:19 +00:00
Sergio Martins
e99b9678e4
Add WidgetResizeHandler::restoreMouseCursor()
2020-12-17 19:47:19 +00:00
Sergio Martins
e0a034748d
Factor out setting the mouse cursor
...
We'll soon also need to call qApp's set cursor
2020-12-17 19:47:19 +00:00
Sergio Martins
c3377431cc
docs++
2020-12-17 19:47:19 +00:00
Allen Winter
2fb70009cc
OBS - updates
v1.2.0
2020-12-17 14:40:16 -05:00
Allen Winter
289ddffbe2
prep for 1.2.0 release
2020-12-17 14:40:16 -05:00
Sergio Martins
54738bbea2
Simplify WidgetResizeHandler::cursorPosition() impl
2020-12-17 18:51:40 +00:00
Sergio Martins
5c6eb352d6
Use the CursorPosition enum as flags
2020-12-17 18:46:31 +00:00
Sergio Martins
f657399ef8
Make enum public so we can use Q_ENUM
2020-12-17 18:44:48 +00:00
Sergio Martins
c4ffe10e12
Fix non unity build
2020-12-17 12:24:12 +00:00
Sergio Martins
efcad6d2be
Update ChangeLog
2020-12-17 11:53:12 +00:00
Sergio Martins
b6925c928a
Clear sidebars before restoring them
...
If restoring a state without a sidebar, the existing sidebars
should hide
Fixes issue #116
2020-12-17 10:51:16 +00:00
Sergio Martins
75368d334a
Don't restore the popup/overlay state
...
popups are perishable
2020-12-17 10:15:39 +00:00
Allen Winter
d39ce8f66e
tests/Testing.cpp - include <QTest>, not <QtTest>
2020-12-16 17:10:07 -05:00
Allen Winter
805ea41d8a
Rubberband_quick.h, RubberBandQuick.h - adjust include guard
2020-12-16 17:04:06 -05:00
Allen Winter
d7ed2494be
CMakeLists.txt - add documentation for the new options
2020-12-16 17:01:47 -05:00
Allen Winter
0990337cdc
examples/qtquick/CMakeLists.txt - add license+copyright header
2020-12-16 16:51:03 -05:00
Allen Winter
e41cdb6f78
various - fix misspellings
2020-12-16 16:49:22 -05:00
Sergio Martins
666673a251
Added a comment
2020-12-16 18:46:56 +00:00
Sergio Martins
34cb2ae5f0
Restore the SideBars when restoring a layout
...
For issue #116
2020-12-16 18:27:29 +00:00
Sergio Martins
51d8c2ff3e
tests: Group the "Save/restore" tests together
2020-12-16 18:15:06 +00:00
Sergio Martins
aa9f50d0f4
Serialize the SideBar to JSON too
...
Part 1 of 2 for issue #116
2020-12-16 17:58:05 +00:00
Sergio Martins
b7c36a2ec9
Stabilize a test with 5.9
...
Minor differences in the frame's min-sizes, no point in spending
more time on such old Qt version just so tests pass.
2020-12-16 17:24:33 +00:00
Sergio Martins
e18fb7ffd8
Remove unneeded private moc include
...
Doesn't play nice with unity builds
2020-12-16 15:48:32 +00:00
Sergio Martins
96439339c7
cmake: Add a missing QtQuick header to the source list
2020-12-16 15:46:31 +00:00
Sergio Martins
04d418b2e9
same for QtQuick
2020-12-16 15:42:48 +00:00
Sergio Martins
c04d856322
cmake: Add the header files to the source list too
...
So they are automoced with unity build
2020-12-16 15:40:25 +00:00
Sergio Martins
1c41c33f33
Merge the two qrc files that are only for QtQuick
2020-12-16 11:53:36 +00:00