summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/widgets/qmainwindow/tst_qmainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/widgets/widgets/qmainwindow/tst_qmainwindow.cpp')
-rw-r--r--tests/auto/widgets/widgets/qmainwindow/tst_qmainwindow.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/widgets/widgets/qmainwindow/tst_qmainwindow.cpp b/tests/auto/widgets/widgets/qmainwindow/tst_qmainwindow.cpp
index b0fc8a3bfa..75721bf7a7 100644
--- a/tests/auto/widgets/widgets/qmainwindow/tst_qmainwindow.cpp
+++ b/tests/auto/widgets/widgets/qmainwindow/tst_qmainwindow.cpp
@@ -1456,7 +1456,7 @@ void tst_QMainWindow::createPopupMenu()
class MyDockWidget : public QDockWidget
{
public:
- MyDockWidget(QWidget * = 0) {
+ MyDockWidget(QWidget * = nullptr) {
create(); // otherwise hide() doesn't result in a hide event
}
};
@@ -1464,7 +1464,7 @@ public:
class MyWidget : public QWidget
{
public:
- MyWidget(QWidget *parent = 0) : QWidget(parent)
+ MyWidget(QWidget *parent = nullptr) : QWidget(parent)
{
}
@@ -1522,10 +1522,10 @@ void AddDockWidget::apply(QMainWindow *mw) const
dw->setObjectName(name);
dw->setWindowTitle(name);
- QDockWidget *other = 0;
+ QDockWidget *other = nullptr;
if (mode == SplitMode || mode == TabMode) {
other = mw->findChild<QDockWidget*>(this->other);
- QVERIFY(other != 0);
+ QVERIFY(other != nullptr);
}
switch (mode) {