refactor: remove check for qt<5.15

This commit is contained in:
Alfredo Monclus
2025-02-16 10:15:40 -03:00
parent a5d2af4e16
commit cbd811f2ec

View File

@@ -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)