mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
WMS/OWS:
- add service type to window title (implements #9192) - always fill dpi combobox (fixes #9194)
This commit is contained in:
parent
8405ddb876
commit
36c2f7f3a8
@ -42,6 +42,13 @@ QgsNewHttpConnection::QgsNewHttpConnection(
|
||||
|
||||
txtName->setValidator( new QRegExpValidator( QRegExp( "[^/]+" ), txtName ) );
|
||||
|
||||
cmbDpiMode->clear();
|
||||
cmbDpiMode->addItem( tr( "all" ) );
|
||||
cmbDpiMode->addItem( tr( "off" ) );
|
||||
cmbDpiMode->addItem( tr( "QGIS" ) );
|
||||
cmbDpiMode->addItem( tr( "UMN" ) );
|
||||
cmbDpiMode->addItem( tr( "GeoServer" ) );
|
||||
|
||||
if ( !connName.isEmpty() )
|
||||
{
|
||||
// populate the dialog with the information stored for the connection
|
||||
@ -60,12 +67,6 @@ QgsNewHttpConnection::QgsNewHttpConnection(
|
||||
cbxIgnoreGetFeatureInfoURI->setChecked( settings.value( key + "/ignoreGetFeatureInfoURI", false ).toBool() );
|
||||
cbxSmoothPixmapTransform->setChecked( settings.value( key + "/smoothPixmapTransform", false ).toBool() );
|
||||
|
||||
cmbDpiMode->clear();
|
||||
cmbDpiMode->addItem( tr( "all" ) );
|
||||
cmbDpiMode->addItem( tr( "off" ) );
|
||||
cmbDpiMode->addItem( tr( "QGIS" ) );
|
||||
cmbDpiMode->addItem( tr( "UMN" ) );
|
||||
cmbDpiMode->addItem( tr( "GeoServer" ) );
|
||||
int dpiIdx;
|
||||
switch ( settings.value( key + "/dpiMode", 7 ).toInt() )
|
||||
{
|
||||
|
@ -68,6 +68,8 @@ QgsOWSSourceSelect::QgsOWSSourceSelect( QString service, QWidget * parent, Qt::W
|
||||
mDialogButtonBox->button( QDialogButtonBox::Close )->hide();
|
||||
}
|
||||
|
||||
setWindowTitle( tr( "Add Layer(s) from a %1 Server" ).arg( service ) );
|
||||
|
||||
mAddButton = mDialogButtonBox->button( QDialogButtonBox::Apply );
|
||||
mAddButton->setText( tr( "&Add" ) );
|
||||
mAddButton->setToolTip( tr( "Add selected layers to map" ) );
|
||||
|
@ -11,7 +11,7 @@
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Add Layer(s) from a Server</string>
|
||||
<string>Add Layer(s) from a WM(T)S Server</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset>
|
||||
|
Loading…
x
Reference in New Issue
Block a user