31 Q_PROPERTY(
int position READ position WRITE setPosition)
32 Q_PROPERTY(Type type READ type WRITE setType)
33 Q_PROPERTY(QString previousText READ previousText WRITE setPreviousText)
34 Q_PROPERTY(QVariant previousVariant READ previousVariant WRITE setPreviousVariant)
35 Q_PROPERTY(
int previousPosition READ previousPosition WRITE setPreviousPosition)
36 Q_PROPERTY(
bool enabled READ enabled WRITE setEnabled)
37 Q_PROPERTY(
bool merged READ merged WRITE setMerged)
47 int position(
void) {
return m_position; };
48 void setPosition(
int pos) { m_position = pos; };
49 Type type(
void) {
return m_type; };
50 void setType(Type type) { m_type = type; };
51 QString previousText(
void) {
return m_previousText; };
52 void setPreviousText(QString text) { m_previousText = text; };
53 QVariant previousVariant(
void) {
return m_previousVariant; };
54 void setPreviousVariant(QVariant value) { m_previousVariant = value; };
55 int previousPosition(
void) {
return m_previousPosition; };
56 void setPreviousPosition(
int pos) { m_previousPosition = pos; };
57 bool enabled(
void) {
return m_enabled; };
58 void setEnabled(
bool enabled) { m_enabled = enabled; };
59 bool merged(
void) {
return m_merged; };
60 void setMerged(
bool merged) { m_merged = merged; };
65 QString m_previousText;
66 QVariant m_previousVariant;
67 int m_previousPosition;
68 bool m_enabled =
true;
69 bool m_merged =
false;
73 bool posCheck = r1.m_position == r2.m_position;
74 bool typeCheck = r1.m_type == r2.m_type;
75 bool previousTextCheck = r1.m_previousText == r2.m_previousText;
76 bool previousVariantCheck = r1.m_previousVariant == r2.m_previousVariant;
77 bool previousPositionCheck = r1.m_previousPosition == r2.m_previousPosition;
78 bool enabledCheck = r1.m_enabled == r2.m_enabled;
79 bool mergedCheck = r1.m_merged == r2.m_merged;
80 return (posCheck && typeCheck && previousTextCheck && previousVariantCheck && previousPositionCheck && enabledCheck && mergedCheck);