forked from qt-creator/qt-creator
QmlDesigner: QPixmap::grabWidget() is depricated in Qt 5
Change-Id: Ie74c61704573f517586c5acb7a87826942ee7dd3 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
committed by
Joerg Bornemann
parent
05784397c3
commit
5a30a70e79
@@ -1294,7 +1294,12 @@ void QGroupBoxDeclarativeUI::collapse()
|
|||||||
m_oldMinHeight =gb->minimumHeight();
|
m_oldMinHeight =gb->minimumHeight();
|
||||||
if (!m_expanded)
|
if (!m_expanded)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
#if QT_VERSION < 0x050000
|
||||||
m_contens = QPixmap::grabWidget(gb, 5, 5, gb->width() - 5, gb->height() - 5);
|
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);
|
gb->setPixmap(m_contens,1);
|
||||||
hideChildren();
|
hideChildren();
|
||||||
m_expanded = false;
|
m_expanded = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user