|
Krita Source Code Documentation
|
#include <CommentModel.h>
Inheritance diagram for StoryboardCommentModel:Signals | |
| void | sigCommentListChanged () |
| Emitted whenever m_items is changed. it is used to keep the StoryboardItemList in KisDocument in sync with m_items. | |
Public Member Functions | |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override |
| Qt::ItemFlags | flags (const QModelIndex &index) const override |
| QVector< StoryboardComment > | getData () |
| returns a list of comments | |
| bool | insertRows (int position, int rows, const QModelIndex &index=QModelIndex()) override |
| QMimeData * | mimeData (const QModelIndexList &indexes) const override |
| QStringList | mimeTypes () const override |
| bool | moveRows (const QModelIndex &sourceParent, int sourceRow, int count, const QModelIndex &destinationParent, int destinationChild) override |
| bool | removeRows (int position, int rows, const QModelIndex &index=QModelIndex()) override |
| void | resetData (QVector< StoryboardComment > list) |
resets m_commentList to list. | |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override |
| StoryboardCommentModel (QObject *parent=0) | |
| Qt::DropActions | supportedDragActions () const override |
| Qt::DropActions | supportedDropActions () const override |
Private Attributes | |
| QVector< StoryboardComment > | m_commentList |
Friends | |
| class | StoryboardModel |
Definition at line 24 of file CommentModel.h.
| StoryboardCommentModel::StoryboardCommentModel | ( | QObject * | parent = 0 | ) |
Definition at line 16 of file CommentModel.cpp.
|
override |
Definition at line 28 of file CommentModel.cpp.
References KisIconUtils::loadIcon(), and m_commentList.
|
override |
Definition at line 194 of file CommentModel.cpp.
References data(), and moveRows().
|
override |
Definition at line 93 of file CommentModel.cpp.
| QVector< StoryboardComment > StoryboardCommentModel::getData | ( | ) |
returns a list of comments
Definition at line 240 of file CommentModel.cpp.
References m_commentList.
|
override |
Definition at line 102 of file CommentModel.cpp.
References m_commentList, StoryboardComment::name, sigCommentListChanged(), and StoryboardComment::visibility.
|
override |
Definition at line 175 of file CommentModel.cpp.
References encodeData(), and mimeData().
|
override |
Definition at line 168 of file CommentModel.cpp.
|
override |
Definition at line 140 of file CommentModel.cpp.
References m_commentList, and sigCommentListChanged().
|
override |
Definition at line 122 of file CommentModel.cpp.
References m_commentList, and sigCommentListChanged().
| void StoryboardCommentModel::resetData | ( | QVector< StoryboardComment > | list | ) |
resets m_commentList to list.
| list | The new list. |
Definition at line 232 of file CommentModel.cpp.
References m_commentList.
|
override |
Definition at line 22 of file CommentModel.cpp.
References m_commentList.
|
override |
Definition at line 52 of file CommentModel.cpp.
References m_commentList, StoryboardComment::name, sigCommentListChanged(), and value().
|
signal |
Emitted whenever m_items is changed. it is used to keep the StoryboardItemList in KisDocument in sync with m_items.
|
override |
Definition at line 227 of file CommentModel.cpp.
|
override |
Definition at line 222 of file CommentModel.cpp.
|
friend |
Definition at line 72 of file CommentModel.h.
|
private |
Definition at line 71 of file CommentModel.h.