Sergio Martins
19730ab6a4
Fix crash when using MainWindow::layoutEqually()
...
When distributing space we should honour the other widgets
min-size too, and not give too much
Since the layouting code is complex, this won't be backported to
1.3
2021-03-31 15:23:24 +01:00
Sergio Martins
4ab2a93d59
Merge branch '1.3'
2021-03-31 10:01:18 +01:00
Sergio Martins
f82ea82403
Harden Item::layoutEqually()
...
Could cause an infinit loop if the layout was corrupted
2021-03-31 10:00:28 +01:00
Allen Winter
1e8bdba2dd
minor spelling fix
2021-03-23 07:47:31 -04:00
Allen Winter
f00a283722
fix SPDX-FileCopyrightText: and Author: lines
2021-03-23 07:44:37 -04:00
Sergio Martins
263f936690
Fix dock widgets in MDI getting bogus sizes
...
Setting the Item's min-size would resize the guest while the
guest was being set
2021-03-03 12:20:40 +00:00
Sergio Martins
4379e7c544
MDI|Item: Allow widget to resize itself outside of the layout domain
...
With a normal KDDW layout, we don't allow the user to arbitrarily
resize widgets, all the resizes are done via dragging Separator,
which interacts closly with the layout.
With MDI however there's no separators. The user is resizing the
widget and the layout doesn't know about it, and it's fine for MDI
2021-02-13 14:17:42 +00:00
Sergio Martins
a30808e6b7
Implement ItemFreeContainer::removeItem()
2021-02-09 20:17:59 +00:00
Sergio Martins
f23c55dfec
Implement ItemFreeContainer::restore()
2021-02-09 19:56:12 +00:00
Sergio Martins
583d3188ca
Implement ItemFreeContainer::clear()
2021-02-09 19:51:53 +00:00
Sergio Martins
ae81f64d07
MDI: Comment that these methods don't make sense for MDI
2021-02-09 19:47:51 +00:00
Sergio Martins
8dca2e346c
Add experimental MDI support
2021-02-09 19:25:28 +00:00
Sergio Martins
0579b6dcd3
Add a basic MDI layout
...
Not fully functional yet, and no API for end user yet.
2021-02-09 17:44:49 +00:00
Sergio Martins
5fbff7211b
Move lots of methods from MultiSplitter to its base class
2021-02-09 15:09:07 +00:00
Allen Winter
bba36d041b
minor for Krazy
2021-02-08 12:11:46 -05:00
Sergio Martins
cbc5fec119
Added Config::setDisabledPaintEvents()
...
Makes our internal widgets not override QWidget::paintEvent(),
which gives full power to the user to stylesheets.
Was already possible, but required the user to override the
internal widgets via the widget factory
For issue #146
2021-01-24 10:51:58 +00:00
Sergio Martins
bc86cfcb1f
Move Item::insertItem() to the derived class
...
Item itself doesn't know how to insert into the layout.
We'll soon have a new derived class which will do things differently
2021-01-09 00:11:59 +00:00
Sergio Martins
63bb7e31cd
Remove unused method
2021-01-08 22:32:42 +00:00
Sergio Martins
1840d50fc0
Move LayoutBorderLocation out of Item
...
It only affect the box layout
2021-01-08 22:24:53 +00:00
Sergio Martins
c6fd4e4bc4
Remove duplicate Location enum
...
No longer needed
2021-01-08 22:11:03 +00:00
Sergio Martins
46210203f7
Rename ItemContainer to ItemBoxContainer
2021-01-08 22:02:02 +00:00
Sergio Martins
2e498f644b
Remove unneeded multisplitter examples
...
We use the top-level examples instead
2021-01-07 16:45:29 +00:00
Allen Winter
875544a449
Merge branch '1.2'
2021-01-02 09:32:20 -05:00
Allen Winter
a2f4c972a6
update copyright year
2021-01-02 09:27:50 -05:00
Sergio Martins
6719dd2b9e
Allow to pass a preferred initial size to MainWindow::addDockWidget()
...
fixes #95
2020-12-28 11:59:09 +00:00
Sergio Martins
08c058b214
Remove unimplemented DefaultSizeMode::SizePolicy
...
It's public API so don't expose enumerators that don't work
2020-12-28 10:58:37 +00:00
Sergio Martins
db928a0fca
refactor: Move the DefaultSizingMode enum into InitialSizingOption
...
It's another enum that affects the initial sizing.
No behaviour was change in this commit.
Needed for issue #95
2020-12-28 00:17:13 +00:00
Sergio Martins
5582f37a18
Introduce InitialOption struct
...
addDockWidget() received a AddingOption enumerator. But that
enum isn't enough, as we also want to be able to specify an initial
QSize.
So, instead of adding yet another parameter to addDockWidget(), we
create a struct to old those "initial settings".
Implies a minor source break, but trivial to fix in user code,
just rename the enumerator.
Honouring preferredSize will be a followup.
Needed for issue #95
2020-12-27 20:22:02 +00:00
Sergio Martins
771bf10951
Merge branch '1.2'
2020-12-22 18:48:22 +00:00
Sergio Martins
cd859d6725
Fix a bunch of clazy warnings
2020-12-22 17:01:50 +00:00
Sergio Martins
6b846fcdff
qt6: Use more 'auto' to fix some Wconversion errors
2020-12-19 22:54:06 +00:00
Sergio Martins
613b1b8524
Allow the user to change the absolute min and max widget sizes.
...
It's not hardcoded anymore
2020-12-19 15:34:37 +00:00
Allen Winter
805ea41d8a
Rubberband_quick.h, RubberBandQuick.h - adjust include guard
2020-12-16 17:04:06 -05: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
1c41c33f33
Merge the two qrc files that are only for QtQuick
2020-12-16 11:53:36 +00:00
Sergio Martins
94bfc4f2d1
qtquick: Fix build
2020-12-15 23:02:13 +00:00
Sergio Martins
7082e40cd5
Fix non-developer build
...
These exports are needed
2020-12-15 21:56:22 +00:00
Sergio Martins
2c8bbd10f7
Remove the export macros from the old library
...
We now use only 1 library, so use the same export macros
2020-12-15 21:41:10 +00:00
Sergio Martins
ed8a401fe8
Meld kddockwidgets__multisplitter into kddockwidgets lib
...
It's overkill to have it in a separate library.
Simplifies deployment.
Speeds up build, as it was breaking paralellism.
2020-12-15 21:00:41 +00:00
Sergio Martins
72428075f0
Fix -Wshadow warnings
2020-12-15 20:38:20 +00:00
Sergio Martins
cf232dda34
Enable Unity Builds unconditionally
...
Projects using KDDW won't need to modify KDDW, so there's no impact
on incremental builds
2020-12-15 11:13:41 +00:00
Sergio Martins
bfeac02a45
cmake: Make KDDW build faster with a unity build
2020-12-12 15:18:39 +00:00
Sergio Martins
22f4c36eb0
cmake: remove duplicate set of qtquick/qtwidget cmake options
...
Let's simply things and only use one set. If the top-level requires
QtQuick then so will multisplitter. It's not mix-and-match.
2020-12-12 14:11:26 +00:00
Sergio Martins
eba395dc4c
Fix build
2020-12-08 22:31:21 +00:00
Sergio Martins
9f604829dd
qt6: Use AUTORCC instead of qt5_add_resources
...
As this works with both Qt5 and Qt6
2020-12-08 18:11:34 +00:00
Sergio Martins
85f829f97a
qt6: Remove an hardcoded Qt5 lib
2020-12-08 16:38:08 +00:00
Sergio Martins
b6a7048a4f
Fwd declare QWidget, no need to include in the header
2020-12-01 19:48:41 +00:00
Sergio Martins
10e0402afa
Fix build
2020-11-29 19:51:37 +00:00
Sergio Martins
ebb1179167
fix namespace
2020-11-29 19:41:30 +00:00
Sergio Martins
15c196d865
qtquick: Move Rubberband to its own file
2020-11-29 19:23:10 +00:00