┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kitemmodelbase.h
diff options
context:
space:
mode:
authorTirtha Chatterjee <[email protected]>2011-08-29 04:12:05 +0530
committerTirtha Chatterjee <[email protected]>2011-08-29 04:12:05 +0530
commitafca8efa2601d9566c8d34d7b67dfb5abc729956 (patch)
tree8ecd46cfe49bcde18e11e1f8056844022cb9935d /src/kitemviews/kitemmodelbase.h
parentb01c73607be9974032a15a4b8ab39d5379991cb6 (diff)
Added support for highlighting items by typing their name on the keyboard.
Diffstat (limited to 'src/kitemviews/kitemmodelbase.h')
-rw-r--r--src/kitemviews/kitemmodelbase.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/kitemviews/kitemmodelbase.h b/src/kitemviews/kitemmodelbase.h
index 467046959..c4e046402 100644
--- a/src/kitemviews/kitemmodelbase.h
+++ b/src/kitemviews/kitemmodelbase.h
@@ -116,6 +116,13 @@ public:
*/
virtual QMimeData* createMimeData(const QSet<int>& indexes) const;
+ /**
+ * @return Reimplement this to return the index for the first item
+ * beginning with string typed in through the keyboard, -1 if not found.
+ * @param text the text which has been typed in through the keyboard
+ * @param startFromIndex the index from which to start searching from
+ */
+ virtual int indexForKeyboardSearch(const QString& text, int startFromIndex = 0) const;
signals:
/**
* Is emitted if one or more items have been inserted. Each item-range consists