58 Star 461 Fork 110

GVPVNoteX/vnote

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
fakeaccessible.h 1.16 KB
一键复制 编辑 原始数据 按行查看 历史
tamlok 提交于 2025-10-27 23:07 +08:00 . introduce auto-formatting and init scripts (#2664)
#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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/vnotex/vnote.git
git@gitee.com:vnotex/vnote.git
vnotex
vnote
vnote
master

搜索帮助