Skip to content

Commit

Permalink
Qt5: 'static QPixmap QPixmap::grabWidget(QObject*, const QRect&)' is …
Browse files Browse the repository at this point in the history
…deprecated: Use QWidget::grab() instead [-Wdeprecated-declarations]
  • Loading branch information
wwmayer committed Jun 12, 2020
1 parent b143194 commit 3cbec19
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Gui/iisTaskPanel/src/iistaskbox.cpp
Expand Up @@ -77,7 +77,11 @@ void iisTaskBox::showHide()
if (m_foldStep)
return;

#if QT_VERSION >= 0x050000
m_foldPixmap = myGroup->grab(myGroup->rect());
#else
m_foldPixmap = QPixmap::grabWidget(myGroup, myGroup->rect());
#endif

if (myGroup->isVisible()) {
m_tempHeight = m_fullHeight = myGroup->height();
Expand Down

0 comments on commit 3cbec19

Please sign in to comment.