8#include <QJsonDocument>
38QWindow *QOutputMapping::windowForDeviceNode(
const QString &deviceNode)
56 if (configFile.isEmpty())
61 qWarning(
"touch input support: Failed to open %s", configFile.constData());
67 qWarning(
"touch input support: Failed to parse %s", configFile.constData());
74 for (
int i = 0;
i < outputs.
size(); ++
i) {
79 qWarning(
"evdevtouch: Output %d specifies touchDevice but not name, this is wrong",
i);
92 return m_screenTable.
value(deviceNode);
QString screenNameForDeviceNode(const QString &deviceNode) override
QString canonicalFilePath() const
Returns the file system entry's canonical path, including the entry's name, that is,...
QFILE_MAYBE_NODISCARD bool open(OpenMode flags) override
Opens the file using OpenMode mode, returning true if successful; otherwise false.
T value(const Key &key) const noexcept
iterator insert(const Key &key, const T &value)
Inserts a new item with the key and a value of value.
QByteArray readAll()
Reads all remaining data from the device, and returns it as a byte array.
\inmodule QtCore\reentrant
qsizetype size() const
Returns the number of values stored in the array.
QJsonValue at(qsizetype i) const
Returns a QJsonValue representing the value for index i.
\inmodule QtCore\reentrant
QJsonObject object() const
Returns the QJsonObject contained in the document.
bool isObject() const
Returns true if the document contains an object.
static QJsonDocument fromJson(const QByteArray &json, QJsonParseError *error=nullptr)
Parses json as a UTF-8 encoded JSON document, and creates a QJsonDocument from it.
QVariantMap toVariantMap() const
Converts this object to a QVariantMap.
QJsonValue value(const QString &key) const
Returns a QJsonValue representing the value for the key key.
QJsonObject toObject() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
QJsonArray toArray() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
static QOutputMapping * get()
virtual QString screenNameForDeviceNode(const QString &deviceNode)
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QString fromUtf8(QByteArrayView utf8)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Combined button and popup list for selecting options.
GLenum GLenum GLenum GLenum mapping
static QOutputMapping * s_outputMapping
#define QStringLiteral(str)
Q_CORE_EXPORT QByteArray qgetenv(const char *varName)
QT_BEGIN_NAMESPACE typedef uchar * output
char * toString(const MyType &t)
[31]