Skip to content

Commit f76c9d0

Browse files
committed
wfs connection dialog: also hide pixmap transformation checkbox
ows source select: remove unused slot
1 parent fe9b8d4 commit f76c9d0

File tree

3 files changed

+2
-34
lines changed

3 files changed

+2
-34
lines changed

src/gui/qgsnewhttpconnection.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,11 @@ QgsNewHttpConnection::QgsNewHttpConnection(
7575
cbxIgnoreGetMapURI->setVisible( false );
7676
cbxIgnoreAxisOrientation->setVisible( false );
7777
cbxInvertAxisOrientation->setVisible( false );
78+
cbxSmoothPixmapTransform->setVisible( false );
7879
mGroupBox->layout()->removeWidget( cbxIgnoreGetMapURI );
7980
mGroupBox->layout()->removeWidget( cbxIgnoreAxisOrientation );
8081
mGroupBox->layout()->removeWidget( cbxInvertAxisOrientation );
82+
mGroupBox->layout()->removeWidget( cbxSmoothPixmapTransform );
8183
}
8284

8385
cbxIgnoreGetFeatureInfoURI->setVisible( false );

src/gui/qgsowssourceselect.cpp

-33
Original file line numberDiff line numberDiff line change
@@ -710,39 +710,6 @@ void QgsOWSSourceSelect::searchFinished()
710710
r->deleteLater();
711711
}
712712

713-
void QgsOWSSourceSelect::on_mAddWMSButton_clicked()
714-
{
715-
// TODO: deactivate button if dialog is open?
716-
// TODO: remove from config on close?
717-
718-
int selectedRow = mSearchTableWidget->currentRow();
719-
if ( selectedRow == -1 )
720-
{
721-
return;
722-
}
723-
724-
QString wmsTitle = mSearchTableWidget->item( selectedRow, 0 )->text();
725-
QString wmsUrl = mSearchTableWidget->item( selectedRow, 2 )->text();
726-
727-
QSettings settings;
728-
if ( settings.contains( QString( "Qgis/connections-wms/%1/url" ).arg( wmsTitle ) ) )
729-
{
730-
QString msg = tr( "The %1 connection already exists. Do you want to overwrite it?" ).arg( wmsTitle );
731-
QMessageBox::StandardButton result = QMessageBox::information( this, tr( "Confirm Overwrite" ), msg, QMessageBox::Ok | QMessageBox::Cancel );
732-
if ( result != QMessageBox::Ok )
733-
{
734-
return;
735-
}
736-
}
737-
738-
// add selected WMS to config and mark as current
739-
settings.setValue( QString( "Qgis/connections-wms/%1/url" ).arg( wmsTitle ), wmsUrl );
740-
QgsOWSConnection::setSelectedConnection( mService, wmsTitle );
741-
populateConnectionList();
742-
743-
mTabWidget->setCurrentIndex( 0 );
744-
}
745-
746713
void QgsOWSSourceSelect::on_mSearchTableWidget_itemSelectionChanged()
747714
{
748715
mSearchAddButton->setEnabled( mSearchTableWidget->currentRow() != -1 );

src/gui/qgsowssourceselect.h

-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ class GUI_EXPORT QgsOWSSourceSelect : public QDialog, public Ui::QgsOWSSourceSel
244244

245245
private slots:
246246
void on_mSearchButton_clicked();
247-
void on_mAddWMSButton_clicked();
248247
void on_mSearchTableWidget_itemSelectionChanged();
249248
void on_mTilesetsTableWidget_itemClicked( QTableWidgetItem *item );
250249
void on_mLayerUpButton_clicked();

0 commit comments

Comments
 (0)