rename focusControl to qmlUtils

This commit is contained in:
Cyril Anisimov 2024-12-20 15:30:20 +01:00
parent 53aa14a2ee
commit c973b8868b
4 changed files with 4 additions and 5 deletions

30
client/utils/qmlUtils.h Normal file
View file

@ -0,0 +1,30 @@
#ifndef FOCUSCONTROL_H
#define FOCUSCONTROL_H
#include <QList>
#include <QObject>
namespace focusControl
{
bool isEnabled(QObject *item);
bool isVisible(QObject *item);
bool isFocusable(QObject *item);
bool isListView(QObject *item);
bool isOnTheScene(QObject *object);
bool isMore(QObject *item1, QObject *item2);
bool isLess(QObject *item1, QObject *item2);
/*!
* \brief Make focus chain of elements which are on the scene
*/
QList<QObject *> getSubChain(QObject *object);
/*!
* \brief Make focus chain of elements which could be not on the scene
*/
QList<QObject *> getItemsChain(QObject *object);
void printItems(const QList<QObject *> &items, QObject *current_item);
}
#endif // FOCUSCONTROL_H