Commit 190039b8 authored by Anjani Kumar's avatar Anjani Kumar
Browse files

Add QT_VERSION check for new QLabel::pixmap()

parent 34ac47af
......@@ -256,7 +256,15 @@ QString DConfigDlgTitle::comment() const
QPixmap DConfigDlgTitle::pixmap() const
{
#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
return d->imageLabel->pixmap(Qt::ReturnByValue);
#else
return *d->imageLabel->pixmap();
#endif
}
void DConfigDlgTitle::setBuddy(QWidget* const buddy)
......
......@@ -606,7 +606,15 @@ void DLabelExpander::setIcon(const QIcon& icon)
QIcon DLabelExpander::icon() const
{
#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
return QIcon(d->pixmapLabel->pixmap(Qt::ReturnByValue));
#else
return QIcon(*d->pixmapLabel->pixmap());
#endif
}
void DLabelExpander::setWidget(QWidget* const widget)
......
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