本文整理汇总了C++中QDesignerPropertySheetExtension::reset方法的典型用法代码示例。如果您正苦于以下问题:C++ QDesignerPropertySheetExtension::reset方法的具体用法?C++ QDesignerPropertySheetExtension::reset怎么用?C++ QDesignerPropertySheetExtension::reset使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QDesignerPropertySheetExtension
的用法示例。
在下文中一共展示了QDesignerPropertySheetExtension::reset方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: PyBool_FromLong
static PyObject *meth_QDesignerPropertySheetExtension_reset(PyObject *sipSelf, PyObject *sipArgs)
{
PyObject *sipParseErr = NULL;
PyObject *sipOrigSelf = sipSelf;
{
int a0;
QDesignerPropertySheetExtension *sipCpp;
if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QDesignerPropertySheetExtension, &sipCpp, &a0))
{
bool sipRes;
if (!sipOrigSelf)
{
sipAbstractMethod(sipName_QDesignerPropertySheetExtension, sipName_reset);
return NULL;
}
sipRes = sipCpp->reset(a0);
return PyBool_FromLong(sipRes);
}
}
/* Raise an exception if the arguments couldn't be parsed. */
sipNoMethod(sipParseErr, sipName_QDesignerPropertySheetExtension, sipName_reset, doc_QDesignerPropertySheetExtension_reset);
return NULL;
}
示例2: reset
bool ItemViewPropertySheet::reset(int index)
{
const FakePropertyMap::iterator it = d->m_propertyIdMap.find(index);
if (it != d->m_propertyIdMap.end()) {
QDesignerPropertySheetExtension *headerSheet = it.value().m_sheet;
const int headerIndex = it.value().m_id;
const bool resetRC = headerSheet->reset(headerIndex);
// Resetting for "visible" might fail and the stored default
// of the Widget database is "false" due to the widget not being
// visible at the time it was determined. Reset to "true" manually.
if (!resetRC && headerSheet->propertyName(headerIndex) == QLatin1String(visibleProperty)) {
headerSheet->setProperty(headerIndex, QVariant(true));
headerSheet->setChanged(headerIndex, false);
return true;
}
return resetRC;
} else {
return QDesignerPropertySheet::reset(index);
}
}