mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Merge pull request #4876 from nyalldawson/upstream_ftw
Upstream some sourcepole fork commits
This commit is contained in:
commit
d70f53c405
@ -1034,7 +1034,7 @@ int main( int argc, char *argv[] )
|
||||
}
|
||||
else
|
||||
{
|
||||
qWarning( "loading of qgis translation failed [%s]", QStringLiteral( "%1/qgis_%2" ).arg( i18nPath, myTranslationCode ).toLocal8Bit().constData() );
|
||||
QgsDebugMsg( QStringLiteral( "loading of qgis translation failed %1/qgis_%2" ).arg( i18nPath, myTranslationCode ) );
|
||||
}
|
||||
|
||||
/* Translation file for Qt.
|
||||
@ -1048,7 +1048,7 @@ int main( int argc, char *argv[] )
|
||||
}
|
||||
else
|
||||
{
|
||||
qWarning( "loading of qt translation failed [%s]", QStringLiteral( "%1/qt_%2" ).arg( QLibraryInfo::location( QLibraryInfo::TranslationsPath ), myTranslationCode ).toLocal8Bit().constData() );
|
||||
QgsDebugMsg( QStringLiteral( "loading of qt translation failed %1/qt_%2" ).arg( QLibraryInfo::location( QLibraryInfo::TranslationsPath ), myTranslationCode ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -133,6 +133,10 @@ QgsMapCanvas::QgsMapCanvas( QWidget *parent )
|
||||
mResizeTimer->setSingleShot( true );
|
||||
connect( mResizeTimer, &QTimer::timeout, this, &QgsMapCanvas::refresh );
|
||||
|
||||
mRefreshTimer = new QTimer( this );
|
||||
mRefreshTimer->setSingleShot( true );
|
||||
connect( mRefreshTimer, &QTimer::timeout, this, &QgsMapCanvas::refreshMap );
|
||||
|
||||
// create map canvas item which will show the map
|
||||
mMap = new QgsMapCanvasMap( this );
|
||||
|
||||
@ -493,7 +497,7 @@ void QgsMapCanvas::refresh()
|
||||
QgsDebugMsg( "CANVAS refresh scheduling" );
|
||||
|
||||
// schedule a refresh
|
||||
QTimer::singleShot( 1, this, SLOT( refreshMap() ) );
|
||||
mRefreshTimer->start( 1 );
|
||||
} // refresh
|
||||
|
||||
void QgsMapCanvas::refreshMap()
|
||||
|
@ -814,6 +814,7 @@ class GUI_EXPORT QgsMapCanvas : public QGraphicsView
|
||||
QgsMapRendererCache *mCache = nullptr;
|
||||
|
||||
QTimer *mResizeTimer = nullptr;
|
||||
QTimer *mRefreshTimer = nullptr;
|
||||
|
||||
QgsPreviewEffect *mPreviewEffect = nullptr;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user