summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/widgets/qdialogbuttonbox/tst_qdialogbuttonbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/widgets/widgets/qdialogbuttonbox/tst_qdialogbuttonbox.cpp')
-rw-r--r--tests/auto/widgets/widgets/qdialogbuttonbox/tst_qdialogbuttonbox.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/auto/widgets/widgets/qdialogbuttonbox/tst_qdialogbuttonbox.cpp b/tests/auto/widgets/widgets/qdialogbuttonbox/tst_qdialogbuttonbox.cpp
index df4a138724..f53988908a 100644
--- a/tests/auto/widgets/widgets/qdialogbuttonbox/tst_qdialogbuttonbox.cpp
+++ b/tests/auto/widgets/widgets/qdialogbuttonbox/tst_qdialogbuttonbox.cpp
@@ -191,7 +191,7 @@ void tst_QDialogButtonBox::testConstructor3()
QDialogButtonBox buttonBox(buttons, (Qt::Orientation)orientation);
QCOMPARE(int(buttonBox.orientation()), orientation);
- QTEST(buttonBox.buttons().count(), "buttonCount");
+ QTEST(int(buttonBox.buttons().count()), "buttonCount");
}
void tst_QDialogButtonBox::testConstructor4_data()
@@ -226,7 +226,7 @@ void tst_QDialogButtonBox::testConstructor4()
QDialogButtonBox buttonBox(buttons);
QCOMPARE(buttonBox.orientation(), Qt::Horizontal);
- QTEST(buttonBox.buttons().count(), "buttonCount");
+ QTEST(int(buttonBox.buttons().count()), "buttonCount");
}
void tst_QDialogButtonBox::setOrientation_data()
@@ -292,9 +292,9 @@ void tst_QDialogButtonBox::addButton1()
QCOMPARE(buttonBox.buttons().count(), 0);
QPushButton *button = new QPushButton();
buttonBox.addButton(button, role);
- QTEST(buttonBox.buttons().count(), "totalCount");
+ QTEST(int(buttonBox.buttons().count()), "totalCount");
QList<QAbstractButton *> children = buttonBox.findChildren<QAbstractButton *>();
- QTEST(children.count(), "totalCount");
+ QTEST(int(children.count()), "totalCount");
delete button;
}
@@ -319,9 +319,9 @@ void tst_QDialogButtonBox::addButton2()
QDialogButtonBox buttonBox;
QCOMPARE(buttonBox.buttons().count(), 0);
buttonBox.addButton(text, role);
- QTEST(buttonBox.buttons().count(), "totalCount");
+ QTEST(int(buttonBox.buttons().count()), "totalCount");
QList<QAbstractButton *> children = buttonBox.findChildren<QAbstractButton *>();
- QTEST(children.count(), "totalCount");
+ QTEST(int(children.count()), "totalCount");
}
void tst_QDialogButtonBox::addButton3_data()
@@ -346,9 +346,9 @@ void tst_QDialogButtonBox::addButton3()
QDialogButtonBox buttonBox;
QCOMPARE(buttonBox.buttons().count(), 0);
buttonBox.addButton(button);
- QTEST(buttonBox.buttons().count(), "totalCount");
+ QTEST(int(buttonBox.buttons().count()), "totalCount");
QList<QAbstractButton *> children = buttonBox.findChildren<QAbstractButton *>();
- QTEST(children.count(), "totalCount");
+ QTEST(int(children.count()), "totalCount");
}
void tst_QDialogButtonBox::clear_data()
@@ -389,7 +389,7 @@ void tst_QDialogButtonBox::removeButton()
QCOMPARE(buttonBox.buttons().count(), 0);
QPushButton *button = new QPushButton("RemoveButton test");
buttonBox.addButton(button, roleToAdd);
- QTEST(buttonBox.buttons().count(), "expectedCount");
+ QTEST(int(buttonBox.buttons().count()), "expectedCount");
buttonBox.removeButton(button);
QCOMPARE(buttonBox.buttons().count(), 0);
@@ -622,9 +622,9 @@ void tst_QDialogButtonBox::testSignals()
if (clicked2.count() > 0)
QCOMPARE(qvariant_cast<QAbstractButton *>(clicked2.at(0).at(0)), clickMe);
- QTEST(accept.count(), "acceptCount");
- QTEST(reject.count(), "rejectCount");
- QTEST(helpRequested.count(), "helpRequestedCount");
+ QTEST(int(accept.count()), "acceptCount");
+ QTEST(int(reject.count()), "rejectCount");
+ QTEST(int(helpRequested.count()), "helpRequestedCount");
}
void tst_QDialogButtonBox::testSignalOrder()