forked from qt-creator/qt-creator
AutoTests: Aspectify parts of main settings
Change-Id: I407b5102e1f2a6647f6fdca01a61dfa422c5d3ee Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -291,7 +291,7 @@ void TestResultsPane::clearContents()
|
||||
setIconBadgeNumber(0);
|
||||
navigateStateChanged();
|
||||
m_summaryWidget->setVisible(false);
|
||||
m_autoScroll = AutotestPlugin::settings()->autoScroll;
|
||||
m_autoScroll = TestSettings::instance()->autoScroll();
|
||||
connect(m_treeView->verticalScrollBar(), &QScrollBar::rangeChanged,
|
||||
this, &TestResultsPane::onScrollBarRangeChanged, Qt::UniqueConnection);
|
||||
m_textOutput->clear();
|
||||
@@ -437,7 +437,7 @@ void TestResultsPane::onRunSelectedTriggered()
|
||||
|
||||
void TestResultsPane::initializeFilterMenu()
|
||||
{
|
||||
const bool omitIntern = AutotestPlugin::settings()->omitInternalMssg;
|
||||
const bool omitIntern = TestSettings::instance()->omitInternalMsg();
|
||||
// FilterModel has all messages enabled by default
|
||||
if (omitIntern)
|
||||
m_filterModel->toggleTestResultType(ResultType::MessageInternal);
|
||||
@@ -553,8 +553,8 @@ void TestResultsPane::onTestRunFinished()
|
||||
m_model->removeCurrentTestMessage();
|
||||
disconnect(m_treeView->verticalScrollBar(), &QScrollBar::rangeChanged,
|
||||
this, &TestResultsPane::onScrollBarRangeChanged);
|
||||
if (AutotestPlugin::settings()->popupOnFinish
|
||||
&& (!AutotestPlugin::settings()->popupOnFail || hasFailedTests(m_model))) {
|
||||
if (TestSettings::instance()->popupOnFinish()
|
||||
&& (!TestSettings::instance()->popupOnFail() || hasFailedTests(m_model))) {
|
||||
popup(IOutputPane::NoModeSwitch);
|
||||
}
|
||||
createMarks();
|
||||
|
||||
Reference in New Issue
Block a user