aboutsummaryrefslogtreecommitdiff
path: root/Group.h
diff options
context:
space:
mode:
Diffstat (limited to 'Group.h')
-rw-r--r--Group.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/Group.h b/Group.h
index 6a8fadeb..51e0470d 100644
--- a/Group.h
+++ b/Group.h
@@ -15,8 +15,6 @@ struct Group
GroupView *view;
QString text;
bool collapsed;
- QRect iconRect;
- QRect textRect;
QVector<int> rowHeights;
int firstRow;
@@ -29,8 +27,22 @@ struct Group
int numRows() const;
int top() const;
+ enum HitResult
+ {
+ NoHit = 0x0,
+ TextHit = 0x1,
+ CheckboxHit = 0x2,
+ HeaderHit = 0x4,
+ BodyHit = 0x8
+ };
+ Q_DECLARE_FLAGS(HitResults, HitResult)
+
+ HitResults pointIntersect (const QPoint &pos) const;
+
QList<QModelIndex> items() const;
int numItems() const;
QModelIndex firstItem() const;
QModelIndex lastItem() const;
};
+
+Q_DECLARE_OPERATORS_FOR_FLAGS(Group::HitResults)