Sergio Martins
f13de89db5
tests. Fix utils.h draggableFor() for QtQuick
2020-11-17 20:44:04 +00:00
Sergio Martins
1393ae224f
Fix DockWidget::windowActiveAboutToChange() being emitted too much
...
Was being emitted even when it didn't affect our window.
This caused an explosion of signals when we had many dock widgets.
2020-11-17 18:52:54 +00:00
Sergio Martins
d92d7c258c
tests: Remove stray qDebug
2020-11-17 18:15:38 +00:00
Sergio Martins
619ca74051
Use QFAIL instead of qFatal
...
more elegant, and test can continue, so we see the whole result
2020-11-17 18:15:03 +00:00
Sergio Martins
aa39a71ae5
Rename tst_common to tst_docks
...
Now that tst_docks was all ported let's have the old name again.
Also cmake -jN now works, as tst_docks is called by the tests_launcher
while tst_common was not
2020-11-17 15:44:49 +00:00
Sergio Martins
f4e33c1409
tests: Port the remaining tests to QtQuick
...
Tests now build with QtQuick too.
2020-11-17 15:26:14 +00:00
Sergio Martins
ad96336a36
Also init resources if QT_STATIC is defined
...
Should help with WASM, so you don't need to manually call
Q_INIT_RESOURCE
2020-11-17 11:35:37 +00:00
Sergio Martins
50d1e75709
Fully scope the qrc resource files
...
So they don't clash when KDDW is a static library
2020-11-17 11:33:22 +00:00
Sergio Martins
793c4e509b
Fix crash regarding edge case of dragging window to itself
...
If we're not showing a title bar, then the draggable is the tabbar,
not the floating window.
2020-11-16 22:55:45 +00:00
Sergio Martins
e4a33ad8b7
Added README for wasm
...
Fixes issue #100
2020-11-13 18:45:58 +00:00
Sergio Martins
52cf53ce5c
example: init resources if static
...
Fixes title bar not having icons on WASM
For issue #100
2020-11-13 18:33:13 +00:00
Sergio Martins
8791870efb
Blacklist classical indicators on WASM
...
Use segmented indicators.
Wasm doesn't support top-level windows with translucency, which
is required for the classical indicators
For issue #100
2020-11-13 18:18:25 +00:00
Sergio Martins
4f8c47bfa4
Don't require Qt5X11Extras for web assembly
...
For issue #100
2020-11-13 17:43:38 +00:00
Sergio Martins
ad141df6b1
Merge branch '1.1'
2020-11-13 16:00:49 +00:00
Sergio Martins
72605292b7
Don't show dock/undock icon when dockwidget is not dockable
...
Fixes issue #99
2020-11-13 15:51:26 +00:00
Sergio Martins
1443eff1d9
tests: Port some tests to QtQuick
...
15 to go
2020-11-10 18:00:19 +00:00
Sergio Martins
22d5db32ce
FocusScope: Remove focus when nothing is focused
2020-11-09 15:25:32 +00:00
Sergio Martins
e9a321039f
Renamed signal to windowActiveAboutToChange()
...
Added the 'aboutTo', as the event hasn't been caught by the top-level
window yet
2020-11-09 13:46:16 +00:00
Sergio Martins
b93f115b53
Added DockWidget::windowActiveChanged() signal
...
Tracking the top-level window's 'isActiveWindow' property is difficult
since the dock widget's top-level window is changing all the time
when docking and undocking. So added a convenience signal
2020-11-09 13:35:05 +00:00
Sergio Martins
7faaf2cc69
tests: Port more tests to QtQuick
...
18 to go before we start fixing them
2020-11-08 15:18:16 +00:00
Sergio Martins
978f9d3a5e
tests: Port another test to QtQuick
...
29 to go
2020-11-06 23:52:48 +00:00
Sergio Martins
09793b3481
tests: Port more tests to QtQuick
...
31 to go
2020-11-06 23:33:02 +00:00
Sergio Martins
f4d9a96ddb
Added Config::Flag_KeepAboveIfNotUtilityWindow
...
Which sets Qt::WindowStaysOnTopHint for floating windows.
Usually unneeded, as floating windows are Qt::Tool with a transient
parent, but in case you're using Flag_DontUseUtilityFloatingWindows
then you might want (or not) to keep them above.
2020-11-05 12:11:48 +00:00
Sergio Martins
4ac892038f
Fix QtQuick build
2020-11-04 11:34:35 +00:00
Colin Ogilvie
387ba291be
export FocusScope
2020-11-04 11:32:42 +00:00
Sergio Martins
5d3d189774
tests: Port 1 test to QtQuick
2020-11-03 17:22:50 +00:00
Sergio Martins
a6a1047f75
FocusScope: Also honour widgets embedded in the tab bar
...
A widget embedded in a tab bar (like a line edit) lives outside
the DockWidget but inside the Frame. It should still focus the
current dockwidget.
2020-11-03 17:12:21 +00:00
Sergio Martins
3e70b846e8
FocusScope: Modify the member variable before emitting signal
2020-11-03 16:19:47 +00:00
Sergio Martins
0a2aebd78d
FocusScope: Also focus when the user clicks on tab widget background
...
Relevant when you don't have a title bar
2020-11-03 15:29:13 +00:00
Sergio Martins
ddad0feaf3
tests: Additional 5 tests build for QtQuick now
...
37 to go
2020-11-02 20:04:14 +00:00
Sergio Martins
aba1cce1f6
Merge branch '1.1' into master
2020-11-02 11:37:56 +00:00
Sergio Martins
7318675e84
Clarify comment about fractionaly scalling factors
...
The problem can happen on Windows too.
Fixes issue #94
Nothing more we can do here, it's fixed for Qt 5.15.2.
2020-11-02 11:36:24 +00:00
Sergio Martins
cf700f8eb6
tests: port more tests to QtQuick
...
43 to go
2020-10-30 18:29:59 +00:00
Sergio Martins
2c1d099c83
Fix include here too
2020-10-30 12:27:50 +00:00
Sergio Martins
91ff29ae64
Fix build when KDDW is embedded within a project
2020-10-30 12:21:25 +00:00
Renato Araujo Oliveira Filho
523dfb0d12
Fix python bindings build
2020-10-30 08:36:15 -03:00
Sergio Martins
b84e0f3605
tests: More tests are now building with QtQuick
...
56 to go
2020-10-29 18:11:24 +00:00
Sergio Martins
f72e8e6a1c
tests: Port 5 more tests
2020-10-28 22:57:28 +00:00
Sergio Martins
c6c1fe79c3
Fix QtQuick build
...
src/ is no longer in the include path
2020-10-28 22:15:32 +00:00
Sergio Martins
ea382dcc17
cmake: Install DockRegistry_p.h
...
It's available as private API if anyone wants to use it
2020-10-28 21:55:02 +00:00
Sergio Martins
c142eb8ecd
trying to fix the python build
...
after the include paths changes
2020-10-27 21:40:51 +00:00
Sergio Martins
46c039153e
cmake: Don't export src/ to include path
...
Otherwise applications can't have files named MainWindow.h or
DockWidget.h.
Now all kddockwidgets includes need to be scoped, example:
2020-10-27 17:01:18 +00:00
Sergio Martins
473f03360c
tests: Fix Wweak-vtables warnings
2020-10-26 18:59:21 +00:00
Sergio Martins
3fb3984a72
Merge branch '1.1'
2020-10-26 18:23:17 +00:00
Sergio Martins
9c5e3cf5af
tests: Port another test to QtQuick
2020-10-26 18:22:01 +00:00
Sergio Martins
7419ca806d
tests: Port 2 more tests to QtQuick
2020-10-26 17:32:13 +00:00
Allen Winter
8a51c31663
OBS - update for 1.1.0 release
v1.1.0
2020-10-26 12:14:46 -04:00
Sergio Martins
a586a7894b
cmake: Qt5::GuiPrivate is only needed on Windows
2020-10-26 16:14:07 +00:00
Sergio Martins
31fcbebaff
ChangeLog: Add the date of 1.1 release
2020-10-26 15:29:47 +00:00
Sergio Martins
c4cc6b3e6e
tests: Port more tests to QtQuick
2020-10-25 22:39:10 +00:00