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 |
|
Sergio Martins
|
e462098cce
|
tests: Move tst_view.cpp's main into a separate file, so it can be shared
|
2022-05-02 22:40:33 +01:00 |
|
Sergio Martins
|
3d2e45b5d5
|
tests: Add test for View::closeRequested
|
2022-05-02 22:00:15 +01:00 |
|
Sergio Martins
|
a49faeced6
|
Remove some duplicate TODOs, already in header
|
2022-05-02 21:35:04 +01:00 |
|
Sergio Martins
|
401ebc586e
|
qtquick: Move all inline View methods into .cpp file
|
2022-05-02 21:33:07 +01:00 |
|
Sergio Martins
|
cccd3a47f0
|
View::closeWindow() is no longer virtual.
Implementation is common to all frontends.
Renamed it to closeRootView() to be consistent.
|
2022-05-02 17:54:00 +01:00 |
|
Sergio Martins
|
96912515a8
|
View::windowGeometry() is no longer virtual.
Implementation is the same for all frontends.
|
2022-05-02 17:33:44 +01:00 |
|
Sergio Martins
|
04785a8b49
|
View::parentSize() is no longer virtual
The implementation is common to all frontends.
|
2022-05-02 17:30:47 +01:00 |
|
Sergio Martins
|
2b129380d6
|
qtquick: Move a few implementations to cpp file
|
2022-05-02 17:28:41 +01:00 |
|
Sergio Martins
|
a6e698b0fe
|
tests: Add a test for View::objectName
|
2022-05-02 17:23:39 +01:00 |
|
Sergio Martins
|
33d7d730f4
|
tests: Add a test for View::minSize()
|
2022-05-02 17:21:31 +01:00 |
|
Sergio Martins
|
5607fab8db
|
tests: Add test for View::sizeHint
|
2022-05-02 10:29:46 +01:00 |
|
Sergio Martins
|
c2ae9abfb5
|
tests_createView() now receives a struct
As we'll be passing more parameters
|
2022-05-02 10:20:19 +01:00 |
|
Sergio Martins
|
a8cb498eb5
|
Amend previous commit, use *Controller as suffix
|
2022-05-02 00:05:18 +01:00 |
|
Sergio Martins
|
d0c1b94585
|
Remove *View and *Widget suffixes from layouts
They are controllers, not views.
|
2022-05-02 00:01:44 +01:00 |
|
Sergio Martins
|
e17f6c0066
|
Add some missing const
|
2022-05-01 23:58:14 +01:00 |
|
Sergio Martins
|
a550567a4c
|
Rename asMultisplitterView to asDropArea
It's no longer a view.
|
2022-05-01 23:56:41 +01:00 |
|
Sergio Martins
|
3fabf34bee
|
Renamed View::windowHandle() to View::window()
windowHandle() is missnamed in Qt because QWidget::window() was already
taken in Qt4. But we can make it better here.
|
2022-05-01 23:09:18 +01:00 |
|
Sergio Martins
|
0d02be6387
|
qtquick: Implement View::rootView()
|
2022-05-01 23:00:19 +01:00 |
|
Sergio Martins
|
fff3adf967
|
Rename View::window() to View::rootView()
window() was an artifact of Qt4 times, when QWindow didn't exist yet.
|
2022-05-01 22:52:00 +01:00 |
|
Sergio Martins
|
4b41291830
|
qtquick: Fix geometry() always returning 0,0 as position
|
2022-05-01 22:42:23 +01:00 |
|
Sergio Martins
|
8dd8eabf1a
|
tests: tests_createView now can create visible views too
|
2022-05-01 22:21:08 +01:00 |
|
Sergio Martins
|
1591ed49da
|
tests: Added tests for View::geometry,pos,x,y,width,height,rect
|
2022-05-01 21:15:27 +01:00 |
|
Sergio Martins
|
a069a812db
|
tests: Remove qDebug() from doctest based tests
TestExplorer will fail to work if we print to stderr. Instead
we now print to stdout.
|
2022-05-01 20:17:51 +01:00 |
|
Sergio Martins
|
3416a74723
|
Don't make View::move(QPoint) pure-virtual
We already have a virtual overload, just call it.
|
2022-05-01 20:12:32 +01:00 |
|
Sergio Martins
|
58afb97eb2
|
qtquick: Move the rest of old/QWidgetAdapter_quick to View_qtquick
|
2022-05-01 20:01:46 +01:00 |
|
Sergio Martins
|
738a78d12b
|
qtquick: Implement View::windowHandle() and Window_qtquick::rootView()
For QtWidgets it now calls create() in the ctor so we have a window
during tests.
|
2022-05-01 14:38:20 +01:00 |
|
Sergio Martins
|
545c45e78d
|
qtquick: Port a bunch of methods from the old QWidgetAdapter
|
2022-05-01 13:11:32 +01:00 |
|
Sergio Martins
|
0a3c2433e7
|
qtquick: Implement setGeometry and related methods
|
2022-05-01 12:46:14 +01:00 |
|
Waqar Ahmed
|
df7627c08a
|
Use QVariant::userType instead of QVariant::type
|
2022-05-01 02:43:31 +05:00 |
|
Sergio Martins
|
b089b49b28
|
qtquick: Implement and test View::hide() too
|
2022-04-30 11:47:02 +01:00 |
|
Sergio Martins
|
7547163d2d
|
qtquick: Implement View::isVisible/setVisible
|
2022-04-30 11:42:53 +01:00 |
|
Sergio Martins
|
95f61629a9
|
tests: Print the name of the platform we're testing
|
2022-04-30 11:33:02 +01:00 |
|
Sergio Martins
|
3227ffab81
|
qtquick: Implemented and tested View::parentView/childViews
tst_view is now enabled for QtQuick too
|
2022-04-30 11:27:47 +01:00 |
|
Sergio Martins
|
1ecc42d50c
|
tests: Fix memory leaks in tst_view
|
2022-04-30 11:19:12 +01:00 |
|
Sergio Martins
|
712751e89b
|
tests: Make tst_view test View, not ViewWrapper
|
2022-04-30 11:08:54 +01:00 |
|
Sergio Martins
|
b6d87d10c4
|
Add a TestHelpers_ file for each platform
So we don't have too much ifdefed stuff that's only for tests in
the main files.
|
2022-04-30 10:31:31 +01:00 |
|
Sergio Martins
|
59e5759bc2
|
qtquick: initialize the the QQmlEngine during tests
|
2022-04-30 01:20:09 +01:00 |
|
Sergio Martins
|
ee256284cc
|
Remove View::isWindow(), use isRootView() instead.
QWidget::isWindow() is misnamed in Qt, it's an artifact from Qt4
times.
|
2022-04-30 01:10:24 +01:00 |
|
Sergio Martins
|
f3934ebd2c
|
Rename View::isTopLevel() to isRootView()
|
2022-04-30 01:06:03 +01:00 |
|