diff options
author | Christian Stenger <christian.stenger@theqtcompany.com> | 2015-05-06 15:18:52 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@theqtcompany.com> | 2015-05-18 16:13:01 +0300 |
commit | 145cbdc1b8ceb02ee928961e9536d66a4f90bdd5 (patch) | |
tree | 4fa2768bea79eb65963b0278c85fd7081bb98d74 /plugins/autotest/testtreeview.h | |
parent | 03354a6a0542773b89cbf757f158f0a629a565f6 (diff) | |
download | qt-creator-145cbdc1b8ceb02ee928961e9536d66a4f90bdd5.tar.gz |
Add capability of having additional columns...
...inside the test tree. This adds an icon for running a suite
or test case, opening the objects.map or recording a test case.
Clicking on these icons actually does nothing except emitting
respective signals.
Change-Id: I5ddc76691986b71d61385856777b0c26ba9494b2
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com>
Diffstat (limited to 'plugins/autotest/testtreeview.h')
-rw-r--r-- | plugins/autotest/testtreeview.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/autotest/testtreeview.h b/plugins/autotest/testtreeview.h index c9a4d9f9ff..cb6fc714e0 100644 --- a/plugins/autotest/testtreeview.h +++ b/plugins/autotest/testtreeview.h @@ -22,6 +22,8 @@ #include <utils/navigationtreeview.h> +#include <QModelIndex> + namespace Core { class IContext; } @@ -38,10 +40,20 @@ public: void selectAll(); void deselectAll(); + void resizeEvent(QResizeEvent *event); + void mousePressEvent(QMouseEvent *event); + void mouseReleaseEvent(QMouseEvent *event); + +signals: + void runTestSuite(const QString &suiteName); + void runTestCase(const QString &suiteName, const QString &testCaseName); + void openObjectsMap(const QString &suiteName); + void recordTestCase(const QString &suiteName, const QString &testCaseName); private: void changeCheckStateAll(const Qt::CheckState checkState); Core::IContext *m_context; + QModelIndex m_lastMousePressedIndex; }; } // namespace Internal |