33 mDualView->setFeatureSelectionManager( mFeatureSelection );
52 QWindow *mainWindow =
nullptr;
55 if ( w->objectName() == QStringLiteral(
"QgisAppWindow" ) )
64 QSize margins( size() - scrollAreaWidgetContents->size() );
65 QSize innerWinSize( mainWindow->width(), mainWindow->height() );
66 setMaximumSize( innerWinSize );
67 QSize minSize( scrollAreaWidgetContents->sizeHint() );
68 setMinimumSize( std::min( minSize.width() + margins.width( ), innerWinSize.width() ),
69 std::min( minSize.height() + margins.width( ), innerWinSize.height() ) );
72 QDialog::showEvent( event );
QSet< QgsFeatureId > QgsFeatureIds
static QgsApplication * instance()
Returns the singleton instance of the QgsApplication.
This class contains context information for attribute editor widgets.
void showEvent(QShowEvent *event) override
Make sure the dialog does not grow too much.
QgsFeatureSelectionDlg(QgsVectorLayer *vl, QgsAttributeEditorContext &context, QWidget *parent=nullptr)
Constructor for QgsFeatureSelectionDlg.
const QgsFeatureIds & selectedFeatures()
Gets the selected features.
This class wraps a request for features to a vector layer (or directly its vector data provider)...
void setSelectedFeatures(const QgsFeatureIds &ids)
Set the selected features.
This selection manager synchronizes a local set of selected features with an attribute table...
void setSelectedFeatures(const QgsFeatureIds &ids) override
Change selection to the new set of features.
Represents a vector layer which manages a vector based data sets.
const QgsFeatureIds & selectedFeatureIds() const override
Returns reference to identifiers of selected features.