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:
@@ -3,7 +3,6 @@
|
||||
|
||||
#include "testresultdelegate.h"
|
||||
|
||||
#include "autotestplugin.h"
|
||||
#include "testresultmodel.h"
|
||||
#include "testsettings.h"
|
||||
|
||||
@@ -162,10 +161,10 @@ void TestResultDelegate::clearCache()
|
||||
|
||||
void TestResultDelegate::limitTextOutput(QString &output) const
|
||||
{
|
||||
int maxLineCount = Internal::AutotestPlugin::settings()->resultDescriptionMaxSize;
|
||||
int maxLineCount = Internal::TestSettings::instance()->resultDescriptionMaxSize();
|
||||
bool limited = false;
|
||||
|
||||
if (Internal::AutotestPlugin::settings()->limitResultDescription && maxLineCount > 0) {
|
||||
if (Internal::TestSettings::instance()->limitResultDescription() && maxLineCount > 0) {
|
||||
int index = -1;
|
||||
int lastChar = output.size() - 1;
|
||||
|
||||
@@ -183,7 +182,7 @@ void TestResultDelegate::limitTextOutput(QString &output) const
|
||||
}
|
||||
}
|
||||
|
||||
if (AutotestPlugin::settings()->limitResultOutput && output.length() > outputLimit) {
|
||||
if (TestSettings::instance()->limitResultOutput() && output.length() > outputLimit) {
|
||||
output = output.left(outputLimit);
|
||||
limited = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user