mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Fix code style
This commit is contained in:
parent
66cbab0a93
commit
fa847d16ff
@ -54,7 +54,7 @@ being added.
|
||||
%Docstring
|
||||
Called when this source select widget is being shown in a "new and clean" dialog.
|
||||
|
||||
The data source manager recycles exisiting source select widgets but will call
|
||||
The data source manager recycles existing source select widgets but will call
|
||||
this method on every reopening.
|
||||
This should clear any selection that has previously been done.
|
||||
|
||||
|
@ -70,7 +70,7 @@ class GUI_EXPORT QgsAbstractDataSourceWidget : public QDialog
|
||||
/**
|
||||
* Called when this source select widget is being shown in a "new and clean" dialog.
|
||||
*
|
||||
* The data source manager recycles exisiting source select widgets but will call
|
||||
* The data source manager recycles existing source select widgets but will call
|
||||
* this method on every reopening.
|
||||
* This should clear any selection that has previously been done.
|
||||
*
|
||||
|
@ -75,9 +75,10 @@ class GUI_EXPORT QgsDataSourceManagerDialog : public QgsOptionsDialogBase, priva
|
||||
//! Sync current page with the leftbar list
|
||||
void setCurrentPage( int index );
|
||||
|
||||
// TODO: use this with an internal source select dialog instead of forwarding the whole raster selection to app
|
||||
|
||||
/**
|
||||
* A raster layer was added: for signal forwarding to QgisApp
|
||||
* TODO: use this with an internal source select dialog instead of forwarding the whole raster selection to app
|
||||
*/
|
||||
void rasterLayerAdded( QString const &uri, QString const &baseName, QString const &providerKey );
|
||||
//! A vector layer was added: for signal forwarding to QgisApp
|
||||
@ -89,6 +90,13 @@ class GUI_EXPORT QgsDataSourceManagerDialog : public QgsOptionsDialogBase, priva
|
||||
//! Refresh the browser view
|
||||
void refresh();
|
||||
|
||||
/**
|
||||
* Resets the interface of the datasource manager after reopening the dialog.
|
||||
*
|
||||
* Will clear the selection of embedded all source selection widgets.
|
||||
*
|
||||
* \since QGIS 3.10
|
||||
*/
|
||||
void reset();
|
||||
|
||||
protected:
|
||||
|
@ -58,12 +58,12 @@ QWidget *QgsPgSourceSelectDelegate::createEditor( QWidget *parent, const QStyleO
|
||||
{
|
||||
QComboBox *cb = new QComboBox( parent );
|
||||
static const QList<QgsWkbTypes::Type> types { QgsWkbTypes::Point
|
||||
, QgsWkbTypes::LineString
|
||||
, QgsWkbTypes::Polygon
|
||||
, QgsWkbTypes::MultiPoint
|
||||
, QgsWkbTypes::MultiLineString
|
||||
, QgsWkbTypes::MultiPolygon
|
||||
, QgsWkbTypes::NoGeometry };
|
||||
, QgsWkbTypes::LineString
|
||||
, QgsWkbTypes::Polygon
|
||||
, QgsWkbTypes::MultiPoint
|
||||
, QgsWkbTypes::MultiLineString
|
||||
, QgsWkbTypes::MultiPolygon
|
||||
, QgsWkbTypes::NoGeometry };
|
||||
for ( QgsWkbTypes::Type type : types )
|
||||
{
|
||||
cb->addItem( QgsPgTableModel::iconForWkbType( type ), QgsPostgresConn::displayStringForWkbType( type ), type );
|
||||
|
Loading…
x
Reference in New Issue
Block a user