34 mDualView->setFeatureSelectionManager( mFeatureSelection );
53 QWindow *mainWindow =
nullptr;
56 if ( w->objectName() == QStringLiteral(
"QgisAppWindow" ) )
65 QSize margins( size() - scrollAreaWidgetContents->size() );
66 QSize innerWinSize( mainWindow->width(), mainWindow->height() );
67 setMaximumSize( innerWinSize );
68 QSize minSize( scrollAreaWidgetContents->sizeHint() );
69 setMinimumSize( std::min( minSize.width() + margins.width( ), innerWinSize.width() ),
70 std::min( minSize.height() + margins.width( ), innerWinSize.height() ) );
73 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.