"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/providers/mssql/qgsmssqlnewconnection.cpp" between
QGIS-final-3_14_15.tar.gz and QGIS-final-3_14_16.tar.gz

About: QGIS (Quantum GIS) is a Geographic Information System that supports vector, raster, and database formats. Latest release (3.14.x series).

qgsmssqlnewconnection.cpp  (QGIS-final-3_14_15):qgsmssqlnewconnection.cpp  (QGIS-final-3_14_16)
skipping to change at line 44 skipping to change at line 44
setupUi( this ); setupUi( this );
QgsGui::enableAutoGeometryRestore( this ); QgsGui::enableAutoGeometryRestore( this );
connect( btnListDatabase, &QPushButton::clicked, this, &QgsMssqlNewConnection: :btnListDatabase_clicked ); connect( btnListDatabase, &QPushButton::clicked, this, &QgsMssqlNewConnection: :btnListDatabase_clicked );
connect( btnConnect, &QPushButton::clicked, this, &QgsMssqlNewConnection::btnC onnect_clicked ); connect( btnConnect, &QPushButton::clicked, this, &QgsMssqlNewConnection::btnC onnect_clicked );
connect( cb_trustedConnection, &QCheckBox::clicked, this, &QgsMssqlNewConnecti on::cb_trustedConnection_clicked ); connect( cb_trustedConnection, &QCheckBox::clicked, this, &QgsMssqlNewConnecti on::cb_trustedConnection_clicked );
connect( buttonBox, &QDialogButtonBox::helpRequested, this, &QgsMssqlNewConnec tion::showHelp ); connect( buttonBox, &QDialogButtonBox::helpRequested, this, &QgsMssqlNewConnec tion::showHelp );
buttonBox->button( QDialogButtonBox::Ok )->setDisabled( true ); buttonBox->button( QDialogButtonBox::Ok )->setDisabled( true );
connect( txtName, &QLineEdit::textChanged, this, &QgsMssqlNewConnection::updat eOkButtonState ); connect( txtName, &QLineEdit::textChanged, this, &QgsMssqlNewConnection::updat eOkButtonState );
connect( txtService, &QLineEdit::textChanged, this, &QgsMssqlNewConnection::up dateOkButtonState );
connect( txtHost, &QLineEdit::textChanged, this, &QgsMssqlNewConnection::updat eOkButtonState ); connect( txtHost, &QLineEdit::textChanged, this, &QgsMssqlNewConnection::updat eOkButtonState );
connect( listDatabase, &QListWidget::currentItemChanged, this, &QgsMssqlNewCon nection::updateOkButtonState ); connect( listDatabase, &QListWidget::currentItemChanged, this, &QgsMssqlNewCon nection::updateOkButtonState );
lblWarning->hide(); lblWarning->hide();
if ( !connName.isEmpty() ) if ( !connName.isEmpty() )
{ {
// populate the dialog with the information stored for the connection // populate the dialog with the information stored for the connection
// populate the fields with the stored setting parameters // populate the fields with the stored setting parameters
QgsSettings settings; QgsSettings settings;
skipping to change at line 255 skipping to change at line 256
} }
void QgsMssqlNewConnection::showHelp() void QgsMssqlNewConnection::showHelp()
{ {
QgsHelp::openHelp( QStringLiteral( "managing_data_source/opening_data.html#con necting-to-mssql-spatial" ) ); QgsHelp::openHelp( QStringLiteral( "managing_data_source/opening_data.html#con necting-to-mssql-spatial" ) );
} }
void QgsMssqlNewConnection::updateOkButtonState() void QgsMssqlNewConnection::updateOkButtonState()
{ {
QListWidgetItem *item = listDatabase->currentItem(); QListWidgetItem *item = listDatabase->currentItem();
bool enabled = !txtName->text().isEmpty() && !txtHost->text().isEmpty() && ite bool disabled = txtName->text().isEmpty() || ( txtService->text().isEmpty() &&
m; txtHost->text().isEmpty() ) || !item;
buttonBox->button( QDialogButtonBox::Ok )->setEnabled( enabled ); buttonBox->button( QDialogButtonBox::Ok )->setDisabled( disabled );
} }
 End of changes. 2 change blocks. 
3 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)