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
Sergio Martins
73934e2f90
Always call FloatingWindow::create() in the CTOR
...
0x051000 was a typo, as it's Qt 5.16, not 5.10.
Since it's been running fine for 5.15 for so long, let's remove
special cases and have the same path for all Qt versions.
2020-09-30 22:07:07 +01:00
Allen Winter
1c8642298b
src/private/multisplitter/Item.cpp - fix compile with msvc2013
...
might be choking on the QStringLiteral being a lambda
used into a [] ??
2020-09-30 12:51:02 -04:00
Allen Winter
bfc45bb0e9
tst_multisplitter.cpp - add braces to make msvc2013 happy
...
Change-Id: I562a8b14c9c6713fc15116397b5c215138a0c9cb
2020-09-30 12:50:03 -04:00
Allen Winter
58af9e2516
tst_multisplitter.cpp - add braces to make msvc2013 happy
...
Change-Id: I562a8b14c9c6713fc15116397b5c215138a0c9cb
2020-09-30 09:25:01 -04:00
Sergio Martins
4228c044ea
Fix false-positive caught by Coverity
...
It's benign
2020-09-30 10:58:36 +01:00
Sergio Martins
ccc0aec968
Remove some dead code which is no longer used
2020-09-30 10:39:04 +01:00
Sergio Martins
3718d3fe79
Silence false-positive pointed out by Coverity
2020-09-30 10:33:58 +01:00
Sergio Martins
26ed9b722b
Don't allow to turn off native dragging on Windows
...
Native dragging is much better as Windows deals with crossing screen
boundaries, there's no reason not to want that.
Client-side moving is buggy within Qt, depending on the HDPI setting.
Fixes #86
Fixes #78
2020-09-30 09:01:09 +01:00
Sergio Martins
6751669249
Fix flaky test on 5.14, it's benign
2020-09-29 23:21:36 +01:00
Sergio Martins
c7955dce1e
Update ChangeLog and README
...
1.1 is due out soon, won't have QtQuick yetx
2020-09-29 21:10:47 +01:00
Sergio Martins
2e432f402f
Also update floating action when removing from a FloatingWindow
...
Fixes #79
2020-09-29 21:05:45 +01:00
Sergio Martins
07791cd901
Fix another case where floating actions weren't updated
...
Relates to issue #79
2020-09-29 20:50:02 +01:00
Sergio Martins
1458da92d9
minimal example: Use fusion too
...
Looks better in general
2020-09-29 18:10:12 +01:00
Sergio Martins
c56f998292
Use Qt::MitterJoin when drawing rectangle
...
As it's not the default. Otherwise there's artifacts with hdpi scaling
2020-09-29 13:38:44 +01:00
Sergio Martins
991075d69e
Windows: Start a native drag as soon as possible
...
Native drag works much better with HDPI crossing screens.
Relates to issue #78
2020-09-29 12:39:10 +01:00
Sergio Martins
234ca75728
tests: minor: Use QCOMPARE instead of QVERIFY
2020-09-28 22:10:00 +01:00
Allen Winter
e34d62d3e5
src/private/multisplitter/Item.cpp - fix compile with msvc2013
...
might be choking on the QStringLiteral being a lambda
used into a [] ??
2020-09-28 16:49:59 -04:00
Allen Winter
423be28afd
various - misspelling--
2020-09-28 16:40:27 -04:00
Sergio Martins
eb7bed9601
Fix build with -Werror
2020-09-28 19:00:40 +01:00
Sergio Martins
fa09521012
Adjust unit-test, according to the latest change
2020-09-28 18:55:55 +01:00
Sergio Martins
bb30f322a3
Fix size when docking a floating window
...
The docked widget would have the size of the window's contents,
we should use the size of the floating window instead.
The difference is just the title bar. When docked, the title bar
belongs do Frame, while when Floating it belongs to FloatingWindow.
When doing the docking calculation the frame's title bar is still hidden
Fixes issue #84
2020-09-28 18:47:46 +01:00
Sergio Martins
0e35c93ae5
Update ChangeLog
2020-09-27 18:02:56 +01:00