Sergio Martins
04723ac3a9
Minor refactoring, moved code into a function
2020-11-26 22:46:14 +00:00
Sergio Martins
c25043fa00
qtquick: Enable more QtWidget paths that compile fine
...
Just needed a dummy create() function
2020-11-26 22:28:57 +00:00
Sergio Martins
5372920cd0
qtquick: Port NCHITTESTEventFilter
2020-11-26 21:53:48 +00:00
Sergio Martins
28ae4c3b8c
Add helper to get FloatingWindow by its WId
2020-11-26 21:42:45 +00:00
Sergio Martins
6158ebd520
qtquick: Fix our QtQuick QLineEdit clashing with the QWidgets one
...
Some indirect include is making it clash. Cleaner to use a different
name anyway
2020-11-26 21:28:01 +00:00
Sergio Martins
b77430e574
Remove two more unneeded QApplication includes
2020-11-26 19:35:46 +00:00
Sergio Martins
fad81d595a
qtquick: Remove some dependencies to QApplication
2020-11-26 19:31:32 +00:00
Sergio Martins
0980a7f601
qtquick: Port qtTopLevelForHWND() to Windows
...
Deals in QWindow instead of QWidget
2020-11-26 18:54:58 +00:00
Sergio Martins
46830713e0
stabilize test on Windows
2020-11-26 18:27:17 +00:00
Sergio Martins
cd796db0ff
Add helper topLevelForHandle()
2020-11-26 17:53:28 +00:00
Sergio Martins
29da5f4a8a
qtquick: Fix another include
...
Fixes the multisplitter build on Windows, which has a more picky
linker
2020-11-26 17:18:55 +00:00
Sergio Martins
315bdc71e5
qtquick: Include the correct include
...
Not the widget one
2020-11-26 17:17:18 +00:00
Sergio Martins
a8965bea91
Fix a unit-test
...
Broke it by mistake
2020-11-26 17:00:10 +00:00
Sergio Martins
bf259c7ffc
qtquick: Fix build on mac
...
Mostly due to -Werror and clang having more warnings
2020-11-26 16:45:12 +00:00
Sergio Martins
8a990451d7
Fix casting -1 to WId on mac
2020-11-26 15:59:32 +00:00
Sergio Martins
974bdbd637
Fix a -Wweak-vtable warning
2020-11-26 15:55:52 +00:00
Sergio Martins
cb9d77cd18
Fix more -Woverloaded-virtual
2020-11-26 15:17:33 +00:00
Sergio Martins
af10efa587
Fix more -Woverloaded-virtual
2020-11-26 15:15:37 +00:00
Sergio Martins
a0fb47af58
Fix -Woverloaded-virtual
2020-11-26 14:52:04 +00:00
Sergio Martins
598fbdc51b
qtquick: Fix build on mac
...
RubberBand was being compiled twice. We shouldn't compile the
_widget* multisplitter files when using QtQuick.
Also implies tst_multisplitter shouldn't be run when compiling
for QtQuick.
2020-11-26 14:29:17 +00:00
Sergio Martins
81c3f3f0c6
Fix a -Wweak-vtables warning
2020-11-26 13:28:15 +00:00
Sergio Martins
b9962b3df0
qtquick: Make the QWinWidget case specific to QtWidgets
...
With QtQuick we don't have QWinWidget
2020-11-26 13:23:06 +00:00
Sergio Martins
a71386e62a
Fix using qAbs(bool)
...
detected by msvc
2020-11-26 12:59:51 +00:00
Sergio Martins
812ce1c08b
qtquick: Fix floating dock #3 in the example
...
It would go to its previous place (0,0), so don't show it at
start.
Added a unit-test as thought it was a bug, but code is correct.
2020-11-26 12:31:50 +00:00
Sergio Martins
189e82450b
qtquick: Add 2px margin for the the tab widget
...
Mimics QtWidgets
2020-11-26 12:06:52 +00:00
Sergio Martins
a3dbc3739c
qtquick: Make title bar look nicer
2020-11-26 12:02:58 +00:00
Sergio Martins
c8d34375af
qtquick: Add margin to Frame
2020-11-26 11:43:30 +00:00
Sergio Martins
6c3775ea45
qtquick: floating window now has a border and 4px margin
...
Just like the QtWidget one
2020-11-26 11:36:36 +00:00
Sergio Martins
5a72e1adab
qtquick: Fix some colors
2020-11-25 23:52:56 +00:00
Sergio Martins
0f7f310734
qtquick|example: Use the KDAB logs, as we have for QtWidgets
2020-11-25 23:09:53 +00:00
Sergio Martins
e8bf2a5222
qtquick: Remove dummy background color
2020-11-25 22:59:30 +00:00
Sergio Martins
468f545c9a
qtquick: Enable more tests
...
these pass now, too
2020-11-25 22:15:52 +00:00
Sergio Martins
a59ff6dfee
qtquick: Build tests with ctest too
2020-11-25 21:41:46 +00:00
Sergio Martins
4fa415ba05
qtquick: Comment out a few tests
...
We don't support max-size yet
2020-11-25 21:01:37 +00:00
Sergio Martins
d851c60b2f
qtquick: Don't allow the initial window size to be smaller than its min
...
Fixes a test
2020-11-25 20:52:29 +00:00
Sergio Martins
bf097098e5
qtquick: Fix pointer comparison in test
2020-11-25 20:10:32 +00:00
Sergio Martins
8c93b85a24
qtquick: Remove unneeded code
2020-11-25 20:10:13 +00:00
Sergio Martins
f87d67dd59
qtquick: Remove unneeded code
2020-11-25 20:07:08 +00:00
Sergio Martins
bc3278b218
qtquick: tst_positionWhenShown
2020-11-25 17:01:37 +00:00
Sergio Martins
d2c55a67df
qtquick: Fix more tests
2020-11-25 16:28:54 +00:00
Sergio Martins
a3414fd92b
qtquick: Fix tst_addToSmallMainWindow1
2020-11-25 16:10:04 +00:00
Sergio Martins
12f3ba9074
qtquick: Fix some tests
2020-11-25 16:02:42 +00:00
Sergio Martins
034d2c8aee
README: Mention Qt6
2020-11-25 12:31:29 +00:00
Sergio Martins
ad3f4141c8
qtquick|tests: Fix main window QWindow not being resized
2020-11-24 18:40:22 +00:00
Sergio Martins
cde2e4e571
qtquick: Fix tst_constraintsAfterPlaceholder
...
The resize happens sync for QtQuick, so that wait isn't needed
2020-11-24 13:36:10 +00:00
Sergio Martins
e0775467b2
qtquick|tests: Fix verifying frame min size
2020-11-24 13:12:53 +00:00
Sergio Martins
b20ffcde61
tst_negativeAnchorPosition: Fix typo
...
we need to subtract from height(), not width()
2020-11-24 12:44:00 +00:00
Sergio Martins
43bdb6a4c2
qtquick: Bunch of fixes for min-size support
2020-11-24 11:38:13 +00:00
Sergio Martins
929aabdc0d
example: Add --native-title-bar
...
Behind developer mode for now
2020-11-23 21:37:59 +00:00
Sergio Martins
6a90a5125f
TitleBar: these 4 getters are only for development mode
2020-11-23 20:22:45 +00:00