Port TestTabBoxClientModel away from deprecated QWeakPointer::data()

This commit is contained in:
Vlad Zahorodnii 2020-09-10 10:26:32 +03:00
parent a1fe70baaa
commit c7c35513b6

View file

@ -74,7 +74,7 @@ void TestTabBoxClientModel::testCreateClientListActiveClientNotInFocusChain()
// for that we use the closeWindow of the MockTabBoxHandler which
// removes the Client from the Focus Chain but leaves the active window as it is
QSharedPointer<TabBox::TabBoxClient> clientOwner = client.toStrongRef();
tabboxhandler.closeWindow(client.data());
tabboxhandler.closeWindow(clientOwner.data());
clientModel->createClientList();
QCOMPARE(clientModel->rowCount(), 1);
}