QVirtualKeyboardSelectionListModel Class
List model for selection lists. More...
Header: | #include <QVirtualKeyboardSelectionListModel> |
qmake: | QT += virtualkeyboard |
Instantiated By: | QVirtualKeyboardSelectionListModel |
Inherits: | QAbstractListModel |
Public Types
enum | DictionaryType { DictionaryType::Default, DictionaryType::User } |
enum | Role { Role::Display, Role::DisplayRole, Role::WordCompletionLength, Role::WordCompletionLengthRole, Role::Dictionary, Role::CanRemoveSuggestion } |
enum | Type { Type::WordCandidateList } |
Properties
- count : const int
- 1 property inherited from QObject
Public Functions
void | removeItem(int index) |
void | selectItem(int index) |
- 4 public functions inherited from QAbstractListModel
- 40 public functions inherited from QAbstractItemModel
- 31 public functions inherited from QObject
Signals
void | activeItemChanged(int index) |
void | countChanged() |
void | itemSelected(int index) |
- 18 signals inherited from QAbstractItemModel
- 2 signals inherited from QObject
Static Public Members
const QMetaObject | staticMetaObject |
- 9 static public members inherited from QObject
Additional Inherited Members
- 2 public slots inherited from QAbstractItemModel
- 1 public slot inherited from QObject
- 1 public variable inherited from QAbstractListModel
- 1 public variable inherited from QAbstractItemModel
- 1 public variable inherited from QObject
- 19 protected functions inherited from QAbstractItemModel
- 9 protected functions inherited from QObject
- 1 protected slot inherited from QAbstractItemModel
- 2 protected variables inherited from QObject
Detailed Description
List model for selection lists.
This class acts as a bridge between the UI and the input method that provides the data for selection lists.
Member Type Documentation
enum QVirtualKeyboardSelectionListModel::DictionaryType
This enum specifies the dictionary type of a word.
Constant | Value | Description |
---|---|---|
QVirtualKeyboardSelectionListModel::DictionaryType::Default | ? | The word candidate is from the default dictionary. |
QVirtualKeyboardSelectionListModel::DictionaryType::User | ? | The word candidate is from the user dictionary. |
enum QVirtualKeyboardSelectionListModel::Role
This enum specifies a role of the data requested.
Constant | Value | Description |
---|---|---|
QVirtualKeyboardSelectionListModel::Role::Display | ? | The data to be rendered in form of text. |
QVirtualKeyboardSelectionListModel::Role::DisplayRole | ? | obsolete Use Role::Display. |
QVirtualKeyboardSelectionListModel::Role::WordCompletionLength | ? | An integer specifying the length of the word the completion part expressed as the number of characters counted from the end of the string. |
QVirtualKeyboardSelectionListModel::Role::WordCompletionLengthRole | ? | obsolete Use Role::WordCompletionLength. |
QVirtualKeyboardSelectionListModel::Role::Dictionary | ? | An integer specifying l {QVirtualKeyboardSelectionListModel::DictionaryType}{dictionary type}. |
QVirtualKeyboardSelectionListModel::Role::CanRemoveSuggestion | ? | A boolean value indicating if the word candidate can be removed from the dictionary. |
enum QVirtualKeyboardSelectionListModel::Type
This enum specifies the type of selection list.
Constant | Value | Description |
---|---|---|
QVirtualKeyboardSelectionListModel::Type::WordCandidateList | ? | Shows list of word candidates |
Member Function Documentation
[signal]
void QVirtualKeyboardSelectionListModel::activeItemChanged(int index)
[signal]
void QVirtualKeyboardSelectionListModel::itemSelected(int index)
void QVirtualKeyboardSelectionListModel::removeItem(int index)
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
void QVirtualKeyboardSelectionListModel::selectItem(int index)
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.