本文整理汇总了C++中Stroke::getColor方法的典型用法代码示例。如果您正苦于以下问题:C++ Stroke::getColor方法的具体用法?C++ Stroke::getColor怎么用?C++ Stroke::getColor使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Stroke
的用法示例。
在下文中一共展示了Stroke::getColor方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: setStrokes
void QSketch::setStrokes(Strokes *strokes1)
{
if (strokes && !externalStrokes)
delete strokes;
// colors used in the strokes put into choosedColors dialog
for (Stroke *stroke = strokes1->first(); (stroke = strokes1->current()); strokes1->next())
{
QColor strokeColor = stroke->getColor();
bool colorIn = false;
for(QColor *color = choosedColors.first(); (color = choosedColors.current()); choosedColors.next())
{
if (*color == strokeColor)
{
colorIn = true;
break;
}
}
if (!colorIn)
{
choosedColors.append(new QColor(strokeColor));
}
}
strokes = strokes1;
externalStrokes = true;
viewP = QPoint(0, 0);
// rebuild cache
if (moveMode)
{
if (viewCache)
delete viewCache;
if(sketchCache)
delete sketchCache;
viewCache = sketchCache = 0;
updateViewCache();
update();
}
modified = true;
}