Skip to content
Permalink
Browse files

User standard capitalization

  • Loading branch information
nyalldawson committed Jan 17, 2020
1 parent cbba10b commit cfba5cff00ec50a5c3d81e1183097a68219e57e2
Showing with 6 additions and 6 deletions.
  1. +1 −1 python/core/auto_generated/qgsproject.sip.in
  2. +1 −1 src/core/qgsproject.h
  3. +4 −4 tests/src/core/testqgsproject.cpp
@@ -97,7 +97,7 @@ Returns the user name that did the last save.
.. versionadded:: 3.12
%End

QString saveUserFullname() const;
QString saveUserFullName() const;
%Docstring
Returns the full user name that did the last save.

@@ -176,7 +176,7 @@ class CORE_EXPORT QgsProject : public QObject, public QgsExpressionContextGenera
*
* \since QGIS 3.12
*/
QString saveUserFullname() const;
QString saveUserFullName() const;

/**
* Returns TRUE if the project has been modified since the last write()
@@ -491,7 +491,7 @@ void TestQgsProject::projectSaveUser()
{
QgsProject p;
QVERIFY( p.saveUser().isEmpty() );
QVERIFY( p.saveUserFullname().isEmpty() );
QVERIFY( p.saveUserFullName().isEmpty() );

QTemporaryFile f;
QVERIFY( f.open() );
@@ -500,21 +500,21 @@ void TestQgsProject::projectSaveUser()
p.write();

QCOMPARE( p.saveUser(), QgsApplication::userLoginName() );
QCOMPARE( p.saveUserFullname(), QgsApplication::userFullName() );
QCOMPARE( p.saveUserFullName(), QgsApplication::userFullName() );

QgsSettings s;
s.setValue( QStringLiteral( "projects/anonymize_saved_projects" ), true, QgsSettings::Core );

p.write();

QVERIFY( p.saveUser().isEmpty() );
QVERIFY( p.saveUserFullname().isEmpty() );
QVERIFY( p.saveUserFullName().isEmpty() );

s.setValue( QStringLiteral( "projects/anonymize_saved_projects" ), false, QgsSettings::Core );

p.write();
QCOMPARE( p.saveUser(), QgsApplication::userLoginName() );
QCOMPARE( p.saveUserFullname(), QgsApplication::userFullName() );
QCOMPARE( p.saveUserFullName(), QgsApplication::userFullName() );
}

void TestQgsProject::testSetGetCrs()

0 comments on commit cfba5cf

Please sign in to comment.
You can’t perform that action at this time.