forked from qt-creator/qt-creator
Autotest: Adapt to changed settings access pattern again
Settings are created on first access now, even though this doesn't matter much here as this happens unconditionally in AutotestPluginPrivate ctor via m_frameworkManager.synchronizeSettings() Change-Id: I340927cf107d7e4b2268e842d23f1a89898e8a92 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -161,10 +161,10 @@ void TestResultDelegate::clearCache()
|
||||
|
||||
void TestResultDelegate::limitTextOutput(QString &output) const
|
||||
{
|
||||
int maxLineCount = Internal::TestSettings::instance()->resultDescriptionMaxSize();
|
||||
int maxLineCount = testSettings().resultDescriptionMaxSize();
|
||||
bool limited = false;
|
||||
|
||||
if (Internal::TestSettings::instance()->limitResultDescription() && maxLineCount > 0) {
|
||||
if (testSettings().limitResultDescription() && maxLineCount > 0) {
|
||||
int index = -1;
|
||||
int lastChar = output.size() - 1;
|
||||
|
||||
@@ -182,7 +182,7 @@ void TestResultDelegate::limitTextOutput(QString &output) const
|
||||
}
|
||||
}
|
||||
|
||||
if (TestSettings::instance()->limitResultOutput() && output.length() > outputLimit) {
|
||||
if (testSettings().limitResultOutput() && output.length() > outputLimit) {
|
||||
output = output.left(outputLimit);
|
||||
limited = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user