summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cpptoolstestcase.h
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2015-04-13 17:41:17 +0200
committerNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2015-04-14 07:58:23 +0000
commit05e0b074c1dbfef8aac7e719e3ab23c7916288ac (patch)
tree8e1a0260b907c7ac9a9d14ab81e169fd6e1af11f /src/plugins/cpptools/cpptoolstestcase.h
parent315585056b961d5b84132df190eca6f09c912189 (diff)
downloadqt-creator-05e0b074c1dbfef8aac7e719e3ab23c7916288ac.tar.gz
CppTools: Tests: Clean up ProjectOpenerAndCloser and introduce timeout
Change-Id: Id46305a7e9fba1d8383622a4d21f22ee8cbc470c Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Diffstat (limited to 'src/plugins/cpptools/cpptoolstestcase.h')
-rw-r--r--src/plugins/cpptools/cpptoolstestcase.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/plugins/cpptools/cpptoolstestcase.h b/src/plugins/cpptools/cpptoolstestcase.h
index acc76c6871..f7a7343ede 100644
--- a/src/plugins/cpptools/cpptoolstestcase.h
+++ b/src/plugins/cpptools/cpptoolstestcase.h
@@ -117,21 +117,15 @@ private:
bool m_runGarbageCollector;
};
-class CPPTOOLS_EXPORT ProjectOpenerAndCloser : public QObject
+class CPPTOOLS_EXPORT ProjectOpenerAndCloser
{
- Q_OBJECT
-
public:
- ProjectOpenerAndCloser(bool waitForFinishedGcOnDestruction = true);
+ ProjectOpenerAndCloser();
~ProjectOpenerAndCloser(); // Closes opened projects
ProjectInfo open(const QString &projectFile, bool configureAsExampleProject = false);
private:
- void onGcFinished();
-
- bool m_waitForFinishedGcOnDestruction;
- bool m_gcFinished;
QList<ProjectExplorer::Project *> m_openProjects;
};