Skip to content
Permalink
Browse files
better hide unused widgets
  • Loading branch information
blazek committed Apr 26, 2012
1 parent f7babeb commit 58c377497f4e42bcc5e401fda195c47b1376e158
Showing with 14 additions and 9 deletions.
  1. +11 −6 src/gui/qgsnewhttpconnection.cpp
  2. +3 −3 src/ui/qgsnewhttpconnectionbase.ui
@@ -53,15 +53,20 @@ QgsNewHttpConnection::QgsNewHttpConnection(
cbxIgnoreGetMapURI->setChecked( settings.value( key + "/ignoreGetMapURI", false ).toBool() );
cbxIgnoreGetFeatureInfoURI->setChecked( settings.value( key + "/ignoreGetFeatureInfoURI", false ).toBool() );
}
else
{
cbxIgnoreGetMapURI->setVisible( false );
cbxIgnoreGetFeatureInfoURI->setVisible( false );
}

txtUserName->setText( settings.value( credentialsKey + "/username" ).toString() );
txtPassword->setText( settings.value( credentialsKey + "/password" ).toString() );
}
if ( mBaseKey != "/Qgis/connections-wms/" )
{
cbxIgnoreGetMapURI->setVisible( false );
cbxIgnoreGetFeatureInfoURI->setVisible( false );
mGroupBox->layout()->removeWidget( cbxIgnoreGetMapURI );
mGroupBox->layout()->removeWidget( cbxIgnoreGetFeatureInfoURI );
// Adjust height
int w = width();
adjustSize();
resize(w, height());
}

on_txtName_textChanged( connName );
}
@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>507</width>
<height>322</height>
<width>500</width>
<height>311</height>
</rect>
</property>
<property name="windowTitle">
@@ -28,7 +28,7 @@
</widget>
</item>
<item row="0" column="0">
<widget class="QGroupBox" name="GroupBox1">
<widget class="QGroupBox" name="mGroupBox">
<property name="title">
<string>Connection details</string>
</property>

0 comments on commit 58c3774

Please sign in to comment.