Commit 976978b9 authored by Ahmad Samir's avatar Ahmad Samir
Browse files

Port away from deprecated KF and Qt methods

parent dce7d686
...@@ -88,8 +88,11 @@ void FileOpsContextManagerItem::updateServiceList() ...@@ -88,8 +88,11 @@ void FileOpsContextManagerItem::updateServiceList()
} }
} }
// Query trader #if KIO_VERSION >= QT_VERSION_CHECK(5, 83, 0)
mServiceList = KFileItemActions::associatedApplications(mimeTypes);
#else
mServiceList = KFileItemActions::associatedApplications(mimeTypes, QString()); mServiceList = KFileItemActions::associatedApplications(mimeTypes, QString());
#endif
} }
QMimeData* FileOpsContextManagerItem::selectionMimeData() QMimeData* FileOpsContextManagerItem::selectionMimeData()
......
...@@ -247,7 +247,7 @@ public: ...@@ -247,7 +247,7 @@ public:
closeButton->setIcon(QIcon::fromTheme(QStringLiteral("window-close"))); closeButton->setIcon(QIcon::fromTheme(QStringLiteral("window-close")));
closeButton->setAutoRaise(true); closeButton->setAutoRaise(true);
closeButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Minimum); closeButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Minimum);
int size = IconSize(KIconLoader::Small); int size = style()->pixelMetric(QStyle::PM_SmallIconSize);
closeButton->setIconSize(QSize(size, size)); closeButton->setIconSize(QSize(size, size));
connect(closeButton, &QAbstractButton::clicked, this, &QObject::deleteLater); connect(closeButton, &QAbstractButton::clicked, this, &QObject::deleteLater);
auto* layout = new QHBoxLayout(this); auto* layout = new QHBoxLayout(this);
......
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