Sergio Martins
e8732ecfc0
ECM: sync sanitizers with upstream
2021-05-20 16:19:06 +01:00
Sergio Martins
71a538651a
Enable ASAN on Windows too
2021-05-18 16:00:54 -07:00
Sergio Martins
18c9963124
qtquick|tests: Fix tst_lastFloatingPositionIsRestored
...
We need to compare the position of the Window
2021-05-18 15:00:21 -07:00
Sergio Martins
cd0f2f4e33
Introduced Config::setDropIndicatorsInhibited(bool)
...
Allows you to disable support for drop indicators while dragging
2021-05-18 18:00:04 +01:00
Sergio Martins
fc028ec0be
Minor refactoring
2021-05-18 17:49:14 +01:00
Sergio Martins
2dbdb9f7eb
qtquick: Fix restoring QWindow's geometry
...
We need to resize the QWindow.
Fixes issue #196
2021-05-17 22:46:56 +01:00
Sergio Martins
50f6e76e81
qtquick|examples: Don't call them "MainWindow"
...
Rather "main layout", as they are not top-levels, unlike for
QWidgets
As suggested in issue #196
2021-05-17 22:27:34 +01:00
Sergio Martins
c6af93adcb
qtquick: When saving geometry, save the QWindow geometry
...
As that's what we'll restore. The "MainWindow" isn't an actual
main window, and it's parented in some QtQuick hierarchy.
Will help with issue #196 , which isn't fixed yet.
Should be fixed in the restore part next.
2021-05-17 22:20:44 +01:00
Sergio Martins
bd985781b9
Minor refactoring
2021-05-17 22:13:17 +01:00
Sergio Martins
70ecdaf54c
Add a failing test for issue #196
2021-05-17 21:12:59 +01:00
Allen Winter
a04287b9b3
README - adjust copyright date
2021-05-16 11:08:08 -04:00
Allen Winter
be8d00f0c8
buildsystem - KD namespace the KDAB cmake modules
2021-05-16 11:03:21 -04:00
Allen Winter
b08797c400
docs/api/footer.html - add Copyright and generatedby
2021-05-16 10:58:01 -04:00
Sergio Martins
2836edd32d
qtquick: Add a test to see that main window position is restored
...
Will improve it with QtQuick corner cases
2021-05-10 23:04:37 +01:00
Allen Winter
92f6886217
Merge branch '1.3'
2021-05-10 15:40:46 -04:00
Allen Winter
0c9518dc74
.krazy - skip CMakePresets.json
...
the json formatter saves it without a trailing newline
no need to test this generated file
2021-05-10 15:40:00 -04:00
Allen Winter
944ee7c7dc
Merge branch '1.3'
2021-05-10 12:58:13 -04:00
Allen Winter
917dbf09f6
README.md, README-bindings.md - breakout python bindings readme.
...
The python bindings info is getting long and detailed
so move to its own README.
2021-05-10 12:56:59 -04:00
Sergio Martins
d732be4e17
Merge branch '1.3' into master
2021-05-04 23:41:23 +01:00
Sergio Martins
18dbbb291a
Cancel drag when Qt doesn't detect that mouse was released
...
On Windows there can be a case where Qt doesn't receive the mouse
release event. When releasing very fast after starting the drag.
Fixes #166
2021-05-04 23:36:50 +01:00
Sergio Martins
3bb7922f2c
comments++
2021-05-02 13:05:27 +01:00
Sergio Martins
4aedba3b2b
Minor: Pass QPoint by value, as it's a small POD class
2021-05-02 13:01:27 +01:00
Eism
99c0e99b26
Implemented the method for adjusting the position of a dragged item
2021-05-02 13:00:43 +01:00
Sergio Martins
28ab554cb3
comments++
2021-05-02 12:49:07 +01:00
Sergio Martins
cd80a47c93
qtquick|tests: Fix tst_layoutEqually
...
Resizing QtQuick's QWindow is async, doesn't propagate the size
immediately to the content QQuickItem.
Meaning we were passing a too small/old size to the layout.
Add qMin() so we don't pass sizes that are smaller than the layout's
min-size.
2021-05-02 12:30:53 +01:00
Sergio Martins
eb05b54b0e
Added DockWidgetInstantiator::close()
2021-05-02 11:35:16 +01:00
Sergio Martins
bbbce6f694
qtquick: Fix close() not hidding the widget
...
QtQuick will emit a "visibleChanged(true)" when setting nullptr,
which we need to inhibit so it behaves like QtWidgets.
2021-05-02 11:22:26 +01:00
Sergio Martins
ba0d515330
qtquick: Don't run tst_maxSizedFloatingWindow
...
We only support max-size constraints for QtWidgets, for now.
2021-05-02 00:19:47 +01:00
Sergio Martins
69154c0384
qtquick: Make setParent(nullptr) to hide the widget too
...
As done for QtWidgets.
Fixes a case where closing the dock widget wouldn't hide it.
As reported by Roman
2021-05-02 00:11:58 +01:00
Sergio Martins
66ac5e9d2f
qtquick: Install DockWidgetQuick.h too
2021-05-01 20:46:01 +01:00
Sergio Martins
4924b951cc
qtquick: Don't include private header in public header
...
Q_PROPERTIES in Qt6 don't support forward declarations.
Return a QObject instead.
2021-05-01 20:38:06 +01:00
Allen Winter
96f7def396
Merge branch '1.3'
2021-05-01 15:38:38 -04:00
Sergio Martins
4556f1c949
quick|cmake: Don't install a few qtwidgets includes
...
Install their qtquick counterparts instead
2021-05-01 20:20:59 +01:00
Sergio Martins
a4cca3bcc2
Merge pull request #195 from RomanPudashkin/setTabbingAllowedFunc_fix
...
Fixed the API for disabling the tab indicator
2021-05-01 20:10:44 +01:00
Sergio Martins
6254c2089f
Add two new contributors
2021-05-01 20:05:46 +01:00
Sergio Martins
89f50769b6
cmake: Remove unneeded build presets
...
The default/implicit one is enough for those cases
2021-05-01 19:59:14 +01:00
Sergio Martins
a24f5e31b9
Merge pull request #192 from RomanPudashkin/setMaximumSize_fix
...
Fixed changing of the maximum size for widgets
2021-05-01 20:00:26 +01:00
Allen Winter
b338f183e1
CONTRIBUTORS.txt - added more contributors
2021-05-01 12:30:48 -04:00
Sergio Martins
8ab8e0524b
Workaround Qt bug which broke the focus chain
...
Focusing a tab widget would focus an hidden tab bar, which makes
the propagation stop
Fixes #180
2021-04-30 15:59:27 +01:00
Sergio Martins
affb48f44d
Fix restoring side-bar widget when it was deleted previously
...
We need to consult the user's widget factory, just as we do
for other cases where the dock widget is missing
2021-04-29 21:36:56 +01:00
Sergio Martins
d5b2336b69
refactoring: Move the dockWidgetFactoryFunc() call
...
It's now an impl-detail of DockRegistry::dockByName().
Just pass DockByNameFlag::CreateIfNotFound.
Allows this functionality to be used in other places
2021-04-29 21:29:58 +01:00
Sergio Martins
580e3a6a2c
Coding style: Replace a bool argument with an enum
...
Since we'll be adding more enumerators
2021-04-29 21:20:26 +01:00
Roman Pudashkin
e3d5203f1a
fixed the API for disabling the tab indicator
2021-04-29 21:50:17 +02:00
Sergio Martins
9e42b11272
Minor coding styling
2021-04-29 18:15:45 +01:00
Sergio Martins
ce93c3b739
qtquick: Fix memory leak
2021-04-29 18:15:33 +01:00
Sergio Martins
6a8e00bfa2
tests: Test restoring with DeleteOnClose and sidebar widgets
...
sidebar dock widgets which were deleted should still call
the user's dock widget factory
To be done next
2021-04-29 18:06:41 +01:00
Sergio Martins
0b5a99860f
qtquick: Fix calling QWindow::setTitle()
...
For QtWidgets, it happens fine in FloatingWindow's constructor,
because we get the corresponding QWindow already. But for QtQuick
the QWindow is only created afterwards, so we have to delay
setting the title.
2021-04-29 17:18:35 +01:00
Sergio Martins
3f012a2ef1
Remove a bogus setWindowTitle()
...
Setting a widget would change the top-level window title!
By luck people set the widget before docking, but doesn't have
to be that way.
2021-04-29 16:23:22 +01:00
RomanPudashkin
a102e4ae1e
fixed changing of the maximum size
2021-04-29 13:20:56 +02:00
Sergio Martins
03f5817488
Merge branch '1.3'
2021-04-28 22:08:57 +01:00