Skip to content

Commit ec6fbaf

Browse files
committed
fix: fix build on Qt 6.8
Maybe start from 6.8.1
1 parent d3b68df commit ec6fbaf

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/util/private/xdgiconproxyengine.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,11 @@ QPixmap XdgIconProxyEngine::pixmapByEntry(QIconLoaderEngineEntry *entry, const Q
189189
if (!XdgIconFollowColorScheme()) {
190190
DEEPIN_XDG_THEME::colorScheme.setLocalData(DEEPIN_XDG_THEME::PALETTE_MAP());
191191

192+
#if QT_VERSION >= QT_VERSION_CHECK(6, 8, 1)
193+
return entry->pixmap(size, mode, state, 1.0);
194+
#else
192195
return entry->pixmap(size, mode, state);
196+
#endif
193197
}
194198

195199
QPixmap pixmap;
@@ -206,7 +210,11 @@ QPixmap XdgIconProxyEngine::pixmapByEntry(QIconLoaderEngineEntry *entry, const Q
206210

207211
pixmap = followColorPixmap(static_cast<ScalableEntry *>(entry), size, mode, state);
208212
} else {
213+
#if QT_VERSION >= QT_VERSION_CHECK(6, 8, 1)
214+
pixmap = entry->pixmap(size, mode, state, 1.0);
215+
#else
209216
pixmap = entry->pixmap(size, mode, state);
217+
#endif
210218
}
211219

212220
free(type_name);

0 commit comments

Comments
 (0)