| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | enum XSettingsType { | - |
| 10 | XSettingsTypeInteger = 0, | - |
| 11 | XSettingsTypeString = 1, | - |
| 12 | XSettingsTypeColor = 2 | - |
| 13 | }; | - |
| 14 | | - |
| 15 | class QXcbXSettingsCallback | - |
| 16 | { | - |
| 17 | public: | - |
| 18 | QXcbXSettings::PropertyChangeFunc func; | - |
| 19 | void *handle; | - |
| 20 | }; | - |
| 21 | | - |
| 22 | class QXcbXSettingsPropertyValue | - |
| 23 | { | - |
| 24 | public: | - |
| 25 | QXcbXSettingsPropertyValue() | - |
| 26 | : last_change_serial(-1) | - |
| 27 | {}executed 969 times by 19 tests: end of blockExecuted by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| 969 |
| 28 | | - |
| 29 | void updateValue(QXcbVirtualDesktop *screen, const QByteArray &name, const QVariant &value, int last_change_serial) | - |
| 30 | { | - |
| 31 | if (last_change_serial <= this->last_change_serial| TRUE | never evaluated | | FALSE | evaluated 950 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
|
) | 0-950 |
| 32 | return; never executed: return; | 0 |
| 33 | this->value = value; | - |
| 34 | this->last_change_serial = last_change_serial; | - |
| 35 | QLinkedList<QXcbXSettingsCallback>::const_iterator it = callback_links.begin(); | - |
| 36 | for (;it != callback_links.end()| TRUE | never evaluated | | FALSE | evaluated 950 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
|
;++it) { | 0-950 |
| 37 | it->func(screen,name,value,it->handle); | - |
| 38 | } never executed: end of block | 0 |
| 39 | }executed 950 times by 19 tests: end of blockExecuted by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| 950 |
| 40 | | - |
| 41 | void addCallback(QXcbXSettings::PropertyChangeFunc func, void *handle) | - |
| 42 | { | - |
| 43 | QXcbXSettingsCallback callback; | - |
| 44 | callback.func = func; | - |
| 45 | callback.handle = handle; | - |
| 46 | callback_links.append(callback); | - |
| 47 | }executed 19 times by 19 tests: end of blockExecuted by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| 19 |
| 48 | | - |
| 49 | QVariant value; | - |
| 50 | int last_change_serial; | - |
| 51 | QLinkedList<QXcbXSettingsCallback> callback_links; | - |
| 52 | | - |
| 53 | }; | - |
| 54 | | - |
| 55 | class QXcbXSettingsPrivate | - |
| 56 | { | - |
| 57 | public: | - |
| 58 | QXcbXSettingsPrivate(QXcbVirtualDesktop *screen) | - |
| 59 | : screen(screen) | - |
| 60 | , initialized(false) | - |
| 61 | { | - |
| 62 | }executed 19 times by 19 tests: end of blockExecuted by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| 19 |
| 63 | | - |
| 64 | QByteArray getSettings() | - |
| 65 | { | - |
| 66 | QXcbConnectionGrabber connectionGrabber(screen->connection()); | - |
| 67 | | - |
| 68 | int offset = 0; | - |
| 69 | QByteArray settings; | - |
| 70 | xcb_atom_t _xsettings_atom = screen->connection()->atom(QXcbAtom::_XSETTINGS_SETTINGS); | - |
| 71 | while (1) { | - |
| 72 | xcb_get_property_cookie_t get_prop_cookie = | - |
| 73 | xcb_get_property_unchecked(screen->xcb_connection(), | - |
| 74 | false, | - |
| 75 | x_settings_window, | - |
| 76 | _xsettings_atom, | - |
| 77 | _xsettings_atom, | - |
| 78 | offset/4, | - |
| 79 | 8192); | - |
| 80 | xcb_get_property_reply_t *reply = xcb_get_property_reply(screen->xcb_connection(), get_prop_cookie, __null); | - |
| 81 | bool more = false; | - |
| 82 | if (!reply| TRUE | never evaluated | | FALSE | evaluated 19 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
|
) | 0-19 |
| 83 | return never executed: return settings; settings;never executed: return settings; | 0 |
| 84 | | - |
| 85 | settings += QByteArray((const char *)xcb_get_property_value(reply), xcb_get_property_value_length(reply)); | - |
| 86 | offset += xcb_get_property_value_length(reply); | - |
| 87 | more = reply->bytes_after != 0; | - |
| 88 | | - |
| 89 | free(reply); | - |
| 90 | | - |
| 91 | if (!more| TRUE | evaluated 19 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| | FALSE | never evaluated |
) | 0-19 |
| 92 | break;executed 19 times by 19 tests: break;Executed by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| 19 |
| 93 | } never executed: end of block | 0 |
| 94 | | - |
| 95 | returnexecuted 19 times by 19 tests: return settings;Executed by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
settings;executed 19 times by 19 tests: return settings;Executed by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| 19 |
| 96 | } | - |
| 97 | | - |
| 98 | static int round_to_nearest_multiple_of_4(int value) | - |
| 99 | { | - |
| 100 | int remainder = value % 4; | - |
| 101 | if (!remainder| TRUE | evaluated 380 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| | FALSE | evaluated 988 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
|
) | 380-988 |
| 102 | returnexecuted 380 times by 19 tests: return value;Executed by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
value;executed 380 times by 19 tests: return value;Executed by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| 380 |
| 103 | returnexecuted 988 times by 19 tests: return value + 4 - remainder;Executed by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
value + 4 - remainder;executed 988 times by 19 tests: return value + 4 - remainder;Executed by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| 988 |
| 104 | } | - |
| 105 | | - |
| 106 | | - |
| 107 | void populateSettings(const QByteArray &xSettings) | - |
| 108 | { | - |
| 109 | if (xSettings.length() < 12| TRUE | never evaluated | | FALSE | evaluated 19 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
|
) | 0-19 |
| 110 | return; never executed: return; | 0 |
| 111 | char byteOrder = xSettings.at(0); | - |
| 112 | if (byteOrder != 0| TRUE | never evaluated | | FALSE | evaluated 19 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
|
&& byteOrder != 1| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0-19 |
| 113 | QMessageLogger(__FILE__, 150, __PRETTY_FUNCTION__).warning("ByteOrder byte %d not 0 or 1", byteOrder); | - |
| 114 | return; never executed: return; | 0 |
| 115 | } | - |
| 116 | uint number_of_settings = ((| TRUE | evaluated 19 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| | FALSE | never evaluated |
byteOrder == 0)| TRUE | evaluated 19 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| | FALSE | never evaluated |
? qFromLittleEndian<quint32>((const uchar *)(xSettings.mid(8,4).constData())) : qFromBigEndian<quint32>((const uchar *)(xSettings.mid(8,4).constData()))); | 0-19 |
| 117 | const char *data = xSettings.constData() + 12; | - |
| 118 | size_t offset = 0; | - |
| 119 | for (uint i = 0; i < number_of_settings| TRUE | evaluated 950 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| | FALSE | evaluated 19 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
|
; i++) { | 19-950 |
| 120 | int local_offset = 0; | - |
| 121 | if ((| TRUE | never evaluated | | FALSE | evaluated 950 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
|
size_t)xSettings.length() < (offset + local_offset + 12 + 2)| TRUE | never evaluated | | FALSE | evaluated 950 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
|
) { QMessageLogger(__FILE__, 169, __PRETTY_FUNCTION__).warning("Length %d runs past end of data", 2); return;never executed: return; }; | 0-950 |
| 122 | XSettingsType type = static_cast<XSettingsType>(*reinterpret_cast<const quint8 *>(data + offset)); | - |
| 123 | local_offset += 2; | - |
| 124 | | - |
| 125 | if ((| TRUE | never evaluated | | FALSE | evaluated 950 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
|
size_t)xSettings.length() < (offset + local_offset + 12 + 2)| TRUE | never evaluated | | FALSE | evaluated 950 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
|
) { QMessageLogger(__FILE__, 173, __PRETTY_FUNCTION__).warning("Length %d runs past end of data", 2); return;never executed: return; }; | 0-950 |
| 126 | quint16 name_len = ((| TRUE | evaluated 950 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| | FALSE | never evaluated |
byteOrder == 0)| TRUE | evaluated 950 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| | FALSE | never evaluated |
? qFromLittleEndian<quint16>((const uchar *)(data + offset + local_offset)) : qFromBigEndian<quint16>((const uchar *)(data + offset + local_offset))); | 0-950 |
| 127 | local_offset += 2; | - |
| 128 | | - |
| 129 | if ((| TRUE | never evaluated | | FALSE | evaluated 950 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
|
size_t)xSettings.length() < (offset + local_offset + 12 + name_len)| TRUE | never evaluated | | FALSE | evaluated 950 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
|
) { QMessageLogger(__FILE__, 177, __PRETTY_FUNCTION__).warning("Length %d runs past end of data", name_len); return;never executed: return; }; | 0-950 |
| 130 | QByteArray name(data + offset + local_offset, name_len); | - |
| 131 | local_offset += round_to_nearest_multiple_of_4(name_len); | - |
| 132 | | - |
| 133 | if ((| TRUE | never evaluated | | FALSE | evaluated 950 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
|
size_t)xSettings.length() < (offset + local_offset + 12 + 4)| TRUE | never evaluated | | FALSE | evaluated 950 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
|
) { QMessageLogger(__FILE__, 181, __PRETTY_FUNCTION__).warning("Length %d runs past end of data", 4); return;never executed: return; }; | 0-950 |
| 134 | int last_change_serial = ((| TRUE | evaluated 950 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| | FALSE | never evaluated |
byteOrder == 0)| TRUE | evaluated 950 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| | FALSE | never evaluated |
? qFromLittleEndian<qint32>((const uchar *)(data + offset + local_offset)) : qFromBigEndian<qint32>((const uchar *)(data + offset + local_offset))); | 0-950 |
| 135 | (void)last_change_serial;; | - |
| 136 | local_offset += 4; | - |
| 137 | | - |
| 138 | QVariant value; | - |
| 139 | if (type == XSettingsTypeString| TRUE | evaluated 418 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| | FALSE | evaluated 532 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
|
) { | 418-532 |
| 140 | if ((| TRUE | never evaluated | | FALSE | evaluated 418 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
|
size_t)xSettings.length() < (offset + local_offset + 12 + 4)| TRUE | never evaluated | | FALSE | evaluated 418 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
|
) { QMessageLogger(__FILE__, 188, __PRETTY_FUNCTION__).warning("Length %d runs past end of data", 4); return;never executed: return; }; | 0-418 |
| 141 | int value_length = ((| TRUE | evaluated 418 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| | FALSE | never evaluated |
byteOrder == 0)| TRUE | evaluated 418 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| | FALSE | never evaluated |
? qFromLittleEndian<qint32>((const uchar *)(data + offset + local_offset)) : qFromBigEndian<qint32>((const uchar *)(data + offset + local_offset))); | 0-418 |
| 142 | local_offset+=4; | - |
| 143 | if ((| TRUE | never evaluated | | FALSE | evaluated 418 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
|
size_t)xSettings.length() < (offset + local_offset + 12 + value_length)| TRUE | never evaluated | | FALSE | evaluated 418 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
|
) { QMessageLogger(__FILE__, 191, __PRETTY_FUNCTION__).warning("Length %d runs past end of data", value_length); return;never executed: return; }; | 0-418 |
| 144 | QByteArray value_string(data + offset + local_offset, value_length); | - |
| 145 | value.setValue(value_string); | - |
| 146 | local_offset += round_to_nearest_multiple_of_4(value_length); | - |
| 147 | }executed 418 times by 19 tests: end of blockExecuted by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
else if (type == XSettingsTypeInteger| TRUE | evaluated 532 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| | FALSE | never evaluated |
) { | 0-532 |
| 148 | if ((| TRUE | never evaluated | | FALSE | evaluated 532 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
|
size_t)xSettings.length() < (offset + local_offset + 12 + 4)| TRUE | never evaluated | | FALSE | evaluated 532 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
|
) { QMessageLogger(__FILE__, 196, __PRETTY_FUNCTION__).warning("Length %d runs past end of data", 4); return;never executed: return; }; | 0-532 |
| 149 | int value_length = ((| TRUE | evaluated 532 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| | FALSE | never evaluated |
byteOrder == 0)| TRUE | evaluated 532 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| | FALSE | never evaluated |
? qFromLittleEndian<qint32>((const uchar *)(data + offset + local_offset)) : qFromBigEndian<qint32>((const uchar *)(data + offset + local_offset))); | 0-532 |
| 150 | local_offset += 4; | - |
| 151 | value.setValue(value_length); | - |
| 152 | }executed 532 times by 19 tests: end of blockExecuted by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
else if (type == XSettingsTypeColor| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0-532 |
| 153 | if ((| TRUE | never evaluated | | FALSE | never evaluated |
size_t)xSettings.length() < (offset + local_offset + 12 + 2*4)| TRUE | never evaluated | | FALSE | never evaluated |
) { QMessageLogger(__FILE__, 201, __PRETTY_FUNCTION__).warning("Length %d runs past end of data", 2*4); return;never executed: return; }; | 0 |
| 154 | quint16 red = ((| TRUE | never evaluated | | FALSE | never evaluated |
byteOrder == 0)| TRUE | never evaluated | | FALSE | never evaluated |
? qFromLittleEndian<quint16>((const uchar *)(data + offset + local_offset)) : qFromBigEndian<quint16>((const uchar *)(data + offset + local_offset))); | 0 |
| 155 | local_offset += 2; | - |
| 156 | quint16 green = ((| TRUE | never evaluated | | FALSE | never evaluated |
byteOrder == 0)| TRUE | never evaluated | | FALSE | never evaluated |
? qFromLittleEndian<quint16>((const uchar *)(data + offset + local_offset)) : qFromBigEndian<quint16>((const uchar *)(data + offset + local_offset))); | 0 |
| 157 | local_offset += 2; | - |
| 158 | quint16 blue = ((| TRUE | never evaluated | | FALSE | never evaluated |
byteOrder == 0)| TRUE | never evaluated | | FALSE | never evaluated |
? qFromLittleEndian<quint16>((const uchar *)(data + offset + local_offset)) : qFromBigEndian<quint16>((const uchar *)(data + offset + local_offset))); | 0 |
| 159 | local_offset += 2; | - |
| 160 | quint16 alpha= ((| TRUE | never evaluated | | FALSE | never evaluated |
byteOrder == 0)| TRUE | never evaluated | | FALSE | never evaluated |
? qFromLittleEndian<quint16>((const uchar *)(data + offset + local_offset)) : qFromBigEndian<quint16>((const uchar *)(data + offset + local_offset))); | 0 |
| 161 | local_offset += 2; | - |
| 162 | QColor color_value(red,green,blue,alpha); | - |
| 163 | value.setValue(color_value); | - |
| 164 | } never executed: end of block | 0 |
| 165 | offset += local_offset; | - |
| 166 | settings[name].updateValue(screen,name,value,last_change_serial); | - |
| 167 | }executed 950 times by 19 tests: end of blockExecuted by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| 950 |
| 168 | | - |
| 169 | }executed 19 times by 19 tests: end of blockExecuted by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| 19 |
| 170 | | - |
| 171 | | - |
| 172 | QXcbVirtualDesktop *screen; | - |
| 173 | xcb_window_t x_settings_window; | - |
| 174 | QMap<QByteArray, QXcbXSettingsPropertyValue> settings; | - |
| 175 | bool initialized; | - |
| 176 | }; | - |
| 177 | | - |
| 178 | | - |
| 179 | QXcbXSettings::QXcbXSettings(QXcbVirtualDesktop *screen) | - |
| 180 | : d_ptr(new QXcbXSettingsPrivate(screen)) | - |
| 181 | { | - |
| 182 | QByteArray settings_atom_for_screen("_XSETTINGS_S"); | - |
| 183 | settings_atom_for_screen.append(QByteArray::number(screen->number())); | - |
| 184 | xcb_intern_atom_cookie_t atom_cookie = xcb_intern_atom(screen->xcb_connection(), | - |
| 185 | true, | - |
| 186 | settings_atom_for_screen.length(), | - |
| 187 | settings_atom_for_screen.constData()); | - |
| 188 | xcb_generic_error_t *error = 0; | - |
| 189 | xcb_intern_atom_reply_t *atom_reply = xcb_intern_atom_reply(screen->xcb_connection(),atom_cookie,&error); | - |
| 190 | if (error| TRUE | never evaluated | | FALSE | evaluated 19 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
|
) { | 0-19 |
| 191 | free(error); | - |
| 192 | return; never executed: return; | 0 |
| 193 | } | - |
| 194 | xcb_atom_t selection_owner_atom = atom_reply->atom; | - |
| 195 | free(atom_reply); | - |
| 196 | | - |
| 197 | xcb_get_selection_owner_cookie_t selection_cookie = | - |
| 198 | xcb_get_selection_owner(screen->xcb_connection(), selection_owner_atom); | - |
| 199 | | - |
| 200 | xcb_get_selection_owner_reply_t *selection_result = | - |
| 201 | xcb_get_selection_owner_reply(screen->xcb_connection(), selection_cookie, &error); | - |
| 202 | if (error| TRUE | never evaluated | | FALSE | evaluated 19 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
|
) { | 0-19 |
| 203 | free(error); | - |
| 204 | return; never executed: return; | 0 |
| 205 | } | - |
| 206 | | - |
| 207 | d_ptr->x_settings_window = selection_result->owner; | - |
| 208 | free(selection_result); | - |
| 209 | if (!d_ptr->x_settings_window| TRUE | never evaluated | | FALSE | evaluated 19 times by 19 testsEvaluated by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
|
) { | 0-19 |
| 210 | return; never executed: return; | 0 |
| 211 | } | - |
| 212 | | - |
| 213 | const uint32_t event = XCB_CW_EVENT_MASK; | - |
| 214 | const uint32_t event_mask[] = { XCB_EVENT_MASK_STRUCTURE_NOTIFY|XCB_EVENT_MASK_PROPERTY_CHANGE }; | - |
| 215 | xcb_change_window_attributes(screen->xcb_connection(),d_ptr->x_settings_window,event,event_mask); | - |
| 216 | | - |
| 217 | | - |
| 218 | d_ptr->populateSettings(d_ptr->getSettings()); | - |
| 219 | d_ptr->initialized = true; | - |
| 220 | | - |
| 221 | }executed 19 times by 19 tests: end of blockExecuted by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| 19 |
| 222 | | - |
| 223 | QXcbXSettings::~QXcbXSettings() | - |
| 224 | { | - |
| 225 | delete d_ptr; | - |
| 226 | d_ptr = 0; | - |
| 227 | }executed 19 times by 19 tests: end of blockExecuted by:- tst_qaccessibility - unknown status
- tst_qcompleter - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qgraphicsitem - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qgraphicsview - unknown status
- tst_qgraphicswidget - unknown status
- tst_qitemview - unknown status
- tst_qlineedit - unknown status
- tst_qmainwindow - unknown status
- tst_qmdiarea - unknown status
- tst_qprinter - unknown status
- tst_qsizegrip - unknown status
- tst_qstackedlayout - unknown status
- tst_qstylesheetstyle - unknown status
- tst_qtableview - unknown status
- tst_qtextbrowser - unknown status
- tst_qwidget - unknown status
| 19 |
| 228 | | - |
| 229 | bool QXcbXSettings::initialized() const | - |
| 230 | { | - |
| 231 | const QXcbXSettingsPrivate * const d = d_func(); | - |
| 232 | returnexecuted 19 times by 19 tests: return d->initialized;Executed by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
d->initialized;executed 19 times by 19 tests: return d->initialized;Executed by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| 19 |
| 233 | } | - |
| 234 | | - |
| 235 | void QXcbXSettings::handlePropertyNotifyEvent(const xcb_property_notify_event_t *event) | - |
| 236 | { | - |
| 237 | QXcbXSettingsPrivate * const d = d_func(); | - |
| 238 | if (event->window != d->x_settings_window| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 239 | return; never executed: return; | 0 |
| 240 | | - |
| 241 | d->populateSettings(d->getSettings()); | - |
| 242 | | - |
| 243 | } never executed: end of block | 0 |
| 244 | | - |
| 245 | void QXcbXSettings::registerCallbackForProperty(const QByteArray &property, QXcbXSettings::PropertyChangeFunc func, void *handle) | - |
| 246 | { | - |
| 247 | QXcbXSettingsPrivate * const d = d_func(); | - |
| 248 | d->settings[property].addCallback(func,handle); | - |
| 249 | }executed 19 times by 19 tests: end of blockExecuted by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| 19 |
| 250 | | - |
| 251 | void QXcbXSettings::removeCallbackForHandle(const QByteArray &property, void *handle) | - |
| 252 | { | - |
| 253 | QXcbXSettingsPrivate * const d = d_func(); | - |
| 254 | QXcbXSettingsPropertyValue &value = d->settings[property]; | - |
| 255 | QLinkedList<QXcbXSettingsCallback>::iterator it = value.callback_links.begin(); | - |
| 256 | while (it != value.callback_links.end()| TRUE | evaluated 19 times by 19 testsEvaluated by:- tst_qaccessibility - unknown status
- tst_qcompleter - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qgraphicsitem - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qgraphicsview - unknown status
- tst_qgraphicswidget - unknown status
- tst_qitemview - unknown status
- tst_qlineedit - unknown status
- tst_qmainwindow - unknown status
- tst_qmdiarea - unknown status
- tst_qprinter - unknown status
- tst_qsizegrip - unknown status
- tst_qstackedlayout - unknown status
- tst_qstylesheetstyle - unknown status
- tst_qtableview - unknown status
- tst_qtextbrowser - unknown status
- tst_qwidget - unknown status
| | FALSE | evaluated 950 times by 19 testsEvaluated by:- tst_qaccessibility - unknown status
- tst_qcompleter - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qgraphicsitem - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qgraphicsview - unknown status
- tst_qgraphicswidget - unknown status
- tst_qitemview - unknown status
- tst_qlineedit - unknown status
- tst_qmainwindow - unknown status
- tst_qmdiarea - unknown status
- tst_qprinter - unknown status
- tst_qsizegrip - unknown status
- tst_qstackedlayout - unknown status
- tst_qstylesheetstyle - unknown status
- tst_qtableview - unknown status
- tst_qtextbrowser - unknown status
- tst_qwidget - unknown status
|
) { | 19-950 |
| 257 | if (it->handle == handle| TRUE | evaluated 19 times by 19 testsEvaluated by:- tst_qaccessibility - unknown status
- tst_qcompleter - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qgraphicsitem - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qgraphicsview - unknown status
- tst_qgraphicswidget - unknown status
- tst_qitemview - unknown status
- tst_qlineedit - unknown status
- tst_qmainwindow - unknown status
- tst_qmdiarea - unknown status
- tst_qprinter - unknown status
- tst_qsizegrip - unknown status
- tst_qstackedlayout - unknown status
- tst_qstylesheetstyle - unknown status
- tst_qtableview - unknown status
- tst_qtextbrowser - unknown status
- tst_qwidget - unknown status
| | FALSE | never evaluated |
) | 0-19 |
| 258 | it = value.callback_links.erase(it);executed 19 times by 19 tests: it = value.callback_links.erase(it);Executed by:- tst_qaccessibility - unknown status
- tst_qcompleter - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qgraphicsitem - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qgraphicsview - unknown status
- tst_qgraphicswidget - unknown status
- tst_qitemview - unknown status
- tst_qlineedit - unknown status
- tst_qmainwindow - unknown status
- tst_qmdiarea - unknown status
- tst_qprinter - unknown status
- tst_qsizegrip - unknown status
- tst_qstackedlayout - unknown status
- tst_qstylesheetstyle - unknown status
- tst_qtableview - unknown status
- tst_qtextbrowser - unknown status
- tst_qwidget - unknown status
| 19 |
| 259 | else | - |
| 260 | ++ never executed: ++it; it;never executed: ++it; | 0 |
| 261 | } | - |
| 262 | }executed 950 times by 19 tests: end of blockExecuted by:- tst_qaccessibility - unknown status
- tst_qcompleter - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qgraphicsitem - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qgraphicsview - unknown status
- tst_qgraphicswidget - unknown status
- tst_qitemview - unknown status
- tst_qlineedit - unknown status
- tst_qmainwindow - unknown status
- tst_qmdiarea - unknown status
- tst_qprinter - unknown status
- tst_qsizegrip - unknown status
- tst_qstackedlayout - unknown status
- tst_qstylesheetstyle - unknown status
- tst_qtableview - unknown status
- tst_qtextbrowser - unknown status
- tst_qwidget - unknown status
| 950 |
| 263 | | - |
| 264 | void QXcbXSettings::removeCallbackForHandle(void *handle) | - |
| 265 | { | - |
| 266 | QXcbXSettingsPrivate * const d = d_func(); | - |
| 267 | for (QMap<QByteArray, QXcbXSettingsPropertyValue>::const_iterator it = d->settings.cbegin(); | - |
| 268 | it != d->settings.cend()| TRUE | evaluated 950 times by 19 testsEvaluated by:- tst_qaccessibility - unknown status
- tst_qcompleter - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qgraphicsitem - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qgraphicsview - unknown status
- tst_qgraphicswidget - unknown status
- tst_qitemview - unknown status
- tst_qlineedit - unknown status
- tst_qmainwindow - unknown status
- tst_qmdiarea - unknown status
- tst_qprinter - unknown status
- tst_qsizegrip - unknown status
- tst_qstackedlayout - unknown status
- tst_qstylesheetstyle - unknown status
- tst_qtableview - unknown status
- tst_qtextbrowser - unknown status
- tst_qwidget - unknown status
| | FALSE | evaluated 19 times by 19 testsEvaluated by:- tst_qaccessibility - unknown status
- tst_qcompleter - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qgraphicsitem - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qgraphicsview - unknown status
- tst_qgraphicswidget - unknown status
- tst_qitemview - unknown status
- tst_qlineedit - unknown status
- tst_qmainwindow - unknown status
- tst_qmdiarea - unknown status
- tst_qprinter - unknown status
- tst_qsizegrip - unknown status
- tst_qstackedlayout - unknown status
- tst_qstylesheetstyle - unknown status
- tst_qtableview - unknown status
- tst_qtextbrowser - unknown status
- tst_qwidget - unknown status
|
; ++it) { | 19-950 |
| 269 | removeCallbackForHandle(it.key(),handle); | - |
| 270 | }executed 950 times by 19 tests: end of blockExecuted by:- tst_qaccessibility - unknown status
- tst_qcompleter - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qgraphicsitem - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qgraphicsview - unknown status
- tst_qgraphicswidget - unknown status
- tst_qitemview - unknown status
- tst_qlineedit - unknown status
- tst_qmainwindow - unknown status
- tst_qmdiarea - unknown status
- tst_qprinter - unknown status
- tst_qsizegrip - unknown status
- tst_qstackedlayout - unknown status
- tst_qstylesheetstyle - unknown status
- tst_qtableview - unknown status
- tst_qtextbrowser - unknown status
- tst_qwidget - unknown status
| 950 |
| 271 | }executed 19 times by 19 tests: end of blockExecuted by:- tst_qaccessibility - unknown status
- tst_qcompleter - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qgraphicsitem - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qgraphicsview - unknown status
- tst_qgraphicswidget - unknown status
- tst_qitemview - unknown status
- tst_qlineedit - unknown status
- tst_qmainwindow - unknown status
- tst_qmdiarea - unknown status
- tst_qprinter - unknown status
- tst_qsizegrip - unknown status
- tst_qstackedlayout - unknown status
- tst_qstylesheetstyle - unknown status
- tst_qtableview - unknown status
- tst_qtextbrowser - unknown status
- tst_qwidget - unknown status
| 19 |
| 272 | | - |
| 273 | QVariant QXcbXSettings::setting(const QByteArray &property) const | - |
| 274 | { | - |
| 275 | const QXcbXSettingsPrivate * const d = d_func(); | - |
| 276 | returnexecuted 19 times by 19 tests: return d->settings.value(property).value;Executed by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
d->settings.value(property).value;executed 19 times by 19 tests: return d->settings.value(property).value;Executed by:- tst_QAccessibility
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QItemView
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QPrinter
- tst_QSizeGrip
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTextBrowser
- tst_QWidget
| 19 |
| 277 | } | - |
| 278 | | - |
| 279 | | - |
| | |