Add white space after double slashes in tst_qprogressbar and Q_OS_MACOS
Add white space after double slashes in tst_qprogressbar.cpp where missing. Change Q_OS_MAC for Q_OS_MACOS Change-Id: Ifa7876e7de008ccbb6bcd2ee038e3f35416ed84b Reviewed-by: Magdalena Stojek <magdalena.stojek@qt.io> Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
This commit is contained in:
parent
e965d8a3ab
commit
5229cba24f
@ -254,7 +254,7 @@ void tst_QProgressBar::setMinMaxRepaint()
|
|||||||
QTRY_VERIFY(pbar.repainted);
|
QTRY_VERIFY(pbar.repainted);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif //Q_OS_MAC
|
#endif // Q_OS_MACOS
|
||||||
|
|
||||||
void tst_QProgressBar::sizeHint()
|
void tst_QProgressBar::sizeHint()
|
||||||
{
|
{
|
||||||
@ -263,7 +263,7 @@ void tst_QProgressBar::sizeHint()
|
|||||||
bar.setMaximum(10);
|
bar.setMaximum(10);
|
||||||
bar.setValue(5);
|
bar.setValue(5);
|
||||||
|
|
||||||
//test if the sizeHint is big enough
|
// test if the sizeHint is big enough
|
||||||
QFontMetrics fm = bar.fontMetrics();
|
QFontMetrics fm = bar.fontMetrics();
|
||||||
QStyleOptionProgressBar opt;
|
QStyleOptionProgressBar opt;
|
||||||
bar.initStyleOption(&opt);
|
bar.initStyleOption(&opt);
|
||||||
@ -362,7 +362,7 @@ void tst_QProgressBar::task245201_testChangeStyleAndDelete()
|
|||||||
QTest::qWait(10);
|
QTest::qWait(10);
|
||||||
|
|
||||||
delete bar;
|
delete bar;
|
||||||
QTest::qWait(100); //should not crash
|
QTest::qWait(100); // should not crash
|
||||||
delete style;
|
delete style;
|
||||||
delete style2;
|
delete style2;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user