qsettings.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/io/qsettings.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11-
12-
13-
14-
15-
16-
17struct QConfFileCustomFormat-
18{-
19 QString extension;-
20 QSettings::ReadFunc readFunc;-
21 QSettings::WriteFunc writeFunc;-
22 Qt::CaseSensitivity caseSensitivity;-
23};-
24template<> class QTypeInfo<QConfFileCustomFormat > { public: enum { isComplex = (((Q_MOVABLE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_MOVABLE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isRelocatable = !isStatic || ((Q_MOVABLE_TYPE) & Q_RELOCATABLE_TYPE), isLarge = (sizeof(QConfFileCustomFormat)>sizeof(void*)), isPointer = false, isIntegral = QtPrivate::is_integral< QConfFileCustomFormat >::value, isDummy = (((Q_MOVABLE_TYPE) & Q_DUMMY_TYPE) != 0), sizeOf = sizeof(QConfFileCustomFormat) }; static inline const char *name() { return "QConfFileCustomFormat"; } };-
25-
26typedef QHash<QString, QConfFile *> ConfFileHash;-
27typedef QCache<QString, QConfFile> ConfFileCache;-
28typedef QHash<int, QString> PathHash;-
29typedef QVector<QConfFileCustomFormat> CustomFormatVector;-
30-
31namespace { namespace Q_QGS_usedHashFunc { typedef ConfFileHash Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized
guard.load() =...c::InitializedDescription
TRUEevaluated 174 times by 31 tests
Evaluated by:
  • tst_languagechange - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qaccessibility - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qdatetimeedit - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qerrormessage - unknown status
  • tst_qfiledialog - unknown status
  • tst_qfiledialog2 - unknown status
  • tst_qfileiconprovider - unknown status
  • tst_qfilesystemmodel - unknown status
  • tst_qgraphicsproxywidget - unknown status
  • tst_qicon - unknown status
  • tst_qlabel - unknown status
  • tst_qlineedit - unknown status
  • tst_qmessagebox - unknown status
  • tst_qplaintextedit - unknown status
  • tst_qprinter - unknown status
  • tst_qsettings - unknown status
  • tst_qsidebar - unknown status
  • tst_qstyle - unknown status
  • tst_qstylesheetstyle - unknown status
  • ...
FALSEnever evaluated
) guard.store(QtGlobalStatic::Destroyed);
executed 174 times by 31 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_languagechange - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qaccessibility - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qdatetimeedit - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qerrormessage - unknown status
  • tst_qfiledialog - unknown status
  • tst_qfiledialog2 - unknown status
  • tst_qfileiconprovider - unknown status
  • tst_qfilesystemmodel - unknown status
  • tst_qgraphicsproxywidget - unknown status
  • tst_qicon - unknown status
  • tst_qlabel - unknown status
  • tst_qlineedit - unknown status
  • tst_qmessagebox - unknown status
  • tst_qplaintextedit - unknown status
  • tst_qprinter - unknown status
  • tst_qsettings - unknown status
  • tst_qsidebar - unknown status
  • tst_qstyle - unknown status
  • tst_qstylesheetstyle - unknown status
  • ...
}
executed 174 times by 31 tests: end of block
Executed by:
  • tst_languagechange - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qaccessibility - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qdatetimeedit - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qerrormessage - unknown status
  • tst_qfiledialog - unknown status
  • tst_qfiledialog2 - unknown status
  • tst_qfileiconprovider - unknown status
  • tst_qfilesystemmodel - unknown status
  • tst_qgraphicsproxywidget - unknown status
  • tst_qicon - unknown status
  • tst_qlabel - unknown status
  • tst_qlineedit - unknown status
  • tst_qmessagebox - unknown status
  • tst_qplaintextedit - unknown status
  • tst_qprinter - unknown status
  • tst_qsettings - unknown status
  • tst_qsidebar - unknown status
  • tst_qstyle - unknown status
  • tst_qstylesheetstyle - unknown status
  • ...
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; return
executed 13201 times by 36 tests: return &holder.value;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
&holder.value;
executed 13201 times by 36 tests: return &holder.value;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
} } } static QGlobalStatic<ConfFileHash, Q_QGS_usedHashFunc::innerFunction, Q_QGS_usedHashFunc::guard> usedHashFunc;
0-13201
32namespace { namespace Q_QGS_unusedCacheFunc { typedef ConfFileCache Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized
guard.load() =...c::InitializedDescription
TRUEevaluated 174 times by 31 tests
Evaluated by:
  • tst_languagechange - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qaccessibility - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qdatetimeedit - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qerrormessage - unknown status
  • tst_qfiledialog - unknown status
  • tst_qfiledialog2 - unknown status
  • tst_qfileiconprovider - unknown status
  • tst_qfilesystemmodel - unknown status
  • tst_qgraphicsproxywidget - unknown status
  • tst_qicon - unknown status
  • tst_qlabel - unknown status
  • tst_qlineedit - unknown status
  • tst_qmessagebox - unknown status
  • tst_qplaintextedit - unknown status
  • tst_qprinter - unknown status
  • tst_qsettings - unknown status
  • tst_qsidebar - unknown status
  • tst_qstyle - unknown status
  • tst_qstylesheetstyle - unknown status
  • ...
FALSEnever evaluated
) guard.store(QtGlobalStatic::Destroyed);
executed 174 times by 31 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_languagechange - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qaccessibility - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qdatetimeedit - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qerrormessage - unknown status
  • tst_qfiledialog - unknown status
  • tst_qfiledialog2 - unknown status
  • tst_qfileiconprovider - unknown status
  • tst_qfilesystemmodel - unknown status
  • tst_qgraphicsproxywidget - unknown status
  • tst_qicon - unknown status
  • tst_qlabel - unknown status
  • tst_qlineedit - unknown status
  • tst_qmessagebox - unknown status
  • tst_qplaintextedit - unknown status
  • tst_qprinter - unknown status
  • tst_qsettings - unknown status
  • tst_qsidebar - unknown status
  • tst_qstyle - unknown status
  • tst_qstylesheetstyle - unknown status
  • ...
}
executed 174 times by 31 tests: end of block
Executed by:
  • tst_languagechange - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qaccessibility - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qdatetimeedit - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qerrormessage - unknown status
  • tst_qfiledialog - unknown status
  • tst_qfiledialog2 - unknown status
  • tst_qfileiconprovider - unknown status
  • tst_qfilesystemmodel - unknown status
  • tst_qgraphicsproxywidget - unknown status
  • tst_qicon - unknown status
  • tst_qlabel - unknown status
  • tst_qlineedit - unknown status
  • tst_qmessagebox - unknown status
  • tst_qplaintextedit - unknown status
  • tst_qprinter - unknown status
  • tst_qsettings - unknown status
  • tst_qsidebar - unknown status
  • tst_qstyle - unknown status
  • tst_qstylesheetstyle - unknown status
  • ...
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; return
executed 5352 times by 31 tests: return &holder.value;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
&holder.value;
executed 5352 times by 31 tests: return &holder.value;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
} } } static QGlobalStatic<ConfFileCache, Q_QGS_unusedCacheFunc::innerFunction, Q_QGS_unusedCacheFunc::guard> unusedCacheFunc;
0-5352
33namespace { namespace Q_QGS_pathHashFunc { typedef PathHash Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized
guard.load() =...c::InitializedDescription
TRUEevaluated 7 times by 7 tests
Evaluated by:
  • tst_languagechange - unknown status
  • tst_qcolordialog - unknown status
  • tst_qfiledialog - unknown status
  • tst_qfiledialog2 - unknown status
  • tst_qgraphicsproxywidget - unknown status
  • tst_qsettings - unknown status
  • tst_qtextformat - unknown status
FALSEnever evaluated
) guard.store(QtGlobalStatic::Destroyed);
executed 7 times by 7 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_languagechange - unknown status
  • tst_qcolordialog - unknown status
  • tst_qfiledialog - unknown status
  • tst_qfiledialog2 - unknown status
  • tst_qgraphicsproxywidget - unknown status
  • tst_qsettings - unknown status
  • tst_qtextformat - unknown status
}
executed 7 times by 7 tests: end of block
Executed by:
  • tst_languagechange - unknown status
  • tst_qcolordialog - unknown status
  • tst_qfiledialog - unknown status
  • tst_qfiledialog2 - unknown status
  • tst_qgraphicsproxywidget - unknown status
  • tst_qsettings - unknown status
  • tst_qtextformat - unknown status
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; return
executed 3324 times by 7 tests: return &holder.value;
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
&holder.value;
executed 3324 times by 7 tests: return &holder.value;
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
} } } static QGlobalStatic<PathHash, Q_QGS_pathHashFunc::innerFunction, Q_QGS_pathHashFunc::guard> pathHashFunc;
0-3324
34namespace { namespace Q_QGS_customFormatVectorFunc { typedef CustomFormatVector Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized
guard.load() =...c::InitializedDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qsettings - unknown status
FALSEnever evaluated
) guard.store(QtGlobalStatic::Destroyed);
executed 1 time by 1 test: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_qsettings - unknown status
}
executed 1 time by 1 test: end of block
Executed by:
  • tst_qsettings - unknown status
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; return
executed 179 times by 1 test: return &holder.value;
Executed by:
  • tst_QSettings
&holder.value;
executed 179 times by 1 test: return &holder.value;
Executed by:
  • tst_QSettings
} } } static QGlobalStatic<CustomFormatVector, Q_QGS_customFormatVectorFunc::innerFunction, Q_QGS_customFormatVectorFunc::guard> customFormatVectorFunc;
0-179
35-
36static QBasicMutex settingsGlobalMutex;-
37-
38static QSettings::Format globalDefaultFormat = QSettings::NativeFormat;-
39-
40QConfFile::QConfFile(const QString &fileName, bool _userPerms)-
41 : name(fileName), size(0), ref(1), userPerms(_userPerms)-
42{-
43 usedHashFunc()->insert(name, this);-
44}
executed 2658 times by 31 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
2658
45-
46QConfFile::~QConfFile()-
47{-
48 if (usedHashFunc()
usedHashFunc()Description
TRUEevaluated 2658 times by 36 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEnever evaluated
)
0-2658
49 usedHashFunc()->remove(name);
executed 2658 times by 36 tests: usedHashFunc()->remove(name);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
2658
50}
executed 2658 times by 36 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
2658
51-
52ParsedSettingsMap QConfFile::mergedKeyMap() const-
53{-
54 ParsedSettingsMap result = originalKeys;-
55 ParsedSettingsMap::const_iterator i;-
56-
57 for (i = removedKeys.begin(); i != removedKeys.end()
i != removedKeys.end()Description
TRUEevaluated 802 times by 3 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
FALSEevaluated 565 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
; ++i)
565-802
58 result.remove(i.key());
executed 802 times by 3 tests: result.remove(i.key());
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
802
59 for (i = addedKeys.begin(); i != addedKeys.end()
i != addedKeys.end()Description
TRUEevaluated 2367 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 565 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
; ++i)
565-2367
60 result.insert(i.key(), i.value());
executed 2367 times by 6 tests: result.insert(i.key(), i.value());
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
2367
61 return
executed 565 times by 6 tests: return result;
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
result;
executed 565 times by 6 tests: return result;
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
565
62}-
63-
64bool QConfFile::isWritable() const-
65{-
66 QFileInfo fileInfo(name);-
67-
68-
69 if (fileInfo.exists()
fileInfo.exists()Description
TRUEevaluated 464 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 123 times by 1 test
Evaluated by:
  • tst_QSettings
) {
123-464
70-
71 QFile file(name);-
72 return
executed 464 times by 6 tests: return file.open(QFile::ReadWrite);
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
file.open(QFile::ReadWrite);
executed 464 times by 6 tests: return file.open(QFile::ReadWrite);
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
464
73-
74 } else {-
75-
76 QDir dir(fileInfo.absolutePath());-
77 if (!dir.exists()
!dir.exists()Description
TRUEevaluated 101 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_QSettings
) {
22-101
78 if (!dir.mkpath(dir.absolutePath())
!dir.mkpath(di...bsolutePath())Description
TRUEnever evaluated
FALSEevaluated 101 times by 1 test
Evaluated by:
  • tst_QSettings
)
0-101
79 return
never executed: return false;
false;
never executed: return false;
0
80 }
executed 101 times by 1 test: end of block
Executed by:
  • tst_QSettings
101
81-
82-
83 QTemporaryFile file(name);-
84 return
executed 123 times by 1 test: return file.open();
Executed by:
  • tst_QSettings
file.open();
executed 123 times by 1 test: return file.open();
Executed by:
  • tst_QSettings
123
85 }-
86-
87}-
88-
89QConfFile *QConfFile::fromName(const QString &fileName, bool _userPerms)-
90{-
91 QString absPath = QFileInfo(fileName).absoluteFilePath();-
92-
93 ConfFileHash *usedHash = usedHashFunc();-
94 ConfFileCache *unusedCache = unusedCacheFunc();-
95-
96 QConfFile *confFile = 0;-
97 QMutexLocker locker(&settingsGlobalMutex);-
98-
99 if (!(confFile = usedHash->value(absPath))
!(confFile = u...alue(absPath))Description
TRUEevaluated 3336 times by 31 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 215 times by 1 test
Evaluated by:
  • tst_QSettings
) {
215-3336
100 if ((
(confFile = un...take(absPath))Description
TRUEevaluated 678 times by 7 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 2658 times by 31 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
confFile = unusedCache->take(absPath))
(confFile = un...take(absPath))Description
TRUEevaluated 678 times by 7 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 2658 times by 31 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
)
678-2658
101 usedHash->insert(absPath, confFile);
executed 678 times by 7 tests: usedHash->insert(absPath, confFile);
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QSettings
  • tst_languageChange
678
102 }
executed 3336 times by 31 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
3336
103 if (confFile
confFileDescription
TRUEevaluated 893 times by 7 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 2658 times by 31 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
893-2658
104 confFile->ref.ref();-
105 return
executed 893 times by 7 tests: return confFile;
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QSettings
  • tst_languageChange
confFile;
executed 893 times by 7 tests: return confFile;
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QSettings
  • tst_languageChange
893
106 }-
107 return
executed 2658 times by 31 tests: return new QConfFile(absPath, _userPerms);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
new QConfFile(absPath, _userPerms);
executed 2658 times by 31 tests: return new QConfFile(absPath, _userPerms);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
2658
108}-
109-
110void QConfFile::clearCache()-
111{-
112 QMutexLocker locker(&settingsGlobalMutex);-
113 unusedCacheFunc()->clear();-
114}
executed 125 times by 1 test: end of block
Executed by:
  • tst_QSettings
125
115-
116-
117-
118-
119QSettingsPrivate::QSettingsPrivate(QSettings::Format format)-
120 : format(format), scope(QSettings::UserScope ), iniCodec(0), spec(0), fallbacks(true),-
121 pendingChanges(false), status(QSettings::NoError)-
122{-
123}
executed 248 times by 29 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • ...
248
124-
125QSettingsPrivate::QSettingsPrivate(QSettings::Format format, QSettings::Scope scope,-
126 const QString &organization, const QString &application)-
127 : format(format), scope(scope), organizationName(organization), applicationName(application),-
128 iniCodec(0), spec(0), fallbacks(true), pendingChanges(false), status(QSettings::NoError)-
129{-
130}
executed 1428 times by 7 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
1428
131-
132QSettingsPrivate::~QSettingsPrivate()-
133{-
134}-
135-
136QString QSettingsPrivate::actualKey(const QString &key) const-
137{-
138 QString n = normalizedKey(key);-
139 ((!(!n.isEmpty())) ? qt_assert_x("QSettings", "empty key",__FILE__,251) : qt_noop());-
140 return
executed 48963 times by 30 tests: return groupPrefix + n;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
groupPrefix + n;
executed 48963 times by 30 tests: return groupPrefix + n;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
48963
141}-
142QString QSettingsPrivate::normalizedKey(const QString &key)-
143{-
144 QString result = key;-
145-
146 int i = 0;-
147 while (i < result.size()
i < result.size()Description
TRUEevaluated 160322 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 126 times by 3 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
) {
126-160322
148 while (result.at(i) == QLatin1Char('/')
result.at(i) =...atin1Char('/')Description
TRUEevaluated 544 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 160231 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
544-160231
149 result.remove(i, 1);-
150 if (i == result.size()
i == result.size()Description
TRUEevaluated 91 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 453 times by 1 test
Evaluated by:
  • tst_QSettings
)
91-453
151 goto
executed 91 times by 1 test: goto after_loop;
Executed by:
  • tst_QSettings
after_loop;
executed 91 times by 1 test: goto after_loop;
Executed by:
  • tst_QSettings
91
152 }
executed 453 times by 1 test: end of block
Executed by:
  • tst_QSettings
453
153 while (result.at(i) != QLatin1Char('/')
result.at(i) !...atin1Char('/')Description
TRUEevaluated 948417 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 109814 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
109814-948417
154 ++i;-
155 if (i == result.size()
i == result.size()Description
TRUEevaluated 50417 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 898000 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
)
50417-898000
156 return
executed 50417 times by 30 tests: return result;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
result;
executed 50417 times by 30 tests: return result;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
50417
157 }
executed 898000 times by 30 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
898000
158 ++i;-
159 }
executed 109814 times by 28 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
109814
160-
161after_loop:
code before this statement executed 126 times by 3 tests: after_loop:
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
126
162 if (!result.isEmpty()
!result.isEmpty()Description
TRUEevaluated 58 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 159 times by 3 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
)
58-159
163 result.truncate(i - 1);
executed 58 times by 1 test: result.truncate(i - 1);
Executed by:
  • tst_QSettings
58
164 return
executed 217 times by 3 tests: return result;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
result;
executed 217 times by 3 tests: return result;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
217
165}-
166-
167-
168-
169-
170QSettingsPrivate *QSettingsPrivate::create(QSettings::Format format, QSettings::Scope scope,-
171 const QString &organization, const QString &application)-
172{-
173 return
executed 1428 times by 7 tests: return new QConfFileSettingsPrivate(format, scope, organization, application);
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
new QConfFileSettingsPrivate(format, scope, organization, application);
executed 1428 times by 7 tests: return new QConfFileSettingsPrivate(format, scope, organization, application);
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
1428
174}-
175-
176-
177-
178QSettingsPrivate *QSettingsPrivate::create(const QString &fileName, QSettings::Format format)-
179{-
180 return
executed 248 times by 29 tests: return new QConfFileSettingsPrivate(fileName, format);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • ...
new QConfFileSettingsPrivate(fileName, format);
executed 248 times by 29 tests: return new QConfFileSettingsPrivate(fileName, format);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • ...
248
181}-
182-
183-
184void QSettingsPrivate::processChild(QStringRef key, ChildSpec spec, QStringList &result)-
185{-
186 if (spec != AllKeys
spec != AllKeysDescription
TRUEevaluated 2980 times by 6 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
FALSEevaluated 30673 times by 27 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • ...
) {
2980-30673
187 int slashPos = key.indexOf(QLatin1Char('/'));-
188 if (slashPos == -1
slashPos == -1Description
TRUEevaluated 304 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 2676 times by 6 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
) {
304-2676
189 if (spec != ChildKeys
spec != ChildKeysDescription
TRUEevaluated 152 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 152 times by 1 test
Evaluated by:
  • tst_QSettings
)
152
190 return;
executed 152 times by 1 test: return;
Executed by:
  • tst_QSettings
152
191 }
executed 152 times by 1 test: end of block
Executed by:
  • tst_QSettings
else {
152
192 if (spec != ChildGroups
spec != ChildGroupsDescription
TRUEevaluated 328 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 2348 times by 6 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
)
328-2348
193 return;
executed 328 times by 1 test: return;
Executed by:
  • tst_QSettings
328
194 key.truncate(slashPos);-
195 }
executed 2348 times by 6 tests: end of block
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
2348
196 }-
197 result.append(key.toString());-
198}
executed 33173 times by 28 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • ...
33173
199-
200void QSettingsPrivate::beginGroupOrArray(const QSettingsGroup &group)-
201{-
202 groupStack.push(group);-
203 const QString name = group.name();-
204 if (!name.isEmpty()
!name.isEmpty()Description
TRUEevaluated 1343 times by 6 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
  • tst_selftests - unknown status
FALSEevaluated 43 times by 1 test
Evaluated by:
  • tst_QSettings
)
43-1343
205 groupPrefix += name + QLatin1Char('/');
executed 1343 times by 6 tests: groupPrefix += name + QLatin1Char('/');
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
  • tst_selftests - unknown status
1343
206}
executed 1386 times by 6 tests: end of block
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
  • tst_selftests - unknown status
