Commit Graph

3705 Commits

Author SHA1 Message Date
Sergio Martins
8a725298de Added View::hasFocus() 2022-05-11 00:02:18 +01:00
Sergio Martins
721402b710 Remove a few usages of DockWidget::widget()
Use View instead of QWidget
2022-05-10 23:43:07 +01:00
Sergio Martins
73e6822a1d Added View::focusPolicy() 2022-05-10 23:23:27 +01:00
Sergio Martins
9f7c4cb217 Removed the DockWidgetBase typedef
That existed only to ease porting
2022-05-10 22:53:16 +01:00
Sergio Martins
855b572656 cmake: Enable gcov code coverage by default for dev preset 2022-05-09 23:46:27 +01:00
Sergio Martins
93e388e04f tests: tst_multisplitter is now run against all platforms 2022-05-09 17:38:22 +01:00
Sergio Martins
146b929b5d qtquick: Implement View::maximumSize() and test 2022-05-09 17:28:48 +01:00
Sergio Martins
5f38814fd2 qtquick: Fix crash during instantiation of Separator_qtquick
The qml file would call into the view which would call into the
controller while its d ptr wasn't initialized yet
2022-05-09 16:31:49 +01:00
Sergio Martins
45a364c44b qtquick: Normalize location of Separator.qml
We don't want any qml files outside of qtquick/ folder
2022-05-09 15:44:45 +01:00
Sergio Martins
d35afdf81c qtquick: Compile our qrc file too
Updated paths
2022-05-09 15:40:20 +01:00
Sergio Martins
5f7eb335e6 qtquick: Warn and bailout whenever we can't find the requested QML file 2022-05-09 15:37:36 +01:00
Sergio Martins
9173226be7 tests: Normalise signature of argc/argv to match QApplication's
Fixes crash when passing "platform -xcb", because argc was being
passed by value, decremented in QApplication, then going out
of bounds in QTest
2022-05-09 15:16:36 +01:00
Sergio Martins
5d8da8aab6 qtquick: Compile and return Separator in the framework factory 2022-05-09 14:41:21 +01:00
Waqar Ahmed
df00c13899 Add code coverage 2022-05-09 16:45:41 +05:00
Waqar Ahmed
d1567322ec Fix unused variable warning 2022-05-09 16:44:18 +05:00
Sergio Martins
eb42d9e3f0 workaround linking examples 2022-05-09 12:17:15 +01:00
Sergio Martins
79eb41298c qtquick: Port Separator to the new view architecture 2022-05-09 10:25:58 +01:00
Sergio Martins
e0f48c9f32 Added convenience View_qtquick::createQQuickItem() 2022-05-09 10:06:43 +01:00
Sergio Martins
f033e4eb36 qtquick: Fix the qml engine not being set 2022-05-08 23:13:44 +01:00
Sergio Martins
8751216f62 qtquick: Added a FrameworkWidgetFactory too
The impl is dummy, but at least Config doesn't return a nullptr
one, meaning we can have more involved tests for QtQuick
2022-05-08 23:12:20 +01:00
Sergio Martins
cfeb59ee8f qtquick: Move m_qmlEngine from Config to Platform_qtquick
As it's QtQuick specific it should be in the qtquick frontend folder.
2022-05-08 20:16:23 +01:00
Sergio Martins
3c340aee40 tests: Remove last traces of QWidget from tst_multisplitter 2022-05-08 19:56:25 +01:00
Sergio Martins
2b2c5efd1a tests: Don't instance Separator_qtwidgets directly
So it can support qtquick
2022-05-08 19:50:15 +01:00
Sergio Martins
985224f24b tests: Run tst_view on offscreen by default
Moved the QPA offscreen defaulting to Platform_qt
2022-05-08 19:38:52 +01:00
Sergio Martins
97f26743e5 tests: Decouple tst_multisplitter from QWidget more
It now asks the platform to create a test view instead of
using one that inherits from QWidget.
2022-05-08 19:33:04 +01:00
Sergio Martins
a3bf159281 tests: Minor, add two QCOMPARE 2022-05-08 19:21:28 +01:00
Sergio Martins
543427255f tests: Make the maxSize test compabitle with 1.0
we didn't call QWidget::setMaximumSize(), we just set a hint
2022-05-08 19:17:53 +01:00
Sergio Martins
8eba26fd53 tests: minor, add 2 QVERIFY 2022-05-08 19:09:39 +01:00
Sergio Martins
17b6b7f7b9 tests: minor, add a QCOMPARE for min position 2022-05-08 18:38:48 +01:00
Sergio Martins
0997d48d60 tests: Test View: Also set max size 2022-05-08 17:10:56 +01:00
Sergio Martins
6e6bd92d5e Minor debug improvement 2022-05-08 16:56:54 +01:00
Sergio Martins
a6e0fdb6b9 qtwidgets: Add missing layoutInvalidated() emittions
So tst_multisplitter can use generic View instead of its own
QtWidget specific implementation
2022-05-08 16:53:22 +01:00
Sergio Martins
7d27d76448 Port layoutInvalidated signal to KDBindings
This removes triplication between qtquick, qtwidgets and tests.
It also allows us to remove the usage of old-style Qt connect.
2022-05-08 15:23:40 +01:00
Sergio Martins
418c4514df tests: Remove some unneeded overridden methods in tst_multisplitter 2022-05-08 15:13:42 +01:00
Sergio Martins
bd675c09a1 Remove unused and old Widget_qwidget/Widget_quick 2022-05-08 14:00:00 +01:00
Sergio Martins
bacaa0127a qtquick: Move remaining contents from old/ into views/
They are not ported yet, bet let's do things in batches so we have less
context switches.
2022-05-08 13:54:56 +01:00
Sergio Martins
76b1a394f2 qtquick: Ported the old DockWidgetQuick to the new architecture
Mostly anyway. Facing several blockers that need to be ported first,
for example DockWidget::setWidget() is still receiving QWidget
2022-05-08 13:27:37 +01:00
Sergio Martins
984bcd5f06 qtquick: Ported Frame view to the new architecture 2022-05-08 12:20:33 +01:00
Sergio Martins
7ba5d1de3b qtquick: Remove old TabWidgetQuick 2022-05-06 18:50:43 +01:00
Sergio Martins
16cca5a719 qtquick: Move LayoutSaverInstantiator to new location 2022-05-06 18:48:33 +01:00
Sergio Martins
9d5c7bfc53 qtquick: Ported TabWidget to the new architecture 2022-05-06 18:04:25 +01:00
Sergio Martins
d6f56169e1 qtquick: Ported TabBar to the new architecture 2022-05-03 22:01:47 +01:00
Sergio Martins
c0d9e3247b qtquick: Ported TitleBar to the new architecture 2022-05-03 20:24:20 +01:00
Sergio Martins
0a1a783054 Implemented ViewWrapper::window()
Implementation was missing for qtquick and add a bug for qtwidgets.
2022-05-03 20:02:14 +01:00
Sergio Martins
dc9a0145e2 tests: Rename ViewWrapper tests, they still said "View::" 2022-05-03 19:46:30 +01:00
Sergio Martins
9f532fb543 qtquick: Implement ViewWrapper::minSize() 2022-05-02 23:40:14 +01:00
Sergio Martins
b719435ae8 qtquick: Implement ViewWrapper::objectName() 2022-05-02 23:27:09 +01:00
Sergio Martins
16816d47d6 Added Window::screen()
Which allows to make View::screen() non-virtual
2022-05-02 23:24:49 +01:00
Sergio Martins
a693a995b1 qtquick: Implement ViewWrapper_qtquick::grabMouse and releaseMouse 2022-05-02 23:19:21 +01:00
Sergio Martins
f8a287675b qtquick: Implement ViewWrapper::setParent and childViews 2022-05-02 23:10:00 +01:00