Skip to content
Permalink
Browse files

QgsAttributeTableView isn't a dialog, so we can't use enableAutoGeome…

…tryRestore
  • Loading branch information
nyalldawson committed Mar 26, 2020
1 parent 5b965ce commit 4b197dac3154343c2d48231d200f01251313fc0b
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/gui/attributetable/qgsattributetableview.cpp
@@ -39,7 +39,8 @@
QgsAttributeTableView::QgsAttributeTableView( QWidget *parent )
: QTableView( parent )
{
QgsGui::instance()->enableAutoGeometryRestore( this );
QgsSettings settings;
restoreGeometry( settings.value( QStringLiteral( "BetterAttributeTable/geometry" ) ).toByteArray() );

//verticalHeader()->setDefaultSectionSize( 20 );
horizontalHeader()->setHighlightSections( false );
@@ -283,6 +284,8 @@ QWidget *QgsAttributeTableView::createActionWidget( QgsFeatureId fid )
void QgsAttributeTableView::closeEvent( QCloseEvent *e )
{
Q_UNUSED( e )
QgsSettings settings;
settings.setValue( QStringLiteral( "BetterAttributeTable/geometry" ), QVariant( saveGeometry() ) );
}

void QgsAttributeTableView::mousePressEvent( QMouseEvent *event )

0 comments on commit 4b197da

Please sign in to comment.
You can’t perform that action at this time.