1386
207-
208-
209-
210-
211-
212-
213void QSettingsPrivate::setStatus(QSettings::Status status) const-
214{-
215 if (status == QSettings::NoError
status == QSettings::NoErrorDescription
TRUEnever evaluated
FALSEevaluated 44 times by 3 tests
Evaluated by:
  • tst_QIcon
  • tst_QSettings
  • tst_selftests - unknown status
|| this->status == QSettings::NoError
this->status =...tings::NoErrorDescription
TRUEevaluated 41 times by 3 tests
Evaluated by:
  • tst_QIcon
  • tst_QSettings
  • tst_selftests - unknown status
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QSettings
)
0-44
216 this->status = status;
executed 41 times by 3 tests: this->status = status;
Executed by:
  • tst_QIcon
  • tst_QSettings
  • tst_selftests - unknown status
41
217}
executed 44 times by 3 tests: end of block
Executed by:
  • tst_QIcon
  • tst_QSettings
  • tst_selftests - unknown status
44
218-
219void QSettingsPrivate::update()-
220{-
221 flush();-
222 pendingChanges = false;-
223}
executed 4 times by 1 test: end of block
Executed by:
  • tst_QSettings
4
224-
225void QSettingsPrivate::requestUpdate()-
226{-
227 if (!pendingChanges
!pendingChangesDescription
TRUEevaluated 567 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 2156 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
) {
567-2156
228 pendingChanges = true;-
229-
230 QSettings * const q = q_func();-
231 QCoreApplication::postEvent(q, new QEvent(QEvent::UpdateRequest));-
232-
233-
234-
235 }
executed 567 times by 6 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
567
236}
executed 2723 times by 6 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
2723
237-
238QStringList QSettingsPrivate::variantListToStringList(const QVariantList &l)-
239{-
240 QStringList result;-
241 result.reserve(l.count());-
242 QVariantList::const_iterator it = l.constBegin();-
243 for (; it != l.constEnd()
it != l.constEnd()Description
TRUEevaluated 1082 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 524 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
; ++it)
524-1082
244 result.append(variantToString(*it));
executed 1082 times by 6 tests: result.append(variantToString(*it));
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
1082
245 return
executed 524 times by 6 tests: return result;
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
result;
executed 524 times by 6 tests: return result;
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
524
246}-
247-
248QVariant QSettingsPrivate::stringListToVariantList(const QStringList &l)-
249{-
250 QStringList outStringList = l;-
251 for (int i = 0; i < outStringList.count()
i < outStringList.count()Description
TRUEevaluated 8740 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 47 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
; ++i) {
47-8740
252 const QString &str = outStringList.at(i);-
253-
254 if (str.startsWith(QLatin1Char('@'))
str.startsWith...tin1Char('@'))Description
TRUEevaluated 34 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 8706 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
34-8706
255 if (str.length() >= 2
str.length() >= 2Description
TRUEevaluated 34 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEnever evaluated
&& str.at(1) == QLatin1Char('@')
str.at(1) == QLatin1Char('@')Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 30 times by 1 test
Evaluated by:
  • tst_QSettings
) {
0-34
256 outStringList[i].remove(0, 1);-
257 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_QSettings
else {
4
258 QVariantList variantList;-
259 const int stringCount = l.count();-
260 variantList.reserve(stringCount);-
261 for (int j = 0; j < stringCount
j < stringCountDescription
TRUEevaluated 258 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 30 times by 1 test
Evaluated by:
  • tst_QSettings
; ++j)
30-258
262 variantList.append(stringToVariant(l.at(j)));
executed 258 times by 1 test: variantList.append(stringToVariant(l.at(j)));
Executed by:
  • tst_QSettings
258
263 return
executed 30 times by 1 test: return variantList;
Executed by:
  • tst_QSettings
variantList;
executed 30 times by 1 test: return variantList;
Executed by:
  • tst_QSettings
30
264 }-
265 }-
266 }
executed 8710 times by 28 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
8710
267 return
executed 47 times by 28 tests: return outStringList;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
outStringList;
executed 47 times by 28 tests: return outStringList;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
47
268}-
269-
270QString QSettingsPrivate::variantToString(const QVariant &v)-
271{-
272 QString result;-
273-
274 switch (v.type()) {-
275 case
never executed: case QVariant::Invalid:
QVariant::Invalid:
never executed: case QVariant::Invalid:
0
276 result = QLatin1String("@Invalid()");-
277 break;
never executed: break;
0
278-
279 case
executed 253 times by 6 tests: case QVariant::ByteArray:
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
QVariant::ByteArray:
executed 253 times by 6 tests: case QVariant::ByteArray:
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
{
253
280 QByteArray a = v.toByteArray();-
281 result = QLatin1String("@ByteArray(")-
282 + QLatin1String(a.constData(), a.size())-
283 + QLatin1Char(')');-
284 break;
executed 253 times by 6 tests: break;
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
253
285 }-
286-
287 case
executed 1867 times by 6 tests: case QVariant::String:
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
QVariant::String:
executed 1867 times by 6 tests: case QVariant::String:
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
1867
288 case
never executed: case QVariant::LongLong:
QVariant::LongLong:
never executed: case QVariant::LongLong:
0
289 case
never executed: case QVariant::ULongLong:
QVariant::ULongLong:
never executed: case QVariant::ULongLong:
0
290 case
executed 631 times by 5 tests: case QVariant::Int:
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
QVariant::Int:
executed 631 times by 5 tests: case QVariant::Int:
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
631
291 case
executed 96 times by 2 tests: case QVariant::UInt:
Executed by:
  • tst_QColorDialog
  • tst_languageChange
QVariant::UInt:
executed 96 times by 2 tests: case QVariant::UInt:
Executed by:
  • tst_QColorDialog
  • tst_languageChange
96
292 case
executed 4 times by 1 test: case QVariant::Bool:
Executed by:
  • tst_QSettings
QVariant::Bool:
executed 4 times by 1 test: case QVariant::Bool:
Executed by:
  • tst_QSettings
4
293 case
never executed: case QVariant::Double:
QVariant::Double:
never executed: case QVariant::Double:
0
294 case
executed 2 times by 1 test: case QVariant::KeySequence:
Executed by:
  • tst_QSettings
QVariant::KeySequence:
executed 2 times by 1 test: case QVariant::KeySequence:
Executed by:
  • tst_QSettings
{
2
295 result = v.toString();-
296 if (result.contains(QChar::Null)
result.contains(QChar::Null)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 2598 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
)
2-2598
297 result = QLatin1String("@String(") + result + QLatin1Char(')');
executed 2 times by 1 test: result = QLatin1String("@String(") + result + QLatin1Char(')');
Executed by:
  • tst_QSettings
2
298 else if (result.startsWith(QLatin1Char('@'))
result.startsW...tin1Char('@'))Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 2591 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
)
7-2591
299 result.prepend(QLatin1Char('@'));
executed 7 times by 1 test: result.prepend(QLatin1Char('@'));
Executed by:
  • tst_QSettings
7
300 break;
executed 2600 times by 6 tests: break;
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
2600
301 }-
302-
303 case
executed 43 times by 1 test: case QVariant::Rect:
Executed by:
  • tst_QSettings
QVariant::Rect:
executed 43 times by 1 test: case QVariant::Rect:
Executed by:
  • tst_QSettings
{
43
304 QRect r = qvariant_cast<QRect>(v);-
305 result = QString::asprintf("@Rect(%d %d %d %d)", r.x(), r.y(), r.width(), r.height());-
306 break;
executed 43 times by 1 test: break;
Executed by:
  • tst_QSettings
43
307 }-
308 case
executed 41 times by 1 test: case QVariant::Size:
Executed by:
  • tst_QSettings
QVariant::Size:
executed 41 times by 1 test: case QVariant::Size:
Executed by:
  • tst_QSettings
{
41
309 QSize s = qvariant_cast<QSize>(v);-
310 result = QString::asprintf("@Size(%d %d)", s.width(), s.height());-
311 break;
executed 41 times by 1 test: break;
Executed by:
  • tst_QSettings
41
312 }-
313 case
executed 39 times by 1 test: case QVariant::Point:
Executed by:
  • tst_QSettings
QVariant::Point:
executed 39 times by 1 test: case QVariant::Point:
Executed by:
  • tst_QSettings
{
39
314 QPoint p = qvariant_cast<QPoint>(v);-
315 result = QString::asprintf("@Point(%d %d)", p.x(), p.y());-
316 break;
executed 39 times by 1 test: break;
Executed by:
  • tst_QSettings
39
317 }-
318-
319-
320 default
executed 176 times by 1 test: default:
Executed by:
  • tst_QSettings
:
executed 176 times by 1 test: default:
Executed by:
  • tst_QSettings
{
176
321-
322 QDataStream::Version version;-
323 const char *typeSpec;-
324 if (v.type() == QVariant::DateTime
v.type() == QVariant::DateTimeDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 172 times by 1 test
Evaluated by:
  • tst_QSettings
) {
4-172
325 version = QDataStream::Qt_5_6;-
326 typeSpec = "@DateTime(";-
327 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_QSettings
else {
4
328 version = QDataStream::Qt_4_0;-
329 typeSpec = "@Variant(";-
330 }
executed 172 times by 1 test: end of block
Executed by:
  • tst_QSettings
172
331 QByteArray a;-
332 {-
333 QDataStream s(&a, QIODevice::WriteOnly);-
334 s.setVersion(version);-
335 s << v;-
336 }-
337-
338 result = QLatin1String(typeSpec)-
339 + QLatin1String(a.constData(), a.size())-
340 + QLatin1Char(')');-
341-
342-
343-
344 break;
executed 176 times by 1 test: break;
Executed by:
  • tst_QSettings
176
345 }-
346 }-
347-
348 return
executed 3152 times by 6 tests: return result;
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
result;
executed 3152 times by 6 tests: return result;
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
3152
349}-
350-
351-
352QVariant QSettingsPrivate::stringToVariant(const QString &s)-
353{-
354 if (s.startsWith(QLatin1Char('@'))
s.startsWith(QLatin1Char('@'))Description
TRUEevaluated 314 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 30061 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
314-30061
355 if (s.endsWith(QLatin1Char(')'))
s.endsWith(QLatin1Char(')'))Description
TRUEevaluated 307 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QSettings
) {
7-307
356 if (s.startsWith(QLatin1String("@ByteArray("))
s.startsWith(Q...@ByteArray("))Description
TRUEevaluated 13 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 294 times by 1 test
Evaluated by:
  • tst_QSettings
) {
13-294
357 return
executed 13 times by 4 tests: return QVariant(s.midRef(11, s.size() - 12).toLatin1());
Executed by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
QVariant(s.midRef(11, s.size() - 12).toLatin1());
executed 13 times by 4 tests: return QVariant(s.midRef(11, s.size() - 12).toLatin1());
Executed by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
13
358 } else if (s.startsWith(QLatin1String("@String("))
s.startsWith(Q...g("@String("))Description
TRUEnever evaluated
FALSEevaluated 294 times by 1 test
Evaluated by:
  • tst_QSettings
) {
0-294
359 return
never executed: return QVariant(s.midRef(8, s.size() - 9).toString());
QVariant(s.midRef(8, s.size() - 9).toString());
never executed: return QVariant(s.midRef(8, s.size() - 9).toString());
0
360 } else if (s.startsWith(QLatin1String("@Variant("))
s.startsWith(Q...("@Variant("))Description
TRUEevaluated 163 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 131 times by 1 test
Evaluated by:
  • tst_QSettings
131-163
361 || s.startsWith(QLatin1String("@DateTime("))
s.startsWith(Q..."@DateTime("))Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 127 times by 1 test
Evaluated by:
  • tst_QSettings
) {
4-127
362-
363 QDataStream::Version version;-
364 int offset;-
365 if (s.at(1) == QLatin1Char('D')
s.at(1) == QLatin1Char('D')Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 163 times by 1 test
Evaluated by:
  • tst_QSettings
) {
4-163
366 version = QDataStream::Qt_5_6;-
367 offset = 10;-
368 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_QSettings
else {
4
369 version = QDataStream::Qt_4_0;-
370 offset = 9;-
371 }
executed 163 times by 1 test: end of block
Executed by:
  • tst_QSettings
163
372 QByteArray a = s.midRef(offset).toLatin1();-
373 QDataStream stream(&a, QIODevice::ReadOnly);-
374 stream.setVersion(version);-
375 QVariant result;-
376 stream >> result;-
377 return
executed 167 times by 1 test: return result;
Executed by:
  • tst_QSettings
result;
executed 167 times by 1 test: return result;
Executed by:
  • tst_QSettings
167
378-
379-
380-
381-
382 } else if (s.startsWith(QLatin1String("@Rect("))
s.startsWith(Q...ing("@Rect("))Description
TRUEevaluated 45 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 82 times by 1 test
Evaluated by:
  • tst_QSettings
) {
45-82
383 QStringList args = QSettingsPrivate::splitArgs(s, 5);-
384 if (args.size() == 4
args.size() == 4Description
TRUEevaluated 43 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QSettings
)
2-43
385 return
executed 43 times by 1 test: return QVariant(QRect(args[0].toInt(), args[1].toInt(), args[2].toInt(), args[3].toInt()));
Executed by:
  • tst_QSettings
QVariant(QRect(args[0].toInt(), args[1].toInt(), args[2].toInt(), args[3].toInt()));
executed 43 times by 1 test: return QVariant(QRect(args[0].toInt(), args[1].toInt(), args[2].toInt(), args[3].toInt()));
Executed by:
  • tst_QSettings
43
386 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QSettings
else if (s.startsWith(QLatin1String("@Size("))
s.startsWith(Q...ing("@Size("))Description
TRUEevaluated 41 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 41 times by 1 test
Evaluated by:
  • tst_QSettings
) {
2-41
387 QStringList args = QSettingsPrivate::splitArgs(s, 5);-
388 if (args.size() == 2
args.size() == 2Description
TRUEevaluated 41 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEnever evaluated
)
0-41
389 return
executed 41 times by 1 test: return QVariant(QSize(args[0].toInt(), args[1].toInt()));
Executed by:
  • tst_QSettings
QVariant(QSize(args[0].toInt(), args[1].toInt()));
executed 41 times by 1 test: return QVariant(QSize(args[0].toInt(), args[1].toInt()));
Executed by:
  • tst_QSettings
41
390 }
never executed: end of block
else if (s.startsWith(QLatin1String("@Point("))
s.startsWith(Q...ng("@Point("))Description
TRUEevaluated 39 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QSettings
) {
0-39
391 QStringList args = QSettingsPrivate::splitArgs(s, 6);-
392 if (args.size() == 2
args.size() == 2Description
TRUEevaluated 39 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEnever evaluated
)
0-39
393 return
executed 39 times by 1 test: return QVariant(QPoint(args[0].toInt(), args[1].toInt()));
Executed by:
  • tst_QSettings
QVariant(QPoint(args[0].toInt(), args[1].toInt()));
executed 39 times by 1 test: return QVariant(QPoint(args[0].toInt(), args[1].toInt()));
Executed by:
  • tst_QSettings
39
394-
395 }
never executed: end of block
else if (s == QLatin1String("@Invalid()")
s == QLatin1St...("@Invalid()")Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QSettings
) {
0-2
396 return
never executed: return QVariant();
QVariant();
never executed: return QVariant();
0
397 }-
398-
399 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_QSettings
4
400 if (s.startsWith(QLatin1String("@@"))
s.startsWith(Q...1String("@@"))Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QSettings
)
5-6
401 return
executed 5 times by 1 test: return QVariant(s.mid(1));
Executed by:
  • tst_QSettings
QVariant(s.mid(1));
executed 5 times by 1 test: return QVariant(s.mid(1));
Executed by:
  • tst_QSettings
5
402 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_QSettings
6
403-
404 return
executed 30067 times by 29 tests: return QVariant(s);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
QVariant(s);
executed 30067 times by 29 tests: return QVariant(s);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
30067
405}-
406-
407static const char hexDigits[] = "0123456789ABCDEF";-
408-
409void QSettingsPrivate::iniEscapedKey(const QString &key, QByteArray &result)-
410{-
411 result.reserve(result.length() + key.length() * 3 / 2);-
412 for (int i = 0; i < key.size()
i < key.size()Description
TRUEevaluated 26033 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 3018 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
; ++i) {
3018-26033
413 uint ch = key.at(i).unicode();-
414-
415 if (ch == '/'
ch == '/'Description
TRUEevaluated 448 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 25585 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
) {
448-25585
416 result += '\\';-
417 }
executed 448 times by 4 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
else if ((ch >= 'a'
ch >= 'a'Description
TRUEevaluated 22389 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 3196 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
&& ch <= 'z'
ch <= 'z'Description
TRUEevaluated 22376 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 13 times by 1 test
Evaluated by:
  • tst_QSettings
) || (ch >= 'A'
ch >= 'A'Description
TRUEevaluated 2152 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 1057 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
&& ch <= 'Z'
ch <= 'Z'Description
TRUEevaluated 2130 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_QSettings
) || (ch >= '0'
ch >= '0'Description
TRUEevaluated 975 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 104 times by 1 test
Evaluated by:
  • tst_QSettings
&& ch <= '9'
ch <= '9'Description
TRUEevaluated 947 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 28 times by 1 test
Evaluated by:
  • tst_QSettings
)
13-22389
418 || ch == '_'
ch == '_'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 131 times by 1 test
Evaluated by:
  • tst_QSettings
|| ch == '-'
ch == '-'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 130 times by 1 test
Evaluated by:
  • tst_QSettings
|| ch == '.'
ch == '.'Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 127 times by 1 test
Evaluated by:
  • tst_QSettings
) {
1-131
419 result += (char)ch;-
420 }
executed 25458 times by 6 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
else if (ch <= 0xFF
ch <= 0xFFDescription
TRUEevaluated 122 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QSettings
) {
5-25458
421 result += '%';-
422 result += hexDigits[ch / 16];-
423 result += hexDigits[ch % 16];-
424 }
executed 122 times by 1 test: end of block
Executed by:
  • tst_QSettings
else {
122
425 result += "%U";-
426 QByteArray hexCode;-
427 for (int i = 0; i < 4
i < 4Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QSettings
; ++i) {
5-20
428 hexCode.prepend(hexDigits[ch % 16]);-
429 ch >>= 4;-
430 }
executed 20 times by 1 test: end of block
Executed by:
  • tst_QSettings
20
431 result += hexCode;-
432 }
executed 5 times by 1 test: end of block
Executed by:
  • tst_QSettings
5
433 }-
434}
executed 3018 times by 6 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
3018
435-
436bool QSettingsPrivate::iniUnescapedKey(const QByteArray &key, int from, int to, QString &result)-
437{-
438 bool lowercaseOnly = true;-
439 int i = from;-
440 result.reserve(result.length() + (to - from));-
441 while (i < to
i < toDescription
TRUEevaluated 296440 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 39012 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
39012-296440
442 int ch = (uchar)key.at(i);-
443-
444 if (ch == '\\'
ch == '\\'Description
TRUEevaluated 227 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 296213 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
227-296213
445 result += QLatin1Char('/');-
446 ++i;-
447 continue;
executed 227 times by 4 tests: continue;
Executed by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
227
448 }-
449-
450 if (ch != '%'
ch != '%'Description
TRUEevaluated 296144 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 69 times by 1 test
Evaluated by:
  • tst_QSettings
|| i == to - 1
i == to - 1Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 67 times by 1 test
Evaluated by:
  • tst_QSettings
) {
2-296144
451 if (uint(ch - 'A') <= 'Z' - 'A'
uint(ch - 'A') <= 'Z' - 'A'Description
TRUEevaluated 33706 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 262440 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
)
33706-262440
452 lowercaseOnly = false;
executed 33706 times by 29 tests: lowercaseOnly = false;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
33706
453 result += QLatin1Char(ch);-
454 ++i;-
455 continue;
executed 296146 times by 29 tests: continue;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
296146
456 }-
457-
458 int numDigits = 2;-
459 int firstDigitPos = i + 1;-
460-
461 ch = key.at(i + 1);-
462 if (ch == 'U'
ch == 'U'Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 58 times by 1 test
Evaluated by:
  • tst_QSettings
) {
9-58
463 ++firstDigitPos;-
464 numDigits = 4;-
465 }
executed 9 times by 1 test: end of block
Executed by:
  • tst_QSettings
9
466-
467 if (firstDigitPos + numDigits > to
firstDigitPos + numDigits > toDescription
TRUEnever evaluated
FALSEevaluated 67 times by 1 test
Evaluated by:
  • tst_QSettings
) {
0-67
468 result += QLatin1Char('%');-
469-
470 ++i;-
471 continue;
never executed: continue;
0
472 }-
473-
474 bool ok;-
475 ch = key.mid(firstDigitPos, numDigits).toInt(&ok, 16);-
476 if (!ok
!okDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 57 times by 1 test
Evaluated by:
  • tst_QSettings
) {
10-57
477 result += QLatin1Char('%');-
478-
479 ++i;-
480 continue;
executed 10 times by 1 test: continue;
Executed by:
  • tst_QSettings
10
481 }-
482-
483 QChar qch(ch);-
484 if (qch.isUpper()
qch.isUpper()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 54 times by 1 test
Evaluated by:
  • tst_QSettings
)
3-54
485 lowercaseOnly = false;
executed 3 times by 1 test: lowercaseOnly = false;
Executed by:
  • tst_QSettings
3
486 result += qch;-
487 i = firstDigitPos + numDigits;-
488 }
executed 57 times by 1 test: end of block
Executed by:
  • tst_QSettings
57
489 return
executed 39012 times by 29 tests: return lowercaseOnly;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
lowercaseOnly;
executed 39012 times by 29 tests: return lowercaseOnly;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
39012
490}-
491-
492void QSettingsPrivate::iniEscapedString(const QString &str, QByteArray &result, QTextCodec *codec)-
493{-
494 bool needsQuotes = false;-
495 bool escapeNextIfDigit = false;-
496 bool useCodec = codec
codecDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 3175 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
&& !str.startsWith(QLatin1String("@ByteArray("))
!str.startsWit...@ByteArray("))Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QSettings
1-3175
497 && !str.startsWith(QLatin1String("@Variant("))
!str.startsWit...("@Variant("))Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEnever evaluated
;
0-2
498-
499 int i;-
500 int startPos = result.size();-
501-
502 result.reserve(startPos + str.size() * 3 / 2);-
503 const QChar *unicode = str.unicode();-
504 for (i = 0; i < str.size()
i < str.size()Description
TRUEevaluated 89650 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 3178 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
; ++i) {
3178-89650
505 uint ch = unicode[i].unicode();-
506 if (ch == ';'
ch == ';'Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 89647 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
|| ch == ','
ch == ','Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 89642 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
|| ch == '='
ch == '='Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 89639 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
)
3-89647
507 needsQuotes = true;
executed 11 times by 1 test: needsQuotes = true;
Executed by:
  • tst_QSettings
11
508-
509 if (escapeNextIfDigit
escapeNextIfDigitDescription
TRUEevaluated 37254 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 52396 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
37254-52396
510 && ((ch >= '0'
ch >= '0'Description
TRUEevaluated 5496 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 31758 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
&& ch <= '9'
ch <= '9'Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 5480 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
)
16-31758
511 || (ch >= 'a'
ch >= 'a'Description
TRUEevaluated 4895 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 32343 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
&& ch <= 'f'
ch <= 'f'Description
TRUEevaluated 824 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 4071 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
)
824-32343
512 || (ch >= 'A'
ch >= 'A'Description
TRUEevaluated 4655 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 31759 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
&& ch <= 'F'
ch <= 'F'Description
TRUEevaluated 527 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 4128 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
))) {
527-31759
513 result += "\\x" + QByteArray::number(ch, 16);-
514 continue;
executed 1367 times by 6 tests: continue;
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
1367
515 }-
516-
517 escapeNextIfDigit = false;-
518-
519 switch (ch) {-
520 case
executed 28726 times by 6 tests: case '\0':
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
'\0':
executed 28726 times by 6 tests: case '\0':
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
28726
521 result += "\\0";-
522 escapeNextIfDigit = true;-
523 break;
executed 28726 times by 6 tests: break;
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
28726
524 case
executed 3 times by 1 test: case '\a':
Executed by:
  • tst_QSettings
'\a':
executed 3 times by 1 test: case '\a':
Executed by:
  • tst_QSettings
3
525 result += "\\a";-
526 break;
executed 3 times by 1 test: break;
Executed by:
  • tst_QSettings
3
527 case
executed 125 times by 1 test: case '\b':
Executed by:
  • tst_QSettings
'\b':
executed 125 times by 1 test: case '\b':
Executed by:
  • tst_QSettings
125
528 result += "\\b";-
529 break;
executed 125 times by 1 test: break;
Executed by:
  • tst_QSettings
125
530 case
executed 4 times by 1 test: case '\f':
Executed by:
  • tst_QSettings
'\f':
executed 4 times by 1 test: case '\f':
Executed by:
  • tst_QSettings
4
531 result += "\\f";-
532 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_QSettings
4
533 case
executed 229 times by 1 test: case '\n':
Executed by:
  • tst_QSettings
'\n':
executed 229 times by 1 test: case '\n':
Executed by:
  • tst_QSettings
229
534 result += "\\n";-
535 break;
executed 229 times by 1 test: break;
Executed by:
  • tst_QSettings
229
536 case
executed 4 times by 1 test: case '\r':
Executed by:
  • tst_QSettings
'\r':
executed 4 times by 1 test: case '\r':
Executed by:
  • tst_QSettings
4
537 result += "\\r";-
538 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_QSettings
4
539 case
executed 28 times by 1 test: case '\t':
Executed by:
  • tst_QSettings
'\t':
executed 28 times by 1 test: case '\t':
Executed by:
  • tst_QSettings
28
540 result += "\\t";-
541 break;
executed 28 times by 1 test: break;
Executed by:
  • tst_QSettings
28
542 case
executed 8 times by 1 test: case '\v':
Executed by:
  • tst_QSettings
'\v':
executed 8 times by 1 test: case '\v':
Executed by:
  • tst_QSettings
8
543 result += "\\v";-
544 break;
executed 8 times by 1 test: break;
Executed by:
  • tst_QSettings
8
545 case
executed 3 times by 1 test: case '"':
Executed by:
  • tst_QSettings
'"':
executed 3 times by 1 test: case '"':
Executed by:
  • tst_QSettings
3
546 case
executed 4 times by 1 test: case '\\':
Executed by:
  • tst_QSettings
'\\':
executed 4 times by 1 test: case '\\':
Executed by:
  • tst_QSettings
4
547 result += '\\';-
548 result += (char)ch;-
549 break;
executed 7 times by 1 test: break;
Executed by:
  • tst_QSettings
7
550 default
executed 59149 times by 6 tests: default:
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
:
executed 59149 times by 6 tests: default:
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
59149
551 if (ch <= 0x1F
ch <= 0x1FDescription
TRUEevaluated 3671 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 55478 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
|| (ch >= 0x7F
ch >= 0x7FDescription
TRUEevaluated 3498 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 51980 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
&& !useCodec
!useCodecDescription
TRUEevaluated 3494 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QSettings
)) {
4-55478
552 result += "\\x" + QByteArray::number(ch, 16);-
553 escapeNextIfDigit = true;-
554-
555 }
executed 7165 times by 6 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
else if (useCodec
useCodecDescription
TRUEevaluated 26 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 51958 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
) {
26-51958
556-
557 result += codec->fromUnicode(&unicode[i], 1);-
558-
559 }
executed 26 times by 1 test: end of block
Executed by:
  • tst_QSettings
else {
26
560 result += (char)ch;-
561 }
executed 51958 times by 6 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
51958
562 }-
563 }-
564-
565 if (needsQuotes
needsQuotesDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 3170 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
8-3170
566 || (startPos < result.size()
startPos < result.size()Description
TRUEevaluated 3134 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 36 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QSettings
  • tst_languageChange
&& (result.at(startPos) == ' '
result.at(startPos) == ' 'Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 3131 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
3-3134
567 || result.at(result.size() - 1) == ' '
result.at(resu...() - 1) == ' 'Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 3128 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
))) {
3-3128
568 result.insert(startPos, '"');-
569 result += '"';-
570 }
executed 14 times by 1 test: end of block
Executed by:
  • tst_QSettings
14
571}
executed 3178 times by 6 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
3178
572-
573inline static void iniChopTrailingSpaces(QString &str, int limit)-
574{-
575 int n = str.size() - 1;-
576 QChar ch;-
577 while (n >= limit
n >= limitDescription
TRUEevaluated 39027 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 28 times by 3 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
&& ((
(ch = str.at(n...atin1Char(' ')Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 39015 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
ch = str.at(n)) == QLatin1Char(' ')
(ch = str.at(n...atin1Char(' ')Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 39015 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
|| ch == QLatin1Char('\t')
ch == QLatin1Char('\t')Description
TRUEnever evaluated
FALSEevaluated 39015 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
))
0-39027
578 str.truncate(n--);
executed 12 times by 1 test: str.truncate(n--);
Executed by:
  • tst_QSettings
12
579}
executed 39043 times by 29 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
39043
580-
581void QSettingsPrivate::iniEscapedStringList(const QStringList &strs, QByteArray &result, QTextCodec *codec)-
582{-
583 if (strs.isEmpty()
strs.isEmpty()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 541 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
) {
4-541
584 result += "@Invalid()";-
585 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_QSettings
else {
4
586 for (int i = 0; i < strs.size()
i < strs.size()Description
TRUEevaluated 1119 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 541 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
; ++i) {
541-1119
587 if (i != 0
i != 0Description
TRUEevaluated 578 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 541 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
)
541-578
588 result += ", ";
executed 578 times by 6 tests: result += ", ";
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
578
589 iniEscapedString(strs.at(i), result, codec);-
590 }
executed 1119 times by 6 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
1119
591 }
executed 541 times by 6 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
541
592}-
593-
594bool QSettingsPrivate::iniUnescapedStringList(const QByteArray &str, int from, int to,-
595 QString &stringResult, QStringList &stringListResult,-
596 QTextCodec *codec)-
597{-
598 static const char escapeCodes[][2] =-
599 {-
600 { 'a', '\a' },-
601 { 'b', '\b' },-
602 { 'f', '\f' },-
603 { 'n', '\n' },-
604 { 'r', '\r' },-
605 { 't', '\t' },-
606 { 'v', '\v' },-
607 { '"', '"' },-
608 { '?', '?' },-
609 { '\'', '\'' },-
610 { '\\', '\\' }-
611 };-
612 static const int numEscapeCodes = sizeof(escapeCodes) / sizeof(escapeCodes[0]);-
613-
614 bool isStringList = false;-
615 bool inQuotedString = false;-
616 bool currentValueIsQuoted = false;-
617 int escapeVal = 0;-
618 int i = from;-
619 char ch;-
620-
621StSkipSpaces:
code before this statement executed 30201 times by 29 tests: StSkipSpaces:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
30201
622 while (i < to
i < toDescription
TRUEevaluated 39358 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 20 times by 3 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
&& ((
(ch = str.at(i)) == ' 'Description
TRUEevaluated 283 times by 5 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 39075 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
ch = str.at(i)) == ' '
(ch = str.at(i)) == ' 'Description
TRUEevaluated 283 times by 5 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 39075 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
|| ch == '\t'
ch == '\t'Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 39073 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
))
2-39358
623 ++
executed 285 times by 5 tests: ++i;
Executed by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QSettings
  • tst_languageChange
i;
executed 285 times by 5 tests: ++i;
Executed by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QSettings
  • tst_languageChange
285
624-
625-
626StNormal:
code before this statement executed 39093 times by 29 tests: StNormal:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
39093
627 int chopLimit = stringResult.length();-
628 while (i < to
i < toDescription
TRUEevaluated 54203 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 30195 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
30195-54203
629 switch (str.at(i)) {-
630 case
executed 5581 times by 4 tests: case '\\':
Executed by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
'\\':
executed 5581 times by 4 tests: case '\\':
Executed by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
5581
631 ++i;-
632 if (i >= to
i >= toDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 5578 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
)
3-5578
633 goto
executed 3 times by 1 test: goto end;
Executed by:
  • tst_QSettings
end;
executed 3 times by 1 test: goto end;
Executed by:
  • tst_QSettings
3
634-
635 ch = str.at(i++);-
636 for (int j = 0; j < numEscapeCodes
j < numEscapeCodesDescription
TRUEevaluated 58744 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 5228 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
; ++j) {
5228-58744
637 if (ch == escapeCodes[j][0]
ch == escapeCodes[j][0]Description
TRUEevaluated 350 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 58394 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
) {
350-58394
638 stringResult += QLatin1Char(escapeCodes[j][1]);-
639 goto
executed 350 times by 1 test: goto StNormal;
Executed by:
  • tst_QSettings
StNormal;
executed 350 times by 1 test: goto StNormal;
Executed by:
  • tst_QSettings
350
640 }-
641 }
executed 58394 times by 4 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
58394
642-
643 if (ch == 'x'
ch == 'x'Description
TRUEevaluated 1686 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 3542 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
) {
1686-3542
644 escapeVal = 0;-
645-
646 if (i >= to
i >= toDescription
TRUEnever evaluated
FALSEevaluated 1686 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
)
0-1686
647 goto
never executed: goto end;
end;
never executed: goto end;
0
648-
649 ch = str.at(i);-
650 if ((ch >= '0'
ch >= '0'Description
TRUEevaluated 1686 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEnever evaluated
&& ch <= '9'
ch <= '9'Description
TRUEevaluated 1419 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 267 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
) || (ch >= 'A'
ch >= 'A'Description
TRUEevaluated 267 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEnever evaluated
&& ch <= 'F'
ch <= 'F'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 266 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
) || (ch >= 'a'
ch >= 'a'Description
TRUEevaluated 265 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QSettings
&& ch <= 'f'
ch <= 'f'Description
TRUEevaluated 265 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEnever evaluated
))
0-1686
651 goto
executed 1685 times by 4 tests: goto StHexEscape;
Executed by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
StHexEscape;
executed 1685 times by 4 tests: goto StHexEscape;
Executed by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
1685
652 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QSettings
else if (ch >= '0'
ch >= '0'Description
TRUEevaluated 3527 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 15 times by 1 test
Evaluated by:
  • tst_QSettings
&& ch <= '7'
ch <= '7'Description
TRUEevaluated 3523 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QSettings
) {
1-3527
653 escapeVal = ch - '0';-
654 goto
executed 3523 times by 4 tests: goto StOctEscape;
Executed by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
StOctEscape;
executed 3523 times by 4 tests: goto StOctEscape;
Executed by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
3523
655 } else if (ch == '\n'
ch == '\n'Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 13 times by 1 test
Evaluated by:
  • tst_QSettings
|| ch == '\r'
ch == '\r'Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QSettings
) {
6-13
656 if (i < to
i < toDescription
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QSettings
) {
5-7
657 char ch2 = str.at(i);-
658-
659 if ((ch2 == '\n'
ch2 == '\n'Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QSettings
|| ch2 == '\r'
ch2 == '\r'Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QSettings
) && ch2 != ch
ch2 != chDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEnever evaluated
)
0-5
660 ++
executed 5 times by 1 test: ++i;
Executed by:
  • tst_QSettings
i;
executed 5 times by 1 test: ++i;
Executed by:
  • tst_QSettings
5
661 }
executed 7 times by 1 test: end of block
Executed by:
  • tst_QSettings
7
662 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_QSettings
else {
12
663-
664 }
executed 7 times by 1 test: end of block
Executed by:
  • tst_QSettings
7
665 chopLimit = stringResult.length();-
666 break;
executed 20 times by 1 test: break;
Executed by:
  • tst_QSettings
20
667 case
executed 44 times by 1 test: case '"':
Executed by:
  • tst_QSettings
'"':
executed 44 times by 1 test: case '"':
Executed by:
  • tst_QSettings
44
668 ++i;-
669 currentValueIsQuoted = true;-
670 inQuotedString = !inQuotedString;-
671 if (!inQuotedString
!inQuotedStringDescription
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 24 times by 1 test
Evaluated by:
  • tst_QSettings
)
20-24
672 goto
executed 20 times by 1 test: goto StSkipSpaces;
Executed by:
  • tst_QSettings
StSkipSpaces;
executed 20 times by 1 test: goto StSkipSpaces;
Executed by:
  • tst_QSettings
20
673 break;
executed 24 times by 1 test: break;
Executed by:
  • tst_QSettings
24
674 case
executed 8876 times by 28 tests: case ',':
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
',':
executed 8876 times by 28 tests: case ',':
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
8876
675 if (!inQuotedString
!inQuotedStringDescription
TRUEevaluated 8872 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QSettings
) {
4-8872
676 if (!currentValueIsQuoted
!currentValueIsQuotedDescription
TRUEevaluated 8863 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_QSettings
)
9-8863
677 iniChopTrailingSpaces(stringResult, chopLimit);
executed 8863 times by 28 tests: iniChopTrailingSpaces(stringResult, chopLimit);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
8863
678 if (!isStringList
!isStringListDescription
TRUEevaluated 82 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 8790 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
82-8790
679 isStringList = true;-
680 stringListResult.clear();-
681 stringResult.squeeze();-
682 }
executed 82 times by 28 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
82
683 stringListResult.append(stringResult);-
684 stringResult.clear();-
685 currentValueIsQuoted = false;-
686 ++i;-
687 goto
executed 8872 times by 28 tests: goto StSkipSpaces;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
StSkipSpaces;
executed 8872 times by 28 tests: goto StSkipSpaces;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
8872
688 }-
689-
690 default
executed 39706 times by 29 tests: default:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
:
executed 39706 times by 29 tests: default:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
code before this statement executed 4 times by 1 test: default:
Executed by:
  • tst_QSettings
{
4-39706
691 int j = i + 1;-
692 while (j < to
j < toDescription
TRUEevaluated 274077 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 30164 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
30164-274077
693 ch = str.at(j);-
694 if (ch == '\\'
ch == '\\'Description
TRUEevaluated 668 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 273409 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
|| ch == '"'
ch == '"'Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 273392 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
|| ch == ','
ch == ','Description
TRUEevaluated 8857 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 264535 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
)
17-273409
695 break;
executed 9542 times by 28 tests: break;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
9542
696 ++j;-
697 }
executed 264535 times by 29 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
264535
698-
699-
700-
701-
702 if (codec
codecDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 39702 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
4-39702
703 stringResult += codec->toUnicode(str.constData() + i, j - i);-
704 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_QSettings
else
4
705-
706 {-
707 int n = stringResult.size();-
708 stringResult.resize(n + (j - i));-
709 QChar *resultData = stringResult.data() + n;-
710 for (int k = i; k < j
k < jDescription
TRUEevaluated 304205 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 39702 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
; ++k)
39702-304205
711 *
executed 304205 times by 29 tests: *resultData++ = QLatin1Char(str.at(k));
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
resultData++ = QLatin1Char(str.at(k));
executed 304205 times by 29 tests: *resultData++ = QLatin1Char(str.at(k));
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
304205
712 }
executed 39702 times by 29 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
39702
713 i = j;-
714 }-
715 }
executed 39706 times by 29 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
39706
716 }-
717 if (!currentValueIsQuoted
!currentValueIsQuotedDescription
TRUEevaluated 30180 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 15 times by 1 test
Evaluated by:
  • tst_QSettings
)
15-30180
718 iniChopTrailingSpaces(stringResult, chopLimit);
executed 30180 times by 29 tests: iniChopTrailingSpaces(stringResult, chopLimit);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
30180
719 goto
executed 30195 times by 29 tests: goto end;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
end;
executed 30195 times by 29 tests: goto end;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
30195
720-
721StHexEscape:-
722 if (i >= to
i >= toDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 4346 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
) {
3-4346
723 stringResult += QChar(escapeVal);-
724 goto
executed 3 times by 1 test: goto end;
Executed by:
  • tst_QSettings
end;
executed 3 times by 1 test: goto end;
Executed by:
  • tst_QSettings
3
725 }-
726-
727 ch = str.at(i);-
728 if (ch >= 'a'
ch >= 'a'Description
TRUEevaluated 511 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 3835 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
)
511-3835
729 ch -= 'a' - 'A';
executed 511 times by 4 tests: ch -= 'a' - 'A';
Executed by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
511
730 if ((ch >= '0'
ch >= '0'Description
TRUEevaluated 4241 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 105 times by 3 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
&& ch <= '9'
ch <= '9'Description
TRUEevaluated 2148 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 2093 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
) || (ch >= 'A'
ch >= 'A'Description
TRUEevaluated 2093 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 105 times by 3 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
&& ch <= 'F'
ch <= 'F'Description
TRUEevaluated 516 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 1577 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
)) {
105-4241
731 escapeVal <<= 4;-
732 escapeVal += strchr(hexDigits, ch) - hexDigits;-
733 ++i;-
734 goto
executed 2664 times by 4 tests: goto StHexEscape;
Executed by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
StHexEscape;
executed 2664 times by 4 tests: goto StHexEscape;
Executed by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
2664
735 } else {-
736 stringResult += QChar(escapeVal);-
737 goto
executed 1682 times by 4 tests: goto StNormal;
Executed by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
StNormal;
executed 1682 times by 4 tests: goto StNormal;
Executed by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
1682
738 }-
739-
740StOctEscape:-
741 if (i >= to
i >= toDescription
TRUEnever evaluated
FALSEevaluated 3538 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
) {
0-3538
742 stringResult += QChar(escapeVal);-
743 goto
never executed: goto end;
end;
never executed: goto end;
0
744 }-
745-
746 ch = str.at(i);-
747 if (ch >= '0'
ch >= '0'Description
TRUEevaluated 3447 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 91 times by 2 tests
Evaluated by:
  • tst_QSettings
  • tst_languageChange
&& ch <= '7'
ch <= '7'Description
TRUEevaluated 15 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 3432 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
) {
15-3447
748 escapeVal <<= 3;-
749 escapeVal += ch - '0';-
750 ++i;-
751 goto
executed 15 times by 1 test: goto StOctEscape;
Executed by:
  • tst_QSettings
StOctEscape;
executed 15 times by 1 test: goto StOctEscape;
Executed by:
  • tst_QSettings
15
752 } else {-
753 stringResult += QChar(escapeVal);-
754 goto
executed 3523 times by 4 tests: goto StNormal;
Executed by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
StNormal;
executed 3523 times by 4 tests: goto StNormal;
Executed by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
3523
755 }-
756-
757end:-
758 if (isStringList
isStringListDescription
TRUEevaluated 82 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 30119 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
)
82-30119
759 stringListResult.append(stringResult);
executed 82 times by 28 tests: stringListResult.append(stringResult);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
82
760 return
executed 30201 times by 29 tests: return isStringList;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
isStringList;
executed 30201 times by 29 tests: return isStringList;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
30201
761}-
762-
763QStringList QSettingsPrivate::splitArgs(const QString &s, int idx)-
764{-
765 int l = s.length();-
766 ((!(l > 0)) ? qt_assert("l > 0",__FILE__,898) : qt_noop());-
767 ((!(s.at(idx) == QLatin1Char('('))) ? qt_assert("s.at(idx) == QLatin1Char('(')",__FILE__,899) : qt_noop());-
768 ((!(s.at(l - 1) == QLatin1Char(')'))) ? qt_assert("s.at(l - 1) == QLatin1Char(')')",__FILE__,900) : qt_noop());-
769-
770 QStringList result;-
771 QString item;-
772-
773 for (++idx; idx < l
idx < lDescription
TRUEevaluated 711 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 125 times by 1 test
Evaluated by:
  • tst_QSettings
; ++idx) {
125-711
774 QChar c = s.at(idx);-
775 if (c == QLatin1Char(')')
c == QLatin1Char(')')Description
TRUEevaluated 125 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 586 times by 1 test
Evaluated by:
  • tst_QSettings
) {
125-586
776 ((!(idx == l - 1)) ? qt_assert("idx == l - 1",__FILE__,908) : qt_noop());-
777 result.append(item);-
778 }
executed 125 times by 1 test: end of block
Executed by:
  • tst_QSettings
else if (c == QLatin1Char(' ')
c == QLatin1Char(' ')Description
TRUEevaluated 211 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 375 times by 1 test
Evaluated by:
  • tst_QSettings
) {
125-375
779 result.append(item);-
780 item.clear();-
781 }
executed 211 times by 1 test: end of block
Executed by:
  • tst_QSettings
else {
211
782 item.append(c);-
783 }
executed 375 times by 1 test: end of block
Executed by:
  • tst_QSettings
375
784 }-
785-
786 return
executed 125 times by 1 test: return result;
Executed by:
  • tst_QSettings
result;
executed 125 times by 1 test: return result;
Executed by:
  • tst_QSettings
125
787}-
788-
789-
790-
791-
792void QConfFileSettingsPrivate::initFormat()-
793{-
794 extension = (
(format == QSe...:NativeFormat)Description
TRUEevaluated 1179 times by 7 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
FALSEevaluated 497 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • ...
format == QSettings::NativeFormat)
(format == QSe...:NativeFormat)Description
TRUEevaluated 1179 times by 7 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
FALSEevaluated 497 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • ...
? QLatin1String(".conf") : QLatin1String(".ini");
497-1179
795 readFunc = 0;-
796 writeFunc = 0;-
797-
798-
799-
800 caseSensitivity = IniCaseSensitivity;-
801-
802-
803 if (format > QSettings::IniFormat
format > QSettings::IniFormatDescription
TRUEevaluated 176 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 1500 times by 31 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
176-1500
804 QMutexLocker locker(&settingsGlobalMutex);-
805 const CustomFormatVector *customFormatVector = customFormatVectorFunc();-
806-
807 int i = (int)format - (int)QSettings::CustomFormat1;-
808 if (i >= 0
i >= 0Description
TRUEevaluated 176 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEnever evaluated
&& i < customFormatVector->size()
i < customFormatVector->size()Description
TRUEevaluated 175 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QSettings
) {
0-176
809 QConfFileCustomFormat info = customFormatVector->at(i);-
810 extension = info.extension;-
811 readFunc = info.readFunc;-
812 writeFunc = info.writeFunc;-
813 caseSensitivity = info.caseSensitivity;-
814 }
executed 175 times by 1 test: end of block
Executed by:
  • tst_QSettings
175
815 }
executed 176 times by 1 test: end of block
Executed by:
  • tst_QSettings
176
816}
executed 1676 times by 31 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
1676
817-
818void QConfFileSettingsPrivate::initAccess()-
819{-
820 if (confFiles[spec]
confFiles[spec]Description
TRUEevaluated 1676 times by 31 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEnever evaluated
) {
0-1676
821 if (format > QSettings::IniFormat
format > QSettings::IniFormatDescription
TRUEevaluated 176 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 1500 times by 31 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
176-1500
822 if (!readFunc
!readFuncDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 175 times by 1 test
Evaluated by:
  • tst_QSettings
)
1-175
823 setStatus(QSettings::AccessError);
executed 1 time by 1 test: setStatus(QSettings::AccessError);
Executed by:
  • tst_QSettings
1
824 }
executed 176 times by 1 test: end of block
Executed by:
  • tst_QSettings
176
825 }
executed 1676 times by 31 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
1676
826-
827 sync();-
828}
executed 1676 times by 31 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
1676
829static inline int pathHashKey(QSettings::Format format, QSettings::Scope scope)-
830{-
831 return
executed 3453 times by 7 tests: return int((uint(format) << 1) | uint(scope == QSettings::SystemScope));
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
int((uint(format) << 1) | uint(scope == QSettings::SystemScope));
executed 3453 times by 7 tests: return int((uint(format) << 1) | uint(scope == QSettings::SystemScope));
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
3453
832}-
833-
834-
835static QString make_user_path()-
836{-
837 static constexpr QChar sep = QLatin1Char('/');-
838 return
executed 7 times by 7 tests: return QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + sep;
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + sep;
executed 7 times by 7 tests: return QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + sep;
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
7
839-
840}-
841-
842-
843static void initDefaultPaths(QMutexLocker *locker)-
844{-
845 PathHash *pathHash = pathHashFunc();-
846-
847 locker->unlock();-
848-
849-
850-
851-
852-
853-
854 QString systemPath = QLibraryInfo::location(QLibraryInfo::SettingsPath) + QLatin1Char('/');-
855-
856 locker->relock();-
857 if (pathHash->isEmpty()
pathHash->isEmpty()Description
TRUEevaluated 7 times by 7 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
FALSEnever evaluated
) {
0-7
858 const QString userPath = make_user_path();-
859 pathHash->insert(pathHashKey(QSettings::IniFormat, QSettings::UserScope), userPath);-
860 pathHash->insert(pathHashKey(QSettings::IniFormat, QSettings::SystemScope), systemPath);-
861-
862 pathHash->insert(pathHashKey(QSettings::NativeFormat, QSettings::UserScope), userPath);-
863 pathHash->insert(pathHashKey(QSettings::NativeFormat, QSettings::SystemScope), systemPath);-
864-
865-
866 }
executed 7 times by 7 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
7
867}
executed 7 times by 7 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
7
868-
869static QString getPath(QSettings::Format format, QSettings::Scope scope)-
870{-
871 ((!((int)QSettings::NativeFormat == 0)) ? qt_assert("(int)QSettings::NativeFormat == 0",__FILE__,1099) : qt_noop());-
872 ((!((int)QSettings::IniFormat == 1)) ? qt_assert("(int)QSettings::IniFormat == 1",__FILE__,1100) : qt_noop());-
873-
874 QMutexLocker locker(&settingsGlobalMutex);-
875 PathHash *pathHash = pathHashFunc();-
876 if (pathHash->isEmpty()
pathHash->isEmpty()Description
TRUEevaluated 6 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QTextFormat
  • tst_languageChange
FALSEevaluated 2743 times by 7 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
)
6-2743
877 initDefaultPaths(&locker);
executed 6 times by 6 tests: initDefaultPaths(&locker);
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QTextFormat
  • tst_languageChange
6
878-
879 QString result = pathHash->value(pathHashKey(format, scope));-
880 if (!result.isEmpty()
!result.isEmpty()Description
TRUEevaluated 2641 times by 7 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
FALSEevaluated 108 times by 1 test
Evaluated by:
  • tst_QSettings
)
108-2641
881 return
executed 2641 times by 7 tests: return result;
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
result;
executed 2641 times by 7 tests: return result;
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
2641
882-
883-
884 return
executed 108 times by 1 test: return pathHash->value(pathHashKey(QSettings::IniFormat, scope));
Executed by:
  • tst_QSettings
pathHash->value(pathHashKey(QSettings::IniFormat, scope));
executed 108 times by 1 test: return pathHash->value(pathHashKey(QSettings::IniFormat, scope));
Executed by:
  • tst_QSettings
108
885}-
886-
887QConfFileSettingsPrivate::QConfFileSettingsPrivate(QSettings::Format format,-
888 QSettings::Scope scope,-
889 const QString &organization,-
890 const QString &application)-
891 : QSettingsPrivate(format, scope, organization, application),-
892 nextPosition(0x40000000)-
893{-
894 int i;-
895 initFormat();-
896-
897 QString org = organization;-
898 if (org.isEmpty()
org.isEmpty()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 1420 times by 7 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
) {
8-1420
899 setStatus(QSettings::AccessError);-
900 org = QLatin1String("Unknown Organization");-
901 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_QSettings
8
902-
903 QString appFile = org + QDir::separator() + application + extension;-
904 QString orgFile = org + extension;-
905-
906 if (scope == QSettings::UserScope
scope == QSettings::UserScopeDescription
TRUEevaluated 1321 times by 7 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
FALSEevaluated 107 times by 1 test
Evaluated by:
  • tst_QSettings
) {
107-1321
907 QString userPath = getPath(format, QSettings::UserScope);-
908 if (!application.isEmpty()
!application.isEmpty()Description
TRUEevaluated 256 times by 2 tests
Evaluated by:
  • tst_QSettings
  • tst_QTextFormat
FALSEevaluated 1065 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
)
256-1065
909 confFiles[F_User | F_Application].reset(QConfFile::fromName(userPath + appFile, true));
executed 256 times by 2 tests: confFiles[F_User | F_Application].reset(QConfFile::fromName(userPath + appFile, true));
Executed by:
  • tst_QSettings
  • tst_QTextFormat
256
910 confFiles[F_User | F_Organization].reset(QConfFile::fromName(userPath + orgFile, true));-
911 }
executed 1321 times by 7 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
1321
912-
913 QString systemPath = getPath(format, QSettings::SystemScope);-
914 if (!application.isEmpty()
!application.isEmpty()Description
TRUEevaluated 298 times by 2 tests
Evaluated by:
  • tst_QSettings
  • tst_QTextFormat
FALSEevaluated 1130 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
)
298-1130
915 confFiles[F_System | F_Application].reset(QConfFile::fromName(systemPath + appFile, false));
executed 298 times by 2 tests: confFiles[F_System | F_Application].reset(QConfFile::fromName(systemPath + appFile, false));
Executed by:
  • tst_QSettings
  • tst_QTextFormat
298
916 confFiles[F_System | F_Organization].reset(QConfFile::fromName(systemPath + orgFile, false));-
917-
918 for (i = 0; i < NumConfFiles
i < NumConfFilesDescription
TRUEevaluated 2772 times by 7 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
FALSEnever evaluated
; ++i) {
0-2772
919 if (confFiles[i]
confFiles[i]Description
TRUEevaluated 1428 times by 7 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
FALSEevaluated 1344 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
) {
1344-1428
920 spec = i;-
921 break;
executed 1428 times by 7 tests: break;
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
1428
922 }-
923 }
executed 1344 times by 6 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
1344
924-
925 initAccess();-
926}
executed 1428 times by 7 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
1428
927-
928QConfFileSettingsPrivate::QConfFileSettingsPrivate(const QString &fileName,-
929 QSettings::Format format)-
930 : QSettingsPrivate(format),-
931 nextPosition(0x40000000)-
932{-
933 initFormat();-
934-
935 confFiles[0].reset(QConfFile::fromName(fileName, true));-
936-
937 initAccess();-
938}
executed 248 times by 29 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • ...
248
939-
940QConfFileSettingsPrivate::~QConfFileSettingsPrivate()-
941{-
942 QMutexLocker locker(&settingsGlobalMutex);-
943 ConfFileHash *usedHash = usedHashFunc();-
944 ConfFileCache *unusedCache = unusedCacheFunc();-
945-
946 for (int i = 0; i < NumConfFiles
i < NumConfFilesDescription
TRUEevaluated 6704 times by 31 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 1676 times by 31 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
; ++i) {
1676-6704
947 if (confFiles[i] && !confFiles[i]->ref.deref()
!confFiles[i]->ref.deref()Description
TRUEevaluated 3336 times by 31 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 215 times by 1 test
Evaluated by:
  • tst_QSettings
) {
215-3336
948 if (confFiles[i]->size == 0
confFiles[i]->size == 0Description
TRUEevaluated 2282 times by 7 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
FALSEevaluated 1054 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
1054-2282
949 delete confFiles[i].take();-
950 }
executed 2282 times by 7 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
else {
2282
951 if (usedHash
usedHashDescription
TRUEevaluated 1054 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEnever evaluated
)
0-1054
952 usedHash->remove(confFiles[i]->name);
executed 1054 times by 30 tests: usedHash->remove(confFiles[i]->name);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
1054
953 if (unusedCache
unusedCacheDescription
TRUEevaluated 1054 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEnever evaluated
) {
0-1054
954 try {-
955-
956 unusedCache->insert(confFiles[i]->name, confFiles[i].data(),-
957 10 + (confFiles[i]->originalKeys.size() / 4));-
958 confFiles[i].take();-
959 }
executed 1054 times by 30 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
catch (...) {
1054
960-
961 delete confFiles[i].take();-
962 }
never executed: end of block
0
963 } else {-
964-
965 delete confFiles[i].take();-
966 }
never executed: end of block
0
967 }-
968 }-
969-
970 confFiles[i].take();-
971 }
executed 6704 times by 31 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
6704
972}
executed 1676 times by 31 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
1676
973-
974void QConfFileSettingsPrivate::remove(const QString &key)-
975{-
976 QConfFile *confFile = confFiles[spec].data();-
977 if (!confFile
!confFileDescription
TRUEnever evaluated
FALSEevaluated 263 times by 3 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
)
0-263
978 return;
never executed: return;
0
979-
980 QSettingsKey theKey(key, caseSensitivity);-
981 QSettingsKey prefix(key + QLatin1Char('/'), caseSensitivity);-
982 QMutexLocker locker(&confFile->mutex);-
983-
984 ensureSectionParsed(confFile, theKey);-
985 ensureSectionParsed(confFile, prefix);-
986-
987 ParsedSettingsMap::iterator i = confFile->addedKeys.lowerBound(prefix);-
988 while (i != confFile->addedKeys.end()
i != confFile->addedKeys.end()Description
TRUEevaluated 25 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 250 times by 3 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
&& i.key().startsWith(prefix)
i.key().startsWith(prefix)Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 13 times by 1 test
Evaluated by:
  • tst_QSettings
)
12-250
989 i = confFile->addedKeys.erase(i);
executed 12 times by 1 test: i = confFile->addedKeys.erase(i);
Executed by:
  • tst_QSettings
12
990 confFile->addedKeys.remove(theKey);-
991-
992 ParsedSettingsMap::const_iterator j = const_cast<const ParsedSettingsMap *>(&confFile->originalKeys)->lowerBound(prefix);-
993 while (j != confFile->originalKeys.constEnd()
j != confFile-...eys.constEnd()Description
TRUEevaluated 767 times by 3 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
FALSEevaluated 247 times by 3 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
&& j.key().startsWith(prefix)
j.key().startsWith(prefix)Description
TRUEevaluated 751 times by 3 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_QSettings
) {
16-767
994 confFile->removedKeys.insert(j.key(), QVariant());-
995 ++j;-
996 }
executed 751 times by 3 tests: end of block
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
751
997 if (confFile->originalKeys.contains(theKey)
confFile->orig...ntains(theKey)Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 258 times by 3 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
)
5-258
998 confFile->removedKeys.insert(theKey, QVariant());
executed 5 times by 1 test: confFile->removedKeys.insert(theKey, QVariant());
Executed by:
  • tst_QSettings
5
999}
executed 263 times by 3 tests: end of block
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
263
1000-
1001void QConfFileSettingsPrivate::set(const QString &key, const QVariant &value)-
1002{-
1003 QConfFile *confFile = confFiles[spec].data();-
1004 if (!confFile
!confFileDescription
TRUEnever evaluated
FALSEevaluated 2444 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
)
0-2444
1005 return;
never executed: return;
0
1006-
1007 QSettingsKey theKey(key, caseSensitivity, nextPosition++);-
1008 QMutexLocker locker(&confFile->mutex);-
1009 confFile->removedKeys.remove(theKey);-
1010 confFile->addedKeys.insert(theKey, value);-
1011}
executed 2444 times by 6 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
2444
1012-
1013bool QConfFileSettingsPrivate::get(const QString &key, QVariant *value) const-
1014{-
1015 QSettingsKey theKey(key, caseSensitivity);-
1016 ParsedSettingsMap::const_iterator j;-
1017 bool found = false;-
1018-
1019 for (int i = 0; i < NumConfFiles
i < NumConfFilesDescription
TRUEevaluated 117684 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 23081 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QTextFormat
  • ...
; ++i) {
23081-117684
1020 if (QConfFile *confFile = confFiles[i].data()
QConfFile *con...iles[i].data()Description
TRUEevaluated 47110 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 70574 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
47110-70574
1021 QMutexLocker locker(&confFile->mutex);-
1022-
1023 if (!confFile->addedKeys.isEmpty()
!confFile->addedKeys.isEmpty()Description
TRUEevaluated 723 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 46387 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
723-46387
1024 j = confFile->addedKeys.constFind(theKey);-
1025 found = (j != confFile->addedKeys.constEnd());-
1026 }
executed 723 times by 1 test: end of block
Executed by:
  • tst_QSettings
723
1027 if (!found
!foundDescription
TRUEevaluated 46509 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 601 times by 1 test
Evaluated by:
  • tst_QSettings
) {
601-46509
1028 ensureSectionParsed(confFile, theKey);-
1029 j = confFile->originalKeys.constFind(theKey);-
1030 found = (j != confFile->originalKeys.constEnd()
j != confFile-...eys.constEnd()Description
TRUEevaluated 22818 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 23691 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QTextFormat
  • ...
22818-23691
1031 && !confFile->removedKeys.contains(theKey)
!confFile->rem...ntains(theKey)Description
TRUEevaluated 22813 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QSettings
);
5-22813
1032 }
executed 46509 times by 30 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
46509
1033-
1034 if (found
foundDescription
TRUEevaluated 23414 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 23696 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QTextFormat
  • ...
&& value
valueDescription
TRUEevaluated 23295 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 119 times by 1 test
Evaluated by:
  • tst_QSettings
)
119-23696
1035 *
executed 23295 times by 28 tests: *value = *j;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
value = *j;
executed 23295 times by 28 tests: *value = *j;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
23295
1036-
1037 if (found
foundDescription
TRUEevaluated 23414 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 23696 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QTextFormat
  • ...
)
23414-23696
1038 return
executed 23414 times by 28 tests: return true;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
true;
executed 23414 times by 28 tests: return true;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
23414
1039 if (!fallbacks
!fallbacksDescription
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 23672 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QTextFormat
  • ...
)
24-23672
1040 break;
executed 24 times by 1 test: break;
Executed by:
  • tst_QSettings
24
1041 }
executed 23672 times by 29 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QTextFormat
  • ...
23672
1042 }
executed 94246 times by 30 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
94246
1043 return
executed 23105 times by 29 tests: return false;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QTextFormat
  • ...
false;
executed 23105 times by 29 tests: return false;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QTextFormat
  • ...
23105
1044}-
1045-
1046QStringList QConfFileSettingsPrivate::children(const QString &prefix, ChildSpec spec) const-
1047{-
1048 QStringList result;-
1049 ParsedSettingsMap::const_iterator j;-
1050-
1051 QSettingsKey thePrefix(prefix, caseSensitivity);-
1052 int startPos = prefix.size();-
1053-
1054 for (int i = 0; i < NumConfFiles
i < NumConfFilesDescription
TRUEevaluated 4144 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • ...
FALSEevaluated 764 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • ...
; ++i) {
764-4144
1055 if (QConfFile *confFile = confFiles[i].data()
QConfFile *con...iles[i].data()Description
TRUEevaluated 1805 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • ...
FALSEevaluated 2339 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • ...
) {
1805-2339
1056 QMutexLocker locker(&confFile->mutex);-
1057-
1058 if (thePrefix.isEmpty()
thePrefix.isEmpty()Description
TRUEevaluated 1321 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • ...
FALSEevaluated 484 times by 1 test
Evaluated by:
  • tst_QSettings
) {
484-1321
1059 ensureAllSectionsParsed(confFile);-
1060 }
executed 1321 times by 29 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • ...
else {
1321
1061 ensureSectionParsed(confFile, thePrefix);-
1062 }
executed 484 times by 1 test: end of block
Executed by:
  • tst_QSettings
484
1063-
1064 j = const_cast<const ParsedSettingsMap *>(-
1065 &confFile->originalKeys)->lowerBound( thePrefix);-
1066 while (j != confFile->originalKeys.constEnd()
j != confFile-...eys.constEnd()Description
TRUEevaluated 33448 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • ...
FALSEevaluated 1649 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • ...
&& j.key().startsWith(thePrefix)
j.key().startsWith(thePrefix)Description
TRUEevaluated 33292 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • ...
FALSEevaluated 156 times by 1 test
Evaluated by:
  • tst_QSettings
) {
156-33448
1067 if (!confFile->removedKeys.contains(j.key())
!confFile->rem...tains(j.key())Description
TRUEevaluated 33286 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • ...
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QSettings
)
6-33286
1068 processChild(j.key().originalCaseKey().midRef(startPos), spec, result);
executed 33286 times by 28 tests: processChild(j.key().originalCaseKey().midRef(startPos), spec, result);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • ...
33286
1069 ++j;-
1070 }
executed 33292 times by 28 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • ...
33292
1071-
1072 j = const_cast<const ParsedSettingsMap *>(-
1073 &confFile->addedKeys)->lowerBound(thePrefix);-
1074 while (j != confFile->addedKeys.constEnd()
j != confFile-...eys.constEnd()Description
TRUEevaluated 404 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 1768 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • ...
&& j.key().startsWith(thePrefix)
j.key().startsWith(thePrefix)Description
TRUEevaluated 367 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 37 times by 1 test
Evaluated by:
  • tst_QSettings
) {
37-1768
1075 processChild(j.key().originalCaseKey().midRef(startPos), spec, result);-
1076 ++j;-
1077 }
executed 367 times by 1 test: end of block
Executed by:
  • tst_QSettings
367
1078-
1079 if (!fallbacks
!fallbacksDescription
TRUEevaluated 292 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 1513 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • ...
)
292-1513
1080 break;
executed 292 times by 1 test: break;
Executed by:
  • tst_QSettings
292
1081 }
executed 1513 times by 29 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • ...
1513
1082 }
executed 3852 times by 29 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • ...
3852
1083 std::sort(result.begin(), result.end());-
1084 result.erase(std::unique(result.begin(), result.end()),-
1085 result.end());-
1086 return
executed 1056 times by 29 tests: return result;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • ...
result;
executed 1056 times by 29 tests: return result;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • ...
1056
1087}-
1088-
1089void QConfFileSettingsPrivate::clear()-
1090{-
1091 QConfFile *confFile = confFiles[spec].data();-
1092 if (!confFile
!confFileDescription
TRUEnever evaluated
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_QSettings
)
0-16
1093 return;
never executed: return;
0
1094-
1095 QMutexLocker locker(&confFile->mutex);-
1096 ensureAllSectionsParsed(confFile);-
1097 confFile->addedKeys.clear();-
1098 confFile->removedKeys = confFile->originalKeys;-
1099}
executed 16 times by 1 test: end of block
Executed by:
  • tst_QSettings
16
1100-
1101void QConfFileSettingsPrivate::sync()-
1102{-
1103-
1104-
1105-
1106 for (int i = 0; i < NumConfFiles
i < NumConfFilesDescription
TRUEevaluated 9228 times by 31 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 2307 times by 31 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
; ++i) {
2307-9228
1107 QConfFile *confFile = confFiles[i].data();-
1108 if (confFile
confFileDescription
TRUEevaluated 5102 times by 31 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 4126 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
4126-5102
1109 QMutexLocker locker(&confFile->mutex);-
1110 syncConfFile(i);-
1111 }
executed 5102 times by 31 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
5102
1112 }
executed 9228 times by 31 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
9228
1113}
executed 2307 times by 31 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
2307
1114-
1115void QConfFileSettingsPrivate::flush()-
1116{-
1117 sync();-
1118}
executed 567 times by 6 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
567
1119-
1120QString QConfFileSettingsPrivate::fileName() const-
1121{-
1122 QConfFile *confFile = confFiles[spec].data();-
1123 if (!confFile
!confFileDescription
TRUEnever evaluated
FALSEevaluated 27 times by 1 test
Evaluated by:
  • tst_QSettings
)
0-27
1124 return
never executed: return QString();
QString();
never executed: return QString();
0
1125 return
executed 27 times by 1 test: return confFile->name;
Executed by:
  • tst_QSettings
confFile->name;
executed 27 times by 1 test: return confFile->name;
Executed by:
  • tst_QSettings
27
1126}-
1127-
1128bool QConfFileSettingsPrivate::isWritable() const-
1129{-
1130 if (format > QSettings::IniFormat
format > QSettings::IniFormatDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_QSettings
&& !writeFunc
!writeFuncDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 11 times by 1 test
Evaluated by:
  • tst_QSettings
)
1-12
1131 return
executed 1 time by 1 test: return false;
Executed by:
  • tst_QSettings
false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_QSettings
1
1132-
1133 QConfFile *confFile = confFiles[spec].data();-
1134 if (!confFile
!confFileDescription
TRUEnever evaluated
FALSEevaluated 20 times by 1 test
Evaluated by:
  • tst_QSettings
)
0-20
1135 return
never executed: return false;
false;
never executed: return false;
0
1136-
1137 return
executed 20 times by 1 test: return confFile->isWritable();
Executed by:
  • tst_QSettings
confFile->isWritable();
executed 20 times by 1 test: return confFile->isWritable();
Executed by:
  • tst_QSettings
20
1138}-
1139-
1140void QConfFileSettingsPrivate::syncConfFile(int confFileNo)-
1141{-
1142 QConfFile *confFile = confFiles[confFileNo].data();-
1143 bool readOnly = confFile->addedKeys.isEmpty()
confFile->addedKeys.isEmpty()Description
TRUEevaluated 4646 times by 31 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 456 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
&& confFile->removedKeys.isEmpty()
confFile->remo...Keys.isEmpty()Description
TRUEevaluated 4535 times by 31 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 111 times by 3 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
;
111-4646
1144 bool ok;-
1145-
1146-
1147-
1148-
1149-
1150 if (readOnly
readOnlyDescription
TRUEevaluated 4535 times by 31 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 567 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
&& confFile->size > 0
confFile->size > 0Description
TRUEevaluated 828 times by 7 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 3707 times by 31 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
567-4535
1151 QFileInfo fileInfo(confFile->name);-
1152 if (confFile->size == fileInfo.size()
confFile->size...ileInfo.size()Description
TRUEevaluated 783 times by 7 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 45 times by 1 test
Evaluated by:
  • tst_QSettings
&& confFile->timeStamp == fileInfo.lastModified()
confFile->time...lastModified()Description
TRUEevaluated 783 times by 7 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QSettings
  • tst_languageChange
FALSEnever evaluated
)
0-783
1153 return;
executed 783 times by 7 tests: return;
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QSettings
  • tst_languageChange
783
1154 }
executed 45 times by 1 test: end of block
Executed by:
  • tst_QSettings
45
1155 QLockFile lockFile(confFile->name + QLatin1String(".lock"));-
1156-
1157 if (!readOnly
!readOnlyDescription
TRUEevaluated 567 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 3752 times by 31 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
567-3752
1158 if (!confFile->isWritable()
!confFile->isWritable()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 565 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
2-565
1159-
1160 || !lockFile.lock()
!lockFile.lock()Description
TRUEnever evaluated
FALSEevaluated 565 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
0-565
1161-
1162 ) {-
1163 setStatus(QSettings::AccessError);-
1164 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_QSettings
2
1165 }-
1166 }
executed 565 times by 6 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
565
1167-
1168-
1169-
1170-
1171-
1172 QFileInfo fileInfo(confFile->name);-
1173 bool mustReadFile = true;-
1174 bool createFile = !fileInfo.exists();-
1175-
1176 if (!readOnly
!readOnlyDescription
TRUEevaluated 565 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 3752 times by 31 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
)
565-3752
1177 mustReadFile = (confFile->size != fileInfo.size()
confFile->size...ileInfo.size()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 564 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
executed 565 times by 6 tests: mustReadFile = (confFile->size != fileInfo.size() || (confFile->size != 0 && confFile->timeStamp != fileInfo.lastModified()));
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
1-565
1178 || (confFile->size != 0
confFile->size != 0Description
TRUEevaluated 341 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 223 times by 3 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
&& confFile->timeStamp != fileInfo.lastModified()
confFile->time...lastModified()Description
TRUEnever evaluated
FALSEevaluated 341 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
));
executed 565 times by 6 tests: mustReadFile = (confFile->size != fileInfo.size() || (confFile->size != 0 && confFile->timeStamp != fileInfo.lastModified()));
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
0-565
1179-
1180 if (mustReadFile
mustReadFileDescription
TRUEevaluated 3753 times by 31 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 564 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
) {
564-3753
1181 confFile->unparsedIniSections.clear();-
1182 confFile->originalKeys.clear();-
1183-
1184 QFile file(confFile->name);-
1185 if (!createFile
!createFileDescription
TRUEevaluated 848 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 2905 times by 7 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
&& !file.open(QFile::ReadOnly)
!file.open(QFile::ReadOnly)Description
TRUEnever evaluated
FALSEevaluated 848 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
0-2905
1186 setStatus(QSettings::AccessError);-
1187 return;
never executed: return;
0
1188 }-
1189-
1190-
1191-
1192-
1193-
1194 if (file.isReadable()
file.isReadable()Description
TRUEevaluated 848 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 2905 times by 7 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QTextFormat
  • tst_languageChange
&& fileInfo.size() != 0
fileInfo.size() != 0Description
TRUEevaluated 309 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 539 times by 2 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
) {
309-2905
1195-
1196-
1197-
1198-
1199-
1200 {-
1201 if (format <= QSettings::IniFormat
format <= QSettings::IniFormatDescription
TRUEevaluated 258 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 51 times by 1 test
Evaluated by:
  • tst_QSettings
) {
51-258
1202 QByteArray data = file.readAll();-
1203 ok = readIniFile(data, &confFile->unparsedIniSections);-
1204 }
executed 258 times by 30 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
else {
258
1205 if (readFunc
readFuncDescription
TRUEevaluated 51 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEnever evaluated
) {
0-51
1206 QSettings::SettingsMap tempNewKeys;-
1207 ok = readFunc(file, tempNewKeys);-
1208-
1209 if (ok
okDescription
TRUEevaluated 50 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QSettings
) {
1-50
1210 QSettings::SettingsMap::const_iterator i = tempNewKeys.constBegin();-
1211 while (i != tempNewKeys.constEnd()
i != tempNewKeys.constEnd()Description
TRUEevaluated 408 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 50 times by 1 test
Evaluated by:
  • tst_QSettings
) {
50-408
1212 confFile->originalKeys.insert(QSettingsKey(i.key(),-
1213 caseSensitivity),-
1214 i.value());-
1215 ++i;-
1216 }
executed 408 times by 1 test: end of block
Executed by:
  • tst_QSettings
408
1217 }
executed 50 times by 1 test: end of block
Executed by:
  • tst_QSettings
50
1218 }
executed 51 times by 1 test: end of block
Executed by:
  • tst_QSettings
else {
51
1219 ok = false;-
1220 }
never executed: end of block
0
1221 }-
1222 }-
1223-
1224 if (!ok
!okDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 308 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
)
1-308
1225 setStatus(QSettings::FormatError);
executed 1 time by 1 test: setStatus(QSettings::FormatError);
Executed by:
  • tst_QSettings
1
1226 }
executed 309 times by 30 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
309
1227-
1228 confFile->size = fileInfo.size();-
1229 confFile->timeStamp = fileInfo.lastModified();-
1230 }
executed 3753 times by 31 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
3753
1231-
1232-
1233-
1234-
1235-
1236 if (!readOnly
!readOnlyDescription
TRUEevaluated 565 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 3752 times by 31 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
565-3752
1237 ensureAllSectionsParsed(confFile);-
1238 ParsedSettingsMap mergedKeys = confFile->mergedKeyMap();-
1239-
1240-
1241-
1242-
1243-
1244-
1245 {-
1246-
1247 QSaveFile sf(confFile->name);-
1248-
1249-
1250-
1251 if (!sf.open(QIODevice::WriteOnly)
!sf.open(QIODevice::WriteOnly)Description
TRUEnever evaluated
FALSEevaluated 565 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
) {
0-565
1252 setStatus(QSettings::AccessError);-
1253 ok = false;-
1254 }
never executed: end of block
else if (format <= QSettings::IniFormat
format <= QSettings::IniFormatDescription
TRUEevaluated 485 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 80 times by 1 test
Evaluated by:
  • tst_QSettings
) {
0-485
1255 ok = writeIniFile(sf, mergedKeys);-
1256 }
executed 485 times by 6 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
else {
485
1257 if (writeFunc
writeFuncDescription
TRUEevaluated 79 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QSettings
) {
1-79
1258 QSettings::SettingsMap tempOriginalKeys;-
1259-
1260 ParsedSettingsMap::const_iterator i = mergedKeys.constBegin();-
1261 while (i != mergedKeys.constEnd()
i != mergedKeys.constEnd()Description
TRUEevaluated 418 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 79 times by 1 test
Evaluated by:
  • tst_QSettings
) {
79-418
1262 tempOriginalKeys.insert(i.key(), i.value());-
1263 ++i;-
1264 }
executed 418 times by 1 test: end of block
Executed by:
  • tst_QSettings
418
1265 ok = writeFunc(sf, tempOriginalKeys);-
1266 }
executed 79 times by 1 test: end of block
Executed by:
  • tst_QSettings
else {
79
1267 ok = false;-
1268 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QSettings
1
1269 }-
1270-
1271 if (ok
okDescription
TRUEevaluated 562 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QSettings
)
3-562
1272 ok = sf.commit();
executed 562 times by 6 tests: ok = sf.commit();
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
562
1273-
1274 }-
1275-
1276 if (ok
okDescription
TRUEevaluated 562 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QSettings
) {
3-562
1277 confFile->unparsedIniSections.clear();-
1278 confFile->originalKeys = mergedKeys;-
1279 confFile->addedKeys.clear();-
1280 confFile->removedKeys.clear();-
1281-
1282 QFileInfo fileInfo(confFile->name);-
1283 confFile->size = fileInfo.size();-
1284 confFile->timeStamp = fileInfo.lastModified();-
1285-
1286-
1287 if (createFile
createFileDescription
TRUEevaluated 115 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 447 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
) {
115-447
1288 QFile::Permissions perms = fileInfo.permissions() | QFile::ReadOwner | QFile::WriteOwner;-
1289 if (!confFile->userPerms
!confFile->userPermsDescription
TRUEevaluated 32 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 83 times by 1 test
Evaluated by:
  • tst_QSettings
)
32-83
1290 perms |= QFile::ReadGroup | QFile::ReadOther;
executed 32 times by 1 test: perms |= QFile::ReadGroup | QFile::ReadOther;
Executed by:
  • tst_QSettings
32
1291 QFile(confFile->name).setPermissions(perms);-
1292 }
executed 115 times by 1 test: end of block
Executed by:
  • tst_QSettings
115
1293 }
executed 562 times by 6 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
else {
562
1294 setStatus(QSettings::AccessError);-
1295 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_QSettings
3
1296 }-
1297}
executed 4317 times by 31 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
4317
1298-
1299enum { Space = 0x1, Special = 0x2 };-
1300-
1301static const char charTraits[256] =-
1302{-
1303-
1304-
1305-
1306 0, 0, 0, 0, 0, 0, 0, 0, 0, Space, Space | Special, 0, 0, Space | Special, 0, 0,-
1307 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,-
1308 Space, 0, Special, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,-
1309 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Special, 0, Special, 0, 0,-
1310 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,-
1311 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Special, 0, 0, 0,-
1312 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,-
1313 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,-
1314-
1315 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,-
1316 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,-
1317 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,-
1318 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,-
1319 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,-
1320 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,-
1321 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,-
1322 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0-
1323};-
1324-
1325bool QConfFileSettingsPrivate::readIniLine(const QByteArray &data, int &dataPos,-
1326 int &lineStart, int &lineLen, int &equalsPos)-
1327{-
1328 int dataLen = data.length();-
1329 bool inQuotes = false;-
1330-
1331 equalsPos = -1;-
1332-
1333 lineStart = dataPos;-
1334 while (lineStart < dataLen
lineStart < dataLenDescription
TRUEevaluated 165094 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 9326 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
&& (
(charTraits[ui...t)))] & Space)Description
TRUEevaluated 95639 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 69455 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
charTraits[uint(uchar(data.at(lineStart)))] & Space)
(charTraits[ui...t)))] & Space)Description
TRUEevaluated 95639 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 69455 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
)
9326-165094
1335 ++
executed 95639 times by 30 tests: ++lineStart;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
lineStart;
executed 95639 times by 30 tests: ++lineStart;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
95639
1336-
1337 int i = lineStart;-
1338 while (i < dataLen
i < dataLenDescription
TRUEevaluated 141419 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 9346 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
9346-141419
1339 while (!(charTraits[uint(uchar(data.at(i)))] & Special)
!(charTraits[u...))] & Special)Description
TRUEevaluated 1114455 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 141384 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
141384-1114455
1340 if (++
++i == dataLenDescription
TRUEevaluated 35 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 1114420 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
i == dataLen
++i == dataLenDescription
TRUEevaluated 35 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 1114420 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
)
35-1114420
1341 goto
executed 35 times by 1 test: goto break_out_of_outer_loop;
Executed by:
  • tst_QSettings
break_out_of_outer_loop;
executed 35 times by 1 test: goto break_out_of_outer_loop;
Executed by:
  • tst_QSettings
35
1342 }
executed 1114420 times by 30 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
1114420
1343-
1344 char ch = data.at(i++);-
1345 if (ch == '='
ch == '='Description
TRUEevaluated 60374 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 81010 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
60374-81010
1346 if (!inQuotes
!inQuotesDescription
TRUEevaluated 60372 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QSettings
&& equalsPos == -1
equalsPos == -1Description
TRUEevaluated 60372 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEnever evaluated
)
0-60372
1347 equalsPos = i - 1;
executed 60372 times by 29 tests: equalsPos = i - 1;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
60372
1348 }
executed 60374 times by 29 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
else if (ch == '\n'
ch == '\n'Description
TRUEevaluated 69404 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 11606 times by 5 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
  • tst_selftests - unknown status
|| ch == '\r'
ch == '\r'Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 11604 times by 5 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
  • tst_selftests - unknown status
) {
2-69404
1349 if (i == lineStart + 1
i == lineStart + 1Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 69400 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
6-69400
1350 ++lineStart;-
1351 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_QSettings
else if (!inQuotes
!inQuotesDescription
TRUEevaluated 69396 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QSettings
) {
4-69396
1352 --i;-
1353 goto
executed 69396 times by 30 tests: goto break_out_of_outer_loop;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
break_out_of_outer_loop;
executed 69396 times by 30 tests: goto break_out_of_outer_loop;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
69396
1354 }-
1355 }
executed 10 times by 1 test: end of block
Executed by:
  • tst_QSettings
else if (ch == '\\'
ch == '\\'Description
TRUEevaluated 11480 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 124 times by 2 tests
Evaluated by:
  • tst_QSettings
  • tst_selftests - unknown status
) {
10-11480
1356 if (i < dataLen
i < dataLenDescription
TRUEevaluated 11476 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QSettings
) {
4-11476
1357 char ch = data.at(i++);-
1358 if (i < dataLen
i < dataLenDescription
TRUEevaluated 11472 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QSettings
) {
4-11472
1359 char ch2 = data.at(i);-
1360-
1361 if ((ch == '\n'
ch == '\n'Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 11462 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
&& ch2 == '\r'
ch2 == '\r'Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QSettings
) || (ch == '\r'
ch == '\r'Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 11458 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
&& ch2 == '\n'
ch2 == '\n'Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QSettings
))
4-11462
1362 ++
executed 10 times by 1 test: ++i;
Executed by:
  • tst_QSettings
i;
executed 10 times by 1 test: ++i;
Executed by:
  • tst_QSettings
10
1363 }
executed 11472 times by 4 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
11472
1364 }
executed 11476 times by 4 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
11476
1365 }
executed 11480 times by 4 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
else if (ch == '"'
ch == '"'Description
TRUEevaluated 112 times by 2 tests
Evaluated by:
  • tst_QSettings
  • tst_selftests - unknown status
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QSettings
) {
12-11480
1366 inQuotes = !inQuotes;-
1367 }
executed 112 times by 2 tests: end of block
Executed by:
  • tst_QSettings
  • tst_selftests - unknown status
else {
112
1368 ((!(ch == ';')) ? qt_assert("ch == ';'",__FILE__,1605) : qt_noop());-
1369-
1370 if (i == lineStart + 1
i == lineStart + 1Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QSettings
) {
4-8
1371 char ch;-
1372 while (i < dataLen
i < dataLenDescription
TRUEevaluated 26 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QSettings
&& (((
((ch = data.at(i)) != '\n')Description
TRUEevaluated 22 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QSettings
ch = data.at(i)) != '\n')
((ch = data.at(i)) != '\n')Description
TRUEevaluated 22 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QSettings
&& ch != '\r'
ch != '\r'Description
TRUEevaluated 22 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEnever evaluated
))
0-26
1373 ++
executed 22 times by 1 test: ++i;
Executed by:
  • tst_QSettings
i;
executed 22 times by 1 test: ++i;
Executed by:
  • tst_QSettings
22
1374 lineStart = i;-
1375 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_QSettings
else if (!inQuotes
!inQuotesDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEnever evaluated
) {
0-8
1376 --i;-
1377 goto
executed 4 times by 1 test: goto break_out_of_outer_loop;
Executed by:
  • tst_QSettings
break_out_of_outer_loop;
executed 4 times by 1 test: goto break_out_of_outer_loop;
Executed by:
  • tst_QSettings
4
1378 }-
1379 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_QSettings
8
1380 }-
1381-
1382break_out_of_outer_loop:
code before this statement executed 9346 times by 30 tests: break_out_of_outer_loop:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
9346
1383 dataPos = i;-
1384 lineLen = i - lineStart;-
1385 return
executed 78781 times by 30 tests: return lineLen > 0;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
lineLen > 0;
executed 78781 times by 30 tests: return lineLen > 0;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
78781
1386}-
1387-
1388-
1389-
1390-
1391-
1392-
1393bool QConfFileSettingsPrivate::readIniFile(const QByteArray &data,-
1394 UnparsedSettingsMap *unparsedIniSections)-
1395{-
1396 QString currentSection;-
1397 int currentSectionStart = 0;-
1398 int dataPos = 0;-
1399 int lineStart;-
1400 int lineLen;-
1401 int equalsPos;-
1402 int position = 0;-
1403 int sectionPosition = 0;-
1404 bool ok = true;-
1405-
1406-
1407-
1408 const uchar *dd = (const uchar *)data.constData();-
1409 if (data.size() >= 3
data.size() >= 3Description
TRUEevaluated 256 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QSettings
&& dd[0] == 0xef
dd[0] == 0xefDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 255 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
&& dd[1] == 0xbb
dd[1] == 0xbbDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QSettings
FALSEnever evaluated
&& dd[2] == 0xbf
dd[2] == 0xbfDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QSettings
FALSEnever evaluated
) {
0-256
1410 iniCodec = QTextCodec::codecForName("UTF-8");-
1411 dataPos = 3;-
1412 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QSettings
1
1413-
1414-
1415 while (readIniLine(data, dataPos, lineStart, lineLen, equalsPos)
readIniLine(da...en, equalsPos)Description
TRUEevaluated 39173 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 258 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
258-39173
1416 char ch = data.at(lineStart);-
1417 if (ch == '['
ch == '['Description
TRUEevaluated 8868 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 30305 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
8868-30305
1418 { QByteArray &sectionData = (*unparsedIniSections)[QSettingsKey(currentSection, IniCaseSensitivity, sectionPosition)]; if (!sectionData.isEmpty()
!sectionData.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 8868 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) sectionData.append('\n');
never executed: sectionData.append('\n');
sectionData += data.mid(currentSectionStart, lineStart - currentSectionStart); sectionPosition = ++position; };
0-8868
1419-
1420-
1421 QByteArray iniSection;-
1422 int idx = data.indexOf(']', lineStart);-
1423 if (idx == -1
idx == -1Description
TRUEnever evaluated
FALSEevaluated 8868 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
|| idx >= lineStart + lineLen
idx >= lineStart + lineLenDescription
TRUEnever evaluated
FALSEevaluated 8868 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
0-8868
1424 ok = false;-
1425 iniSection = data.mid(lineStart + 1, lineLen - 1);-
1426 }
never executed: end of block
else {
0
1427 iniSection = data.mid(lineStart + 1, idx - lineStart - 1);-
1428 }
executed 8868 times by 29 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
8868
1429-
1430 iniSection = iniSection.trimmed();-
1431-
1432 if (qstricmp(iniSection.constData(), "general") == 0
qstricmp(iniSe...general") == 0Description
TRUEevaluated 48 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 8820 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
48-8820
1433 currentSection.clear();-
1434 }
executed 48 times by 1 test: end of block
Executed by:
  • tst_QSettings
else {
48
1435 if (qstricmp(iniSection.constData(), "%general") == 0
qstricmp(iniSe...general") == 0Description
TRUEnever evaluated
FALSEevaluated 8820 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
0-8820
1436 currentSection = QLatin1String(iniSection.constData() + 1);-
1437 }
never executed: end of block
else {
0
1438 currentSection.clear();-
1439 iniUnescapedKey(iniSection, 0, iniSection.size(), currentSection);-
1440 }
executed 8820 times by 29 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
8820
1441 currentSection += QLatin1Char('/');-
1442 }
executed 8820 times by 29 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
8820
1443 currentSectionStart = dataPos;-
1444 }
executed 8868 times by 29 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
8868
1445 ++position;-
1446 }
executed 39173 times by 30 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
39173
1447-
1448 ((!(lineStart == data.length())) ? qt_assert("lineStart == data.length()",__FILE__,1696) : qt_noop());-
1449 { QByteArray &sectionData = (*unparsedIniSections)[QSettingsKey(currentSection, IniCaseSensitivity, sectionPosition)]; if (!sectionData.isEmpty()
!sectionData.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 258 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) sectionData.append('\n');
never executed: sectionData.append('\n');
sectionData += data.mid(currentSectionStart, lineStart - currentSectionStart); sectionPosition = ++position; };
0-258
1450-
1451 return
executed 258 times by 30 tests: return ok;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
ok;
executed 258 times by 30 tests: return ok;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
258
1452-
1453-
1454}-
1455-
1456bool QConfFileSettingsPrivate::readIniSection(const QSettingsKey &section, const QByteArray &data,-
1457 ParsedSettingsMap *settingsMap, QTextCodec *codec)-
1458{-
1459 QStringList strListValue;-
1460 bool sectionIsLowercase = (section == section.originalCaseKey());-
1461 int equalsPos;-
1462-
1463 bool ok = true;-
1464 int dataPos = 0;-
1465 int lineStart;-
1466 int lineLen;-
1467 int position = section.originalKeyPosition();-
1468-
1469 while (readIniLine(data, dataPos, lineStart, lineLen, equalsPos)
readIniLine(da...en, equalsPos)Description
TRUEevaluated 30278 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 9072 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
9072-30278
1470 char ch = data.at(lineStart);-
1471 ((!(ch != '[')) ? qt_assert("ch != '['",__FILE__,1719) : qt_noop());-
1472-
1473 if (equalsPos == -1
equalsPos == -1Description
TRUEevaluated 106 times by 3 tests
Evaluated by:
  • tst_QIcon
  • tst_QSettings
  • tst_selftests - unknown status
FALSEevaluated 30172 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
106-30172
1474 if (ch != ';'
ch != ';'Description
TRUEevaluated 106 times by 3 tests
Evaluated by:
  • tst_QIcon
  • tst_QSettings
  • tst_selftests - unknown status
FALSEnever evaluated
)
0-106
1475 ok = false;
executed 106 times by 3 tests: ok = false;
Executed by:
  • tst_QIcon
  • tst_QSettings
  • tst_selftests - unknown status
106
1476 continue;
executed 106 times by 3 tests: continue;
Executed by:
  • tst_QIcon
  • tst_QSettings
  • tst_selftests - unknown status
106
1477 }-
1478-
1479 int keyEnd = equalsPos;-
1480 while (keyEnd > lineStart
keyEnd > lineStartDescription
TRUEevaluated 30176 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEnever evaluated
&& ((
(ch = data.at(...d - 1)) == ' 'Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 30173 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
ch = data.at(keyEnd - 1)) == ' '
(ch = data.at(...d - 1)) == ' 'Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 30173 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
|| ch == '\t'
ch == '\t'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 30172 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
))
0-30176
1481 --
executed 4 times by 1 test: --keyEnd;
Executed by:
  • tst_QSettings
keyEnd;
executed 4 times by 1 test: --keyEnd;
Executed by:
  • tst_QSettings
4
1482 int valueStart = equalsPos + 1;-
1483-
1484 QString key = section.originalCaseKey();-
1485 bool keyIsLowercase = (iniUnescapedKey(data, lineStart, keyEnd, key)
iniUnescapedKe..., keyEnd, key)Description
TRUEevaluated 462 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 29710 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
&& sectionIsLowercase
sectionIsLowercaseDescription
TRUEevaluated 462 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEnever evaluated
);
0-29710
1486-
1487 QString strValue;-
1488 strValue.reserve(lineLen - (valueStart - lineStart));-
1489 bool isStringList = iniUnescapedStringList(data, valueStart, lineStart + lineLen,-
1490 strValue, strListValue, codec);-
1491 QVariant variant;-
1492 if (isStringList
isStringListDescription
TRUEevaluated 77 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 30095 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
77-30095
1493 variant = stringListToVariantList(strListValue);-
1494 }
executed 77 times by 28 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
else {
77
1495 variant = stringToVariant(strValue);-
1496 }
executed 30095 times by 29 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
30095
1497-
1498-
1499-
1500-
1501-
1502-
1503 settingsMap->insert(QSettingsKey(key, keyIsLowercase ? Qt::CaseSensitive-
1504 : IniCaseSensitivity,-
1505 position),-
1506 variant);-
1507 ++position;-
1508 }
executed 30172 times by 29 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
30172
1509-
1510 return
executed 9072 times by 30 tests: return ok;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
ok;
executed 9072 times by 30 tests: return ok;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
9072
1511}-
1512-
1513class QSettingsIniKey : public QString-
1514{-
1515public:-
1516 inline QSettingsIniKey() : position(-1) {}
never executed: end of block
0
1517 inline QSettingsIniKey(const QString &str, int pos = -1) : QString(str), position(pos) {}
executed 3005 times by 6 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
3005
1518-
1519 int position;-
1520};-
1521template<> class QTypeInfo<QSettingsIniKey > { public: enum { isComplex = (((Q_MOVABLE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_MOVABLE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isRelocatable = !isStatic || ((Q_MOVABLE_TYPE) & Q_RELOCATABLE_TYPE), isLarge = (sizeof(QSettingsIniKey)>sizeof(void*)), isPointer = false, isIntegral = QtPrivate::is_integral< QSettingsIniKey >::value, isDummy = (((Q_MOVABLE_TYPE) & Q_DUMMY_TYPE) != 0), sizeOf = sizeof(QSettingsIniKey) }; static inline const char *name() { return "QSettingsIniKey"; } };-
1522-
1523static bool operator<(const QSettingsIniKey &k1, const QSettingsIniKey &k2)-
1524{-
1525 if (k1.position != k2.position
k1.position != k2.positionDescription
TRUEnever evaluated
FALSEevaluated 11534 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
)
0-11534
1526 return
never executed: return k1.position < k2.position;
k1.position < k2.position;
never executed: return k1.position < k2.position;
0
1527 return
executed 11534 times by 6 tests: return static_cast<const QString &>(k1) < static_cast<const QString &>(k2);
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
static_cast<const QString &>(k1) < static_cast<const QString &>(k2);
executed 11534 times by 6 tests: return static_cast<const QString &>(k1) < static_cast<const QString &>(k2);
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
11534
1528}-
1529-
1530typedef QMap<QSettingsIniKey, QVariant> IniKeyMap;-
1531-
1532struct QSettingsIniSection-
1533{-
1534 int position;-
1535 IniKeyMap keyMap;-
1536-
1537 inline QSettingsIniSection() : position(-1) {}
executed 422 times by 6 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
422
1538};-
1539-
1540typedef QMap<QString, QSettingsIniSection> IniMap;-
1541-
1542-
1543-
1544-
1545-
1546bool QConfFileSettingsPrivate::writeIniFile(QIODevice &device, const ParsedSettingsMap &map)-
1547{-
1548 IniMap iniMap;-
1549 IniMap::const_iterator i;-
1550-
1551-
1552-
1553-
1554 const char eol = '\n';-
1555-
1556-
1557 for (ParsedSettingsMap::const_iterator j = map.constBegin(); j != map.constEnd()
j != map.constEnd()Description
TRUEevaluated 2583 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 485 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
; ++j) {
485-2583
1558 QString section;-
1559 QSettingsIniKey key(j.key().originalCaseKey(), j.key().originalKeyPosition());-
1560 int slashPos;-
1561-
1562 if ((
(slashPos = ke...r('/'))) != -1Description
TRUEevaluated 2068 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 515 times by 1 test
Evaluated by:
  • tst_QSettings
slashPos = key.indexOf(QLatin1Char('/'))) != -1
(slashPos = ke...r('/'))) != -1Description
TRUEevaluated 2068 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 515 times by 1 test
Evaluated by:
  • tst_QSettings
) {
515-2068
1563 section = key.left(slashPos);-
1564 key.remove(0, slashPos + 1);-
1565 }
executed 2068 times by 6 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
2068
1566-
1567 QSettingsIniSection &iniSection = iniMap[section];-
1568-
1569-
1570 if (uint(key.position) < uint(iniSection.position)
uint(key.posit...tion.position)Description
TRUEnever evaluated
FALSEevaluated 2583 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
)
0-2583
1571 iniSection.position = key.position;
never executed: iniSection.position = key.position;
0
1572 iniSection.keyMap[key] = j.value();-
1573 }
executed 2583 times by 6 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
2583
1574-
1575 const int sectionCount = iniMap.size();-
1576 QVector<QSettingsIniKey> sections;-
1577 sections.reserve(sectionCount);-
1578 for (i = iniMap.constBegin(); i != iniMap.constEnd()
i != iniMap.constEnd()Description
TRUEevaluated 422 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 485 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
; ++i)
422-485
1579 sections.append(QSettingsIniKey(i.key(), i.value().position));
executed 422 times by 6 tests: sections.append(QSettingsIniKey(i.key(), i.value().position));
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
422
1580 std::sort(sections.begin(), sections.end());-
1581-
1582 bool writeError = false;-
1583 for (int j = 0; !writeError
!writeErrorDescription
TRUEevaluated 907 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEnever evaluated
&& j < sectionCount
j < sectionCountDescription
TRUEevaluated 422 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 485 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
; ++j) {
0-907
1584 i = iniMap.constFind(sections.at(j));-
1585 ((!(i != iniMap.constEnd())) ? qt_assert("i != iniMap.constEnd()",__FILE__,1833) : qt_noop());-
1586-
1587 QByteArray realSection;-
1588-
1589 iniEscapedKey(i.key(), realSection);-
1590-
1591 if (realSection.isEmpty()
realSection.isEmpty()Description
TRUEevaluated 99 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 323 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
) {
99-323
1592 realSection = "[General]";-
1593 }
executed 99 times by 1 test: end of block
Executed by:
  • tst_QSettings
else if (qstricmp(realSection.constData(), "general") == 0
qstricmp(realS...general") == 0Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 320 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
) {
3-320
1594 realSection = "[%General]";-
1595 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_QSettings
else {
3
1596 realSection.prepend('[');-
1597 realSection.append(']');-
1598 }
executed 320 times by 6 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
320
1599-
1600 if (j != 0
j != 0Description
TRUEevaluated 47 times by 4 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 375 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
)
47-375
1601 realSection.prepend(eol);
executed 47 times by 4 tests: realSection.prepend(eol);
Executed by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
47
1602 realSection += eol;-
1603-
1604 device.write(realSection);-
1605-
1606 const IniKeyMap &ents = i.value().keyMap;-
1607 for (IniKeyMap::const_iterator j = ents.constBegin(); j != ents.constEnd()
j != ents.constEnd()Description
TRUEevaluated 2583 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 422 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
; ++j) {
422-2583
1608 QByteArray block;-
1609 iniEscapedKey(j.key(), block);-
1610 block += '=';-
1611-
1612 const QVariant &value = j.value();-
1613-
1614-
1615-
1616-
1617-
1618-
1619 if (value.type() == QVariant::StringList
value.type() =...nt::StringListDescription
TRUEevaluated 489 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 2094 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
489-2094
1620 || (value.type() == QVariant::List
value.type() == QVariant::ListDescription
TRUEevaluated 39 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 2055 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
&& value.toList().size() != 1
value.toList().size() != 1Description
TRUEevaluated 35 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QSettings
)) {
4-2055
1621 iniEscapedStringList(variantListToStringList(value.toList()), block, iniCodec);-
1622 }
executed 524 times by 6 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
else {
524
1623 iniEscapedString(variantToString(value), block, iniCodec);-
1624 }
executed 2059 times by 6 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
2059
1625 block += eol;-
1626 if (device.write(block) == -1
device.write(block) == -1Description
TRUEnever evaluated
FALSEevaluated 2583 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
) {
0-2583
1627 writeError = true;-
1628 break;
never executed: break;
0
1629 }-
1630 }
executed 2583 times by 6 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
2583
1631 }
executed 422 times by 6 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
422
1632 return
executed 485 times by 6 tests: return !writeError;
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
!writeError;
executed 485 times by 6 tests: return !writeError;
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
485
1633}-
1634-
1635void QConfFileSettingsPrivate::ensureAllSectionsParsed(QConfFile *confFile) const-
1636{-
1637 UnparsedSettingsMap::const_iterator i = confFile->unparsedIniSections.constBegin();-
1638 const UnparsedSettingsMap::const_iterator end = confFile->unparsedIniSections.constEnd();-
1639-
1640 for (; i != end
i != endDescription
TRUEevaluated 8949 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 1902 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
; ++i) {
1902-8949
1641 if (!QConfFileSettingsPrivate::readIniSection(i.key(), i.value(), &confFile->originalKeys, iniCodec)
!QConfFileSett...eys, iniCodec)Description
TRUEevaluated 28 times by 3 tests
Evaluated by:
  • tst_QIcon
  • tst_QSettings
  • tst_selftests - unknown status
FALSEevaluated 8921 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
)
28-8921
1642 setStatus(QSettings::FormatError);
executed 28 times by 3 tests: setStatus(QSettings::FormatError);
Executed by:
  • tst_QIcon
  • tst_QSettings
  • tst_selftests - unknown status
28
1643 }
executed 8949 times by 30 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
8949
1644 confFile->unparsedIniSections.clear();-
1645}
executed 1902 times by 30 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
1902
1646-
1647void QConfFileSettingsPrivate::ensureSectionParsed(QConfFile *confFile,-
1648 const QSettingsKey &key) const-
1649{-
1650 if (confFile->unparsedIniSections.isEmpty()
confFile->unpa...ions.isEmpty()Description
TRUEevaluated 47315 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QTextFormat
  • ...
FALSEevaluated 204 times by 3 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QSettings
  • tst_languageChange
)
204-47315
1651 return;
executed 47315 times by 29 tests: return;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QTextFormat
  • ...
47315
1652-
1653 UnparsedSettingsMap::iterator i;-
1654-
1655 int indexOfSlash = key.indexOf(QLatin1Char('/'));-
1656 if (indexOfSlash != -1
indexOfSlash != -1Description
TRUEevaluated 140 times by 3 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 64 times by 1 test
Evaluated by:
  • tst_QSettings
) {
64-140
1657 i = confFile->unparsedIniSections.upperBound(key);-
1658 if (i == confFile->unparsedIniSections.begin()
i == confFile-...ctions.begin()Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 134 times by 3 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QSettings
  • tst_languageChange
)
6-134
1659 return;
executed 6 times by 1 test: return;
Executed by:
  • tst_QSettings
6
1660 --i;-
1661 if (i.key().isEmpty()
i.key().isEmpty()Description
TRUEevaluated 21 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 113 times by 3 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QSettings
  • tst_languageChange
|| !key.startsWith(i.key())
!key.startsWith(i.key())Description
TRUEevaluated 54 times by 3 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 59 times by 3 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QSettings
  • tst_languageChange
)
21-113
1662 return;
executed 75 times by 3 tests: return;
Executed by:
  • tst_QColorDialog
  • tst_QSettings
  • tst_languageChange
75
1663 }
executed 59 times by 3 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QSettings
  • tst_languageChange
else {
59
1664 i = confFile->unparsedIniSections.begin();-
1665 if (i == confFile->unparsedIniSections.end()
i == confFile-...Sections.end()Description
TRUEnever evaluated
FALSEevaluated 64 times by 1 test
Evaluated by:
  • tst_QSettings
|| !i.key().isEmpty()
!i.key().isEmpty()Description
TRUEnever evaluated
FALSEevaluated 64 times by 1 test
Evaluated by:
  • tst_QSettings
)
0-64
1666 return;
never executed: return;
0
1667 }
executed 64 times by 1 test: end of block
Executed by:
  • tst_QSettings
64
1668-
1669 if (!QConfFileSettingsPrivate::readIniSection(i.key(), i.value(), &confFile->originalKeys, iniCodec)
!QConfFileSett...eys, iniCodec)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 122 times by 3 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QSettings
  • tst_languageChange
)
1-122
1670 setStatus(QSettings::FormatError);
executed 1 time by 1 test: setStatus(QSettings::FormatError);
Executed by:
  • tst_QSettings
1
1671 confFile->unparsedIniSections.erase(i);-
1672}
executed 123 times by 3 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QSettings
  • tst_languageChange
123
1673QSettings::QSettings(const QString &organization, const QString &application, QObject *parent)-
1674 : QObject(*QSettingsPrivate::create(NativeFormat, UserScope, organization, application),-
1675 parent)-
1676{-
1677}
executed 50 times by 2 tests: end of block
Executed by:
  • tst_QSettings
  • tst_QTextFormat
50
1678QSettings::QSettings(Scope scope, const QString &organization, const QString &application,-
1679 QObject *parent)-
1680 : QObject(*QSettingsPrivate::create(NativeFormat, scope, organization, application), parent)-
1681{-
1682}
executed 1040 times by 6 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
1040
1683QSettings::QSettings(Format format, Scope scope, const QString &organization,-
1684 const QString &application, QObject *parent)-
1685 : QObject(*QSettingsPrivate::create(format, scope, organization, application), parent)-
1686{-
1687}
executed 333 times by 1 test: end of block
Executed by:
  • tst_QSettings
333
1688QSettings::QSettings(const QString &fileName, Format format, QObject *parent)-
1689 : QObject(*QSettingsPrivate::create(fileName, format), parent)-
1690{-
1691}
executed 248 times by 29 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • ...
248
1692QSettings::QSettings(QObject *parent)-
1693 : QObject(*QSettingsPrivate::create(globalDefaultFormat, UserScope,-
1694-
1695-
1696-
1697-
1698-
1699 QCoreApplication::organizationName().isEmpty()-
1700 ? QCoreApplication::organizationDomain()-
1701 : QCoreApplication::organizationName()-
1702-
1703 , QCoreApplication::applicationName()),-
1704 parent)-
1705{-
1706}
executed 5 times by 1 test: end of block
Executed by:
  • tst_QSettings
5
1707QSettings::~QSettings()-
1708{-
1709 QSettingsPrivate * const d = d_func();-
1710 if (d->pendingChanges
d->pendingChangesDescription
TRUEevaluated 563 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 1113 times by 31 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
563-1113
1711 try {-
1712 d->flush();-
1713 }
executed 563 times by 6 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
catch (...) {
563
1714 ;-
1715 }
never executed: end of block
0
1716 }-
1717}
executed 1676 times by 31 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
1676
1718void QSettings::clear()-
1719{-
1720 QSettingsPrivate * const d = d_func();-
1721 d->clear();-
1722 d->requestUpdate();-
1723}
executed 15 times by 1 test: end of block
Executed by:
  • tst_QSettings
15
1724void QSettings::sync()-
1725{-
1726 QSettingsPrivate * const d = d_func();-
1727 d->sync();-
1728}
executed 64 times by 1 test: end of block
Executed by:
  • tst_QSettings
64
1729QString QSettings::fileName() const-
1730{-
1731 const QSettingsPrivate * const d = d_func();-
1732 return
executed 27 times by 1 test: return d->fileName();
Executed by:
  • tst_QSettings
d->fileName();
executed 27 times by 1 test: return d->fileName();
Executed by:
  • tst_QSettings
27
1733}-
1734QSettings::Format QSettings::format() const-
1735{-
1736 const QSettingsPrivate * const d = d_func();-
1737 return
executed 30 times by 1 test: return d->format;
Executed by:
  • tst_QSettings
d->format;
executed 30 times by 1 test: return d->format;
Executed by:
  • tst_QSettings
30
1738}-
1739QSettings::Scope QSettings::scope() const-
1740{-
1741 const QSettingsPrivate * const d = d_func();-
1742 return
executed 28 times by 1 test: return d->scope;
Executed by:
  • tst_QSettings
d->scope;
executed 28 times by 1 test: return d->scope;
Executed by:
  • tst_QSettings
28
1743}-
1744QString QSettings::organizationName() const-
1745{-
1746 const QSettingsPrivate * const d = d_func();-
1747 return
executed 32 times by 1 test: return d->organizationName;
Executed by:
  • tst_QSettings
d->organizationName;
executed 32 times by 1 test: return d->organizationName;
Executed by:
  • tst_QSettings
32
1748}-
1749QString QSettings::applicationName() const-
1750{-
1751 const QSettingsPrivate * const d = d_func();-
1752 return
executed 24 times by 1 test: return d->applicationName;
Executed by:
  • tst_QSettings
d->applicationName;
executed 24 times by 1 test: return d->applicationName;
Executed by:
  • tst_QSettings
24
1753}-
1754void QSettings::setIniCodec(QTextCodec *codec)-
1755{-
1756 QSettingsPrivate * const d = d_func();-
1757 d->iniCodec = codec;-
1758}
never executed: end of block
0
1759void QSettings::setIniCodec(const char *codecName)-
1760{-
1761 QSettingsPrivate * const d = d_func();-
1762 if (QTextCodec *codec = QTextCodec::codecForName(codecName)
QTextCodec *co...ame(codecName)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEnever evaluated
)
0-6
1763 d->iniCodec = codec;
executed 6 times by 1 test: d->iniCodec = codec;
Executed by:
  • tst_QSettings
6
1764}
executed 6 times by 1 test: end of block
Executed by:
  • tst_QSettings
6
1765QTextCodec *QSettings::iniCodec() const-
1766{-
1767 const QSettingsPrivate * const d = d_func();-
1768 return
never executed: return d->iniCodec;
d->iniCodec;
never executed: return d->iniCodec;
0
1769}-
1770QSettings::Status QSettings::status() const-
1771{-
1772 const QSettingsPrivate * const d = d_func();-
1773 return
executed 99 times by 1 test: return d->status;
Executed by:
  • tst_QSettings
d->status;
executed 99 times by 1 test: return d->status;
Executed by:
  • tst_QSettings
99
1774}-
1775void QSettings::beginGroup(const QString &prefix)-
1776{-
1777 QSettingsPrivate * const d = d_func();-
1778 d->beginGroupOrArray(QSettingsGroup(d->normalizedKey(prefix)));-
1779}
executed 1346 times by 6 tests: end of block
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
  • tst_selftests - unknown status
1346
1780void QSettings::endGroup()-
1781{-
1782 QSettingsPrivate * const d = d_func();-
1783 if (d->groupStack.isEmpty()
d->groupStack.isEmpty()Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 848 times by 4 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
  • tst_selftests - unknown status
) {
14-848
1784 QMessageLogger(__FILE__, 2911, __PRETTY_FUNCTION__).warning("QSettings::endGroup: No matching beginGroup()");-
1785 return;
executed 14 times by 1 test: return;
Executed by:
  • tst_QSettings
14
1786 }-
1787-
1788 QSettingsGroup group = d->groupStack.pop();-
1789 int len = group.toString().size();-
1790 if (len > 0
len > 0Description
TRUEevaluated 805 times by 4 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
  • tst_selftests - unknown status
FALSEevaluated 43 times by 1 test
Evaluated by:
  • tst_QSettings
)
43-805
1791 d->groupPrefix.truncate(d->groupPrefix.size() - (len + 1));
executed 805 times by 4 tests: d->groupPrefix.truncate(d->groupPrefix.size() - (len + 1));
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
  • tst_selftests - unknown status
805
1792-
1793 if (group.isArray()
group.isArray()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 844 times by 4 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
  • tst_selftests - unknown status
)
4-844
1794 QMessageLogger(__FILE__, 2921, __PRETTY_FUNCTION__).warning("QSettings::endGroup: Expected endArray() instead");
executed 4 times by 1 test: QMessageLogger(__FILE__, 2921, __PRETTY_FUNCTION__).warning("QSettings::endGroup: Expected endArray() instead");
Executed by:
  • tst_QSettings
4
1795}
executed 848 times by 4 tests: end of block
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
  • tst_selftests - unknown status
848
1796-
1797-
1798-
1799-
1800-
1801-
1802QString QSettings::group() const-
1803{-
1804 const QSettingsPrivate * const d = d_func();-
1805 return
executed 227 times by 3 tests: return d->groupPrefix.left(d->groupPrefix.size() - 1);
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
d->groupPrefix.left(d->groupPrefix.size() - 1);
executed 227 times by 3 tests: return d->groupPrefix.left(d->groupPrefix.size() - 1);
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
227
1806}-
1807int QSettings::beginReadArray(const QString &prefix)-
1808{-
1809 QSettingsPrivate * const d = d_func();-
1810 d->beginGroupOrArray(QSettingsGroup(d->normalizedKey(prefix), false));-
1811 return
executed 20 times by 1 test: return value(QLatin1String("size")).toInt();
Executed by:
  • tst_QSettings
value(QLatin1String("size")).toInt();
executed 20 times by 1 test: return value(QLatin1String("size")).toInt();
Executed by:
  • tst_QSettings
20
1812}-
1813void QSettings::beginWriteArray(const QString &prefix, int size)-
1814{-
1815 QSettingsPrivate * const d = d_func();-
1816 d->beginGroupOrArray(QSettingsGroup(d->normalizedKey(prefix), size < 0));-
1817-
1818 if (size < 0
size < 0Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QSettings
)
8-12
1819 remove(QLatin1String("size"));
executed 12 times by 1 test: remove(QLatin1String("size"));
Executed by:
  • tst_QSettings
12
1820 else-
1821 setValue(QLatin1String("size"), size);
executed 8 times by 1 test: setValue(QLatin1String("size"), size);
Executed by:
  • tst_QSettings
8
1822}-
1823-
1824-
1825-
1826-
1827-
1828-
1829-
1830void QSettings::endArray()-
1831{-
1832 QSettingsPrivate * const d = d_func();-
1833 if (d->groupStack.isEmpty()
d->groupStack.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 44 times by 1 test
Evaluated by:
  • tst_QSettings
) {
0-44
1834 QMessageLogger(__FILE__, 3004, __PRETTY_FUNCTION__).warning("QSettings::endArray: No matching beginArray()");-
1835 return;
never executed: return;
0
1836 }-
1837-
1838 QSettingsGroup group = d->groupStack.top();-
1839 int len = group.toString().size();-
1840 d->groupStack.pop();-
1841 if (len > 0
len > 0Description
TRUEevaluated 44 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEnever evaluated
)
0-44
1842 d->groupPrefix.truncate(d->groupPrefix.size() - (len + 1));
executed 44 times by 1 test: d->groupPrefix.truncate(d->groupPrefix.size() - (len + 1));
Executed by:
  • tst_QSettings
44
1843-
1844 if (group.arraySizeGuess() != -1
group.arraySizeGuess() != -1Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 32 times by 1 test
Evaluated by:
  • tst_QSettings
)
12-32
1845 setValue(group.name() + QLatin1String("/size"), group.arraySizeGuess());
executed 12 times by 1 test: setValue(group.name() + QLatin1String("/size"), group.arraySizeGuess());
Executed by:
  • tst_QSettings
12
1846-
1847 if (!group.isArray()
!group.isArray()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 36 times by 1 test
Evaluated by:
  • tst_QSettings
)
8-36
1848 QMessageLogger(__FILE__, 3018, __PRETTY_FUNCTION__).warning("QSettings::endArray: Expected endGroup() instead");
executed 8 times by 1 test: QMessageLogger(__FILE__, 3018, __PRETTY_FUNCTION__).warning("QSettings::endArray: Expected endGroup() instead");
Executed by:
  • tst_QSettings
8
1849}
executed 44 times by 1 test: end of block
Executed by:
  • tst_QSettings
44
1850void QSettings::setArrayIndex(int i)-
1851{-
1852 QSettingsPrivate * const d = d_func();-
1853 if (d->groupStack.isEmpty()
d->groupStack.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 148 times by 1 test
Evaluated by:
  • tst_QSettings
|| !d->groupStack.top().isArray()
!d->groupStack.top().isArray()Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 128 times by 1 test
Evaluated by:
  • tst_QSettings
) {
0-148
1854 QMessageLogger(__FILE__, 3033, __PRETTY_FUNCTION__).warning("QSettings::setArrayIndex: Missing beginArray()");-
1855 return;
executed 20 times by 1 test: return;
Executed by:
  • tst_QSettings
20
1856 }-
1857-
1858 QSettingsGroup &top = d->groupStack.top();-
1859 int len = top.toString().size();-
1860 top.setArrayIndex(qMax(i, 0));-
1861 d->groupPrefix.replace(d->groupPrefix.size() - len - 1, len, top.toString());-
1862}
executed 128 times by 1 test: end of block
Executed by:
  • tst_QSettings
128
1863QStringList QSettings::allKeys() const-
1864{-
1865 const QSettingsPrivate * const d = d_func();-
1866 return
executed 233 times by 27 tests: return d->children(d->groupPrefix, QSettingsPrivate::AllKeys);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • ...
d->children(d->groupPrefix, QSettingsPrivate::AllKeys);
executed 233 times by 27 tests: return d->children(d->groupPrefix, QSettingsPrivate::AllKeys);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • ...
233
1867}-
1868QStringList QSettings::childKeys() const-
1869{-
1870 const QSettingsPrivate * const d = d_func();-
1871 return
executed 104 times by 1 test: return d->children(d->groupPrefix, QSettingsPrivate::ChildKeys);
Executed by:
  • tst_QSettings
d->children(d->groupPrefix, QSettingsPrivate::ChildKeys);
executed 104 times by 1 test: return d->children(d->groupPrefix, QSettingsPrivate::ChildKeys);
Executed by:
  • tst_QSettings
104
1872}-
1873QStringList QSettings::childGroups() const-
1874{-
1875 const QSettingsPrivate * const d = d_func();-
1876 return
executed 719 times by 7 tests: return d->children(d->groupPrefix, QSettingsPrivate::ChildGroups);
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
  • tst_selftests - unknown status
d->children(d->groupPrefix, QSettingsPrivate::ChildGroups);
executed 719 times by 7 tests: return d->children(d->groupPrefix, QSettingsPrivate::ChildGroups);
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
  • tst_qdbusxml2cpp - unknown status
  • tst_selftests - unknown status
719
1877}-
1878bool QSettings::isWritable() const-
1879{-
1880 const QSettingsPrivate * const d = d_func();-
1881 return
executed 21 times by 1 test: return d->isWritable();
Executed by:
  • tst_QSettings
d->isWritable();
executed 21 times by 1 test: return d->isWritable();
Executed by:
  • tst_QSettings
21
1882}-
1883void QSettings::setValue(const QString &key, const QVariant &value)-
1884{-
1885 QSettingsPrivate * const d = d_func();-
1886 if (key.isEmpty()
key.isEmpty()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 2444 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
) {
1-2444
1887 QMessageLogger(__FILE__, 3150, __PRETTY_FUNCTION__).warning("QSettings::setValue: Empty key passed");-
1888 return;
executed 1 time by 1 test: return;
Executed by:
  • tst_QSettings
1
1889 }-
1890 QString k = d->actualKey(key);-
1891 d->set(k, value);-
1892 d->requestUpdate();-
1893}
executed 2444 times by 6 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
2444
1894void QSettings::remove(const QString &key)-
1895{-
1896 QSettingsPrivate * const d = d_func();-
1897-
1898-
1899-
1900-
1901 QString theKey = d->normalizedKey(key);-
1902 if (theKey.isEmpty()
theKey.isEmpty()Description
TRUEevaluated 112 times by 3 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
FALSEevaluated 152 times by 3 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
)
112-152
1903 theKey = group();
executed 112 times by 3 tests: theKey = group();
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
112
1904 else-
1905 theKey.prepend(d->groupPrefix);
executed 152 times by 3 tests: theKey.prepend(d->groupPrefix);
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
152
1906-
1907 if (theKey.isEmpty()
theKey.isEmpty()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 263 times by 3 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
) {
1-263
1908 d->clear();-
1909 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QSettings
else {
1
1910 d->remove(theKey);-
1911 }
executed 263 times by 3 tests: end of block
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
263
1912 d->requestUpdate();-
1913}
executed 264 times by 3 tests: end of block
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSettings
264
1914bool QSettings::contains(const QString &key) const-
1915{-
1916 const QSettingsPrivate * const d = d_func();-
1917 QString k = d->actualKey(key);-
1918 return
executed 218 times by 1 test: return d->get(k, 0);
Executed by:
  • tst_QSettings
d->get(k, 0);
executed 218 times by 1 test: return d->get(k, 0);
Executed by:
  • tst_QSettings
218
1919}-
1920void QSettings::setFallbacksEnabled(bool b)-
1921{-
1922 QSettingsPrivate * const d = d_func();-
1923 d->fallbacks = !!b;-
1924}
executed 58 times by 1 test: end of block
Executed by:
  • tst_QSettings
58
1925bool QSettings::fallbacksEnabled() const-
1926{-
1927 const QSettingsPrivate * const d = d_func();-
1928 return
executed 34 times by 1 test: return d->fallbacks;
Executed by:
  • tst_QSettings
d->fallbacks;
executed 34 times by 1 test: return d->fallbacks;
Executed by:
  • tst_QSettings
34
1929}-
1930-
1931-
1932-
1933-
1934-
1935bool QSettings::event(QEvent *event)-
1936{-
1937 QSettingsPrivate * const d = d_func();-
1938 if (event->type() == QEvent::UpdateRequest
event->type() ...:UpdateRequestDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEnever evaluated
) {
0-4
1939 d->update();-
1940 return
executed 4 times by 1 test: return true;
Executed by:
  • tst_QSettings
true;
executed 4 times by 1 test: return true;
Executed by:
  • tst_QSettings
4
1941 }-
1942 return
never executed: return QObject::event(event);
QObject::event(event);
never executed: return QObject::event(event);
0
1943}-
1944QVariant QSettings::value(const QString &key, const QVariant &defaultValue) const-
1945{-
1946 const QSettingsPrivate * const d = d_func();-
1947 if (key.isEmpty()
key.isEmpty()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 46301 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
1-46301
1948 QMessageLogger(__FILE__, 3286, __PRETTY_FUNCTION__).warning("QSettings::value: Empty key passed");-
1949 return
executed 1 time by 1 test: return QVariant();
Executed by:
  • tst_QSettings
QVariant();
executed 1 time by 1 test: return QVariant();
Executed by:
  • tst_QSettings
1
1950 }-
1951 QVariant result = defaultValue;-
1952 QString k = d->actualKey(key);-
1953 d->get(k, &result);-
1954 return
executed 46301 times by 30 tests: return result;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
result;
executed 46301 times by 30 tests: return result;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
46301
1955}-
1956void QSettings::setDefaultFormat(Format format)-
1957{-
1958 globalDefaultFormat = format;-
1959}
executed 2 times by 1 test: end of block
Executed by:
  • tst_QSettings
2
1960QSettings::Format QSettings::defaultFormat()-
1961{-
1962 return
executed 2 times by 1 test: return globalDefaultFormat;
Executed by:
  • tst_QSettings
globalDefaultFormat;
executed 2 times by 1 test: return globalDefaultFormat;
Executed by:
  • tst_QSettings
2
1963}-
1964void QSettings::setSystemIniPath(const QString &dir)-
1965{-
1966 setPath(IniFormat, SystemScope, dir);-
1967-
1968 setPath(NativeFormat, SystemScope, dir);-
1969-
1970}
executed 140 times by 1 test: end of block
Executed by:
  • tst_QSettings
140
1971-
1972-
1973-
1974-
1975-
1976-
1977-
1978void QSettings::setUserIniPath(const QString &dir)-
1979{-
1980 setPath(IniFormat, UserScope, dir);-
1981-
1982 setPath(NativeFormat, UserScope, dir);-
1983-
1984}
executed 140 times by 1 test: end of block
Executed by:
  • tst_QSettings
140
1985void QSettings::setPath(Format format, Scope scope, const QString &path)-
1986{-
1987 QMutexLocker locker(&settingsGlobalMutex);-
1988 PathHash *pathHash = pathHashFunc();-
1989 if (pathHash->isEmpty()
pathHash->isEmpty()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 567 times by 1 test
Evaluated by:
  • tst_QSettings
)
1-567
1990 initDefaultPaths(&locker);
executed 1 time by 1 test: initDefaultPaths(&locker);
Executed by:
  • tst_QSettings
1
1991 pathHash->insert(pathHashKey(format, scope), path + QDir::separator());-
1992}
executed 568 times by 1 test: end of block
Executed by:
  • tst_QSettings
568
1993QSettings::Format QSettings::registerFormat(const QString &extension, ReadFunc readFunc,-
1994 WriteFunc writeFunc,-
1995 Qt::CaseSensitivity caseSensitivity)-
1996{-
1997-
1998 ((!(caseSensitivity == Qt::CaseSensitive)) ? qt_assert("caseSensitivity == Qt::CaseSensitive",__FILE__,3475) : qt_noop());-
1999-
2000-
2001 QMutexLocker locker(&settingsGlobalMutex);-
2002 CustomFormatVector *customFormatVector = customFormatVectorFunc();-
2003 int index = customFormatVector->size();-
2004 if (index == 16
index == 16Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QSettings
)
0-3
2005 return
never executed: return QSettings::InvalidFormat;
QSettings::InvalidFormat;
never executed: return QSettings::InvalidFormat;
0
2006-
2007 QConfFileCustomFormat info;-
2008 info.extension = QLatin1Char('.') + extension;-
2009 info.readFunc = readFunc;-
2010 info.writeFunc = writeFunc;-
2011 info.caseSensitivity = caseSensitivity;-
2012 customFormatVector->append(info);-
2013-
2014 return
executed 3 times by 1 test: return QSettings::Format((int)QSettings::CustomFormat1 + index);
Executed by:
  • tst_QSettings
QSettings::Format((int)QSettings::CustomFormat1 + index);
executed 3 times by 1 test: return QSettings::Format((int)QSettings::CustomFormat1 + index);
Executed by:
  • tst_QSettings
3
2015}-
2016-
2017-
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9