statemachine/qhistorystate.cpp

Switch to Source codePreprocessed file
LineSource CodeCoverage
1 -
2 -
3 -
4 -
5 -
6QHistoryStatePrivate::QHistoryStatePrivate() -
7 : QAbstractStatePrivate(HistoryState), -
8 defaultState(0), historyType(QHistoryState::ShallowHistory) -
9{ -
10}
executed: }
Execution Count:7
7
11 -
12QHistoryStatePrivate *QHistoryStatePrivate::get(QHistoryState *q) -
13{ -
14 return q->d_func();
executed: return q->d_func();
Execution Count:63
63
15} -
16 -
17 -
18 -
19 -
20QHistoryState::QHistoryState(QState *parent) -
21 : QAbstractState(*new QHistoryStatePrivate, parent) -
22{ -
23}
executed: }
Execution Count:6
6
24 -
25 -
26 -
27 -
28QHistoryState::QHistoryState(HistoryType type, QState *parent) -
29 : QAbstractState(*new QHistoryStatePrivate, parent) -
30{ -
31 QHistoryStatePrivate * const d = d_func(); -
32 d->historyType = type; -
33}
executed: }
Execution Count:1
1
34 -
35 -
36 -
37 -
38QHistoryState::~QHistoryState() -
39{ -
40} -
41 -
42 -
43 -
44 -
45 -
46QAbstractState *QHistoryState::defaultState() const -
47{ -
48 const QHistoryStatePrivate * const d = d_func(); -
49 return d->defaultState;
executed: return d->defaultState;
Execution Count:4
4
50} -
51void QHistoryState::setDefaultState(QAbstractState *state) -
52{ -
53 QHistoryStatePrivate * const d = d_func(); -
54 if (state && state->parentState() != parentState()) {
partially evaluated: state
TRUEFALSE
yes
Evaluation Count:8
no
Evaluation Count:0
evaluated: state->parentState() != parentState()
TRUEFALSE
yes
Evaluation Count:2
yes
Evaluation Count:6
0-8
55 QMessageLogger("statemachine/qhistorystate.cpp", 180, __PRETTY_FUNCTION__).warning("QHistoryState::setDefaultState: state %p does not belong " -
56 "to this history state's group (%p)", state, parentState()); -
57 return;
executed: return;
Execution Count:2
2
58 } -
59 d->defaultState = state; -
60}
executed: }
Execution Count:6
6
61 -
62 -
63 -
64 -
65QHistoryState::HistoryType QHistoryState::historyType() const -
66{ -
67 const QHistoryStatePrivate * const d = d_func(); -
68 return d->historyType;
executed: return d->historyType;
Execution Count:5
5
69} -
70 -
71 -
72 -
73 -
74void QHistoryState::setHistoryType(HistoryType type) -
75{ -
76 QHistoryStatePrivate * const d = d_func(); -
77 d->historyType = type; -
78}
executed: }
Execution Count:3
3
79 -
80 -
81 -
82 -
83void QHistoryState::onEntry(QEvent *event) -
84{ -
85 (void)event;; -
86}
never executed: }
0
87 -
88 -
89 -
90 -
91void QHistoryState::onExit(QEvent *event) -
92{ -
93 (void)event;; -
94}
never executed: }
0
95 -
96 -
97 -
98 -
99bool QHistoryState::event(QEvent *e) -
100{ -
101 return QAbstractState::event(e);
never executed: return QAbstractState::event(e);
0
102} -
103 -
104 -
105 -
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial