本文整理汇总了C++中QgsSymbolSelectorWidget::symbol方法的典型用法代码示例。如果您正苦于以下问题:C++ QgsSymbolSelectorWidget::symbol方法的具体用法?C++ QgsSymbolSelectorWidget::symbol怎么用?C++ QgsSymbolSelectorWidget::symbol使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QgsSymbolSelectorWidget
的用法示例。
在下文中一共展示了QgsSymbolSelectorWidget::symbol方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: updateSymbolsFromWidget
void QgsGraduatedSymbolRendererWidget::updateSymbolsFromWidget()
{
QgsSymbolSelectorWidget *dlg = qobject_cast<QgsSymbolSelectorWidget *>( sender() );
mGraduatedSymbol.reset( dlg->symbol()->clone() );
applyChangeToSymbol();
}
示例2: cleanUpLineStyleSelector
void QgsComposerArrowWidget::cleanUpLineStyleSelector( QgsPanelWidget *container )
{
QgsSymbolSelectorWidget *w = qobject_cast<QgsSymbolSelectorWidget *>( container );
if ( !w )
return;
delete w->symbol();
updateLineSymbolMarker();
mArrow->endCommand();
}
示例3: cleanUpStyleSelector
void QgsComposerPolygonWidget::cleanUpStyleSelector( QgsPanelWidget* container )
{
QgsSymbolSelectorWidget* w = qobject_cast<QgsSymbolSelectorWidget*>( container );
if ( !w )
return;
delete w->symbol();
updatePolygonStyle();
mComposerPolygon->endCommand();
}
示例4: updateGridMarkerStyleFromWidget
void QgsComposerMapGridWidget::updateGridMarkerStyleFromWidget()
{
if ( !mComposerMapGrid || !mComposerMap )
{
return;
}
QgsSymbolSelectorWidget* w = qobject_cast<QgsSymbolSelectorWidget*>( sender() );
mComposerMapGrid->setMarkerSymbol( dynamic_cast< QgsMarkerSymbol* >( w->symbol()->clone() ) );
mComposerMap->update();
}
示例5: cleanUpGridMarkerStyleSelector
void QgsComposerMapGridWidget::cleanUpGridMarkerStyleSelector( QgsPanelWidget* container )
{
QgsSymbolSelectorWidget* w = qobject_cast<QgsSymbolSelectorWidget*>( container );
if ( !w )
return;
delete w->symbol();
if ( !mComposerMapGrid || !mComposerMap )
{
return;
}
updateGridMarkerSymbolMarker();
mComposerMap->endCommand();
}
示例6: updateLineStyleFromWidget
void QgsComposerArrowWidget::updateLineStyleFromWidget()
{
QgsSymbolSelectorWidget *w = qobject_cast<QgsSymbolSelectorWidget *>( sender() );
mArrow->setLineSymbol( dynamic_cast< QgsLineSymbol * >( w->symbol()->clone() ) );
mArrow->update();
}
示例7: updateStyleFromWidget
void QgsComposerPolygonWidget::updateStyleFromWidget()
{
QgsSymbolSelectorWidget* w = qobject_cast<QgsSymbolSelectorWidget*>( sender() );
mComposerPolygon->setPolygonStyleSymbol( dynamic_cast< QgsFillSymbol* >( w->symbol() ) );
mComposerPolygon->update();
}
示例8: updateSymbolFromWidget
void QgsComposerShapeWidget::updateSymbolFromWidget()
{
QgsSymbolSelectorWidget* w = qobject_cast<QgsSymbolSelectorWidget*>( sender() );
mComposerShape->setShapeStyleSymbol( dynamic_cast< QgsFillSymbol* >( w->symbol() ) );
}