8 #include "../../../../maptools/AbstractLayer.h" 11 te::common::Decorator<QStyledItemDelegate>(decorated)
15 m_layer = QIcon::fromTheme(
"dataset-layer");
16 m_folder = QIcon::fromTheme(
"folder");
17 m_style = QIcon::fromTheme(
"style");
19 m_chart = QIcon::fromTheme(
"chart-pie");
29 QStyleOptionViewItem opt(option);
47 #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) 52 opt.decorationSize = s;
54 #
if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
55 opt.features |= QStyleOptionViewItem::HasDecoration;
82 if(l->getType() ==
"QUERYLAYER")
85 std::unique_ptr<te::da::DataSetType> schema = l->getSchema();
89 if ((!schema->hasGeom() && !schema->hasRaster()) || l->getType() ==
"DATASETADAPTERLAYER")
if(WIN32) add_definitions(-D_SCL_SECURE_NO_WARNINGS-DTEWCSDLL) endif() file(GLOB TERRALIB_SRC_FILES $
pthread endif() include_directories($
QStyledItemDelegate * m_decorated
The object decorated.
A class for rendering icons for layer and folder itens.
A class that represents a chart slice in a LayerItemModel.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
A class that represents a slice of a ColorMapItem.
void paint(te::qt::widgets::Canvas *c, bool generatePNG, std::string fileName)