QStyle: block future changes that result in QPainter warnings
Amends ff9818135db28e287e7818defd9c1a9acdebacdc and follow-up changes, which shouldn't have passed CI as they resulted in runtime warnings until ca8ca216dbd5d374aa05d96db8052c2411baae7c. Change-Id: Ib3688779d5bcba06ce992453e62fb841251f6a62 Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de> (cherry picked from commit 3662be51935827e2fdb384bc407e055470e831c0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
20fbd34400
commit
9e99f2a977
@ -44,6 +44,7 @@ class tst_QStyle : public QObject
|
||||
Q_OBJECT
|
||||
|
||||
private slots:
|
||||
void init();
|
||||
void drawItemPixmap();
|
||||
void cleanup();
|
||||
#ifndef QT_NO_STYLE_FUSION
|
||||
@ -88,6 +89,11 @@ protected:
|
||||
void paintEvent(QPaintEvent *) override;
|
||||
};
|
||||
|
||||
void tst_QStyle::init()
|
||||
{
|
||||
QTest::failOnWarning(QRegularExpression("QPainter:.*"));
|
||||
}
|
||||
|
||||
void tst_QStyle::cleanup()
|
||||
{
|
||||
QVERIFY(QApplication::topLevelWidgets().isEmpty());
|
||||
|
Loading…
x
Reference in New Issue
Block a user