File indexing completed on 2025-01-26 03:28:31
0001 /* 0002 SPDX-FileCopyrightText: 2023 Montel Laurent <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #pragma once 0008 0009 #include <QWidget> 0010 class QSettings; 0011 class PropertyTreeView; 0012 class ObjectPropertiesModel; 0013 namespace QAccessibleClient 0014 { 0015 class AccessibleObject; 0016 } 0017 0018 class PropertyTreeWidget : public QWidget 0019 { 0020 Q_OBJECT 0021 public: 0022 explicit PropertyTreeWidget(QWidget *parent = nullptr); 0023 ~PropertyTreeWidget() override; 0024 0025 void updateDetails(const QAccessibleClient::AccessibleObject &object, bool force); 0026 0027 void copyValue(); 0028 0029 void saveSettings(QSettings &settings); 0030 void loadSettings(QSettings &settings); 0031 0032 private: 0033 PropertyTreeView *const mPropertyTreeView; 0034 ObjectPropertiesModel *const mPropertyModel; 0035 };