summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2012-07-20 16:11:05 +0200
committerQt by Nokia <qt-info@nokia.com>2012-07-20 16:47:11 +0200
commit6ae168f8ceacb36bed4a26d39884554d42f6bef6 (patch)
tree3a95ffa0aaa47fbc1f0abe5aa07ced8215e698d1 /tests/auto/gui
parent195df6e8e0ffb2636cfe395f560eb73c05a54b61 (diff)
Tests: Replace deprecated QPixmap::grabWidget() by QWidget::grab().
Change-Id: I5018cf5dd51c1781e7f17c7d205f3f60de7945be Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
Diffstat (limited to 'tests/auto/gui')
-rw-r--r--tests/auto/gui/image/qpixmap/tst_qpixmap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/gui/image/qpixmap/tst_qpixmap.cpp b/tests/auto/gui/image/qpixmap/tst_qpixmap.cpp
index b3d578ef3e..6fe8727294 100644
--- a/tests/auto/gui/image/qpixmap/tst_qpixmap.cpp
+++ b/tests/auto/gui/image/qpixmap/tst_qpixmap.cpp
@@ -444,7 +444,7 @@ void tst_QPixmap::fill_data()
if (pm.x11PictureHandle()) {
#elif defined (Q_OS_WINCE)
QPixmap pixmap(1,1);
- if (QPixmap::grabWidget(QApplication::desktop()).depth() >= 24) {
+ if (QApplication::desktop()->grab().depth() >= 24) {
#else
QPixmap pixmap(1, 1); {
#endif
@@ -742,7 +742,7 @@ void tst_QPixmap::grabWindow()
child.setAutoFillBackground(true);
child.show();
QTest::qWait(20);
- const QPixmap grabWidgetPixmap = QPixmap::grabWidget(&child);
+ const QPixmap grabWidgetPixmap = child.grab();
const WId childWinId = child.winId(); // Create native child
QVERIFY(QTest::qWaitForWindowExposed(child.windowHandle()));
const QPixmap grabWindowPixmap = QPixmap::grabWindow(childWinId);