Commit 5a30a70e authored by Thomas Hartmann's avatar Thomas Hartmann Committed by Joerg Bornemann

QmlDesigner: QPixmap::grabWidget() is depricated in Qt 5

Change-Id: Ie74c61704573f517586c5acb7a87826942ee7dd3
Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@digia.com>
parent 05784397
......@@ -1294,7 +1294,12 @@ void QGroupBoxDeclarativeUI::collapse()
m_oldMinHeight =gb->minimumHeight();
if (!m_expanded)
return;
m_contens = QPixmap::grabWidget (gb, 5, 5, gb->width() - 5, gb->height() - 5);
#if QT_VERSION < 0x050000
m_contens = QPixmap::grabWidget(gb, 5, 5, gb->width() - 5, gb->height() - 5);
#else
m_contens = gb->grab(QRect(5, 5, gb->width() - 5, gb->height() - 5));
#endif
gb->setPixmap(m_contens,1);
hideChildren();
m_expanded = false;
......
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