Base class for all items in a QgsCptCityBrowserModel model.
More...
#include <qgscptcityarchive.h>
Base class for all items in a QgsCptCityBrowserModel model.
Definition at line 99 of file qgscptcityarchive.h.
◆ Type
| Enumerator |
|---|
| ColorRamp | |
| Collection | |
| Directory | |
| Selection | |
| AllRamps | |
Definition at line 103 of file qgscptcityarchive.h.
◆ QgsCptCityDataItem()
◆ acceptDrop()
| virtual Q_DECL_DEPRECATED bool QgsCptCityDataItem::acceptDrop |
( |
| ) |
|
|
inlinevirtual |
Returns true if the item accepts drag & dropped layers - e.g.
for import.
- Deprecated:
- QGIS 3.40. Is unused and will be removed in QGIS 4.0.
Definition at line 177 of file qgscptcityarchive.h.
◆ addChildItem()
| void QgsCptCityDataItem::addChildItem |
( |
QgsCptCityDataItem * |
child, |
|
|
bool |
refresh = false |
|
) |
| |
|
virtual |
Inserts a new child using alphabetical order based on mName, emits necessary signal to model before and after, sets parent and connects signals.
The refresh argument will refresh the populated item by emitting signals to the model.
Definition at line 582 of file qgscptcityarchive.cpp.
◆ beginInsertItems
| void QgsCptCityDataItem::beginInsertItems |
( |
QgsCptCityDataItem * |
parent, |
|
|
int |
first, |
|
|
int |
last |
|
) |
| |
|
signal |
Emitted before child items are added to this item.
This signal must be followed by endInsertItems().
- Parameters
-
| parent | the parent item having children added |
| first | index of first child item to be added |
| last | index last child item, after the addition has occurred |
- See also
- endInsertItems()
◆ beginRemoveItems
| void QgsCptCityDataItem::beginRemoveItems |
( |
QgsCptCityDataItem * |
parent, |
|
|
int |
first, |
|
|
int |
last |
|
) |
| |
|
signal |
Emitted before child items are removed from this data item.
This signal must be followed by endRemoveItems().
- Parameters
-
| parent | the parent item having children removed |
| first | index of first child item to be removed |
| last | index of the last child item to be removed |
- See also
- endRemoveItems()
◆ children()
◆ createChildren()
◆ deleteChildItem()
◆ endInsertItems
| void QgsCptCityDataItem::endInsertItems |
( |
| ) |
|
|
signal |
◆ endRemoveItems
| void QgsCptCityDataItem::endRemoveItems |
( |
| ) |
|
|
signal |
◆ equal()
◆ findItem()
◆ handleDrop()
| virtual Q_DECL_DEPRECATED bool QgsCptCityDataItem::handleDrop |
( |
const QMimeData * |
data, |
|
|
Qt::DropAction |
action |
|
) |
| |
|
inlinevirtual |
◆ hasChildren()
| bool QgsCptCityDataItem::hasChildren |
( |
| ) |
|
◆ icon() [1/2]
| virtual QIcon QgsCptCityDataItem::icon |
( |
| ) |
|
|
inlinevirtual |
◆ icon() [2/2]
| virtual QIcon QgsCptCityDataItem::icon |
( |
QSize |
size | ) |
|
|
inlinevirtual |
◆ info()
| QString QgsCptCityDataItem::info |
( |
| ) |
const |
|
inline |
◆ isPopulated()
| bool QgsCptCityDataItem::isPopulated |
( |
| ) |
|
|
inline |
◆ isValid()
| bool QgsCptCityDataItem::isValid |
( |
| ) |
|
|
inline |
◆ leafCount()
| int QgsCptCityDataItem::leafCount |
( |
| ) |
const |
|
virtual |
◆ name()
| QString QgsCptCityDataItem::name |
( |
| ) |
const |
|
inline |
◆ paramWidget()
| virtual Q_DECL_DEPRECATED QWidget * QgsCptCityDataItem::paramWidget |
( |
| ) |
|
|
inlinevirtual |
◆ parent()
◆ path()
| QString QgsCptCityDataItem::path |
( |
| ) |
const |
|
inline |
◆ populate()
| void QgsCptCityDataItem::populate |
( |
| ) |
|
|
virtual |
◆ refresh()
| void QgsCptCityDataItem::refresh |
( |
| ) |
|
|
virtual |
◆ removeChildItem()
Removes a child item but doesn't delete it, signals to browser are emitted.
- Returns
- pointer to the removed item or
nullptr if no such item was found
Definition at line 630 of file qgscptcityarchive.cpp.
◆ rowCount()
| int QgsCptCityDataItem::rowCount |
( |
| ) |
|
◆ setIcon()
| void QgsCptCityDataItem::setIcon |
( |
const QIcon & |
icon | ) |
|
|
inline |
◆ setParent()
◆ setToolTip()
| void QgsCptCityDataItem::setToolTip |
( |
const QString & |
msg | ) |
|
|
inline |
◆ shortInfo()
| QString QgsCptCityDataItem::shortInfo |
( |
| ) |
const |
|
inline |
◆ toolTip()
| QString QgsCptCityDataItem::toolTip |
( |
| ) |
const |
|
inline |
◆ type()
| Type QgsCptCityDataItem::type |
( |
| ) |
const |
|
inline |
◆ mChildren
◆ mIcon
| QIcon QgsCptCityDataItem::mIcon |
|
protected |
◆ mInfo
| QString QgsCptCityDataItem::mInfo |
|
protected |
◆ mName
| QString QgsCptCityDataItem::mName |
|
protected |
◆ mParent
◆ mPath
| QString QgsCptCityDataItem::mPath |
|
protected |
◆ mPopulated
| bool QgsCptCityDataItem::mPopulated |
|
protected |
◆ mShortInfo
| QString QgsCptCityDataItem::mShortInfo |
|
protected |
◆ mToolTip
| QString QgsCptCityDataItem::mToolTip |
|
protected |
◆ mType
| Type QgsCptCityDataItem::mType |
|
protected |
◆ mValid
| bool QgsCptCityDataItem::mValid |
|
protected |
The documentation for this class was generated from the following files: