Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Qt4 doesn't have QStringLiteral
- Loading branch information
Showing
with
3 additions
and
3 deletions.
-
+3
−3
src/app/qgsbookmarks.cpp
|
@@ -395,7 +395,7 @@ void QgsBookmarks::exportToXml() |
|
|
QString value = idx.data( Qt::DisplayRole ).toString(); |
|
|
QString header = headerList.at( j ); |
|
|
// If it's the EPSG code, convert it to internal srid |
|
|
if ( header == QStringLiteral( "sr_id" ) ) |
|
|
if ( header == "sr_id" ) |
|
|
{ |
|
|
QgsCoordinateReferenceSystem crs = QgsCRSCache::instance()->crsByOgcWmsCrs( value ); |
|
|
if ( crs.isValid() ) |
|
@@ -524,9 +524,9 @@ bool QgsProjectBookmarksTableModel::insertRows( int row, int count, const QModel |
|
|
Q_UNUSED( parent ); |
|
|
Q_UNUSED( row ); |
|
|
// append |
|
|
int oldCount = QgsProject::instance()->readNumEntry( QStringLiteral( "Bookmarks" ), QStringLiteral( "/count" ) ); |
|
|
int oldCount = QgsProject::instance()->readNumEntry( "Bookmarks", "/count" ); |
|
|
beginInsertRows( parent, oldCount, oldCount + count ); |
|
|
bool result = QgsProject::instance()->writeEntry( QStringLiteral( "Bookmarks" ), QStringLiteral( "/count" ), oldCount + count ); |
|
|
bool result = QgsProject::instance()->writeEntry( "Bookmarks", "/count", oldCount + count ); |
|
|
endInsertRows(); |
|
|
return result; |
|
|
} |
|
|