mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
remove another Qt 4.5 depencency
git-svn-id: http://svn.osgeo.org/qgis/trunk@13301 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
e795414e20
commit
e73bf54107
@ -359,8 +359,10 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent,
|
||||
, mSplash( splash )
|
||||
, mPythonUtils( NULL )
|
||||
, mNAM( NULL )
|
||||
, mProxyFactory( NULL )
|
||||
, mpTileScaleWidget( NULL )
|
||||
#if QT_VERSION >= 0x40500
|
||||
, mProxyFactory( NULL )
|
||||
#endif
|
||||
#ifdef HAVE_QWT
|
||||
, mpGpsWidget( NULL )
|
||||
#endif
|
||||
|
@ -102,7 +102,11 @@ QgsWmsProvider::QgsWmsProvider( QString const &uri )
|
||||
.arg( proxy.hostName() ).arg( proxy.port() )
|
||||
.arg( proxy.type() )
|
||||
.arg( proxy.user() ).arg( proxy.password() )
|
||||
#if QT_VERSION >= 0x40500
|
||||
.arg( proxy.capabilities() )
|
||||
#else
|
||||
.arg( 0 )
|
||||
#endif
|
||||
);
|
||||
|
||||
}
|
||||
@ -682,8 +686,9 @@ void QgsWmsProvider::tileReplyFinished()
|
||||
{
|
||||
QNetworkReply *reply = qobject_cast<QNetworkReply*>( sender() );
|
||||
|
||||
bool fromCache;
|
||||
#if QT_VERSION >= 0x40500
|
||||
bool fromCache = reply->attribute( QNetworkRequest::SourceIsFromCacheAttribute ).toBool();
|
||||
fromCache = reply->attribute( QNetworkRequest::SourceIsFromCacheAttribute ).toBool();
|
||||
if ( fromCache )
|
||||
mCacheHits++;
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user