Skip to content

Commit

Permalink
Add missing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Dec 11, 2015
1 parent bc67c08 commit 6dfffc5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
9 changes: 8 additions & 1 deletion python/core/qgsdataitem.sip
Expand Up @@ -59,7 +59,8 @@ class QgsDataItem : QObject
Directory,
Layer,
Error,
Favourites
Favourites,
Project //! Represents a QGIS project
};

/** Create new data item. */
Expand Down Expand Up @@ -339,6 +340,12 @@ class QgsProjectItem : QgsDataItem
%End
public:

/**
* @brief A data item holding a reference to a QGIS project file.
* @param parent The parent data item.
* @param name The name of the of the project. Displayed to the user.
* @param path The full path to the project.
*/
QgsProjectItem( QgsDataItem* parent, const QString& name, const QString& path );
~QgsProjectItem();

Expand Down
8 changes: 7 additions & 1 deletion src/core/qgsdataitem.h
Expand Up @@ -85,7 +85,7 @@ class CORE_EXPORT QgsDataItem : public QObject
Layer,
Error,
Favourites,
Project
Project //! Represents a QGIS project
};

/** Create new data item. */
Expand Down Expand Up @@ -434,6 +434,12 @@ class CORE_EXPORT QgsProjectItem : public QgsDataItem
Q_OBJECT
public:

/**
* @brief A data item holding a reference to a QGIS project file.
* @param parent The parent data item.
* @param name The name of the of the project. Displayed to the user.
* @param path The full path to the project.
*/
QgsProjectItem( QgsDataItem* parent, const QString& name, const QString& path );
~QgsProjectItem();

Expand Down

0 comments on commit 6dfffc5

Please sign in to comment.