summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/dialogs/qfiledialog
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-09-30 15:16:55 +0200
committerMarc Mutz <marc.mutz@kdab.com>2016-11-30 07:24:47 +0000
commit2fd3d8ea9e3e1829653942431070a83569bab6eb (patch)
tree7803eed14bf3064b4d2c1420c0f0c94482463b6d /tests/auto/widgets/dialogs/qfiledialog
parent97b8fdab7d3604294476bf566b024ecbd5b412b0 (diff)
tests/auto/widgets: use QCOMPARE(., nullptr)
.. instead of manually casted 0s. QCOMPARE(., nullptr) was added for Qt 5.8. Make use of the new API. In tst_qwidget.cpp, as a drive-by, change qApp->focusWidget() -> QApplication::focusWidget() Change-Id: I1331b8916b026d48e01534d1ed0b3d72f3f3d50c Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'tests/auto/widgets/dialogs/qfiledialog')
-rw-r--r--tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp b/tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp
index 741b5e8aae..c9aef497af 100644
--- a/tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp
+++ b/tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp
@@ -1026,17 +1026,17 @@ void tst_QFiledialog::viewMode()
void tst_QFiledialog::proxymodel()
{
QFileDialog fd;
- QCOMPARE(fd.proxyModel(), (QAbstractProxyModel*)0);
+ QCOMPARE(fd.proxyModel(), nullptr);
fd.setProxyModel(0);
- QCOMPARE(fd.proxyModel(), (QAbstractProxyModel*)0);
+ QCOMPARE(fd.proxyModel(), nullptr);
QSortFilterProxyModel *proxyModel = new QSortFilterProxyModel(&fd);
fd.setProxyModel(proxyModel);
QCOMPARE(fd.proxyModel(), (QAbstractProxyModel *)proxyModel);
fd.setProxyModel(0);
- QCOMPARE(fd.proxyModel(), (QAbstractProxyModel*)0);
+ QCOMPARE(fd.proxyModel(), nullptr);
}
void tst_QFiledialog::setEmptyNameFilter()