Index: python/plugins/plugin_installer/installer_data.py =================================================================== --- python/plugins/plugin_installer/installer_data.py (revision 9681) +++ python/plugins/plugin_installer/installer_data.py (working copy) @@ -84,7 +84,10 @@ settings.beginGroup("proxy") if settings.value("/proxyEnabled").toBool(): self.proxy=QNetworkProxy() - self.proxy.setType(QNetworkProxy.HttpProxy) + if settings.value( "/proxyType").toInt()[0] == 1: + self.proxy.setType( QNetworkProxy.Socks5Proxy ) + else: + self.proxy.setType( QNetworkProxy.HttpProxy ) self.proxy.setHostName(settings.value("/proxyHost").toString()) self.proxy.setPort(settings.value("/proxyPort").toUInt()[0]) self.proxy.setUser(settings.value("/proxyUser").toString()) Index: src/ui/qgsoptionsbase.ui =================================================================== --- src/ui/qgsoptionsbase.ui (revision 9681) +++ src/ui/qgsoptionsbase.ui (working copy) @@ -6,14 +6,15 @@ 0 0 617 - 559 + 546 QGIS Options - + + ../dev/cpp/qgis/src/ui../dev/cpp/qgis/src/ui true @@ -25,9 +26,17 @@ - 0 + 6 + + + 0 + 0 + 595 + 462 + + &General @@ -38,18 +47,9 @@ Project files - + 11 - - 11 - - - 11 - - - 11 - @@ -88,7 +88,7 @@ Qt::Horizontal - + 40 20 @@ -124,7 +124,7 @@ Qt::Horizontal - + 40 20 @@ -228,7 +228,7 @@ Qt::Vertical - + 577 21 @@ -239,6 +239,14 @@ + + + 0 + 0 + 595 + 462 + + &Rendering @@ -295,18 +303,9 @@ Rendering quality - + 11 - - 11 - - - 11 - - - 11 - @@ -339,7 +338,7 @@ Qt::Vertical - + 20 40 @@ -350,40 +349,30 @@ + + + 0 + 0 + 595 + 462 + + &Map tools - + 11 - - 11 - - - 11 - - - 11 - Panning and zooming - + 11 - - 11 - - - 11 - - - 11 - @@ -444,24 +433,15 @@ Measure tool - + 11 - - 11 - - - 11 - - - 11 - Qt::Horizontal - + 191 20 @@ -514,18 +494,9 @@ Search radius - + 11 - - 11 - - - 11 - - - 11 - @@ -570,7 +541,7 @@ Qt::Vertical - + 20 40 @@ -581,6 +552,14 @@ + + + 0 + 0 + 595 + 462 + + Digitizing @@ -655,7 +634,7 @@ Qt::Horizontal - + 311 20 @@ -685,7 +664,7 @@ Qt::Horizontal - + 241 20 @@ -715,7 +694,7 @@ Qt::Horizontal - + 61 20 @@ -754,7 +733,7 @@ Qt::Horizontal - + 281 20 @@ -780,7 +759,7 @@ Qt::Vertical - + 547 71 @@ -791,28 +770,27 @@ + + + 0 + 0 + 595 + 462 + + CRS - + 11 - - 11 - - - 11 - - - 11 - Qt::Vertical - + 51 31 @@ -836,18 +814,9 @@ When layer is loaded that has no coordinate reference system (CRS) - + 11 - - 11 - - - 11 - - - 11 - @@ -875,6 +844,14 @@ + + + 0 + 0 + 595 + 462 + + Locale @@ -919,7 +896,7 @@ Qt::Vertical - + 501 51 @@ -946,10 +923,18 @@ + + + 0 + 0 + 595 + 462 + + Proxy - + @@ -961,7 +946,7 @@ true - + @@ -989,6 +974,30 @@ + + + Type + + + leProxyPort + + + + + + + + http + + + + + socks5 + + + + + User @@ -998,14 +1007,14 @@ - + Leave this blank if no proxy username / password are required - + Password @@ -1015,7 +1024,7 @@ - + Leave this blank if no proxy username / password are required @@ -1033,7 +1042,7 @@ Qt::Vertical - + 20 40 @@ -1051,7 +1060,7 @@ Qt::Horizontal - QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok + QDialogButtonBox::Cancel|QDialogButtonBox::Ok Index: src/app/qgsoptions.cpp =================================================================== --- src/app/qgsoptions.cpp (revision 9681) +++ src/app/qgsoptions.cpp (working copy) @@ -60,6 +60,7 @@ grpProxy->setChecked( settings.value( "proxy/proxyEnabled", "0" ).toBool() ); leProxyHost->setText( settings.value( "proxy/proxyHost", "" ).toString() ); leProxyPort->setText( settings.value( "proxy/proxyPort", "" ).toString() ); + leProxyType->setCurrentIndex( settings.value( "proxy/proxyType", "" ).toInt() ); leProxyUser->setText( settings.value( "proxy/proxyUser", "" ).toString() ); leProxyPassword->setText( settings.value( "proxy/proxyPassword", "" ).toString() ); // set the current theme @@ -250,6 +251,7 @@ settings.setValue( "proxy/proxyEnabled", grpProxy->isChecked() ); settings.setValue( "proxy/proxyHost", leProxyHost->text() ); settings.setValue( "proxy/proxyPort", leProxyPort->text() ); + settings.setValue( "proxy/proxyType", leProxyType->currentIndex() ); settings.setValue( "proxy/proxyUser", leProxyUser->text() ); settings.setValue( "proxy/proxyPassword", leProxyPassword->text() ); //general settings