mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
31 lines
799 B
C++
31 lines
799 B
C++
|
|
#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);
|
||
|
|
} // namespace FocusControl
|
||
|
|
|
||
|
|
#endif // FOCUSCONTROL_H
|