forked from qt-creator/qt-creator
AutoTest: De-slot and complete Qt5-style connects
Change-Id: I013b42523f163e123a0cee85f9d232815ad284e3 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
b1a1e169a6
commit
943c76f4ab
@@ -143,7 +143,7 @@ void TestCodeParser::emitUpdateTestTree()
|
||||
|
||||
qCDebug(LOG) << "adding singleShot";
|
||||
m_singleShotScheduled = true;
|
||||
QTimer::singleShot(1000, this, SLOT(updateTestTree()));
|
||||
QTimer::singleShot(1000, this, &TestCodeParser::updateTestTree);
|
||||
}
|
||||
|
||||
void TestCodeParser::updateTestTree()
|
||||
|
@@ -70,7 +70,7 @@ signals:
|
||||
void parsingFinished();
|
||||
void parsingFailed();
|
||||
|
||||
public slots:
|
||||
public:
|
||||
void emitUpdateTestTree();
|
||||
void updateTestTree();
|
||||
void onCppDocumentUpdated(const CPlusPlus::Document::Ptr &document);
|
||||
|
@@ -65,16 +65,12 @@ public:
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
|
||||
private slots:
|
||||
private:
|
||||
void onItemActivated(const QModelIndex &index);
|
||||
void onSortClicked();
|
||||
void onFilterMenuTriggered(QAction *action);
|
||||
void onParsingStarted();
|
||||
void onParsingFinished();
|
||||
|
||||
private:
|
||||
void initializeFilterMenu();
|
||||
void onRunThisTestTriggered(TestRunner::Mode runMode);
|
||||
|
||||
|
@@ -41,8 +41,6 @@ public:
|
||||
|
||||
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
||||
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
||||
|
||||
public slots:
|
||||
void currentChanged(const QModelIndex ¤t, const QModelIndex &previous);
|
||||
|
||||
private:
|
||||
|
@@ -87,20 +87,17 @@ public:
|
||||
void goToNext();
|
||||
void goToPrev();
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
void addTestResult(const TestResultPtr &result);
|
||||
|
||||
private slots:
|
||||
private:
|
||||
explicit TestResultsPane(QObject *parent = 0);
|
||||
|
||||
void onItemActivated(const QModelIndex &index);
|
||||
void onRunAllTriggered();
|
||||
void onRunSelectedTriggered();
|
||||
void enableAllFilter();
|
||||
void filterMenuTriggered(QAction *action);
|
||||
|
||||
private:
|
||||
explicit TestResultsPane(QObject *parent = 0);
|
||||
void initializeFilterMenu();
|
||||
void updateSummaryLabel();
|
||||
void createToolButtons();
|
||||
|
@@ -56,21 +56,19 @@ public:
|
||||
void setSelectedTests(const QList<TestConfiguration *> &selected);
|
||||
bool isTestRunning() const { return m_executingTests; }
|
||||
|
||||
void prepareToRunTests(Mode mode);
|
||||
|
||||
signals:
|
||||
void testRunStarted();
|
||||
void testRunFinished();
|
||||
void requestStopTestRun();
|
||||
void testResultReady(const TestResultPtr &result);
|
||||
|
||||
public slots:
|
||||
void prepareToRunTests(Mode mode);
|
||||
|
||||
private slots:
|
||||
private:
|
||||
void buildProject(ProjectExplorer::Project *project);
|
||||
void buildFinished(bool success);
|
||||
void onFinished();
|
||||
|
||||
private:
|
||||
void runTests();
|
||||
void debugTests();
|
||||
void runOrDebugTests();
|
||||
|
@@ -83,8 +83,6 @@ signals:
|
||||
void sweepingDone();
|
||||
#endif
|
||||
|
||||
public slots:
|
||||
|
||||
private:
|
||||
void onParseResultReady(const TestParseResultPtr result);
|
||||
void handleParseResult(const TestParseResult *result, TestTreeItem *rootNode);
|
||||
|
Reference in New Issue
Block a user