16 #ifndef QGSSVGSOURCELINEEDIT_H
17 #define QGSSVGSOURCELINEEDIT_H
35 Q_PROPERTY( QString source READ source WRITE setSource NOTIFY sourceChanged )
78 void mFileLineEdit_textEdited(
const QString &text );
79 void mFileLineEdit_editingFinished();
83 QLineEdit *mFileLineEdit =
nullptr;
84 QToolButton *mFileToolButton =
nullptr;
87 QString defaultPath()
const;
88 QString settingsKey()
const;
A line edit widget with toolbutton for setting an SVG image path.
void setSource(const QString &source)
Sets a new source to show in the widget.
void sourceChanged(const QString &source)
Emitted whenever the SVG source is changed in the widget.
QgsSvgSourceLineEdit(QWidget *parent=nullptr)
Constructor for QgsSvgSourceLineEdit, with the specified parent widget.
void setLastPathSettingsKey(const QString &key)
Sets a specific settings key to use when storing the last used path for the SVG source.
QString source() const
Returns the current SVG source.