本文整理汇总了C++中KisFilterSP::supportsPainting方法的典型用法代码示例。如果您正苦于以下问题:C++ KisFilterSP::supportsPainting方法的具体用法?C++ KisFilterSP::supportsPainting怎么用?C++ KisFilterSP::supportsPainting使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KisFilterSP
的用法示例。
在下文中一共展示了KisFilterSP::supportsPainting方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: KisPaintOpOption
KisFilterOption::KisFilterOption()
: KisPaintOpOption(KisPaintOpOption::FILTER, true)
{
setObjectName("KisFilterOption");
m_checkable = false;
m_filterOptionWidget = new KisFilterOptionWidget();
m_filterOptionWidget->hide();
setConfigurationPage(m_filterOptionWidget);
m_layout = new QGridLayout(m_filterOptionWidget->grpFilterOptions);
// Check which filters support painting
QList<QString> l = KisFilterRegistry::instance()->keys();
QList<KoID> l2;
QList<QString>::iterator it;
for (it = l.begin(); it != l.end(); ++it) {
KisFilterSP f = KisFilterRegistry::instance()->value((*it));
if (f->supportsPainting()) {
l2.push_back(KoID(*it, f->name()));
}
}
m_filterOptionWidget->filtersList->setIDList(l2);
connect(m_filterOptionWidget->filtersList, SIGNAL(activated(const KoID &)), SLOT(setCurrentFilter(const KoID &)));
if (!l2.empty()) {
setCurrentFilter(l2.first());
}
connect(m_filterOptionWidget->checkBoxSmudgeMode, SIGNAL(stateChanged(int)), this, SLOT(emitSettingChanged()));
}