Sergio Martins
e447bbf03b
vscode: Don't specify tasks
...
The cmake extension takes care of this
2021-04-20 20:18:32 +01:00
Sergio Martins
3846b638fb
cmake: Add build presets too
...
This is new in cmake 3.20 and makes the vscode experience much better
2021-04-20 20:16:44 +01:00
Sergio Martins
6ae8a203d9
qtquick: Fix build
2021-04-20 19:43:26 +01:00
Sergio Martins
1dbd491738
Minor: Move a comment to another place
2021-04-20 19:16:14 +01:00
Sergio Martins
e8693edb33
Minor refactoring: Factor out the FloatingWindow max size code
...
Created FloatingWindow::maxSizeHint()
2021-04-20 19:13:32 +01:00
Sergio Martins
5cbad00cb5
Minor coding style: bail out early
2021-04-20 18:47:34 +01:00
Sergio Martins
c6e4deb0ca
Merge branch '1.3'
2021-04-19 09:47:43 +01:00
Sergio Martins
693fb84a3e
Fix DockWidgetBase::isFocusChanged() not being emitted
...
The previous commit fixed that the dock widget wasn't
getting focused on tab change, but didn't fix the signal.
When changing tabs, FocusScope::setFocused() would bailout
early because it was already focused, so never emitted
the signal for the new focused dock widget.
Refactored the code a bit and it's more robust now.
Setting the current focused widget is now centralized in
DockRegistry. Before it was split in two different places.
Fixes issue #188
2021-04-19 09:42:59 +01:00
Sergio Martins
b0a7d5d4a0
Merge branch '1.3'
2021-04-19 00:16:39 +01:00
Sergio Martins
818acc0ff1
Fix edge case when focusing FocusScope and tab bar is focused
...
When we focus a FocusScope we focus the last focused widget
inside that scope. But it could happen that the last focused widget
was the tab bar itself, which isn't very useful.
Fixes issue #188
2021-04-19 00:15:15 +01:00
Sergio Martins
819fec6061
Implement missing function body
2021-04-18 23:56:21 +01:00
Allen Winter
4ea8c98243
cmake/QtInstallPaths.cmake - don't cache the QT_FOO variables
...
makes changing Qt versions easier
2021-04-16 07:55:40 -04:00
Sergio Martins
95317a7336
Add signal DockWidget::aboutToDeleteOnClose()
...
It's emitted when the dock widget is going about deleted due to
the DeleteOnClose functionality
2021-04-14 15:24:15 +01:00
Allen Winter
9b6abfbbc3
src/private/quick/MainWindowInstantiator_p.h - fix include guard
2021-04-12 08:41:13 -04:00
Sergio Martins
4bee3023d2
SegmentedIndicators: Don't show inner segments when having only 1 frame
2021-04-12 10:52:48 +01:00
Sergio Martins
45f12db8d3
windows: Fix place of export macro for namespace
2021-04-12 10:02:50 +01:00
Sergio Martins
9956b3fed3
qt6: Fix KDDW build on Windows
...
Namespace needs to be exported due to Q_NAMESPACE
2021-04-12 09:57:49 +01:00
Sergio Martins
374e837aa9
Allow to style SegmentedIndicator
2021-04-09 17:01:20 +01:00
Sergio Martins
6ffd3e574f
qtquick: Add support for LayoutSaver
...
You can now instantiate LayoutSaver {} in QML and save/restore
layouts
2021-04-08 23:23:24 +01:00
Sergio Martins
8a3706f6cb
docs: document LayoutSaver's internals
...
explains the 2-phase restore
2021-04-08 20:46:13 +01:00
Sergio Martins
faa16ad910
docs: Add some doxygen to LayoutSaver
2021-04-08 20:39:23 +01:00
Sergio Martins
eb69e25622
qtquick: More invokables
2021-04-08 20:33:48 +01:00
Sergio Martins
b006bb0c3c
vscode: Remove empty MIModes
...
On MSVC they are not required, and the editor highlights them
as wrong
2021-04-08 19:58:00 +01:00
Sergio Martins
02ed50b336
vscode: Add launches for qtwidgets
2021-04-08 19:47:39 +01:00
Sergio Martins
f0023bc084
README-QtQuick: Mention workaround for lagging windows
2021-04-08 12:23:26 +01:00
Sergio Martins
6502f7760d
README-QtQuick: Mention there's some slowness in some rare setups
2021-04-08 11:53:42 +01:00
Sergio Martins
7606691ea3
QtQuick: Add more properties to DockWidgetInstantiator
2021-04-08 10:28:21 +01:00
Sergio Martins
257a1e9474
vscode: Remove tests_launcher from launchers
...
It's not something devs need to run manually
2021-04-07 22:44:36 +01:00
Sergio Martins
9f02ccbb48
qtquick: Add more properties to DockWidgetBase.h
2021-04-07 22:42:33 +01:00
Sergio Martins
a18199e9a2
vscode: Add launches for qtquick
2021-04-07 22:41:44 +01:00
Sergio Martins
cdd6f998c4
qtquick: Add a missing Q_ENUM
2021-04-07 22:20:15 +01:00
Sergio Martins
df21b6fc6f
qtquick Add a bunch of invokables to the MainWindowInstantiator_p.h
2021-04-07 22:16:54 +01:00
Sergio Martins
edf7dee78e
qtquick: Add more properties and Q_INVOKABLE to main window
2021-04-07 22:05:51 +01:00
Sergio Martins
f723e5ea59
qtquick: Add some properties to main window
2021-04-07 21:48:05 +01:00
Sergio Martins
748243f512
qtquick: Allow to call addDockWidget() from QML
2021-04-05 22:56:08 +01:00
Sergio Martins
e7d37402d7
Rename DefaultSizeMode::None
...
Fixes QtQuick warnings about two different enum class having an
enumerator called "None"
Known QML limitation with "enum class"
2021-04-05 22:33:11 +01:00
Sergio Martins
7c101ae3af
qtquick: comments++
2021-04-05 20:41:59 +01:00
Sergio Martins
cf9cdd8b3b
qtquick: Add some Q_INVOKABLE to MainWindowBase
2021-04-05 20:37:58 +01:00
Sergio Martins
b18783c17a
qtquick: Add some Q_ENUM_NS
2021-04-05 20:36:38 +01:00
Sergio Martins
201d06d878
qtquick: Use MainWindowOption instead of int for the property too
2021-04-05 20:32:11 +01:00
Sergio Martins
742ef7d529
qtquick: Use the MainWindowOptions enum instead of int
2021-04-05 20:28:57 +01:00
Sergio Martins
3d73fc10cd
qtquick: Add some Q_INVOKABLE to DockWidgetBase.h
...
So these methods can be called from QML
2021-04-05 18:50:25 +01:00
Sergio Martins
075c1b06f7
qtquick: Add some Q_INVOKABLE to DockRegistry
...
So they can be called from QML if the user wants
2021-04-05 18:42:15 +01:00
Sergio Martins
2706a3d379
qtquick: Add "Close All" option in the example
2021-04-05 18:31:56 +01:00
Sergio Martins
e476dce1d4
qtquick: Fix some undefined warnings at shutdown
2021-04-05 18:06:07 +01:00
Sergio Martins
2f25657cfa
Fix QtQuick build
2021-04-05 17:08:47 +01:00
Sergio Martins
1167545199
Update Changelog
2021-04-05 16:51:36 +01:00
Sergio Martins
fcd1fae77e
qtquick: Add a MenuBar to the example, allows to toggle
2021-04-05 16:48:13 +01:00
Sergio Martins
06db10561c
qtquick: Use QQmlApplicationEngine in the examples
...
So we can add menus and such
2021-04-05 16:41:45 +01:00
Sergio Martins
ead9e8945e
qtquick: Allow to add the guest widget declaratively
...
This is an alternative to setting source
2021-04-05 16:22:56 +01:00