Fix deprecation warnings in QtGui, QtPlatformSupport.
Change-Id: I355a059c5311928301907d5d1e3ecce00a94341d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
parent
9b9895de8d
commit
8b9668c633
@ -59,7 +59,7 @@
|
||||
#include <QtCore/QDebug>
|
||||
|
||||
#include <QStyleHints>
|
||||
#include <QPlatformCursor>
|
||||
#include <qpa/qplatformcursor.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
@ -58,24 +58,22 @@ Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader,
|
||||
QStringList QPlatformInputContextFactory::keys()
|
||||
{
|
||||
#if !defined(QT_NO_LIBRARY) && !defined(QT_NO_SETTINGS)
|
||||
QStringList list = loader()->keys();
|
||||
return loader()->keyMap().values();
|
||||
#else
|
||||
QStringList list;
|
||||
return QStringList();
|
||||
#endif
|
||||
return list;
|
||||
}
|
||||
|
||||
QPlatformInputContext *QPlatformInputContextFactory::create(const QString& key)
|
||||
{
|
||||
QPlatformInputContext *ret = 0;
|
||||
QStringList paramList = key.split(QLatin1Char(':'));
|
||||
QString platform = paramList.takeFirst().toLower();
|
||||
const QString platform = paramList.takeFirst().toLower();
|
||||
|
||||
#if !defined(QT_NO_LIBRARY) && !defined(QT_NO_SETTINGS)
|
||||
if (QPlatformInputContextFactoryInterface *factory = qobject_cast<QPlatformInputContextFactoryInterface*>(loader()->instance(platform)))
|
||||
ret = factory->create(platform, paramList);
|
||||
if (QPlatformInputContext *ret = qLoadPlugin1<QPlatformInputContext, QPlatformInputContextFactoryInterface>(loader(), platform, paramList))
|
||||
return ret;
|
||||
#endif
|
||||
return ret;
|
||||
return 0;
|
||||
}
|
||||
|
||||
QPlatformInputContext *QPlatformInputContextFactory::create()
|
||||
|
Loading…
Reference in New Issue
Block a user