Fix compilation issues for android

Deals with:
  * unknown class name 'Object'; did you mean 'QObject'?
  * use of undeclared identifier 'QTimer'; did you mean 'QTime'?

Pick-to: 6.5
Change-Id: Id63064e70090ed1f816fa19db047b382220d634c
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
Michal Klocek 2023-03-16 08:16:34 +01:00
parent b4814163c7
commit fb24576fa4
3 changed files with 9 additions and 0 deletions

View File

@ -10,6 +10,7 @@
#include <QtCore/qfuture.h>
#include <QtCore/qfuturewatcher.h>
#include <QtCore/qpromise.h>
#include <QtCore/qtimer.h>
#include <QtCore/qthreadpool.h>
#include <deque>
#include <memory>

View File

@ -11,6 +11,8 @@
#include <QtCore/qdatetime.h>
#include <QtCore/qmimedatabase.h>
QT_BEGIN_NAMESPACE
using namespace QNativeInterface;
using namespace Qt::StringLiterals;
@ -823,4 +825,6 @@ bool DocumentFile::rename(const QString &newName)
return false;
}
QT_END_NAMESPACE
// End of DocumentFile

View File

@ -9,6 +9,8 @@
#include <QtCore/qjniobject.h>
#include <QtCore/qlist.h>
QT_BEGIN_NAMESPACE
using DocumentFilePtr = std::shared_ptr<class DocumentFile>;
class AndroidContentFileEngine : public QFSFileEngine
@ -102,4 +104,6 @@ protected:
DocumentFilePtr m_parent;
};
QT_END_NAMESPACE
#endif // ANDROIDCONTENTFILEENGINE_H