qabstractslider.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/widgets/widgets/qabstractslider.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5QAbstractSliderPrivate::QAbstractSliderPrivate()-
6 : minimum(0), maximum(99), pageStep(10), value(0), position(0), pressValue(-1),-
7 singleStep(1), singleStepFromItemView(-1), viewMayChangeSingleStep(true), offset_accumulated(0), tracking(true),-
8 blocktracking(false), pressed(false),-
9 invertedAppearance(false), invertedControls(false),-
10 orientation(Qt::Horizontal), repeatAction(QAbstractSlider::SliderNoAction)-
11-
12-
13-
14-
15-
16-
17{-
18-
19-
20}
never executed: end of block
0
21-
22QAbstractSliderPrivate::~QAbstractSliderPrivate()-
23{-
24}-
25void QAbstractSlider::setRange(int min, int max)-
26{-
27 QAbstractSliderPrivate * const d = d_func();-
28 int oldMin = d->minimum;-
29 int oldMax = d->maximum;-
30 d->minimum = min;-
31 d->maximum = qMax(min, max);-
32 if (oldMin != d->minimum
oldMin != d->minimumDescription
TRUEnever evaluated
FALSEnever evaluated
|| oldMax != d->maximum
oldMax != d->maximumDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
33 sliderChange(SliderRangeChange);-
34 rangeChanged(d->minimum, d->maximum);-
35 setValue(d->value);-
36 }
never executed: end of block
0
37}
never executed: end of block
0
38-
39-
40void QAbstractSliderPrivate::setSteps(int single, int page)-
41{-
42 QAbstractSlider * const q = q_func();-
43 singleStep = qAbs(single);-
44 pageStep = qAbs(page);-
45 q->sliderChange(QAbstractSlider::SliderStepsChange);-
46}
never executed: end of block
0
47QAbstractSlider::QAbstractSlider(QWidget *parent)-
48 :QWidget(*new QAbstractSliderPrivate, parent, 0)-
49{-
50}
never executed: end of block
0
51-
52-
53QAbstractSlider::QAbstractSlider(QAbstractSliderPrivate &dd, QWidget *parent)-
54 :QWidget(dd, parent, 0)-
55{-
56}
never executed: end of block
0
57-
58-
59-
60-
61QAbstractSlider::~QAbstractSlider()-
62{-
63}-
64void QAbstractSlider::setOrientation(Qt::Orientation orientation)-
65{-
66 QAbstractSliderPrivate * const d = d_func();-
67 if (d->orientation == orientation
d->orientation == orientationDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
68 return;
never executed: return;
0
69-
70 d->orientation = orientation;-
71 if (!testAttribute(Qt::WA_WState_OwnSizePolicy)
!testAttribute...OwnSizePolicy)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
72 QSizePolicy sp = sizePolicy();-
73 sp.transpose();-
74 setSizePolicy(sp);-
75 setAttribute(Qt::WA_WState_OwnSizePolicy, false);-
76 }
never executed: end of block
0
77 update();-
78 updateGeometry();-
79}
never executed: end of block
0
80-
81Qt::Orientation QAbstractSlider::orientation() const-
82{-
83 const QAbstractSliderPrivate * const d = d_func();-
84 return
never executed: return d->orientation;
d->orientation;
never executed: return d->orientation;
0
85}-
86void QAbstractSlider::setMinimum(int min)-
87{-
88 QAbstractSliderPrivate * const d = d_func();-
89 setRange(min, qMax(d->maximum, min));-
90}
never executed: end of block
0
91-
92int QAbstractSlider::minimum() const-
93{-
94 const QAbstractSliderPrivate * const d = d_func();-
95 return
never executed: return d->minimum;
d->minimum;
never executed: return d->minimum;
0
96}-
97void QAbstractSlider::setMaximum(int max)-
98{-
99 QAbstractSliderPrivate * const d = d_func();-
100 setRange(qMin(d->minimum, max), max);-
101}
never executed: end of block
0
102-
103int QAbstractSlider::maximum() const-
104{-
105 const QAbstractSliderPrivate * const d = d_func();-
106 return
never executed: return d->maximum;
d->maximum;
never executed: return d->maximum;
0
107}-
108void QAbstractSlider::setSingleStep(int step)-
109{-
110 QAbstractSliderPrivate * const d = d_func();-
111-
112 d->viewMayChangeSingleStep = (step < 0);-
113 if (step < 0
step < 0Description
TRUEnever evaluated
FALSEnever evaluated
&& d->singleStepFromItemView > 0
d->singleStepFromItemView > 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
114 step = d->singleStepFromItemView;
never executed: step = d->singleStepFromItemView;
0
115-
116 if (step != d->singleStep
step != d->singleStepDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
117 d->setSteps(step, d->pageStep);
never executed: d->setSteps(step, d->pageStep);
0
118}
never executed: end of block
0
119-
120int QAbstractSlider::singleStep() const-
121{-
122 const QAbstractSliderPrivate * const d = d_func();-
123 return
never executed: return d->singleStep;
d->singleStep;
never executed: return d->singleStep;
0
124}-
125void QAbstractSlider::setPageStep(int step)-
126{-
127 QAbstractSliderPrivate * const d = d_func();-
128 if (step != d->pageStep
step != d->pageStepDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
129 d->setSteps(d->singleStep, step);
never executed: d->setSteps(d->singleStep, step);
0
130}
never executed: end of block
0
131-
132int QAbstractSlider::pageStep() const-
133{-
134 const QAbstractSliderPrivate * const d = d_func();-
135 return
never executed: return d->pageStep;
d->pageStep;
never executed: return d->pageStep;
0
136}-
137void QAbstractSlider::setTracking(bool enable)-
138{-
139 QAbstractSliderPrivate * const d = d_func();-
140 d->tracking = enable;-
141}
never executed: end of block
0
142-
143bool QAbstractSlider::hasTracking() const-
144{-
145 const QAbstractSliderPrivate * const d = d_func();-
146 return
never executed: return d->tracking;
d->tracking;
never executed: return d->tracking;
0
147}-
148void QAbstractSlider::setSliderDown(bool down)-
149{-
150 QAbstractSliderPrivate * const d = d_func();-
151 bool doEmit = d->pressed != down;-
152-
153 d->pressed = down;-
154-
155 if (doEmit
doEmitDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
156 if (down
downDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
157 sliderPressed();
never executed: sliderPressed();
0
158 else-
159 sliderReleased();
never executed: sliderReleased();
0
160 }-
161-
162 if (!down
!downDescription
TRUEnever evaluated
FALSEnever evaluated
&& d->position != d->value
d->position != d->valueDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
163 triggerAction(SliderMove);
never executed: triggerAction(SliderMove);
0
164}
never executed: end of block
0
165-
166bool QAbstractSlider::isSliderDown() const-
167{-
168 const QAbstractSliderPrivate * const d = d_func();-
169 return
never executed: return d->pressed;
d->pressed;
never executed: return d->pressed;
0
170}-
171void QAbstractSlider::setSliderPosition(int position)-
172{-
173 QAbstractSliderPrivate * const d = d_func();-
174 position = d->bound(position);-
175 if (position == d->position
position == d->positionDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
176 return;
never executed: return;
0
177 d->position = position;-
178 if (!d->tracking
!d->trackingDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
179 update();
never executed: update();
0
180 if (d->pressed
d->pressedDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
181 sliderMoved(position);
never executed: sliderMoved(position);
0
182 if (d->tracking
d->trackingDescription
TRUEnever evaluated
FALSEnever evaluated
&& !d->blocktracking
!d->blocktrackingDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
183 triggerAction(SliderMove);
never executed: triggerAction(SliderMove);
0
184}
never executed: end of block
0
185-
186int QAbstractSlider::sliderPosition() const-
187{-
188 const QAbstractSliderPrivate * const d = d_func();-
189 return
never executed: return d->position;
d->position;
never executed: return d->position;
0
190}-
191int QAbstractSlider::value() const-
192{-
193 const QAbstractSliderPrivate * const d = d_func();-
194 return
never executed: return d->value;
d->value;
never executed: return d->value;
0
195}-
196-
197void QAbstractSlider::setValue(int value)-
198{-
199 QAbstractSliderPrivate * const d = d_func();-
200 value = d->bound(value);-
201 if (d->value == value
d->value == valueDescription
TRUEnever evaluated
FALSEnever evaluated
&& d->position == value
d->position == valueDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
202 return;
never executed: return;
0
203 d->value = value;-
204 if (d->position != value
d->position != valueDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
205 d->position = value;-
206 if (d->pressed
d->pressedDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
207 sliderMoved((d->position = value));
never executed: sliderMoved((d->position = value));
0
208 }
never executed: end of block
0
209-
210 QAccessibleValueChangeEvent event(this, d->value);-
211 QAccessible::updateAccessibility(&event);-
212-
213 sliderChange(SliderValueChange);-
214 valueChanged(value);-
215}
never executed: end of block
0
216bool QAbstractSlider::invertedAppearance() const-
217{-
218 const QAbstractSliderPrivate * const d = d_func();-
219 return
never executed: return d->invertedAppearance;
d->invertedAppearance;
never executed: return d->invertedAppearance;
0
220}-
221-
222void QAbstractSlider::setInvertedAppearance(bool invert)-
223{-
224 QAbstractSliderPrivate * const d = d_func();-
225 d->invertedAppearance = invert;-
226 update();-
227}
never executed: end of block
0
228bool QAbstractSlider::invertedControls() const-
229{-
230 const QAbstractSliderPrivate * const d = d_func();-
231 return
never executed: return d->invertedControls;
d->invertedControls;
never executed: return d->invertedControls;
0
232}-
233-
234void QAbstractSlider::setInvertedControls(bool invert)-
235{-
236 QAbstractSliderPrivate * const d = d_func();-
237 d->invertedControls = invert;-
238}
never executed: end of block
0
239void QAbstractSlider::triggerAction(SliderAction action)-
240{-
241 QAbstractSliderPrivate * const d = d_func();-
242 d->blocktracking = true;-
243 switch (action) {-
244 case
never executed: case SliderSingleStepAdd:
SliderSingleStepAdd:
never executed: case SliderSingleStepAdd:
0
245 setSliderPosition(d->overflowSafeAdd(d->effectiveSingleStep()));-
246 break;
never executed: break;
0
247 case
never executed: case SliderSingleStepSub:
SliderSingleStepSub:
never executed: case SliderSingleStepSub:
0
248 setSliderPosition(d->overflowSafeAdd(-d->effectiveSingleStep()));-
249 break;
never executed: break;
0
250 case
never executed: case SliderPageStepAdd:
SliderPageStepAdd:
never executed: case SliderPageStepAdd:
0
251 setSliderPosition(d->overflowSafeAdd(d->pageStep));-
252 break;
never executed: break;
0
253 case
never executed: case SliderPageStepSub:
SliderPageStepSub:
never executed: case SliderPageStepSub:
0
254 setSliderPosition(d->overflowSafeAdd(-d->pageStep));-
255 break;
never executed: break;
0
256 case
never executed: case SliderToMinimum:
SliderToMinimum:
never executed: case SliderToMinimum:
0
257 setSliderPosition(d->minimum);-
258 break;
never executed: break;
0
259 case
never executed: case SliderToMaximum:
SliderToMaximum:
never executed: case SliderToMaximum:
0
260 setSliderPosition(d->maximum);-
261 break;
never executed: break;
0
262 case
never executed: case SliderMove:
SliderMove:
never executed: case SliderMove:
0
263 case
never executed: case SliderNoAction:
SliderNoAction:
never executed: case SliderNoAction:
0
264 break;
never executed: break;
0
265 };-
266 actionTriggered(action);-
267 d->blocktracking = false;-
268 setValue(d->position);-
269}
never executed: end of block
0
270-
271-
272-
273-
274-
275-
276void QAbstractSlider::setRepeatAction(SliderAction action, int thresholdTime, int repeatTime)-
277{-
278 QAbstractSliderPrivate * const d = d_func();-
279 if ((
(d->repeatActi...SliderNoActionDescription
TRUEnever evaluated
FALSEnever evaluated
d->repeatAction = action) == SliderNoAction
(d->repeatActi...SliderNoActionDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
280 d->repeatActionTimer.stop();-
281 }
never executed: end of block
else {
0
282 d->repeatActionTime = repeatTime;-
283 d->repeatActionTimer.start(thresholdTime, this);-
284 }
never executed: end of block
0
285}-
286-
287-
288-
289-
290-
291QAbstractSlider::SliderAction QAbstractSlider::repeatAction() const-
292{-
293 const QAbstractSliderPrivate * const d = d_func();-
294 return
never executed: return d->repeatAction;
d->repeatAction;
never executed: return d->repeatAction;
0
295}-
296-
297-
298-
299void QAbstractSlider::timerEvent(QTimerEvent *e)-
300{-
301 QAbstractSliderPrivate * const d = d_func();-
302 if (e->timerId() == d->repeatActionTimer.timerId()
e->timerId() =...imer.timerId()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
303 if (d->repeatActionTime
d->repeatActionTimeDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
304 d->repeatActionTimer.start(d->repeatActionTime, this);-
305 d->repeatActionTime = 0;-
306 }
never executed: end of block
0
307 if (d->repeatAction == SliderPageStepAdd
d->repeatActio...derPageStepAddDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
308 d->setAdjustedSliderPosition(d->overflowSafeAdd(d->pageStep));
never executed: d->setAdjustedSliderPosition(d->overflowSafeAdd(d->pageStep));
0
309 else if (d->repeatAction == SliderPageStepSub
d->repeatActio...derPageStepSubDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
310 d->setAdjustedSliderPosition(d->overflowSafeAdd(-d->pageStep));
never executed: d->setAdjustedSliderPosition(d->overflowSafeAdd(-d->pageStep));
0
311 else-
312 triggerAction(d->repeatAction);
never executed: triggerAction(d->repeatAction);
0
313 }-
314}
never executed: end of block
0
315void QAbstractSlider::sliderChange(SliderChange)-
316{-
317 update();-
318}
never executed: end of block
0
319-
320bool QAbstractSliderPrivate::scrollByDelta(Qt::Orientation orientation, Qt::KeyboardModifiers modifiers, int delta)-
321{-
322 QAbstractSlider * const q = q_func();-
323 int stepsToScroll = 0;-
324-
325 if (orientation == Qt::Horizontal
orientation == Qt::HorizontalDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
326 delta = -delta;
never executed: delta = -delta;
0
327 qreal offset = qreal(delta) / 120;-
328-
329 if ((
(modifiers & Q...ntrolModifier)Description
TRUEnever evaluated
FALSEnever evaluated
modifiers & Qt::ControlModifier)
(modifiers & Q...ntrolModifier)Description
TRUEnever evaluated
FALSEnever evaluated
|| (
(modifiers & Q...ShiftModifier)Description
TRUEnever evaluated
FALSEnever evaluated
modifiers & Qt::ShiftModifier)
(modifiers & Q...ShiftModifier)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
330-
331 stepsToScroll = qBound(-pageStep, int(offset * pageStep), pageStep);-
332 offset_accumulated = 0;-
333 }
never executed: end of block
else {
0
334-
335-
336-
337 qreal stepsToScrollF =-
338-
339 QApplication::wheelScrollLines() *-
340-
341 offset * effectiveSingleStep();-
342-
343 if (offset_accumulated != 0
offset_accumulated != 0Description
TRUEnever evaluated
FALSEnever evaluated
&& (
(offset / offs...cumulated) < 0Description
TRUEnever evaluated
FALSEnever evaluated
offset / offset_accumulated) < 0
(offset / offs...cumulated) < 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
344 offset_accumulated = 0;
never executed: offset_accumulated = 0;
0
345-
346 offset_accumulated += stepsToScrollF;-
347-
348-
349 stepsToScroll = qBound(-pageStep, int(offset_accumulated), pageStep);-
350-
351-
352-
353-
354-
355-
356 offset_accumulated -= int(offset_accumulated);-
357 if (stepsToScroll == 0
stepsToScroll == 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
358-
359-
360 const float effective_offset = invertedControls
invertedControlsDescription
TRUEnever evaluated
FALSEnever evaluated
? -offset_accumulated : offset_accumulated;
0
361 if (effective_offset > 0.f
effective_offset > 0.fDescription
TRUEnever evaluated
FALSEnever evaluated
&& value < maximum
value < maximumDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
362 return
never executed: return true;
true;
never executed: return true;
0
363 if (effective_offset < 0.f
effective_offset < 0.fDescription
TRUEnever evaluated
FALSEnever evaluated
&& value > minimum
value > minimumDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
364 return
never executed: return true;
true;
never executed: return true;
0
365 offset_accumulated = 0;-
366 return
never executed: return false;
false;
never executed: return false;
0
367 }-
368 }
never executed: end of block
0
369-
370 if (invertedControls
invertedControlsDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
371 stepsToScroll = -stepsToScroll;
never executed: stepsToScroll = -stepsToScroll;
0
372-
373 int prevValue = value;-
374 position = bound(overflowSafeAdd(stepsToScroll));-
375 q->triggerAction(QAbstractSlider::SliderMove);-
376-
377 if (prevValue == value
prevValue == valueDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
378 offset_accumulated = 0;-
379 return
never executed: return false;
false;
never executed: return false;
0
380 }-
381 return
never executed: return true;
true;
never executed: return true;
0
382}-
383-
384-
385-
386-
387-
388void QAbstractSlider::wheelEvent(QWheelEvent * e)-
389{-
390 QAbstractSliderPrivate * const d = d_func();-
391 e->ignore();-
392 int delta = e->delta();-
393 if (e->inverted()
e->inverted()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
394 delta = -delta;
never executed: delta = -delta;
0
395 if (d->scrollByDelta(e->orientation(), e->modifiers(), delta)
d->scrollByDel...iers(), delta)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
396 e->accept();
never executed: e->accept();
0
397}
never executed: end of block
0
398-
399-
400-
401-
402-
403-
404void QAbstractSlider::keyPressEvent(QKeyEvent *ev)-
405{-
406 QAbstractSliderPrivate * const d = d_func();-
407 SliderAction action = SliderNoAction;-
408 switch (ev->key()) {-
409 case
never executed: case Qt::Key_Left:
Qt::Key_Left:
never executed: case Qt::Key_Left:
0
410 if (isRightToLeft()
isRightToLeft()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
411 action = d->invertedAppearance
d->invertedAppearanceDescription
TRUEnever evaluated
FALSEnever evaluated
? SliderSingleStepSub : SliderSingleStepAdd;
never executed: action = d->invertedAppearance ? SliderSingleStepSub : SliderSingleStepAdd;
0
412 else-
413 action = !d->invertedAppearance
!d->invertedAppearanceDescription
TRUEnever evaluated
FALSEnever evaluated
? SliderSingleStepSub : SliderSingleStepAdd;
never executed: action = !d->invertedAppearance ? SliderSingleStepSub : SliderSingleStepAdd;
0
414 break;
never executed: break;
0
415 case
never executed: case Qt::Key_Right:
Qt::Key_Right:
never executed: case Qt::Key_Right:
0
416 if (isRightToLeft()
isRightToLeft()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
417 action = d->invertedAppearance
d->invertedAppearanceDescription
TRUEnever evaluated
FALSEnever evaluated
? SliderSingleStepAdd : SliderSingleStepSub;
never executed: action = d->invertedAppearance ? SliderSingleStepAdd : SliderSingleStepSub;
0
418 else-
419 action = !d->invertedAppearance
!d->invertedAppearanceDescription
TRUEnever evaluated
FALSEnever evaluated
? SliderSingleStepAdd : SliderSingleStepSub;
never executed: action = !d->invertedAppearance ? SliderSingleStepAdd : SliderSingleStepSub;
0
420 break;
never executed: break;
0
421 case
never executed: case Qt::Key_Up:
Qt::Key_Up:
never executed: case Qt::Key_Up:
0
422 action = d->invertedControls
d->invertedControlsDescription
TRUEnever evaluated
FALSEnever evaluated
? SliderSingleStepSub : SliderSingleStepAdd;
0
423 break;
never executed: break;
0
424 case
never executed: case Qt::Key_Down:
Qt::Key_Down:
never executed: case Qt::Key_Down:
0
425 action = d->invertedControls
d->invertedControlsDescription
TRUEnever evaluated
FALSEnever evaluated
? SliderSingleStepAdd : SliderSingleStepSub;
0
426 break;
never executed: break;
0
427 case
never executed: case Qt::Key_PageUp:
Qt::Key_PageUp:
never executed: case Qt::Key_PageUp:
0
428 action = d->invertedControls
d->invertedControlsDescription
TRUEnever evaluated
FALSEnever evaluated
? SliderPageStepSub : SliderPageStepAdd;
0
429 break;
never executed: break;
0
430 case
never executed: case Qt::Key_PageDown:
Qt::Key_PageDown:
never executed: case Qt::Key_PageDown:
0
431 action = d->invertedControls
d->invertedControlsDescription
TRUEnever evaluated
FALSEnever evaluated
? SliderPageStepAdd : SliderPageStepSub;
0
432 break;
never executed: break;
0
433 case
never executed: case Qt::Key_Home:
Qt::Key_Home:
never executed: case Qt::Key_Home:
0
434 action = SliderToMinimum;-
435 break;
never executed: break;
0
436 case
never executed: case Qt::Key_End:
Qt::Key_End:
never executed: case Qt::Key_End:
0
437 action = SliderToMaximum;-
438 break;
never executed: break;
0
439 default
never executed: default:
:
never executed: default:
0
440 ev->ignore();-
441 break;
never executed: break;
0
442 }-
443 if (action
actionDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
444 triggerAction(action);
never executed: triggerAction(action);
0
445}
never executed: end of block
0
446-
447-
448-
449-
450void QAbstractSlider::changeEvent(QEvent *ev)-
451{-
452 QAbstractSliderPrivate * const d = d_func();-
453 switch (ev->type()) {-
454 case
never executed: case QEvent::EnabledChange:
QEvent::EnabledChange:
never executed: case QEvent::EnabledChange:
0
455 if (!isEnabled()
!isEnabled()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
456 d->repeatActionTimer.stop();-
457 setSliderDown(false);-
458 }
never executed: end of block
0
459-
460 default
never executed: default:
:
never executed: default:
code before this statement never executed: default:
0
461 QWidget::changeEvent(ev);-
462 }
never executed: end of block
0
463}-
464-
465-
466-
467-
468bool QAbstractSlider::event(QEvent *e)-
469{-
470 return
never executed: return QWidget::event(e);
QWidget::event(e);
never executed: return QWidget::event(e);
0
471}-
472-
473-
474-
475-
476-
477-
478void QAbstractSliderPrivate::itemviewChangeSingleStep(int step)-
479{-
480 singleStepFromItemView = step;-
481 if (viewMayChangeSingleStep
viewMayChangeSingleStepDescription
TRUEnever evaluated
FALSEnever evaluated
&& singleStep != step
singleStep != stepDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
482 setSteps(step, pageStep);
never executed: setSteps(step, pageStep);
0
483}
never executed: end of block
0
484-
485-
486-
Switch to Source codePreprocessed file

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