Sergio Martins
0899a4e0c8
Simplify layouts after adding items
...
A vertical layout inside another vertical layout is redundant (same for horizontal),
so grab the contents of the sub-layout and delete it
2020-07-06 19:19:01 +01:00
Sergio Martins
29e625b85f
Fix Item::requestEqualSize() when items have max-size
...
It already honoured max-size, but was bailing out early if
both items had the same size. Which is fine, unless one of them
has max-size, where we want to honour it
2020-07-06 12:31:47 +01:00
Sergio Martins
380c3eee81
Fix separators not being movable in some cases
...
The 'minPos' isn't a special case, should follow the same logic as 'maxPos'.
Confused separator min pos with dock widget's min-size,
which is a special case for dock widgets.
2020-07-06 12:18:39 +01:00
Sergio Martins
21ef8017e8
Honour max-size when dropping a widget that can grow
...
We already honoured max-size in the case of dropping a widget with
some max-size. Now we also honour it when an existing docked widget
has max-size and we're dropping a widget that can grow. Now the
dropped widget will occupy more space in this case
2020-07-06 11:01:29 +01:00
Sergio Martins
eee8cb8341
Minor, remove unneeded check
2020-07-06 11:00:57 +01:00
Allen Winter
9630f0f48a
tst_docks.cpp - fix link. remove unneeded method declaration
...
tst_maxSizeHonouredWhenAnotherDropped didn't have an
implementation so I removed its declaration.
2020-07-04 12:10:36 -04:00
Sergio Martins
0f71b30096
Allow to drag separators when they are past their max-pos
...
As long they are moving in Side1 direction. i.e: left/up, i.e:
reducing their distance to the max-pos.
2020-07-04 13:02:46 +01:00
Sergio Martins
2ec226c432
Dragging separators now honours max-size recursively too
...
Previously only min-size propagated.
Now, when dragging a separator, let's say to the right, and the left
widget can't grow more, we start to move the previous separator to
the right
2020-07-04 12:32:10 +01:00
Sergio Martins
fa2cd1bc74
Also honour max-size when resizing nested container via separator
2020-07-04 11:38:33 +01:00
Sergio Martins
730af05aa1
Add a failing unit-test
2020-07-04 00:39:55 +01:00
Sergio Martins
4788f41593
tests: don't fail when window is out of bounds on mac
...
Should be benign. My screen it too small.
2020-07-03 19:36:39 +01:00
Sergio Martins
84b0b8f6ad
Fix serializing floating window affinity
2020-07-02 17:44:16 +01:00
Allen Winter
cf1514f8a4
src/private/DebugWindow.cpp - removed unused assignment
...
compile warnings are errors with MinGW
Change-Id: I03ed6d6fbfbdb07d85582d50a302f09d87d0b32d
2020-07-01 18:36:11 -04:00
Allen Winter
47f0dfd3ae
fix MinGW build. the pragmas are for MSVC
...
Change-Id: I8ec58f136ad02449fdbf5aedca7a1b88583a561f
2020-07-01 18:34:03 -04:00
Allen Winter
183c48696e
private/multisplitter/CMakeLists.txt - obey KDDockWidgets_TESTS
2020-06-29 17:51:41 -04:00
Allen Winter
2462f991be
buildsystem - consistent formatting
2020-06-25 13:32:59 -04:00
Sergio Martins
d373585e0c
get rid of some unneeded qobject_cast<FloatingWindow*> casts
2020-06-25 17:56:21 +01:00
Sergio Martins
7f324dda91
Mention KDDockWidgets instead of KDChart in the readme
...
was a copy-paste typo
2020-06-25 17:29:00 +01:00
Allen Winter
c5739e8626
examples/dockwidgets/CMakeLists.txt - increase cmake min vers
...
to make consistent with the top-level project
2020-06-25 10:42:57 -04:00
Allen Winter
5362200d21
CMakeLists.txt - use KDAB installation directory
2020-06-25 10:35:47 -04:00
Sergio Martins
d7f9bf7adc
Remove two unneeded connects
...
Also since DockWidgetBase won't be a QObject soon
2020-06-24 22:33:11 +01:00
Sergio Martins
52c37f28d0
Remove pure-virtual which isn't pure
2020-06-24 16:37:37 +01:00
Sergio Martins
bcfb57f89d
Fix aerosnap|alwaysTabs|noTitleBar
...
DragController would ignore the non-client mouse press
2020-06-24 16:18:58 +01:00
Sergio Martins
16fac61a9d
Fix build
2020-06-24 16:10:20 +01:00
Sergio Martins
5203718f93
When not using a title-bar, don't say a tab is HTCAPTION
...
Otherwise tabs are not clickable
2020-06-24 16:06:35 +01:00
Sergio Martins
d3aee0dabb
Add a unit-test
2020-06-24 16:06:35 +01:00
Allen Winter
b6e8703038
CMakeLists.txt - Always build the tests in developer-mode
2020-06-24 10:48:39 -04:00
Allen Winter
153aa65b40
CMakeLists.txt - fail if building bindings in non-release mode
2020-06-24 10:48:39 -04:00
Allen Winter
0701e8aa97
buildsystem - improve how Windows libraries are versioned
...
Change-Id: Ie6873c1ec8fc53a005d12ef6a0573f61b41fba39
2020-06-24 09:57:28 -04:00
Allen Winter
baed168458
CMakeLists.txt - require Qt5.9 or higher
2020-06-24 09:46:12 -04:00
Allen Winter
6b45f97215
Merge branch 'master' of github.com:KDAB/KDDockWidgets
2020-06-23 18:58:16 -04:00
Allen Winter
1fc1e3abb2
CMakeLists.txt - add option to disable building examples
2020-06-23 18:56:51 -04:00
Allen Winter
b825e0b9ea
CMakeLists.txt - add option to disable building tests
2020-06-23 18:52:05 -04:00
Allen Winter
7aa45ebed9
CMakeLists.txt - add option to disable building examples
2020-06-23 18:45:03 -04:00
Allen Winter
c50fe5fa88
CMakeLists.txt - improvements
...
* add some doc at the top
* set VERSION strings
* disable Python bindings in debug build
* consistent coding style
2020-06-23 18:17:46 -04:00
Sergio Martins
ba2fdfc46c
Fix tests with 5.9
...
There was just 1 failing, which needed higher margins
2020-06-23 22:11:50 +01:00
Sergio Martins
815b496599
Mention in the README that min Qt is 5.12 if Python bindings are enabled
2020-06-23 21:59:18 +01:00
Allen Winter
b2e79d4285
.krazy - skip a file in cmake
2020-06-23 15:41:59 -04:00
Sergio Martins
4c630f6c6a
Fix build of python bindings
2020-06-23 20:24:19 +01:00
Allen Winter
bf4ef05d00
CMakeLists.txt - install doc files (LICENSE, README, etc)
2020-06-23 15:14:53 -04:00
Allen Winter
e35fcb02df
src/CMakeLists.txt - fix cmake file install destination
2020-06-23 15:09:20 -04:00
Sergio Martins
4fa2be3263
On Windows it's fine to use the FloatingWindow as the draggable
...
As it supports native dragging
2020-06-23 19:33:33 +01:00
Sergio Martins
7c04cd96c6
Fix dragging on Linux
2020-06-23 19:28:14 +01:00
Sergio Martins
a8bd46155c
Fix typo in test
2020-06-23 19:24:00 +01:00
Sergio Martins
5f4d8b515f
Fix detaching now allowing to continue a drag
...
Seen sometimes on Windows.
Also, since aero-snap works fine now, we can re-enable the mouse grab
2020-06-23 19:19:59 +01:00
Sergio Martins
da4b90e373
tests: Use different json filenames
...
So tests can run in parallel
2020-06-23 19:01:13 +01:00
Allen Winter
7ec2f31a46
buildsystem - generate PRI file for qmake users
2020-06-23 12:55:26 -04:00
Sergio Martins
3217c61713
Help clang-tidy knowing that frame can't be null here
2020-06-23 17:48:40 +01:00
Sergio Martins
2a33599bde
Fix range-loop detachements
2020-06-23 17:48:40 +01:00
Sergio Martins
2994046c7b
Fix -Wclazy-rule-of-three
2020-06-23 17:48:40 +01:00