23 #include "../../../../wfs/Utils.h" 24 #include "../../../widgets/layer/explorer/LayerItem.h" 27 te::common::Decorator<QStyledItemDelegate>(decorated, false)
31 m_icon = QIcon::fromTheme(
"datasource-wfs");
46 QStyleOptionViewItem opt = option;
47 opt.decorationSize = QSize(20, 20);
49 #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) 50 opt.features |= QStyleOptionViewItem::HasDecoration;
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
WFSItemDelegate(QStyledItemDelegate *decorated, QObject *parent=0)
QStyledItemDelegate * m_decorated
The object decorated.
TEWFSEXPORT bool IsWFSLayer(const te::map::AbstractLayer &layer)
void paint(te::qt::widgets::Canvas *c, bool generatePNG, std::string fileName)