QtInterfaceFrameworkModule Class
The QtInterfaceFrameworkModule class holds enums which are used by multiple classes of QtInterfaceFramework and provides convenience functions to register types to QML. More...
Header: | #include <QtInterfaceFrameworkModule> |
qmake: | QT += interfaceframework |
In QML: | QtInterfaceFramework |
Inherits: | QObject |
Public Types
flags | ModelCapabilities |
enum | ModelCapability { NoExtras, SupportsGetSize, SupportsFiltering, SupportsSorting, SupportsAndConjunction, …, SupportsRemove } |
Static Public Members
void | registerQmlTypes(const QString &uri, int majorVersion = 1, int minorVersion = 0) |
void | registerTypes() |
Member Type Documentation
enum QtInterfaceFrameworkModule::ModelCapability
flags QtInterfaceFrameworkModule::ModelCapabilities
Constant | Value | Description |
---|---|---|
QtInterfaceFrameworkModule::NoExtras | 0x0 | The backend does only support the minimum feature set and is stateful. |
QtInterfaceFrameworkModule::SupportsGetSize | 0x1 | The backend can return the final number of items for a specific request. This makes it possible to support the QIfFilterAndBrowseModel::DataChanged loading type. |
QtInterfaceFrameworkModule::SupportsFiltering | 0x2 | The backend supports filtering of the content. QIfFilterAndBrowseModelInterface::availableContentTypesChanged() and QIfFilterAndBrowseModelInterface::queryIdentifiersChanged() will be used as input for the Qt Interface Framework Query Language. |
QtInterfaceFrameworkModule::SupportsSorting | 0x4 | The backend supports sorting of the content. QIfFilterAndBrowseModelInterface::availableContentTypesChanged() and QIfFilterAndBrowseModelInterface::queryIdentifiersChanged() will be used as input for the Qt Interface Framework Query Language. |
QtInterfaceFrameworkModule::SupportsAndConjunction | 0x8 | The backend supports handling multiple filters at the same time and these filters can be combined by using the AND conjunction. |
QtInterfaceFrameworkModule::SupportsOrConjunction | 0x10 | The backend supports handling multiple filters at the same time and these filters can be combined by using the OR conjunction. |
QtInterfaceFrameworkModule::SupportsStatelessNavigation | 0x20 | The backend is stateless and supports handling multiple instances of a QIfFilterAndBrowseModel requesting different data at the same time. E.g. One request for artists, sorted by name and another request for tracks. The backend has to consider that both request come from models which are currently visible at the same time. |
QtInterfaceFrameworkModule::SupportsInsert | 0x40 | The backend supports inserting new items at a given position. |
QtInterfaceFrameworkModule::SupportsMove | 0x80 | The backend supports moving items within the model. |
QtInterfaceFrameworkModule::SupportsRemove | 0x100 | The backend supports removing items from the model. |
The ModelCapabilities type is a typedef for QFlags<ModelCapability>. It stores an OR combination of ModelCapability values.
Member Function Documentation
[static]
void QtInterfaceFrameworkModule::registerQmlTypes(const QString &uri, int majorVersion = 1, int minorVersion = 0)
Registers the QtInterfaceFramework classes to the QML System in the library imported from uri having the version number composed from majorVersion and minorVersion.
[static]
void QtInterfaceFrameworkModule::registerTypes()
Registers all enums in this class in the Qt MetaType system
© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.