Commit Graph

30 Commits

Author SHA1 Message Date
Sergio Martins
640ef58553 Allow to pass View* to qDebug 2022-07-10 18:36:35 +01:00
Sergio Martins
7017ce8396 Move KDBindings usage from View.h to View_p.h
KDBindings is implementation detail. User won't have to install
it, at this point.
2022-06-18 12:15:42 +01:00
Sergio Martins
29fd6f4a40 qtquick: Fix binding loops
This also restores behaviour with v1.x regarding setParent
2022-06-11 14:03:41 +01:00
Sergio Martins
e8f390f2ad tests|qtquick: Don't create lots of spurious QQuickView
Most of the times we just want to create a dock widget which
will be parented immediately, we don't need the window.
2022-06-06 10:13:19 +01:00
Sergio Martins
c648e5fbba qtquick: View::rootView() now returns itself if no parent
This matches QWidget::window() behaviour
2022-05-23 22:51:57 +01:00
Sergio Martins
313be585ae tests: More focus tests 2022-05-11 17:23:31 +01:00
Sergio Martins
8a725298de Added View::hasFocus() 2022-05-11 00:02:18 +01:00
Sergio Martins
73e6822a1d Added View::focusPolicy() 2022-05-10 23:23:27 +01:00
Sergio Martins
146b929b5d qtquick: Implement View::maximumSize() and test 2022-05-09 17:28:48 +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
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
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
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
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
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
ba92225678 Implement View_qtquick::setParent and setObjectName 2022-04-30 00:43:27 +01:00
Sergio Martins
c55cac97d0 tests: Add unit-test for View::setParent() 2022-04-29 18:46:28 +01:00