QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
|
A model for displaying SVG files with a preview icon. More...
#include <qgssvgselectorwidget.h>
Public Member Functions | |
QgsSvgSelectorListModel (QObject *parent, const QString &path, int iconSize=30) | |
Constructor for creating a model for SVG files in a specific path. | |
QgsSvgSelectorListModel (QObject *parent, int iconSize=30) | |
Constructor for QgsSvgSelectorListModel. | |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
Protected Attributes | |
QStringList | mSvgFiles |
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 306 of file qgssvgselectorwidget.h.
QgsSvgSelectorListModel::QgsSvgSelectorListModel | ( | QObject * | parent, |
int | iconSize = 30 |
||
) |
Constructor for QgsSvgSelectorListModel.
All SVGs in folders from the application SVG search paths will be shown.
parent | parent object |
iconSize | desired size of SVG icons to create |
Definition at line 236 of file qgssvgselectorwidget.cpp.
QgsSvgSelectorListModel::QgsSvgSelectorListModel | ( | QObject * | parent, |
const QString & | path, | ||
int | iconSize = 30 |
||
) |
Constructor for creating a model for SVG files in a specific path.
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.
|
override |
Definition at line 285 of file qgssvgselectorwidget.cpp.
|
override |
Definition at line 250 of file qgssvgselectorwidget.cpp.
|
protected |
Definition at line 332 of file qgssvgselectorwidget.h.