Make Nheko compile on Qt6

This commit is contained in:
Nicolas Werner 2023-06-02 00:24:26 +02:00
parent 0ac46ea209
commit b518f6902e
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
39 changed files with 108 additions and 361 deletions

View file

@ -24,12 +24,8 @@
QHash<QString, mtx::crypto::EncryptedFile> infos;
MxcImageProvider::MxcImageProvider(QObject *parent)
#if QT_VERSION < 0x60000
: QObject(parent)
#else
: QQuickAsyncImageProvider(parent)
#endif
MxcImageProvider::MxcImageProvider()
: QQuickAsyncImageProvider()
{
auto timer = new QTimer(this);
timer->setInterval(std::chrono::hours(1));