Sergio Martins
e4f6893324
qml: Fix warnings about dereferencing null types
2020-08-02 17:43:44 +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
7c77c9597e
qml: less debug noise
2020-07-31 20:37:28 +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
8736d2cdb6
qml: Implement QWidgetAdapter::close() and window()
...
Clicking the title bar's close button now works
2020-07-29 23:58:46 +01: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
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
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
36e6613f6a
Fix build
2020-07-27 10:46:59 +01:00
Sergio Martins
0090799f7f
qml: Add missing API in QWidgetAdapter_quick_p.h
2020-07-27 10:44:02 +01:00
Sergio Martins
0659f1e52b
qml: Add missing API to the QtQuick wrapper
...
related to size hints and such
2020-07-26 21:00:22 +01:00
Sergio Martins
e9131897e4
qml: Remove QWidget'isms from DockWidgetBase
2020-07-26 16:16:06 +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
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
df692686e7
various - update copyright year
2020-01-07 11:36:56 -05:00
Sergio Martins
787f7802be
Move the private code into a private/ folder
...
It's nice to have a similar include hierarchy at build time and install
time.
It also makes things more explicit
2019-10-20 19:24:54 +01:00