[addlayerbutton] Embedded dialog support

This commit is contained in:
Alessandro Pasotti 2017-05-23 12:17:43 +02:00
parent 75f0e543d9
commit 9a51d89476
3 changed files with 6 additions and 2 deletions

View File

@ -31,7 +31,7 @@ QgsAfsSourceSelect::QgsAfsSourceSelect( QWidget *parent, Qt::WindowFlags fl, boo
{
if ( embeddedMode )
{
buttonBox->button( QDialogButtonBox::Close )->hide();
buttonBox->removeButton( buttonBox->button( QDialogButtonBox::Close ) );
}
// import/export of connections not supported yet

View File

@ -30,7 +30,7 @@ QgsAmsSourceSelect::QgsAmsSourceSelect( QWidget *parent, Qt::WindowFlags fl, boo
{
if ( embeddedMode )
{
buttonBox->button( QDialogButtonBox::Close )->hide();
buttonBox->removeButton( buttonBox->button( QDialogButtonBox::Close ) );
}
// import/export of connections not supported yet

View File

@ -45,6 +45,10 @@ QgsSpatiaLiteSourceSelect::QgsSpatiaLiteSourceSelect( QWidget *parent, Qt::Windo
{
setupUi( this );
if ( embeddedMode )
{
buttonBox->removeButton( buttonBox->button( QDialogButtonBox::Close ) );
}
QgsSettings settings;
restoreGeometry( settings.value( QStringLiteral( "Windows/SpatiaLiteSourceSelect/geometry" ) ).toByteArray() );