mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-06 01:05:23 +08:00
qt 6.6.0 clean
This commit is contained in:
@ -38,6 +38,9 @@ private slots:
|
||||
void detailsButtonText();
|
||||
void expandDetailsWithoutMoving();
|
||||
|
||||
void optionsEmptyByDefault();
|
||||
void changeNativeOption();
|
||||
|
||||
#ifndef Q_OS_MAC
|
||||
void shortcut();
|
||||
#endif
|
||||
@ -627,6 +630,20 @@ void tst_QMessageBox::expandDetailsWithoutMoving() // QTBUG-32473
|
||||
QCOMPARE(box.geometry().topLeft(), geom.topLeft());
|
||||
}
|
||||
|
||||
void tst_QMessageBox::optionsEmptyByDefault()
|
||||
{
|
||||
QMessageBox b;
|
||||
QCOMPARE(b.options(), QMessageBox::Options());
|
||||
QVERIFY(!b.testOption(QMessageBox::Option::DontUseNativeDialog));
|
||||
}
|
||||
|
||||
void tst_QMessageBox::changeNativeOption()
|
||||
{
|
||||
QMessageBox b;
|
||||
b.setOption(QMessageBox::Option::DontUseNativeDialog);
|
||||
QCOMPARE(b.options(), QMessageBox::Options(QMessageBox::Option::DontUseNativeDialog));
|
||||
}
|
||||
|
||||
void tst_QMessageBox::incorrectDefaultButton()
|
||||
{
|
||||
ExecCloseHelper closeHelper;
|
||||
|
@ -84,7 +84,7 @@ void tst_QProgressDialog::autoShow()
|
||||
// in order to test for the setValue() behavior instead
|
||||
// See autoShowCtor() for the ctor timer check
|
||||
dlg.setValue(value);
|
||||
QThread::msleep(delay);
|
||||
QThread::sleep(std::chrono::milliseconds{delay});
|
||||
dlg.setValue(min+1);
|
||||
QCOMPARE(dlg.isVisible(), expectedAutoShow);
|
||||
}
|
||||
@ -93,7 +93,7 @@ void tst_QProgressDialog::autoShowCtor()
|
||||
{
|
||||
QProgressDialog dlg;
|
||||
QVERIFY(!dlg.isVisible());
|
||||
QThread::msleep(dlg.minimumDuration());
|
||||
QThread::sleep(std::chrono::milliseconds{dlg.minimumDuration()});
|
||||
QTRY_VERIFY(dlg.isVisible());
|
||||
}
|
||||
|
||||
@ -181,7 +181,7 @@ void tst_QProgressDialog::QTBUG_31046()
|
||||
{
|
||||
QProgressDialog dlg("", "", 50, 60);
|
||||
dlg.setValue(0);
|
||||
QThread::msleep(200);
|
||||
QThread::sleep(std::chrono::milliseconds{200});
|
||||
dlg.setValue(50);
|
||||
QCOMPARE(50, dlg.value());
|
||||
}
|
||||
|
Reference in New Issue
Block a user