Skip to content

Commit

Permalink
docstrings etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
signedav committed Aug 7, 2018
1 parent 283b1b4 commit e8e48ab
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/core/qgsproject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
#include <QDir>
#include <QUrl>


#ifdef _MSC_VER
#include <sys/utime.h>
#else
Expand Down
11 changes: 6 additions & 5 deletions src/core/qgsproject.h
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ class CORE_EXPORT QgsProject : public QObject, public QgsExpressionContextGenera

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

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

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

/**
* Registers the translatable containers into the tranlationContext
* Registers the translatable containers into the tranlation context
* this is a rekursive function to get all the child containers
* \since QGIS 3.2
*
* \param translationContext where the objects will be registered
* \param parent parent-container containing list of children
* \since QGIS 3.4
*/
void registerTranslatableContainers( QgsTranslationContext *translationContext, QgsAttributeEditorContainer *parent, const QString &layerId );

/**
* Registers the translatable objects into the tranlationContext
* Registers the translatable objects into the tranlation context
* so there can be created a ts file these values
* \since QGIS 3.2
*
* \param translationContext where the objects will be registered
* \since QGIS 3.4
*/
void registerTranslatableObjects( QgsTranslationContext *translationContext );

Expand Down
6 changes: 5 additions & 1 deletion src/core/qgsreadwritecontext.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,14 @@ class CORE_EXPORT QgsReadWriteContext

/**
* Returns the project translator
* \since QGIS 3.2
* \since QGIS 3.4
*/
const QgsProjectTranslator *projectTranslator( ) const { return mProjectTranslator; }

/**
* Sets the project translator
* \since QGIS 3.4
*/
void setProjectTranslator( QgsProjectTranslator *projectTranslator );

private:
Expand Down
1 change: 1 addition & 0 deletions src/core/qgsrelation.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ class CORE_EXPORT QgsRelation
* Creates a relation from an XML structure. Used for reading .qgs projects.
*
* \param node The dom node containing the relation information
* \param context to pass project translator
*
* \returns A relation
*/
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgstranslationcontext.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class QgsProject;
* \class QgsTranslationContext
* \brief used for the collecting of strings of .qgs to be translated and writing of ts file
*
* \since QGIS 3.2
* \since QGIS 3.4
*/

class CORE_EXPORT QgsTranslationContext
Expand Down

0 comments on commit e8e48ab

Please sign in to comment.