16#ifndef QGSDATASOURCESELECTDIALOG_H
17#define QGSDATASOURCESELECTDIALOG_H
19#include "ui_qgsdatasourceselectdialog.h"
84 void expandPath(
const QString &path,
bool selectPath =
false );
100 void showEvent( QShowEvent *e )
override;
103 void dropEvent( QDropEvent *event )
override;
127 void onLayerSelected(
const QModelIndex &index );
129 void itemDoubleClicked(
const QModelIndex &index );
133 void refreshModel(
const QModelIndex &index );
135 void setValid(
bool valid );
138 QString acceptableFilePath( QDropEvent *event )
const;
143 QLabel *mDescriptionLabel =
nullptr;
144 bool mIsValid =
true;
199 void expandPath(
const QString &path,
bool selectPath =
false );
LayerType
Types of layers that can be added to a map.
A model for showing available data sources and other items in a structured tree.
A QSortFilterProxyModel subclass for filtering and sorting browser model items.
void setFilter()
Apply filter to the model.
void showFilterWidget(bool visible)
Show/hide filter widget.
void setCaseSensitive(bool caseSensitive)
Sets filter case sensitivity.
void setFilterSyntax(QAction *)
Sets filter syntax.
QgsMimeDataUtils::Uri uri() const
Returns the (possibly invalid) uri of the selected data source.
void expandPath(const QString &path, bool selectPath=false)
Expands out a file path in the view.
void setDescription(const QString &description)
Sets a description label.
QgsDataSourceSelectDialog(QgsBrowserGuiModel *browserModel=nullptr, bool setFilterByLayerType=false, Qgis::LayerType layerType=Qgis::LayerType::Vector, QWidget *parent=nullptr)
Constructs a QgsDataSourceSelectDialog, optionally filtering by layer type.
void setLayerTypeFilter(Qgis::LayerType layerType)
Sets layer type filter to layerType and activates the filtering.