7 QIcon
CreateIcon(
const int& size,
const QColor& penColor,
const QColor& brushColor,
const int& contourSize)
9 QPixmap pix(size, size);
10 pix.fill(Qt::transparent);
15 path.addRect(offset, offset, pix.width() - 2 * offset, pix.height() - 2 * offset);
18 pen.setColor(penColor);
19 pen.setWidth(contourSize);
22 brush.setColor(brushColor);
26 p.setBrush(brushColor);
28 p.fillPath(path, brush);
36 const QColor& contourColor,
const int& contourWidth):
39 m_label = (QObject::tr(
"Property") +
": " + propertyName).toUtf8().data();
53 return Qt::ItemIsDropEnabled | Qt::ItemIsEnabled;
QIcon CreateIcon(const int &size, const QColor &penColor, const QColor &brushColor, const int &contourSize)
A class that represents a chart slice in a LayerItemModel.