Sergio Martins
e66cbae09f
qml: Remove QWidget'isms from TitleBar and from the overlay interface
2020-07-26 16:16:06 +01:00
Sergio Martins
08dc55ea06
qml: Adjust API of the quick specialization of the factory
2020-07-26 16:16:06 +01:00
Sergio Martins
5c0c204859
qml: Remove QWidget'isms from DockRegistry
...
The DebugWindow is QWidgets only too.
2020-07-26 16:16:06 +01:00
Sergio Martins
85c32abdf0
minor: Silence warning about unused variable
2020-07-26 16:16:06 +01:00
Sergio Martins
b7353d2bba
qml: Fix signatures for Frame and FloatingWindow quick specializations
2020-07-26 16:16:06 +01:00
Sergio Martins
e9131897e4
qml: Remove QWidget'isms from DockWidgetBase
2020-07-26 16:16:06 +01:00
Sergio Martins
fab0c5f8f8
qml: Remove QWidget'isms from DropArea
...
It's generic now
2020-07-26 16:04:17 +01:00
Sergio Martins
77307a1664
qml: Add more API to match the QWidget counter part
...
Namely isMaximized, showNormal and showMaximized
2020-07-26 16:01:13 +01:00
Sergio Martins
40e944ee9d
qml|cmake: Move some widget only .cpp files into the widgets-only section
...
These won't be used by the QtQuick impl
2020-07-26 16:00:10 +01:00
Sergio Martins
a9402d1073
qml: fix the qml paths in the qrc file
2020-07-26 15:59:36 +01:00
Sergio Martins
9a15ac4bfa
Fix running cmake with OPTION_QUICK
2020-07-26 14:47:09 +01:00
Sergio Martins
6a13085e77
qml: Fix another import
2020-07-25 21:04:39 +01:00
Sergio Martins
14e862f1fb
qml: Add import statements which were removed when adding copyright headers
2020-07-25 21:01:15 +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
Allen Winter
2d0dcb9dbe
multisplitter qml examples - add license+copyright header
2020-07-24 17:24:40 -04:00
Allen Winter
9b2b8bbc02
src/Qt5Qt6Compat_p.h - minor tweak for the include guard
2020-07-24 17:23:37 -04:00
Sergio Martins
1ae66eb8c2
minor cleanup
2020-07-22 17:01:45 +01:00
Sergio Martins
478c6e3bbc
Fix crash when loading a bogus layout
2020-07-21 17:36:45 +01:00
Allen Winter
41b48bd41c
private/multisplitter/Item.cpp - minor comments readability
2020-07-19 10:57:02 -04:00
Sergio Martins
709728e456
Revert "Add support for Qt6"
...
This reverts commit e1bf1cd786 .
This breaks the build with older CMake (3.9 for example), which
doesn't support alias to imported targets.
2020-07-19 15:42:59 +01:00
Sergio Martins
e1bf1cd786
Add support for Qt6
...
Build with -DOPTION_QT6=ON
2020-07-18 21:56:18 +01:00
Sérgio Martins
8474f246ae
Fix Qt6 build
...
Didn't include the cmake changes, as those are hacks for now.
Only included fixes to cpp code.
2020-07-18 18:51:47 +01: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
ffe13f4bea
Fix macOS build due to -Werror extra-semi
2020-07-07 17:33:11 +01:00
Sergio Martins
2559b29b30
Fix separators not moving in some situations
...
We were mixing heights with widths... root->length() can be a width()
(if vertical), while we're calculating available width to grow
on a nested horizontal container
2020-07-06 23:54:42 +01:00
Sergio Martins
7dfcdd1981
Merge pull request #54 from KDAB/mac-testing
...
CMakeLists.txt - disable test_launcher tests on Mac && Qt<5.15.1
2020-07-06 23:21:30 +01:00
Allen Winter
341f682274
CMakeLists.txt - disable test_launcher tests on Mac && Qt<5.15.1
2020-07-06 17:58:17 -04:00
Sergio Martins
5349ff3832
Fix potential crash
2020-07-06 22:40:13 +01:00
Sergio Martins
259a78ebaf
Also simplify layouts that only have 1 child
...
Those have any orientation, so can be simplified, as its "orientation"
matches its parent one
2020-07-06 21:15:23 +01:00
Sergio Martins
090392a02e
tests++
2020-07-06 20:27:45 +01:00
Sergio Martins
563d569ec4
tests: When removing a dock widget, check if max-size is honoured
2020-07-06 19:20:08 +01:00
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