16 #ifndef QGSDATASOURCESELECTDIALOG_H 17 #define QGSDATASOURCESELECTDIALOG_H 19 #include "ui_qgsdatasourceselectdialog.h" 60 bool setFilterByLayerType =
false,
62 QWidget *parent =
nullptr );
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 );
109 std::unique_ptr<QgsBrowserModel> mBrowserModel;
110 bool mOwnModel =
true;
112 QLabel *mDescriptionLabel =
nullptr;
116 #endif // QGSDATASOURCESELECTDIALOG_H
The QgsDataSourceSelectDialog class embeds the browser view to select an existing data source...
A QSortFilterProxyModel subclass for filtering and sorting browser model items.
A model for showing available data sources and other items in a structured tree.
QgsMapLayerType
Types of layers that can be added to a map.