|
| | QmlMessageModel (QObject *parent=nullptr) |
| |
| void | setLocale (QString locale) |
| |
| QString | getLocale () const |
| |
| QmlMessage * | getCurrentMessage () |
| |
| | MessageModel (QObject *parent=nullptr) |
| | Constructor.
|
| |
| | ~MessageModel () |
| | Destructor.
|
| |
| Q_INVOKABLE void | load (const QString &path, const QString &lang=QString(), const QString &pathPrefix=QString()) |
| | Loads messages from an Xml file.
|
| |
| Q_INVOKABLE void | clear () |
| | Clears the messages.
|
| |
| void | setRowLimit (int) |
| | Sets the maximum number of rows to fetch.
|
| |
| int | getRowLimit () const |
| | Gets the maxium number of rows to fetch.
|
| |
| void | connect (QtPdCom::Process *) |
| | Connects messages to the given process.
|
| |
| QtPdCom::Process * | getProcess () const |
| |
| Q_INVOKABLE void | translate (const QString &) |
| | Sets a new language and notifies views.
|
| |
| void | setIcon (Message::Type, const QIcon &) |
| | Sets an icon for a specific message type.
|
| |
| const QIcon & | getIcon (Message::Type) const |
| |
| Q_INVOKABLE void | setIconPath (Message::Type, const QString &) |
| | Sets the path (url) to an icon for a specific message type.
|
| |
| QVariantMap | getIconPathMap () const |
| |
| void | setIconPathMap (QVariantMap map) |
| |
| virtual int | rowCount (const QModelIndex &) const override |
| | Implements the model interface.
|
| |
| virtual int | columnCount (const QModelIndex &) const override |
| | Implements the model interface.
|
| |
| virtual QVariant | data (const QModelIndex &, int) const override |
| | Implements the Model interface.
|
| |
| virtual QVariant | headerData (int, Qt::Orientation, int) const override |
| | Implements the Model interface.
|
| |
| virtual Qt::ItemFlags | flags (const QModelIndex &) const override |
| | Implements the Model interface.
|
| |
| virtual QHash< int, QByteArray > | roleNames () const override |
| | Additional Rolename for decoration for use in QML views.
|
| |
| virtual bool | canFetchMore (const QModelIndex &) const override |
| |
| virtual void | fetchMore (const QModelIndex &) override |
| |