|
Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
|
GuiTest plus a table, a tree and a combo box in their own window. More...
Protected Member Functions | |
| void | SetUp () override |
| Builds the models and views. | |
| void | TearDown () override |
| Destroys the window before the fixture's. | |
| QJsonObject | structured (const QString &tool, const QJsonObject &args) |
| The structured content of a tool's result. | |
| Protected Member Functions inherited from SondeTest::GuiTest | |
| void | SetUp () override |
| Installs integrations and tools, builds and shows both windows. | |
| void | TearDown () override |
| Destroys the windows (before the server). | |
| virtual bool | withQuick () const |
| Whether this test needs the QML window (override to skip it). | |
| QJsonObject | call (const QString &tool, const QJsonObject &args={ }) |
| Calls a tool and returns its result. | |
| QString | text (const QString &tool, const QJsonObject &args={ }) |
| Calls a tool and returns its text. | |
| bool | fails (const QString &tool, const QJsonObject &args={ }) |
| Calls a tool and reports whether it returned an error result. | |
Protected Attributes | |
| std::unique_ptr< QWidget > | page |
| The window holding the views. | |
| QStandardItemModel * | table = nullptr |
| 100 x 3, checkable first column, tool tips. | |
| QTableView * | tableView = nullptr |
| Shows table. | |
| QStandardItemModel * | tree = nullptr |
| folder 0..2, folder r has r children. | |
| QTreeView * | treeView = nullptr |
| Shows tree. | |
| QComboBox * | combo = nullptr |
| small, medium, large. | |
| Protected Attributes inherited from SondeTest::GuiTest | |
| Sonde::Server | server |
| Server under test. | |
| QString | name |
| Local socket name of the server. | |
| std::unique_ptr< LocalClient > | client |
| Initialized client. | |
| std::unique_ptr< QWidget > | form |
| The widgets window ("Form Window"). | |
| QLineEdit * | edit = nullptr |
| Line edit "edit" (has focus initially). | |
| QPushButton * | button = nullptr |
| Push button "button" ("&Press"). | |
| QCheckBox * | check = nullptr |
| Check box "check". | |
| QSlider * | slider = nullptr |
| Horizontal slider "slider", 0-100. | |
| QListWidget * | list = nullptr |
| List "list" with 200 items (scrollable). | |
| QLabel * | hiddenLabel = nullptr |
| Hidden label "hiddenLabel". | |
| int | buttonClicks = 0 |
| Times button was clicked. | |
| int | shortcutHits = 0 |
| Times the Ctrl+K shortcut fired. | |
| QQmlEngine | engine |
| Engine of the QML window. | |
| std::unique_ptr< QQuickWindow > | quick |
| The Qt Quick window ("Quick Window"). | |
GuiTest plus a table, a tree and a combo box in their own window.