Remove tst_QWidget::render_task252837()
The test function renders a pixmap into a widget that is never shown. It checks for a crash, without failing or passing. tst_QWidget::render_graphicsEffect() tests the same code path. Remove the unneeded test function. Change-Id: I1b64e0466c5a133deec28d0f74ef5acd9858e1ea Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io> (cherry picked from commit dfdcb90ffdec0c3a4f7c1c5c59dfba5c04b8c521) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
d8c7856312
commit
0a8a34fbe1
@ -328,7 +328,6 @@ private slots:
|
|||||||
void render_systemClip2();
|
void render_systemClip2();
|
||||||
void render_systemClip3_data();
|
void render_systemClip3_data();
|
||||||
void render_systemClip3();
|
void render_systemClip3();
|
||||||
void render_task252837();
|
|
||||||
void render_worldTransform();
|
void render_worldTransform();
|
||||||
|
|
||||||
void setContentsMargins();
|
void setContentsMargins();
|
||||||
@ -8831,17 +8830,6 @@ void tst_QWidget::render_systemClip3()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void tst_QWidget::render_task252837()
|
|
||||||
{
|
|
||||||
QWidget widget;
|
|
||||||
widget.resize(200, 200);
|
|
||||||
|
|
||||||
QPixmap pixmap(widget.size());
|
|
||||||
QPainter painter(&pixmap);
|
|
||||||
// Please do not crash.
|
|
||||||
widget.render(&painter);
|
|
||||||
}
|
|
||||||
|
|
||||||
void tst_QWidget::render_worldTransform()
|
void tst_QWidget::render_worldTransform()
|
||||||
{
|
{
|
||||||
class MyWidget : public QWidget
|
class MyWidget : public QWidget
|
||||||
|
Loading…
x
Reference in New Issue
Block a user