refactor: remove check for qt<5.15
This commit is contained in:
@@ -62,15 +62,7 @@ void ActionBox::setIcon(const QPixmap & icon)
|
||||
|
||||
QPixmap ActionBox::icon() const
|
||||
{
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
|
||||
return iconLabel->pixmap(Qt::ReturnByValue);
|
||||
#else
|
||||
QPixmap p;
|
||||
const QPixmap* ptr = iconLabel->pixmap();
|
||||
if (ptr)
|
||||
p = *ptr;
|
||||
return p;
|
||||
#endif
|
||||
}
|
||||
|
||||
ActionLabel* ActionBox::createItem(QAction * action, QLayout * l)
|
||||
|
||||
Reference in New Issue
Block a user