aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/itemregister.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/itemregister.h')
-rw-r--r--plugin/itemregister.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/plugin/itemregister.h b/plugin/itemregister.h
index 479bca7..9c9430a 100644
--- a/plugin/itemregister.h
+++ b/plugin/itemregister.h
@@ -1,4 +1,4 @@
-#ifndef ITEMREGISTER_H
+/*#ifndef ITEMREGISTER_H
#define ITEMREGISTER_H
#include <QObject>
@@ -16,15 +16,20 @@ public:
void registerItem(QQuickItem* item);
void unregisterItem(QQuickItem* item);
- const QList<QQuickItem*> items() const;
+ //find the items that are within the same scope as the argument item
+ const QList<QQuickItem*> siblingItems(QQuickItem* item) const;
private Q_SLOTS:
void onItemDestroyed(QObject *obj);
private:
+ //find the item's first parent that is cursor navigable
+ QQuickItem *findParent(QQuickItem* item);
+
//for now the data structure is just a list. could be replaced with something more efficient for the final purpose
QList<QQuickItem*> m_items;
};
#endif // ITEMREGISTER_H
+*/