mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-22 19:46:12 -04:00
Merge pull request #1104 from ShaopengLin/Bugfix-Qt6-QVariant-TypeId
BugFix: Compilation Failure for Qt6 Due to Deprecated Members
This commit is contained in:
commit
851ccc59c0
@ -36,7 +36,7 @@ QVariant ContentManagerModel::data(const QModelIndex& index, int role) const
|
|||||||
|
|
||||||
r = getThumbnail(r);
|
r = getThumbnail(r);
|
||||||
|
|
||||||
if ( r.type() == QVariant::ByteArray )
|
if ( r.userType() == QMetaType::QByteArray )
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
const QString faviconUrl = r.toString();
|
const QString faviconUrl = r.toString();
|
||||||
@ -136,7 +136,7 @@ void ContentManagerModel::setBooksData(const BookInfoList& data, const Downloads
|
|||||||
// QString) from where the actual data can be obtained.
|
// QString) from where the actual data can be obtained.
|
||||||
QVariant ContentManagerModel::getThumbnail(const QVariant& faviconEntry) const
|
QVariant ContentManagerModel::getThumbnail(const QVariant& faviconEntry) const
|
||||||
{
|
{
|
||||||
if ( faviconEntry.type() == QVariant::ByteArray )
|
if ( faviconEntry.userType() == QMetaType::QByteArray )
|
||||||
return faviconEntry;
|
return faviconEntry;
|
||||||
|
|
||||||
const auto faviconUrl = faviconEntry.toString();
|
const auto faviconUrl = faviconEntry.toString();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user