4 #include "../../../../qt/widgets/layer/explorer/LayerItem.h" 7 :
te::common::Decorator<QStyledItemDelegate>(decorated, false)
11 m_icon = QIcon::fromTheme(
"datasource-wms");
26 QStyleOptionViewItem opt = option;
27 opt.decorationSize = QSize(20, 20);
29 #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) 30 opt.features |= QStyleOptionViewItem::HasDecoration;
Implements Terralib item delegate for OGCWMSLAYER.
QStyledItemDelegate * m_decorated
The object decorated.
WMSItemDelegate(QStyledItemDelegate *decorated, QObject *parent=0)
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
void paint(te::qt::widgets::Canvas *c, bool generatePNG, std::string fileName)