Commit ebf03a5f authored by Christian Stenger's avatar Christian Stenger

Squish: Don't use deprecated function when having a Qt5 build

Change-Id: I8717bda9c4a24effe36a80e689829e93539186c6
Reviewed-by: default avatarRobert Loehning <robert.loehning@digia.com>
parent 27d3d514
......@@ -222,7 +222,7 @@ def __handleColorTips__(colTip, expectedColor, alternativeColor):
if cmp.alpha() != 255 or alternativeColor and alt.alpha() != 255:
test.warning("Cannot handle transparent colors - cancelling this verification")
return
dPM = QPixmap.grabWidget(colTip, 1, 1, colTip.width-2, colTip.height-2)
dPM = colTip.grab(QRect(1, 1, colTip.width - 2, colTip.height - 2))
img = dPM.toImage()
rgb = img.pixel(1, 1)
rgb = QColor(rgb)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment