summaryrefslogtreecommitdiffstats
path: root/tests/manual/qgraphicslayout/flicker/window.h
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2019-07-10 17:04:42 +0200
committerSona Kurazyan <sona.kurazyan@qt.io>2019-07-13 10:43:15 +0200
commit2f33e030b8c80b4665cc2c120df7833469c05145 (patch)
treec82580c8ef761ddd5e22f695dc5934753429436d /tests/manual/qgraphicslayout/flicker/window.h
parente89b2f72c7147e46dcf606c3dcc507e2ae2841ce (diff)
Remove usages of deprecated APIs of qtbase/gui
- Replaced the usages of deprecated APIs by corresponding alternatives in the library code and documentation. - Modified the tests to make them build when deprecated APIs disabled: * Made the the parts of the tests testing the deprecated APIs to be compiled conditionally, only when the corresponding methods are enabled. * If the test-case tests only the deprecated API, but not the corresponding replacement, added tests for the replacement. Change-Id: Ic38245015377fc0c8127eb5458c184ffd4b450f1 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/manual/qgraphicslayout/flicker/window.h')
-rw-r--r--tests/manual/qgraphicslayout/flicker/window.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/manual/qgraphicslayout/flicker/window.h b/tests/manual/qgraphicslayout/flicker/window.h
index 22a53585d1..3e7bc61731 100644
--- a/tests/manual/qgraphicslayout/flicker/window.h
+++ b/tests/manual/qgraphicslayout/flicker/window.h
@@ -107,7 +107,7 @@ public:
Q_UNUSED(option);
Q_UNUSED(widget);
painter->setBrush(m_brush);
- painter->drawRoundRect(rect());
+ painter->drawRoundedRect(rect(), Qt::RelativeSize);
painter->drawLine(rect().topLeft(), rect().bottomRight());
painter->drawLine(rect().bottomLeft(), rect().topRight());
}