fix ListView navigation
This commit is contained in:
parent
f3df9eb5f5
commit
89ac585e07
5 changed files with 117 additions and 81 deletions
|
|
@ -35,10 +35,15 @@ public:
|
|||
Q_INVOKABLE void dropRootObject(QObject* object);
|
||||
|
||||
private:
|
||||
void nextItem(bool isForwardOrder);
|
||||
enum class Direction {
|
||||
Forward,
|
||||
Backward,
|
||||
};
|
||||
|
||||
void nextItem(Direction direction);
|
||||
void focusNextListViewItem();
|
||||
void focusPreviousListViewItem();
|
||||
void reload(bool isForwardOrder);
|
||||
void reload(Direction direction);
|
||||
|
||||
QSharedPointer<QQmlApplicationEngine> m_engine; // Pointer to engine to get root object
|
||||
QList<QObject*> m_focusChain; // List of current objects to be focused
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue