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
Jacob Young
e4502d4f64
Fix filename case so that it will build on a case-sensitive filesystem.
2020-12-28 03:07:30 -05: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
a28e152a37
Remove duplicate DefaultSizeMode enum
...
It's already in Item_p.h
2020-12-27 13:56:58 +00:00
Sergio Martins
d6dea6f426
TabWidget: Remove paint event hack
...
Origin unknown, came from "initial commit".
Can't notice any difference without it. Users can do such hacks
by overriding it
2020-12-27 12:58:12 +00:00
Sergio Martins
d29f9fdd0d
Fix install location of TabWidget_p.h
...
It moved location in the repo recently
2020-12-27 12:39:08 +00:00
Sergio Martins
a2a80df5df
Add static function DockWidgetBase::byName()
...
So users don't have to use private API.
Fixes issue #126
2020-12-27 11:41:16 +00:00
Sergio Martins
48ce3a972f
DockWidget: Move some clutter to the end of the file
...
So users not using doxygen can quickly see the API
2020-12-27 11:34:44 +00:00
Sergio Martins
9fae250897
DockWidget: Make the serialization methods private
...
They are not for the public
2020-12-27 11:32:38 +00:00
Sergio Martins
4dd703dcb2
Remove another unneeded qWait
2020-12-24 11:57:18 +00:00
Sergio Martins
e46b5b2edf
tests: Remove a few unneeded qWaits regarding QStateMachine
...
We don't use QStateMachine anymore
2020-12-24 11:55:45 +00:00
Sergio Martins
7febcf2170
qtquick: Uncomment another TabBar that passes now
2020-12-24 11:53:13 +00:00
Sergio Martins
012ed4cf1d
qtquick: Uncomment another test regarding tab widget
2020-12-24 11:43:13 +00:00
Sergio Martins
18283c4d1a
qtquick: Enable another QTabBar test
2020-12-23 23:37:37 +00:00
Sergio Martins
2bb46b1cdf
Uncomment another tab test
2020-12-23 23:11:09 +00:00
Sergio Martins
113263a4a1
qtquick: Enable one more QTabBar test
2020-12-23 22:47:36 +00:00
Sergio Martins
a6ca44cde6
qtquick: double-clicking a tab will detach it now
2020-12-23 20:37:59 +00:00
Sergio Martins
894be60a75
tests: Add pressOn/doubleClickOn that receives a QWindow
...
Easier as we don't need to know the actual QWidget/QQuickItem
receiver. The QWindow will deliver it.
2020-12-23 20:36:50 +00:00
Sergio Martins
244a1bec24
Merge branch '1.2'
2020-12-23 14:34:39 +00:00
Sergio Martins
51d78ba20b
cmake: Allow to not build the fuzzer
...
Slight build improvement locally.
Still build by the CI anyway.
Did the same for the linter.
2020-12-23 13:36:43 +00:00
Sérgio Martins
8291025dfa
tests: Make the tests run much faster
...
tst_docks is already run in parallel. Then it was running
again sequentially!
2020-12-23 13:32:15 +00:00
Sergio Martins
6ea1d4ca58
Minor coding style
2020-12-22 18:58:51 +00:00
Sergio Martins
771bf10951
Merge branch '1.2'
2020-12-22 18:48:22 +00:00
Sergio Martins
67a3270324
cmake: Add a setting to enable -Werror without developer build
...
Enabled for clazy, for example
2020-12-22 18:16:35 +00:00
Sergio Martins
cd859d6725
Fix a bunch of clazy warnings
2020-12-22 17:01:50 +00:00
Sergio Martins
092b4afe4a
Add a clazy preset
2020-12-22 16:05:10 +00:00
Sergio Martins
f8d0ffe7ba
Fix a few clazy warnings
2020-12-22 16:02:55 +00:00
Sergio Martins
10f47a701f
Fix -Wclazy-copyable-polymorphic
2020-12-22 15:38:50 +00:00
Sergio Martins
d3224ed266
Fix -Wclazy-qstring-arg
2020-12-22 15:28:29 +00:00
Sergio Martins
2ccb5391bb
Fix -Wclazy-detaching-temporary
2020-12-22 15:14:28 +00:00
Sergio Martins
5c0c9799a4
Fix build with clang -Wsigness
2020-12-22 15:14:13 +00:00
Sergio Martins
5ccbb5b056
build-all.dart: no need to pass the cmake variables
...
they are already in the preset
2020-12-22 12:28:32 +00:00
Sergio Martins
fc04455e93
build-all.dart: Update the usage comment
2020-12-22 12:15:15 +00:00
Sergio Martins
4ae8f461cb
Merge branch '1.2'
2020-12-22 11:56:45 +00:00
Giuseppe D'Angelo
17539e5b88
Frame: stop using "virtual" signals
...
They don't work as expected across DLL boundaries on MSVC: connecting
to Frame::isFocusedChanged using the PMF syntax fails.
The reason has to do with how MSVC implements pointers to virtual
function members: they are "regular" function pointers to a DLL-local
stub that implements the virtual call. For that reason, a connect()
happening in client code would generate a pointer for the signal that
doesn't compare equal to the same pointer generated from inside KDDW;
and moc-generated code relies on this comparison to find the index of
the signal.
Just avoid the whole thing: rename the non-signal virtual call into a
"callback", and reimplement it in the first QObject subclass to turn it
into a proper signal.
2020-12-22 11:54:44 +00:00
Sergio Martins
e53b9c71da
Update build-all.dart with the contents from master
...
Adding the --tests option should have been done in 1.2 branch
2020-12-21 20:19:59 +00:00
Sergio Martins
9275f852d6
CMakePresets: Enable sanitizers for our developer builds
2020-12-21 20:06:40 +00:00
Sergio Martins
dd8f46880f
qtquick: Implement TabBarQuick::tabAt()
...
Also redirect the mouse press event to our C++ counterpart.
2020-12-21 17:09:55 +00:00
Sergio Martins
e9159a08bd
Fix build when usign installed TabWidget_p.h
2020-12-21 13:31:10 +00:00
Sergio Martins
cf89891e4f
Merge branch '1.2'
2020-12-21 12:43:31 +00:00
Sergio Martins
1cc8824f84
Workaround shiboken crash, found by Milian
2020-12-21 12:41:09 +00:00
Sergio Martins
b73c526c57
qtquick: Move the event redirector to the base class
...
Instead of having it in TitleBarQuick.
It will be needed by the TabWidget too
2020-12-20 17:12:44 +00:00
Sergio Martins
add577c46f
qtquick: Fix title not changing when we changed current tab
...
added unit-test too
2020-12-20 16:30:25 +00:00
Sergio Martins
9ddd65ea71
qtquick: tidy some connects
2020-12-20 15:37:17 +00:00
Sergio Martins
b15afa9231
Move TabWidget instantiation to base class Frame
...
Instead of being instantiated by both FrameQuick and FrameWidget
2020-12-20 14:21:39 +00:00
Allen Winter
f8dfde2784
README.md - add a "Using" section
2020-12-20 08:27:00 -05:00
Sergio Martins
6e0898a31e
Remove some methods from TabWidgetQuick
...
Reuse more from base class.
2020-12-20 13:19:07 +00:00
Sergio Martins
8b98dafba2
TabBar::numDockWidgets() doesn't need to be virtual
2020-12-20 12:32:50 +00:00
Sergio Martins
a123437d03
qtquick: Implement the TabWidget backend
...
Not yet connected to the GUI.
2020-12-20 12:06:29 +00:00