#include <SvgSymbolCollectionDocker.h>
Definition at line 26 of file SvgSymbolCollectionDocker.h.
◆ SvgCollectionModel()
| SvgCollectionModel::SvgCollectionModel |
( |
QObject * | parent = 0 | ) |
|
|
explicit |
◆ data()
| QVariant SvgCollectionModel::data |
( |
const QModelIndex & | index, |
|
|
int | role = Qt::DisplayRole ) const |
|
override |
Definition at line 42 of file SvgSymbolCollectionDocker.cpp.
43{
45 return QVariant();
46 }
47
48 switch (role) {
49 case Qt::ToolTipRole:
51
52 case Qt::DecorationRole:
53 {
55 QIcon icon(px);
56 return icon;
57 }
58 case Qt::UserRole:
60
61 case Qt::DisplayRole:
62 {
65 } else {
66 return QVariant();
67 }
68 }
69 default:
70 return QVariant();
71 }
72
73 return QVariant();
74}
QSharedPointer< KoSvgSymbolCollectionResource > m_symbolCollection
References m_iconSize, m_showDescription, and m_symbolCollection.
◆ flags()
| Qt::ItemFlags SvgCollectionModel::flags |
( |
const QModelIndex & | index | ) |
const |
|
override |
Definition at line 112 of file SvgSymbolCollectionDocker.cpp.
113{
114 if (index.isValid()) {
115 return QAbstractListModel::flags(index) | Qt::ItemIsDragEnabled;
116 }
117 return QAbstractListModel::flags(index);
118}
◆ mimeData()
| QMimeData * SvgCollectionModel::mimeData |
( |
const QModelIndexList & | indexes | ) |
const |
|
override |
◆ mimeTypes()
◆ rowCount()
| int SvgCollectionModel::rowCount |
( |
const QModelIndex & | parent = QModelIndex() | ) |
const |
|
override |
◆ setIconSize()
| void SvgCollectionModel::setIconSize |
( |
int | size | ) |
|
◆ setShowDescription()
| void SvgCollectionModel::setShowDescription |
( |
bool | showDescription | ) |
|
◆ setSvgSymbolCollectionResource()
◆ supportedDragActions()
| Qt::DropActions SvgCollectionModel::supportedDragActions |
( |
| ) |
const |
|
override |
◆ m_iconSize
| int SvgCollectionModel::m_iconSize {256} |
|
private |
◆ m_showDescription
| bool SvgCollectionModel::m_showDescription {true} |
|
private |
◆ m_symbolCollection
The documentation for this class was generated from the following files: