QGIS API Documentation 3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Member Functions | List of all members
QgsPictureSourceLineEditBase Class Reference

A line edit widget with toolbutton for setting a raster image path. More...

#include <qgsfilecontentsourcelineedit.h>

Inheritance diagram for QgsPictureSourceLineEditBase:
Inheritance graph
[legend]

Public Types

enum  Format { Svg , Image , AnimatedImage }
 Format of source image. More...
 

Public Member Functions

 QgsPictureSourceLineEditBase (QWidget *parent=nullptr)
 Constructor for QgsImageSourceLineEdit, with the specified parent widget.
 
void setMode (Format format)
 Defines the mode of the source line edit.
 
- Public Member Functions inherited from QgsAbstractFileContentSourceLineEdit
 QgsAbstractFileContentSourceLineEdit (QWidget *parent=nullptr)
 Constructor for QgsAbstractFileContentSourceLineEdit, with the specified parent widget.
 
QgsMessageBarmessageBar () const
 Returns the message bar associated with the widget.
 
QgsPropertyOverrideButtonpropertyOverrideToolButton () const
 Returns the property override tool button.
 
void setLastPathSettingsKey (const QString &key)
 Sets a specific settings key to use when storing the last used path for the file source.
 
void setMessageBar (QgsMessageBar *bar)
 Sets the message bar associated with the widget.
 
void setPropertyOverrideToolButtonVisible (bool visible)
 Sets the visibility of the property override tool button.
 
QString source () const
 Returns the current file source.
 

Protected Member Functions

 QgsPictureSourceLineEditBase (Format format, QWidget *parent=nullptr)
 Constructor for QgsImageSourceLineEdit, with the specified parent widget.
 

Additional Inherited Members

- Public Slots inherited from QgsAbstractFileContentSourceLineEdit
void setSource (const QString &source)
 Sets a new source to show in the widget.
 
- Signals inherited from QgsAbstractFileContentSourceLineEdit
void sourceChanged (const QString &source)
 Emitted whenever the file source is changed in the widget.
 
- Properties inherited from QgsAbstractFileContentSourceLineEdit
QString source
 

Detailed Description

A line edit widget with toolbutton for setting a raster image path.

See also
QgsSvgSourceLineEdit
Since
QGIS 3.20

Definition at line 185 of file qgsfilecontentsourcelineedit.h.

Member Enumeration Documentation

◆ Format

Format of source image.

Enumerator
Svg 

SVG image.

Image 

Raster image.

AnimatedImage 

Animated image.

Since
QGIS 3.26

Definition at line 192 of file qgsfilecontentsourcelineedit.h.

Constructor & Destructor Documentation

◆ QgsPictureSourceLineEditBase() [1/2]

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

Constructor for QgsImageSourceLineEdit, with the specified parent widget.

The default format is SVG.

Definition at line 203 of file qgsfilecontentsourcelineedit.h.

◆ QgsPictureSourceLineEditBase() [2/2]

QgsPictureSourceLineEditBase::QgsPictureSourceLineEditBase ( Format  format,
QWidget *  parent = nullptr 
)
inlineprotected

Constructor for QgsImageSourceLineEdit, with the specified parent widget.

Definition at line 214 of file qgsfilecontentsourcelineedit.h.

Member Function Documentation

◆ setMode()

void QgsPictureSourceLineEditBase::setMode ( Format  format)
inline

Defines the mode of the source line edit.

Definition at line 208 of file qgsfilecontentsourcelineedit.h.


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