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

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