| 
    QGIS API Documentation 3.99.0-Master (f78f5286a64)
    
   | 
 
An item that represents a layer that can be opened with one of the providers for a QgsCptCityBrowserModel. More...
#include <qgscptcityarchive.h>

Public Member Functions | |
| QgsCptCityColorRampItem (QgsCptCityDataItem *parent, const QString &name, const QString &path, const QString &variantName=QString(), bool initialize=false) | |
| QgsCptCityColorRampItem (QgsCptCityDataItem *parent, const QString &name, const QString &path, const QStringList &variantList, bool initialize=false) | |
| bool | equal (const QgsCptCityDataItem *other) override | 
Returns true if this item is equal to an other item.   | |
| QIcon | icon () override | 
| QIcon | icon (QSize size) override | 
| void | init () | 
| int | leafCount () const override | 
| Returns the total count of "leaf" items (all children which are end nodes).   | |
| const QgsCptCityColorRamp & | ramp () const | 
  Public Member Functions inherited from QgsCptCityDataItem | |
| QgsCptCityDataItem (QgsCptCityDataItem::Type type, QgsCptCityDataItem *parent, const QString &name, const QString &path) | |
| virtual Q_DECL_DEPRECATED bool | acceptDrop () | 
Returns true if the item accepts drag & dropped layers - e.g.   | |
| virtual void | addChildItem (QgsCptCityDataItem *child, bool refresh=false) | 
| Inserts a new child using alphabetical order based on mName, emits necessary signal to model before and after, sets parent and connects signals.   | |
| QVector< QgsCptCityDataItem * > | children () const | 
| virtual QVector< QgsCptCityDataItem * > | createChildren () | 
| Returns a vector of children items.   | |
| virtual void | deleteChildItem (QgsCptCityDataItem *child) | 
| Removes and deletes a child item, signals to browser are emitted.   | |
| virtual Q_DECL_DEPRECATED bool | handleDrop (const QMimeData *data, Qt::DropAction action) | 
| Tries to process the data dropped on this item.   | |
| bool | hasChildren () | 
| QString | info () const | 
| bool | isPopulated () | 
Returns true if the item is already populated.   | |
| bool | isValid () | 
| QString | name () const | 
| virtual Q_DECL_DEPRECATED QWidget * | paramWidget () | 
| QgsCptCityDataItem * | parent () const | 
| QString | path () const | 
| virtual void | populate () | 
| Populates children using children vector created by createChildren().   | |
| virtual void | refresh () | 
| virtual QgsCptCityDataItem * | removeChildItem (QgsCptCityDataItem *child) | 
| Removes a child item but doesn't delete it, signals to browser are emitted.   | |
| int | rowCount () | 
| void | setIcon (const QIcon &icon) | 
| void | setParent (QgsCptCityDataItem *parent) | 
| void | setToolTip (const QString &msg) | 
| QString | shortInfo () const | 
| QString | toolTip () const | 
| Type | type () const | 
Protected Attributes | |
| QList< QIcon > | mIcons | 
| bool | mInitialized | 
| QgsCptCityColorRamp | mRamp | 
  Protected Attributes inherited from QgsCptCityDataItem | |
| QVector< QgsCptCityDataItem * > | mChildren | 
| QIcon | mIcon | 
| QString | mInfo | 
| QString | mName | 
| QgsCptCityDataItem * | mParent = nullptr | 
| QString | mPath | 
| bool | mPopulated | 
| QString | mShortInfo | 
| QString | mToolTip | 
| Type | mType | 
| bool | mValid | 
Additional Inherited Members | |
  Public Types inherited from QgsCptCityDataItem | |
| enum | Type {  ColorRamp , Collection , Directory , Selection , AllRamps }  | 
  Signals inherited from QgsCptCityDataItem | |
| void | beginInsertItems (QgsCptCityDataItem *parent, int first, int last) | 
| Emitted before child items are added to this item.   | |
| void | beginRemoveItems (QgsCptCityDataItem *parent, int first, int last) | 
| Emitted before child items are removed from this data item.   | |
| void | endInsertItems () | 
| Emitted after child items have been added to this data item.   | |
| void | endRemoveItems () | 
| Emitted after child items have been removed from this data item.   | |
  Static Public Member Functions inherited from QgsCptCityDataItem | |
| static int | findItem (QVector< QgsCptCityDataItem * > items, QgsCptCityDataItem *item) | 
| Finds a child index in vector of items using '==' operator.   | |
An item that represents a layer that can be opened with one of the providers for a QgsCptCityBrowserModel.
Definition at line 278 of file qgscptcityarchive.h.
| QgsCptCityColorRampItem::QgsCptCityColorRampItem | ( | QgsCptCityDataItem * | parent, | 
| const QString & | name, | ||
| const QString & | path, | ||
| const QString & | variantName = QString(),  | 
        ||
| bool | initialize = false  | 
        ||
| ) | 
Definition at line 704 of file qgscptcityarchive.cpp.
| QgsCptCityColorRampItem::QgsCptCityColorRampItem | ( | QgsCptCityDataItem * | parent, | 
| const QString & | name, | ||
| const QString & | path, | ||
| const QStringList & | variantList, | ||
| bool | initialize = false  | 
        ||
| ) | 
Definition at line 716 of file qgscptcityarchive.cpp.
      
  | 
  overridevirtual | 
Returns true if this item is equal to an other item. 
Reimplemented from QgsCptCityDataItem.
Definition at line 784 of file qgscptcityarchive.cpp.
      
  | 
  overridevirtual | 
Reimplemented from QgsCptCityDataItem.
Definition at line 799 of file qgscptcityarchive.cpp.
      
  | 
  overridevirtual | 
Reimplemented from QgsCptCityDataItem.
Definition at line 804 of file qgscptcityarchive.cpp.
| void QgsCptCityColorRampItem::init | ( | ) | 
Definition at line 729 of file qgscptcityarchive.cpp.
      
  | 
  inlineoverridevirtual | 
Returns the total count of "leaf" items (all children which are end nodes).
Reimplemented from QgsCptCityDataItem.
Definition at line 294 of file qgscptcityarchive.h.
      
  | 
  inline | 
Definition at line 297 of file qgscptcityarchive.h.
      
  | 
  protected | 
Definition at line 306 of file qgscptcityarchive.h.
      
  | 
  protected | 
Definition at line 304 of file qgscptcityarchive.h.
      
  | 
  protected | 
Definition at line 305 of file qgscptcityarchive.h.