QGIS API Documentation  3.8.0-Zanzibar (11aff65)
Public Slots | Signals | Public Member Functions | Properties | List of all members
QgsSvgSourceLineEdit Class Reference

A line edit widget with toolbutton for setting an SVG image path. More...

#include <qgsfilecontentsourcelineedit.h>

Inheritance diagram for QgsSvgSourceLineEdit:
Inheritance graph
[legend]

Public Slots

void setSource (const QString &source)
 Sets a new source to show in the widget. More...
 
- Public Slots inherited from QgsAbstractFileContentSourceLineEdit
void setSource (const QString &source)
 Sets a new source to show in the widget. More...
 

Signals

void sourceChanged (const QString &source)
 Emitted whenever the SVG source is changed in the widget. More...
 
- Signals inherited from QgsAbstractFileContentSourceLineEdit
void sourceChanged (const QString &source)
 Emitted whenever the file source is changed in the widget. More...
 

Public Member Functions

 QgsSvgSourceLineEdit (QWidget *parent=nullptr)
 Constructor for QgsSvgSourceLineEdit, with the specified parent widget. More...
 
 QgsSvgSourceLineEdit (QWidget *parent=nullptr)
 Constructor for QgsSvgSourceLineEdit, with the specified parent widget. More...
 
void setLastPathSettingsKey (const QString &key)
 Sets a specific settings key to use when storing the last used path for the SVG source. More...
 
QString source () const
 Returns the current SVG source. More...
 
- Public Member Functions inherited from QgsAbstractFileContentSourceLineEdit
 QgsAbstractFileContentSourceLineEdit (QWidget *parent=nullptr)
 Constructor for QgsAbstractFileContentSourceLineEdit, with the specified parent widget. More...
 
QgsMessageBarmessageBar () const
 Returns the message bar associated with the widget. More...
 
void setLastPathSettingsKey (const QString &key)
 Sets a specific settings key to use when storing the last used path for the file source. More...
 
void setMessageBar (QgsMessageBar *bar)
 Sets the message bar associated with the widget. More...
 
QString source () const
 Returns the current file source. More...
 

Properties

QString source
 
- Properties inherited from QgsAbstractFileContentSourceLineEdit
QString source
 

Detailed Description

A line edit widget with toolbutton for setting an SVG image path.

Designed for use with QgsSvgCache.

See also
QgsImageSourceLineEdit
Since
QGIS 3.4
QGIS 3.4

Definition at line 180 of file qgsfilecontentsourcelineedit.h.

Constructor & Destructor Documentation

◆ QgsSvgSourceLineEdit() [1/2]

QgsSvgSourceLineEdit::QgsSvgSourceLineEdit ( QWidget *  parent = nullptr)
inline

Constructor for QgsSvgSourceLineEdit, with the specified parent widget.

Definition at line 188 of file qgsfilecontentsourcelineedit.h.

◆ QgsSvgSourceLineEdit() [2/2]

QgsSvgSourceLineEdit::QgsSvgSourceLineEdit ( QWidget *  parent = nullptr)

Constructor for QgsSvgSourceLineEdit, with the specified parent widget.

Member Function Documentation

◆ setLastPathSettingsKey()

void QgsSvgSourceLineEdit::setLastPathSettingsKey ( const QString &  key)

Sets a specific settings key to use when storing the last used path for the SVG source.

◆ setSource

void QgsSvgSourceLineEdit::setSource ( const QString &  source)
slot

Sets a new source to show in the widget.

See also
source()
sourceChanged()

◆ source()

QString QgsSvgSourceLineEdit::source ( ) const

Returns the current SVG source.

See also
setSource()
sourceChanged()

◆ sourceChanged

void QgsSvgSourceLineEdit::sourceChanged ( const QString &  source)
signal

Emitted whenever the SVG source is changed in the widget.

Property Documentation

◆ source

QString QgsSvgSourceLineEdit::source
readwrite

Definition at line 35 of file qgsfilesourcelineedit.h.


The documentation for this class was generated from the following files: