Sergio Martins
85b4fc3751
qml: Hide TabBar if only 1 tab exists
2020-08-02 12:28:00 +01:00
Sergio Martins
197a0abb7e
qml: Wire up some events for DockWidget
...
Some events like QEvent::Show, Hide and Close are for QWidget only,
so we have to synthetize them, as KDDW expects them
2020-08-02 12:15:26 +01:00
Sergio Martins
1df0e6d6dd
qml: Add Guest #3
2020-08-01 18:09:49 +01:00
Sergio Martins
36407d2abe
qml: Separators now work
2020-08-01 17:44:07 +01:00
Sergio Martins
2ffdfcad24
qml: Calling DockWidget::setWidget(filename) now loads a QML
2020-07-31 21:23:35 +01:00
Sergio Martins
0e1dc4bd45
qml: Remove some QWidget'isms
2020-07-31 21:06:11 +01:00
Sergio Martins
2853f54ac7
qml: Add a visual item for DockWidget
...
DockWidget.qml, in case the user wants to make style changes
2020-07-31 21:00:29 +01:00
Sergio Martins
76efd45e2d
qml: Fix parenting dock widgets to the stack layout
2020-07-31 20:48:37 +01:00
Sergio Martins
7c5e0826c6
qml: Add a tabbar from QQC2 to Frame.qml
2020-07-31 20:37:56 +01:00
Sergio Martins
7c77c9597e
qml: less debug noise
2020-07-31 20:37:28 +01:00
Sergio Martins
312d95a376
qml: link to QQC2 too, needed for TabBar
2020-07-31 18:51:39 +01:00
Sergio Martins
dc1b4f79e4
qml: Parent dock widget to Frame
2020-07-30 23:10:42 +01:00
Sergio Martins
44da2dca65
qml: Implement dragging via title bar
...
needs to redirect the events from the mouse area to the
C++ draggable
2020-07-30 22:34:36 +01:00
Sergio Martins
9657bc50a3
qml: Remove QtWidget'ism from DragController
2020-07-30 22:18:05 +01:00
Sergio Martins
affd7dfb87
qml: Fix two title bars being shown
2020-07-30 17:56:56 +01:00
Sergio Martins
dc59ecb4eb
qml: Fix title bars not showing their title
2020-07-30 17:28:27 +01:00
Allen Winter
f95e3d10e7
Doxyfile.cmake - comment another setting too new for our CI
2020-07-30 11:53:18 -04:00
Allen Winter
a664a05201
docs/api/CMakeLists.txt - copy screencap.gif by-hand
2020-07-30 11:45:51 -04:00
Allen Winter
7b3e858aa3
docs/api/CMakeLists.txt - fix qch file name
2020-07-30 11:18:36 -04:00
Sergio Martins
1d032abb72
Fix some doxygen bugs
2020-07-30 16:15:25 +01:00
Allen Winter
61a5fec3cb
Doxyfile.cmake - comment settings that are too new for our CI
2020-07-30 10:52:42 -04:00
Allen Winter
4e6022e529
README.md - possible fix for screen capture link in doxygen
2020-07-30 10:14:28 -04:00
Allen Winter
9216964b02
Doxyfile.cmake - improvements
2020-07-30 10:14:28 -04:00
Allen Winter
a87a694e3c
docs/api/Doxyfile.cmake.bak - remove. added by mistake
2020-07-30 10:14:28 -04:00
Sergio Martins
8736d2cdb6
qml: Implement QWidgetAdapter::close() and window()
...
Clicking the title bar's close button now works
2020-07-29 23:58:46 +01:00
Allen Winter
fc633f2547
various minor documentation fixes for doxygen
2020-07-29 18:58:17 -04:00
Allen Winter
82abc90133
Build API documentation with doxygen
2020-07-29 18:44:42 -04:00
Sergio Martins
f8f596ad30
qml: Layout the drop area and title bar inside the FloatingWindow
...
We could just control geometry of the c++ title bar and geometry,
but then the user wouldn't be able to style it, and users rather
style things in QML than subclassing FloatingWindow and writing C++.
So instance some .qml files to represent the drop area and floating
window, so user can muck with.
Hierarchy looks like this now:
-QQuickWindow
--FloatingWindowQuick (C++ QQuickItem)
---FloatingWindow.qml
----TitleBar.qml (reads state from TitleBar c++)
----DropArea.qml
-----DropArea (C++ QQuickItem)
------Frame
etc
2020-07-29 23:28:05 +01:00
Sergio Martins
c13f9c00aa
minor coding style
2020-07-29 22:07:51 +01:00
Sergio Martins
0ff9b95577
Move some typedefs into KDDockWidget namespace
...
So they don't conflict with user code
2020-07-29 10:30:21 +01:00
Sergio Martins
ab28c63273
Fix possible crash when deserializing
2020-07-29 09:31:46 +01:00
Sergio Martins
cbe6e47233
qml: Make the windows bigger for now
2020-07-28 22:27:15 +01:00
Sergio Martins
dc3a598594
qml: Fix no QEvent::ParentChange being sent
...
QWidget::setParent() does this but QQuickWidget doesn't, so do
it manually.
2020-07-28 22:25:43 +01:00
Sergio Martins
6738bb0ae1
qml: Implement QWidgetAdapter::parentWidget()
...
Frame gets access to its DropArea now
2020-07-28 22:25:09 +01:00
Sergio Martins
1286fc28ca
qml: Wire up TitleBar buttons
2020-07-28 21:41:41 +01:00
Sergio Martins
6104fdf2e0
qml: Implemented QWidgetAdapter::setFlag
...
FloatingWindow is frameless now.
2020-07-28 21:28:15 +01:00
Sergio Martins
f42f3804a1
qml: Add a default size for items
...
Otherwise it's 0x0
2020-07-28 21:17:28 +01:00
Sergio Martins
10226fc61a
qml: FloatingWindow now creates a real top level QWindow
2020-07-28 21:17:01 +01:00
Sergio Martins
ba2ce8b8db
qml: Implement QWidgetAdapter::isWindow and initialize min/max
2020-07-28 20:41:26 +01:00
Sergio Martins
dccdeda18a
qml: debug++
2020-07-28 20:41:12 +01:00
Sergio Martins
a23c76f6fb
qml: create a dock widget in the example
...
So we can debug why it's not creating a floating window
2020-07-28 20:40:39 +01:00
Sergio Martins
0245b6e81b
qml: Fix path for Frame.qml
2020-07-28 19:25:10 +01:00
Allen Winter
35728f54cd
src/CMakeLists.txt - ${PROJECT_NAME}_VERSION for PACKAGE_VERSION
...
we haven't set a PACKAGE_VERSION needed by
write_basic_package_version_file() but we don't need one
since we can simply use ${PROJECT_NAME}_VERSION
2020-07-27 17:49:59 -04:00
Allen Winter
fc7af85c83
CMakeLists.txt - must set *_VERSION_* after project() call
...
project() sets ${PROJECT_NAME}
then we can use ${PROJECT_NAME} to set VERSION variables
2020-07-27 17:48:07 -04:00
Sergio Martins
c87f5ba6eb
Move utility function into tests
...
used by the tests only
2020-07-27 21:32:58 +01:00
Sergio Martins
a574364100
vscode: Add settings for QtQuick too
2020-07-27 21:32:31 +01:00
Sergio Martins
88e10ffb31
qml: Add the skeleton for the example
...
Doesn't do much yet, but has background.
2020-07-27 18:00:06 +01:00
Sergio Martins
2895de3ef5
qml: Add missing export macro
2020-07-27 10:52:34 +01:00
Sergio Martins
5346f808f9
qml: Don't include the widgets MainWindow in LayoutSaver
2020-07-27 10:51:03 +01:00
Sergio Martins
36e6613f6a
Fix build
2020-07-27 10:46:59 +01:00