forked from qt-creator/qt-creator
AutoTest: Always parse if plugin is enabled
Remove the 'Always parse' setting and respective special handling. This simplifies the handling of parsing for tests and removes strange special handling that was introduced in earlier versions and led more to confusion on the user side. Change-Id: Ia4d122ed448244f3cb3876dda9930864afde9c28 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -109,13 +109,12 @@ TestNavigationWidget::TestNavigationWidget(QWidget *parent) :
|
||||
|
||||
TestNavigationWidget::~TestNavigationWidget()
|
||||
{
|
||||
m_model->disableParsing();
|
||||
}
|
||||
|
||||
void TestNavigationWidget::contextMenuEvent(QContextMenuEvent *event)
|
||||
{
|
||||
const bool enabled = !TestRunner::instance()->isTestRunning()
|
||||
&& m_model->parser()->enabled() && m_model->parser()->state() == TestCodeParser::Idle;
|
||||
&& m_model->parser()->state() == TestCodeParser::Idle;
|
||||
const bool hasTests = m_model->hasTests();
|
||||
|
||||
QMenu menu;
|
||||
@@ -336,7 +335,6 @@ Core::NavigationView TestNavigationWidgetFactory::createWidget()
|
||||
Core::NavigationView view;
|
||||
view.widget = treeViewWidget;
|
||||
view.dockToolBarWidgets = treeViewWidget->createToolButtons();
|
||||
TestTreeModel::instance()->enableParsing();
|
||||
return view;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user