equal
deleted
inserted
replaced
16 */ |
16 */ |
17 |
17 |
18 #ifndef HSMENUVIEW_H |
18 #ifndef HSMENUVIEW_H |
19 #define HSMENUVIEW_H |
19 #define HSMENUVIEW_H |
20 |
20 |
|
21 #include <QAbstractItemView> |
21 #include <QObject> |
22 #include <QObject> |
22 #include <QModelIndex> |
23 #include <QModelIndex> |
23 #include <QAbstractItemView> |
|
24 #include <QScopedPointer> |
24 #include <QScopedPointer> |
25 #include <QSortFilterProxyModel> |
25 #include <QSortFilterProxyModel> |
26 #include <HbAbstractItemView> |
26 #include <HbAbstractItemView> |
27 #include "hsmenustates_global.h" |
27 #include "hsmenustates_global.h" |
28 #include "hsmenuviewbuilder.h" |
28 #include "hsmenuviewbuilder.h" |
80 |
80 |
81 private slots: |
81 private slots: |
82 void scrollToRow(int row, |
82 void scrollToRow(int row, |
83 QAbstractItemView::ScrollHint hint = |
83 QAbstractItemView::ScrollHint hint = |
84 QAbstractItemView::PositionAtTop); |
84 QAbstractItemView::PositionAtTop); |
|
85 void handleSearchComplete(const QModelIndex& firstMatching); |
85 |
86 |
86 private: |
87 private: |
87 |
88 |
88 HbAbstractItemView::ScrollHint convertScrollHint( |
89 HbAbstractItemView::ScrollHint convertScrollHint( |
89 QAbstractItemView::ScrollHint hint); |
90 QAbstractItemView::ScrollHint hint); |
100 HbListView *mListView; // may be NULL in some contexts |
101 HbListView *mListView; // may be NULL in some contexts |
101 HbGroupBox *mViewLabel; // may be NULL in some contexts |
102 HbGroupBox *mViewLabel; // may be NULL in some contexts |
102 HbPushButton *mAddContentButton; // may be NULL in some contexts |
103 HbPushButton *mAddContentButton; // may be NULL in some contexts |
103 |
104 |
104 QScopedPointer<HsSearchView> mHsSearchView; |
105 QScopedPointer<HsSearchView> mHsSearchView; |
105 |
|
106 HS_STATES_TEST_FRIEND_CLASS(MenuStatesTest) |
106 HS_STATES_TEST_FRIEND_CLASS(MenuStatesTest) |
107 }; |
107 }; |
108 |
108 |
109 |
109 |
110 #endif // HSMENUVIEW_H |
110 #endif // HSMENUVIEW_H |