Port TestTabBoxClientModel away from deprecated QWeakPointer::data()
This commit is contained in:
parent
a1fe70baaa
commit
c7c35513b6
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ void TestTabBoxClientModel::testCreateClientListActiveClientNotInFocusChain()
|
||||||
// for that we use the closeWindow of the MockTabBoxHandler which
|
// 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
|
// removes the Client from the Focus Chain but leaves the active window as it is
|
||||||
QSharedPointer<TabBox::TabBoxClient> clientOwner = client.toStrongRef();
|
QSharedPointer<TabBox::TabBoxClient> clientOwner = client.toStrongRef();
|
||||||
tabboxhandler.closeWindow(client.data());
|
tabboxhandler.closeWindow(clientOwner.data());
|
||||||
clientModel->createClientList();
|
clientModel->createClientList();
|
||||||
QCOMPARE(clientModel->rowCount(), 1);
|
QCOMPARE(clientModel->rowCount(), 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue