@@ -88,10 +88,10 @@ void Qgs3DExportObject::setupPhongMaterial( const QgsPhongMaterialSettings &mate
88
88
QColor specular = material.specular ();
89
89
QColor ambient = material.ambient ();
90
90
float shininess = material.shininess ();
91
- setMaterialParameter ( QString ( " Kd" ), QString ( " %1 %2 %3" ).arg ( diffuse.redF () ).arg ( diffuse.greenF () ).arg ( diffuse.blueF () ) );
92
- setMaterialParameter ( QString ( " Ka" ), QString ( " %1 %2 %3" ).arg ( ambient.redF () ).arg ( ambient.greenF () ).arg ( ambient.blueF () ) );
93
- setMaterialParameter ( QString ( " Ks" ), QString ( " %1 %2 %3" ).arg ( specular.redF () ).arg ( specular.greenF () ).arg ( specular.blueF () ) );
94
- setMaterialParameter ( QString ( " Ns" ), QString ( " %1" ).arg ( shininess ) );
91
+ setMaterialParameter ( QStringLiteral ( " Kd" ), QStringLiteral ( " %1 %2 %3" ).arg ( diffuse.redF () ).arg ( diffuse.greenF () ).arg ( diffuse.blueF () ) );
92
+ setMaterialParameter ( QStringLiteral ( " Ka" ), QStringLiteral ( " %1 %2 %3" ).arg ( ambient.redF () ).arg ( ambient.greenF () ).arg ( ambient.blueF () ) );
93
+ setMaterialParameter ( QStringLiteral ( " Ks" ), QStringLiteral ( " %1 %2 %3" ).arg ( specular.redF () ).arg ( specular.greenF () ).arg ( specular.blueF () ) );
94
+ setMaterialParameter ( QStringLiteral ( " Ns" ), QStringLiteral ( " %1" ).arg ( shininess ) );
95
95
}
96
96
97
97
void Qgs3DExportObject::objectBounds ( float &minX, float &minY, float &minZ, float &maxX, float &maxY, float &maxZ )
@@ -154,12 +154,12 @@ void Qgs3DExportObject::saveTo( QTextStream &out, float scale, const QVector3D &
154
154
{
155
155
int negativeIndex = -1 - ( verticesCount - i );
156
156
if ( hasNormals && !hasTextures )
157
- return QString ( " %1//%2" ).arg ( negativeIndex ).arg ( negativeIndex );
157
+ return QStringLiteral ( " %1//%2" ).arg ( negativeIndex ).arg ( negativeIndex );
158
158
if ( !hasNormals && hasTextures )
159
- return QString ( " %1/%2" ).arg ( negativeIndex ).arg ( negativeIndex );
159
+ return QStringLiteral ( " %1/%2" ).arg ( negativeIndex ).arg ( negativeIndex );
160
160
if ( hasNormals && hasTextures )
161
- return QString ( " %1/%2/%3" ).arg ( negativeIndex ).arg ( negativeIndex ).arg ( negativeIndex );
162
- return QString ( " %1" ).arg ( negativeIndex );
161
+ return QStringLiteral ( " %1/%2/%3" ).arg ( negativeIndex ).arg ( negativeIndex ).arg ( negativeIndex );
162
+ return QStringLiteral ( " %1" ).arg ( negativeIndex );
163
163
};
164
164
165
165
if ( mType == TriangularFaces )
0 commit comments