OpenCoverage

qxcbxsettings.cpp

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

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