forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/5.0'
Conflicts: src/plugins/autotest/testresultdelegate.cpp Change-Id: If172206f231fc2a9f4a672cd2e6eaeaea4988c96
This commit is contained in:
@@ -166,6 +166,7 @@ TestResultsPane::TestResultsPane(QObject *parent) :
|
||||
this, &TestResultsPane::addTestResult);
|
||||
connect(TestRunner::instance(), &TestRunner::hadDisabledTests,
|
||||
m_model, &TestResultModel::raiseDisabledTests);
|
||||
visualOutputWidget->installEventFilter(this);
|
||||
}
|
||||
|
||||
void TestResultsPane::createToolButtons()
|
||||
@@ -576,6 +577,14 @@ void TestResultsPane::filterMenuTriggered(QAction *action)
|
||||
navigateStateChanged();
|
||||
}
|
||||
|
||||
bool TestResultsPane::eventFilter(QObject *object, QEvent *event)
|
||||
{
|
||||
QTC_ASSERT(m_outputWidget, return false);
|
||||
if (event->type() == QEvent::Resize && object->parent() == m_outputWidget)
|
||||
static_cast<TestResultDelegate *>(m_treeView->itemDelegate())->clearCache();
|
||||
return false;
|
||||
}
|
||||
|
||||
void TestResultsPane::onTestRunStarted()
|
||||
{
|
||||
m_testRunning = true;
|
||||
|
||||
Reference in New Issue
Block a user