Skip to content

Commit 48e0543

Browse files
committedFeb 8, 2019
Dox++
1 parent 35ddb3b commit 48e0543

File tree

4 files changed

+49
-6
lines changed

4 files changed

+49
-6
lines changed
 

‎python/core/auto_generated/qgsdataitem.sip.in

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,8 +533,19 @@ A Collection: logical collection of layers or subcollections, e.g. GRASS locatio
533533

534534
void addChild( QgsDataItem *item /Transfer/ );
535535

536-
static QIcon iconDir(); // shared icon: open/closed directory
537-
static QIcon iconDataCollection(); // default icon for data collection
536+
static QIcon iconDir();
537+
%Docstring
538+
Returns the standard browser directory icon.
539+
540+
.. seealso:: :py:func:`iconDataCollection`
541+
%End
542+
543+
static QIcon iconDataCollection();
544+
%Docstring
545+
Returns the standard browser data collection icon.
546+
547+
.. seealso:: :py:func:`iconDir`
548+
%End
538549

539550
protected:
540551

@@ -593,6 +604,10 @@ Constructor.
593604

594605

595606
QString dirPath() const;
607+
%Docstring
608+
Returns the full path to the directory the item represents.
609+
%End
610+
596611
virtual bool equal( const QgsDataItem *other );
597612

598613
virtual QIcon icon();

‎python/core/auto_generated/qgsmimedatautils.sip.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ Gets mesh layer from uri if possible, otherwise returns None and error is set
6767
QString layerType;
6868

6969
QString providerKey;
70+
7071
QString name;
7172
QString uri;
7273
QStringList supportedCrs;

‎src/core/qgsdataitem.h

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,8 +556,17 @@ class CORE_EXPORT QgsDataCollectionItem : public QgsDataItem
556556

557557
void addChild( QgsDataItem *item SIP_TRANSFER ) { mChildren.append( item ); }
558558

559-
static QIcon iconDir(); // shared icon: open/closed directory
560-
static QIcon iconDataCollection(); // default icon for data collection
559+
/**
560+
* Returns the standard browser directory icon.
561+
* \see iconDataCollection()
562+
*/
563+
static QIcon iconDir();
564+
565+
/**
566+
* Returns the standard browser data collection icon.
567+
* \see iconDir()
568+
*/
569+
static QIcon iconDataCollection();
561570

562571
protected:
563572

@@ -607,7 +616,11 @@ class CORE_EXPORT QgsDirectoryItem : public QgsDataCollectionItem
607616

608617
QVector<QgsDataItem *> createChildren() override;
609618

619+
/**
620+
* Returns the full path to the directory the item represents.
621+
*/
610622
QString dirPath() const { return mDirPath; }
623+
611624
bool equal( const QgsDataItem *other ) override;
612625
QIcon icon() override;
613626
QWidget *paramWidget() override SIP_FACTORY;

‎src/core/qgsmimedatautils.h

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,30 @@ class CORE_EXPORT QgsMimeDataUtils
7272
*/
7373
QgsMeshLayer *meshLayer( bool &owner, QString &error ) const;
7474

75-
//! Type of URI. Recognized types: "vector" / "raster" / "mesh" / "plugin" / "custom" / "project"
75+
/**
76+
* Type of URI.
77+
*
78+
* Recognized types include
79+
* - "vector": vector layers
80+
* - "raster": raster layers
81+
* - "mesh": mesh layers
82+
* - "plugin": plugin layers
83+
* - "custom": custom types
84+
* - "project": QGS/QGZ project file
85+
* - "directory": directory path
86+
*
87+
* Mime data from plugins may use additional custom layer types.
88+
*/
7689
QString layerType;
7790

7891
/**
7992
* For "vector" / "raster" type: provider id.
8093
* For "plugin" type: plugin layer type name.
8194
* For "custom" type: key of its QgsCustomDropHandler
82-
* For "project" type: unused
95+
* For "project" and "directory" types: unused
8396
*/
8497
QString providerKey;
98+
8599
//! Human readable name to be used e.g. in layer tree
86100
QString name;
87101
//! Identifier of the data source recognized by its providerKey

0 commit comments

Comments
 (0)
Please sign in to comment.