Port TestTabBoxClientModel away from deprecated QWeakPointer::data()

master
Vlad Zahorodnii 2020-09-10 10:26:32 +03:00
parent a1fe70baaa
commit c7c35513b6
1 changed files with 1 additions and 1 deletions

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);
}