mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
[addlayerbutton] Embedded dialog support
This commit is contained in:
parent
75f0e543d9
commit
9a51d89476
@ -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
|
||||
|
@ -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
|
||||
|
@ -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() );
|
||||
|
Loading…
x
Reference in New Issue
Block a user