16 #ifndef QGSDATASOURCESELECTDIALOG_H    17 #define QGSDATASOURCESELECTDIALOG_H    19 #include "ui_qgsdatasourceselectdialog.h"    45 class GUI_EXPORT QgsDataSourceSelectDialog: 
public QDialog, 
private Ui::QgsDataSourceSelectDialog
    60                                bool setFilterByLayerType = 
false,
    62                                QWidget *parent = 
nullptr );
    65     ~QgsDataSourceSelectDialog() 
override;
    78     void setDescription( 
const QString &description );
    86     void showFilterWidget( 
bool visible );
    88     void setFilterSyntax( QAction * );
    90     void setCaseSensitive( 
bool caseSensitive );
    94     void showEvent( QShowEvent *e ) 
override;
    99     void onLayerSelected( 
const QModelIndex &index );
   101     void itemDoubleClicked( 
const QModelIndex &index );
   106     void refreshModel( 
const QModelIndex &index );
   111     QLabel *mDescriptionLabel = 
nullptr;
   115 #endif // QGSDATASOURCESELECTDIALOG_H 
A model for showing available data sources and other items in a structured tree. 
 
A QSortFilterProxyModel subclass for filtering and sorting browser model items. 
 
QgsMapLayerType
Types of layers that can be added to a map.