本文整理汇总了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";
}