vARubberBand::vARuberBand(QgsMapCanvas *mapCanvas):QgsMapCanvasItem(mapCanvas)
{
mPoints.push_back(QgsPoint());
QColor fillColor
(color.
red(),color.
green(),color.
blue(),
63);
mPen.
setColor(QColor(Qt
::LightGray));
mBrush.setColor(fillColor);
mBrush.setStyle(Qt::solidPattern);
}
vARubberBand::vARuberBand(QgsMapCanvas *mapCanvas):QgsMapCanvasItem(mapCanvas)
{
mPoints.push_back(QgsPoint());
QColor color=new QColor(Qt::LightGray);
QColor fillColor(color.red(),color.green(),color.blue(),63);
mPen.setColor(QColor(Qt::LightGray));
mBrush.setColor(fillColor);
mBrush.setStyle(Qt::solidPattern);
}
To copy to clipboard, switch view to plain text mode
Bookmarks