A model for displaying SVG files with a preview icon.
More...
#include <qgssvgselectorwidget.h>
A model for displaying SVG files with a preview icon.
Population of the model is performed in a background thread to ensure that initial creation of the model is responsive and does not block the GUI.
Definition at line 304 of file qgssvgselectorwidget.h.
◆ QgsSvgSelectorListModel() [1/2]
QgsSvgSelectorListModel::QgsSvgSelectorListModel |
( |
QObject * |
parent, |
|
|
int |
iconSize = 30 |
|
) |
| |
◆ QgsSvgSelectorListModel() [2/2]
QgsSvgSelectorListModel::QgsSvgSelectorListModel |
( |
QObject * |
parent, |
|
|
const QString & |
path, |
|
|
int |
iconSize = 30 |
|
) |
| |
Constructor for creating a model for SVG files in a specific path.
- Parameters
-
parent | parent object |
path | initial path, which is recursively searched |
iconSize | desired size of SVG icons to create |
Definition at line 240 of file qgssvgselectorwidget.cpp.
◆ data()
QVariant QgsSvgSelectorListModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
◆ rowCount()
int QgsSvgSelectorListModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ TestQgsSvgSelectorWidget
friend class TestQgsSvgSelectorWidget |
|
friend |
◆ mSvgFiles
QStringList QgsSvgSelectorListModel::mSvgFiles |
|
protected |
The documentation for this class was generated from the following files: