Sergio Martins
b0ec0e22e4
quick: Remove unused Separator.qml
...
We have one in multisplitter/ already
2020-10-05 17:34:27 +01:00
Sergio Martins
6aa4e979dc
Added DockWidgetBase::hasPreviousDockedLocation()
2020-10-05 13:52:36 +01:00
Sergio Martins
36f225b859
Fix build with MinGW, no pragma link
...
Instead use cmake to link, which is cleaner anyway.
As a drive-by, remove the QtWidget check from the headers includes,
as QtQuick also needs Dwm lib
2020-10-05 03:15:36 -07:00
Sergio Martins
48a75b2450
Fix namespaced build
2020-10-05 10:21:20 +01:00
Sergio Martins
2af4f939dd
tests|quick: Fix leak
2020-10-04 20:37:00 +01:00
Sergio Martins
b592d21064
quick: Also run tst_resizeWindow2 for QtQuick
2020-10-04 20:22:43 +01:00
Sergio Martins
3cdd5afe7a
quick: Fix ownership of the floating view
...
Not nice to delete it in two places.
2020-10-04 20:16:30 +01:00
Sergio Martins
0ef56c1302
quick: Fix the overlay from minimizing windows being dragged
2020-10-04 19:41:26 +01:00
Sergio Martins
96f7f38a0e
tests|quick: Set a source in the view, so we have a root item
2020-10-04 19:39:13 +01:00
Sergio Martins
689ba7da8f
quick: Make dealing with window flags more stable
...
There's only one place where we need to set the flags, it's when
creating the FloatingWindowQuick. So no need to complex machinery
which is bug propne
2020-10-04 11:12:35 +01:00
Sergio Martins
951aeece6e
quick: Make DockWidgetBase::setWidget() virtual
...
The QtQuick counter-part needs to do some specific things, like
settings anchors.parent: fill on it, and parenting it
2020-10-04 00:01:32 +01:00
Sergio Martins
2ea0d54e6c
quick: Fix floating windows not having the correct window flags
...
Add a unit-test too.
2020-10-03 23:30:13 +01:00
Sergio Martins
1c98fe04ca
Fix build
2020-10-03 23:11:40 +01:00
Sergio Martins
59a9ab6642
tests: Remove org.kde.desktop from warning blacklist
...
It's now solved by not using the kde QQC2 style. So no need to polute
the warning list
2020-10-03 23:07:49 +01:00
Sergio Martins
7ee5949ae2
tests|quick: Fix memory leaks
2020-10-03 23:07:04 +01:00
Sergio Martins
721f08e29b
tests: Show the QQuickView and cleanit up
...
Also commit main.qml I forgot
2020-10-03 22:49:27 +01:00
Sergio Martins
df07133c9d
tests: Silence some QML warnings from KDE theme plugin Kirigami
...
We don't want tests to abort because of that
2020-10-03 22:48:28 +01:00
Sergio Martins
b9e3024720
tst_common now passes for QtQuick
...
Needed a view
2020-10-03 22:10:38 +01:00
Sergio Martins
d848d3e39a
MainWindow: Receive either QWidget or QQuickItem as parent
...
No need to receive the more complex adapters
2020-10-03 22:09:56 +01:00
Sergio Martins
3f26f4c8f2
Remove unused variable
2020-10-03 22:09:26 +01:00
Sergio Martins
dc9d709dd7
quick: Use proper icons for close and float
...
No more red rectangles
2020-10-03 18:55:33 +01:00
Sergio Martins
543f734650
Added DragController::enableFallbackMouseGrabber()
...
So it's easier to test the fallback mouse grabber
2020-10-03 18:37:26 +01:00
Sergio Martins
3fb723a82f
quick: Fix QtQuick build
2020-10-03 18:27:22 +01:00
Sergio Martins
71c2f34ed4
quick: Add needed pure virtual FrameQuick::renameTab()
...
Not needed to have much of an impl, it's just to fix the build.
For QtQuick the tab's titles are updated via bindings
2020-10-03 18:15:56 +01:00
Sergio Martins
d4b3bf9de6
quick: Added support for showMinimized()
2020-10-03 18:11:33 +01:00
Sergio Martins
2b234f313c
quick: Remove some QWidget specific code from MainWindowBase
2020-10-03 18:10:23 +01:00
Sergio Martins
d1b2d17f7d
Allow the normal/restore icon to be different than float/dock
...
Allow we use the same icon, the user might now want to, so allow
them to use a different icon
2020-10-03 14:58:07 +01:00
Sergio Martins
f062ab7a64
TitleBar: Move button construction into the FrameWorkWidgetFactory
...
So it can be more easily overridden by the user.
A virtual in TitleBarWidget is not good enough as we can't call virtuals
when in the ctor
2020-10-03 14:52:44 +01:00
Sergio Martins
f009f57581
Move TitleBarButtonType next to all other enums
2020-10-03 14:29:36 +01:00
Sergio Martins
f86a818e69
TitleBar: Add an enum to describe each button type
2020-10-03 14:24:40 +01:00
Sergio Martins
bb80c2158d
Fix outter_bottom_active.png
...
Was missing an outline for some reason
2020-10-03 13:57:32 +01:00
Sergio Martins
86fa6258f6
Comment++
2020-10-03 13:56:51 +01:00
Sergio Martins
545536fab5
Support high-res icons when on 1.5x scaling and Qt >= 5.15.2
...
Icons look nice now on linux with 1.5x. Windows and macOS don't use
fractional scaling, so not affected
Fixes #11
Will open a separate bug report to get high-res docking indicators.
2020-10-03 13:21:06 +01:00
Sergio Martins
ef23553b66
Fix high-res unauto-hide icon
...
We had it but we were still using the old one in C++
2020-10-03 12:04:39 +01:00
Sergio Martins
fcf56664cc
Add high-res icons for minimize and maximize
2020-10-03 11:50:33 +01:00
Sergio Martins
d932166bcd
Add high-res icons for dock/float
2020-10-03 11:43:15 +01:00
Sergio Martins
0c5783774d
Added high-res close icon
2020-10-03 11:38:26 +01:00
Sergio Martins
aa42ea15f7
Add high-res versions for auto-hide and unauto-hide png
...
1.5x is disabled for now, as Qt < 5.15.2 has a rounding bug
rendering them
2020-10-03 11:28:21 +01:00
Sergio Martins
9dd778d55d
Pass the correct icon size when rendering a button
...
Needed when rendering with different scaling
2020-10-03 10:57:54 +01:00
Sergio Martins
ac35a919f4
Don't show center/tab docking indicator when there's no affinity
...
If the dock widget can't dock there as tabbed, don't show the
indicator
2020-10-02 17:35:15 +01:00
Sergio Martins
a32c5017e6
Minor: Remove unneeded variable
2020-10-02 17:24:50 +01:00
Sergio Martins
7995a6d13b
Windows: Fix dragging sometimes not showing indicators
...
DragController thought there was a resize going on.
The hardcoded margins in FloatingWindow::isInDragArea() arent
needed anymore.
iPlease enter the commit message for your changes. Lines starting
2020-10-02 17:05:16 +01:00
Sergio Martins
d4ec2eec88
Windows: Added support for drop shadow for floating windows
2020-10-01 18:31:46 +01:00
Sergio Martins
12ad3b3484
Fix floating window's border, was appearing black
...
QPen was unused
2020-10-01 18:22:07 +01:00
Sergio Martins
9a53c36c14
Also honour affinities when dropping into a dock widget as tabbed
...
Fixes #89
2020-10-01 17:55:19 +01:00
Sergio Martins
8fb3802343
tests: Add an xfail for an affinities bug
...
This is for #89 . They shouldn't be allowed to tab
together since they have different affinities
Minor refactoring in drop area so we can call DropArea::drop()
directly without having to move the mouse, as that's not relevant
for this test.
2020-10-01 17:45:53 +01:00
Sergio Martins
c035df7e85
Improve the heuristics for auto-hide prefered side bar
...
Now it counts the number of borders it's touching to decide.
Then checks aspect ratio too.
Can still be improved, but it's a start. Will gather feedback
before changing it further.
2020-10-01 17:16:41 +01:00
Sergio Martins
92f81e28ca
Merge branch '1.0' into master
2020-10-01 11:08:39 +01:00
Sergio Martins
7a87db608b
README: Updated build instructions
...
use cmake to call the generator, this way it's generic and
works with any generator
2020-10-01 11:07:11 +01:00
Sergio Martins
d42fb81790
Windows: Fix artifacts when dragging window to another screen
...
Qt does its best to honour our custom WM_NCCALCSIZE processing,
except when the window moves to another screen. So help Qt a bit
and trigger a WM_NCCALCSIZE message, which Qt intercepts and takes
notes of the custom margins.
Fixes #46
2020-09-30 22:12:40 +01:00