代码拉取完成,页面将自动刷新
#ifndef FAKEACCESSIBLE_H
#define FAKEACCESSIBLE_H
#include <QAccessibleInterface>
class QObject;
class QString;
namespace vnotex {
class FakeAccessible {
public:
FakeAccessible() = delete;
static QAccessibleInterface *accessibleFactory(const QString &p_className, QObject *p_obj);
};
class FakeAccessibleInterface : public QAccessibleInterface {
public:
FakeAccessibleInterface(QObject *p_obj);
QAccessibleInterface *child(int p_index) const Q_DECL_OVERRIDE;
QAccessibleInterface *childAt(int p_x, int p_y) const Q_DECL_OVERRIDE;
int childCount() const Q_DECL_OVERRIDE;
int indexOfChild(const QAccessibleInterface *p_child) const Q_DECL_OVERRIDE;
bool isValid() const Q_DECL_OVERRIDE;
QObject *object() const Q_DECL_OVERRIDE;
QAccessibleInterface *parent() const Q_DECL_OVERRIDE;
QRect rect() const Q_DECL_OVERRIDE;
QAccessible::Role role() const Q_DECL_OVERRIDE;
void setText(QAccessible::Text p_t, const QString &p_text) Q_DECL_OVERRIDE;
QAccessible::State state() const Q_DECL_OVERRIDE;
QString text(QAccessible::Text p_t) const Q_DECL_OVERRIDE;
private:
QObject *m_object = nullptr;
};
} // namespace vnotex
#endif // FAKEACCESSIBLE_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。