Fix widget leak in tst_qmainwindow.
Task-number: QTBUG-38152 Change-Id: I4cf94a4a8977019dcfc099966643b5b036cc1021 Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com>bb10
parent
f217a8096b
commit
6c5d1dbd75
|
|
@ -104,6 +104,7 @@ public:
|
|||
tst_QMainWindow();
|
||||
|
||||
private slots:
|
||||
void cleanup();
|
||||
void getSetCheck();
|
||||
void constructor();
|
||||
void iconSize();
|
||||
|
|
@ -147,6 +148,12 @@ private slots:
|
|||
void QTBUG21378_animationFinished();
|
||||
};
|
||||
|
||||
|
||||
void tst_QMainWindow::cleanup()
|
||||
{
|
||||
QVERIFY(QApplication::topLevelWidgets().isEmpty());
|
||||
}
|
||||
|
||||
// Testing get/set functions
|
||||
void tst_QMainWindow::getSetCheck()
|
||||
{
|
||||
|
|
@ -854,6 +861,7 @@ void tst_QMainWindow::takeCentralWidget() {
|
|||
|
||||
QVERIFY(!w2.isNull());
|
||||
QCOMPARE(w2.data(), hopefullyW2);
|
||||
delete w2;
|
||||
}
|
||||
|
||||
void tst_QMainWindow::corner()
|
||||
|
|
|
|||
Loading…
Reference in New Issue