Ejemplo n.º 1
0
void QgsOgrSourceSelect::on_radioSrcDatabase_toggled( bool checked )
{
  if ( checked )
  {
    layout()->blockSignals( true );
    fileGroupBox->hide();
    protocolGroupBox->hide();
    dbGroupBox->show();
    layout()->blockSignals( false );
    setConnectionTypeListPosition();
    populateConnectionList();
    setConnectionListPosition();
    mDataSourceType = QStringLiteral( "database" );
  }
}
Ejemplo n.º 2
0
void QgsOpenVectorLayerDialog::on_radioSrcDatabase_toggled( bool checked )
{
    if ( checked )
    {
        layout()->blockSignals( true );
        fileGroupBox->hide();
        protocolGroupBox->hide();
        dbGroupBox->show();
        layout()->blockSignals( false );
        layout()->setSizeConstraint( QLayout::SetFixedSize );
        setConnectionTypeListPosition();
        populateConnectionList();
        setConnectionListPosition();
        mDataSourceType = "database";
    }
}