Skip to content

Commit e8e48ab

Browse files
committedAug 7, 2018
docstrings etc.
1 parent 283b1b4 commit e8e48ab

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed
 

‎src/core/qgsproject.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
#include <QDir>
6363
#include <QUrl>
6464

65+
6566
#ifdef _MSC_VER
6667
#include <sys/utime.h>
6768
#else

‎src/core/qgsproject.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ class CORE_EXPORT QgsProject : public QObject, public QgsExpressionContextGenera
968968

969969
/**
970970
* Triggers the collection strings of .qgs to be included in ts file and calls writeTsFile()
971-
* \since QGIS 3.2
971+
* \since QGIS 3.4
972972
*/
973973
void generateTsFile( const QString &locale );
974974

@@ -980,6 +980,7 @@ class CORE_EXPORT QgsProject : public QObject, public QgsExpressionContextGenera
980980
* \param sourceText is the identifier of this text
981981
* \param disambiguation it's the disambiguation
982982
* \param n if -1 uses the appropriate form
983+
* \since QGIS 3.4
983984
*/
984985
QString translate( const QString &context, const QString &sourceText, const char *disambiguation = nullptr, int n = -1 ) const override;
985986

@@ -1298,21 +1299,21 @@ class CORE_EXPORT QgsProject : public QObject, public QgsExpressionContextGenera
12981299
void setPresetHomePath( const QString &path );
12991300

13001301
/**
1301-
* Registers the translatable containers into the tranlationContext
1302+
* Registers the translatable containers into the tranlation context
13021303
* this is a rekursive function to get all the child containers
1303-
* \since QGIS 3.2
13041304
*
13051305
* \param translationContext where the objects will be registered
13061306
* \param parent parent-container containing list of children
1307+
* \since QGIS 3.4
13071308
*/
13081309
void registerTranslatableContainers( QgsTranslationContext *translationContext, QgsAttributeEditorContainer *parent, const QString &layerId );
13091310

13101311
/**
1311-
* Registers the translatable objects into the tranlationContext
1312+
* Registers the translatable objects into the tranlation context
13121313
* so there can be created a ts file these values
1313-
* \since QGIS 3.2
13141314
*
13151315
* \param translationContext where the objects will be registered
1316+
* \since QGIS 3.4
13161317
*/
13171318
void registerTranslatableObjects( QgsTranslationContext *translationContext );
13181319

‎src/core/qgsreadwritecontext.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,14 @@ class CORE_EXPORT QgsReadWriteContext
102102

103103
/**
104104
* Returns the project translator
105-
* \since QGIS 3.2
105+
* \since QGIS 3.4
106106
*/
107107
const QgsProjectTranslator *projectTranslator( ) const { return mProjectTranslator; }
108108

109+
/**
110+
* Sets the project translator
111+
* \since QGIS 3.4
112+
*/
109113
void setProjectTranslator( QgsProjectTranslator *projectTranslator );
110114

111115
private:

‎src/core/qgsrelation.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ class CORE_EXPORT QgsRelation
9898
* Creates a relation from an XML structure. Used for reading .qgs projects.
9999
*
100100
* \param node The dom node containing the relation information
101+
* \param context to pass project translator
101102
*
102103
* \returns A relation
103104
*/

‎src/core/qgstranslationcontext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class QgsProject;
2727
* \class QgsTranslationContext
2828
* \brief used for the collecting of strings of .qgs to be translated and writing of ts file
2929
*
30-
* \since QGIS 3.2
30+
* \since QGIS 3.4
3131
*/
3232

3333
class CORE_EXPORT QgsTranslationContext

0 commit comments

Comments
 (0)
Please sign in to comment.