QGIS API Documentation  3.6.0-Noosa (5873452)
Public Member Functions | List of all members
QgsEncodingSelectionDialog Class Reference

A dialog which presents the user with a choice of file encodings. More...

#include <qgsencodingfiledialog.h>

Inheritance diagram for QgsEncodingSelectionDialog:
Inheritance graph
[legend]

Public Member Functions

 QgsEncodingSelectionDialog (QWidget *parent=nullptr, const QString &caption=QString(), const QString &encoding=QString(), Qt::WindowFlags flags=Qt::WindowFlags())
 Constructor for QgsEncodingSelectionDialog. More...
 
QString encoding () const
 Returns the encoding selected within the dialog. More...
 
void setEncoding (const QString &encoding)
 Sets the encoding selected within the dialog. More...
 

Detailed Description

A dialog which presents the user with a choice of file encodings.

Since
QGIS 3.0

Definition at line 69 of file qgsencodingfiledialog.h.

Constructor & Destructor Documentation

◆ QgsEncodingSelectionDialog()

QgsEncodingSelectionDialog::QgsEncodingSelectionDialog ( QWidget *  parent = nullptr,
const QString &  caption = QString(),
const QString &  encoding = QString(),
Qt::WindowFlags  flags = Qt::WindowFlags() 
)

Constructor for QgsEncodingSelectionDialog.

If caption is set, it will be used as the caption within the dialog.

The encoding argument can be used to specify the encoding initially selected in the dialog.

Definition at line 107 of file qgsencodingfiledialog.cpp.

Member Function Documentation

◆ encoding()

QString QgsEncodingSelectionDialog::encoding ( ) const

Returns the encoding selected within the dialog.

See also
setEncoding()

Definition at line 149 of file qgsencodingfiledialog.cpp.

◆ setEncoding()

void QgsEncodingSelectionDialog::setEncoding ( const QString &  encoding)

Sets the encoding selected within the dialog.

see encoding()

Definition at line 154 of file qgsencodingfiledialog.cpp.


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