@@ -16,8 +16,8 @@ void TestPopupWindow::initiallyVisible() { // NOLINT
1616 popup.setParentWindow (&parent);
1717 popup.setVisible (true );
1818
19- parent.onReload ( nullptr );
20- popup.onReload ( nullptr );
19+ parent.reload ( );
20+ popup.reload ( );
2121
2222 QVERIFY (popup.isVisible ());
2323 QVERIFY (popup.backingWindow ()->isVisible ());
@@ -36,8 +36,8 @@ void TestPopupWindow::reloadReparent() { // NOLINT
3636 popup.setParentWindow (&parent);
3737 popup.setVisible (true );
3838
39- parent.onReload ( nullptr );
40- popup.onReload ( nullptr );
39+ parent.reload ( );
40+ popup.reload ( );
4141
4242 // second generation
4343 auto newParent = ProxyWindowBase ();
@@ -51,8 +51,8 @@ void TestPopupWindow::reloadReparent() { // NOLINT
5151
5252 auto spy = QSignalSpy (oldWindow, &QWindow::visibleChanged);
5353
54- newParent.onReload (&parent);
55- newPopup.onReload (&popup);
54+ newParent.reload (&parent);
55+ newPopup.reload (&popup);
5656
5757 QVERIFY (newPopup.isVisible ());
5858 QVERIFY (newPopup.backingWindow ()->isVisible ());
@@ -69,15 +69,15 @@ void TestPopupWindow::reloadUnparent() { // NOLINT
6969 popup.setParentWindow (&parent);
7070 popup.setVisible (true );
7171
72- parent.onReload ( nullptr );
73- popup.onReload ( nullptr );
72+ parent.reload ( );
73+ popup.reload ( );
7474
7575 // second generation
7676 auto newPopup = ProxyPopupWindow ();
7777
7878 // parent not set
7979 newPopup.setVisible (true );
80- newPopup.onReload (&popup);
80+ newPopup.reload (&popup);
8181
8282 QVERIFY (!newPopup.isVisible ());
8383 QVERIFY (!newPopup.backingWindow ()->isVisible ());
@@ -88,7 +88,7 @@ void TestPopupWindow::invisibleWithoutParent() { // NOLINT
8888 auto popup = ProxyPopupWindow ();
8989
9090 popup.setVisible (true );
91- popup.onReload ( nullptr );
91+ popup.reload ( );
9292
9393 QVERIFY (!popup.isVisible ());
9494}
@@ -102,8 +102,8 @@ void TestPopupWindow::moveWithParent() { // NOLINT
102102 popup.setRelativeY (10 );
103103 popup.setVisible (true );
104104
105- parent.onReload ( nullptr );
106- popup.onReload ( nullptr );
105+ parent.reload ( );
106+ popup.reload ( );
107107
108108 QCOMPARE (popup.x (), parent.x () + 10 );
109109 QCOMPARE (popup.y (), parent.y () + 10 );
@@ -121,8 +121,8 @@ void TestPopupWindow::attachParentLate() { // NOLINT
121121
122122 popup.setVisible (true );
123123
124- parent.onReload ( nullptr );
125- popup.onReload ( nullptr );
124+ parent.reload ( );
125+ popup.reload ( );
126126
127127 QVERIFY (!popup.isVisible ());
128128
@@ -139,14 +139,14 @@ void TestPopupWindow::reparentLate() { // NOLINT
139139 popup.setParentWindow (&parent);
140140 popup.setVisible (true );
141141
142- parent.onReload ( nullptr );
143- popup.onReload ( nullptr );
142+ parent.reload ( );
143+ popup.reload ( );
144144
145145 QCOMPARE (popup.x (), parent.x ());
146146 QCOMPARE (popup.y (), parent.y ());
147147
148148 auto parent2 = ProxyWindowBase ();
149- parent2.onReload ( nullptr );
149+ parent2.reload ( );
150150
151151 parent2.backingWindow ()->setX (10 );
152152 parent2.backingWindow ()->setY (10 );
@@ -166,8 +166,8 @@ void TestPopupWindow::xMigrationFix() { // NOLINT
166166 popup.setParentWindow (&parent);
167167 popup.setVisible (true );
168168
169- parent.onReload ( nullptr );
170- popup.onReload ( nullptr );
169+ parent.reload ( );
170+ popup.reload ( );
171171
172172 QCOMPARE (popup.x (), parent.x ());
173173
0 commit comments