Don't use Q_OS_MAC for ui specifics, Y_MAC_UI is the replacement

This commit is contained in:
Luis Ángel San Martín
2023-05-23 18:51:33 +02:00
parent b45fabe057
commit 315d2deced
28 changed files with 78 additions and 80 deletions

View File

@ -11,7 +11,7 @@
#include <algorithm>
#ifdef Q_OS_MAC
#ifdef Y_MAC_UI
#include <QFileIconProvider>
QIcon finishedFolderIcon;
void drawMacOSXFinishedFolderIcon()
@ -134,7 +134,7 @@ QVariant FolderModel::data(const QModelIndex &index, int role) const
}
if (role == Qt::DecorationRole) {
#ifdef Q_OS_MAC
#ifdef Y_MAC_UI
if (item->data(FolderModel::Finished).toBool()) {
if (finishedFolderIcon.isNull()) {
drawMacOSXFinishedFolderIcon();