aboutsummaryrefslogtreecommitdiffstats
path: root/src/virtualkeyboard/inputcontext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/virtualkeyboard/inputcontext.cpp')
-rw-r--r--src/virtualkeyboard/inputcontext.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/virtualkeyboard/inputcontext.cpp b/src/virtualkeyboard/inputcontext.cpp
index 2c2c8fc..38f6150 100644
--- a/src/virtualkeyboard/inputcontext.cpp
+++ b/src/virtualkeyboard/inputcontext.cpp
@@ -40,10 +40,6 @@
#include <QGuiApplication>
#include <QtCore/private/qobject_p.h>
-#ifdef COMPILING_QML
-#include <private/qqmlmetatype_p.h>
-#endif
-
QT_BEGIN_NAMESPACE
bool operator==(const QInputMethodEvent::Attribute &attribute1, const QInputMethodEvent::Attribute &attribute2)
{
@@ -550,10 +546,6 @@ void InputContext::clear()
*/
bool InputContext::fileExists(const QUrl &fileUrl)
{
-#ifdef COMPILING_QML
- // workaround that qtquickcompiler removes *.qml file paths from qrc file (QTRD-3268)
- return QQmlMetaType::findCachedCompilationUnit(fileUrl);
-#else
QString fileName;
if (fileUrl.scheme() == QLatin1String("qrc")) {
fileName = QLatin1Char(':') + fileUrl.path();
@@ -561,7 +553,6 @@ bool InputContext::fileExists(const QUrl &fileUrl)
fileName = fileUrl.toLocalFile();
}
return !fileName.isEmpty() && QFile::exists(fileName);
-#endif
}
/*!