本文整理匯總了PHP中foo::blockSignals方法的典型用法代碼示例。如果您正苦於以下問題:PHP foo::blockSignals方法的具體用法?PHP foo::blockSignals怎麽用?PHP foo::blockSignals使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類foo
的用法示例。
在下文中一共展示了foo::blockSignals方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: testCallParentQtMethod
/**
* inheritance, calling a nonstatic parents method from withing an overwritten nonstatic method:
* the method blockSignals defined in class foo calls the method blockSignals() of it's parent class
* <code>foo::blockSignals() calls QObject::blockSignals()</code>
*/
function testCallParentQtMethod()
{
echo "\ntesting parent::blockSignals() within foo::blockSignals()";
$o = new QObject();
$p = new foo($o);
// set blockSignals to true, so we can test it
$p->blockSignals(true);
$this->assertTrue($p->blockSignals(true), "Could not call a parent Qt method!");
echo " passed";
}