本文整理汇总了C++中Invocation::trigger方法的典型用法代码示例。如果您正苦于以下问题:C++ Invocation::trigger方法的具体用法?C++ Invocation::trigger怎么用?C++ Invocation::trigger使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Invocation
的用法示例。
在下文中一共展示了Invocation::trigger方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
void
NSRFileSharer::onArmed ()
{
if (sender () == NULL)
return;
Invocation *invocation = static_cast<Invocation *> (sender ());
invocation->trigger ("bb.action.SHARE");
}
示例2: launchPendingInvokation
void InvocationRecipe::launchPendingInvokation()
{
if (!mInvokeButton->isEnabled()) {
// The button is disable when its pressed, so we only end up here
// if the selected options Invocation query has been been updated and
// it is armed.
QVariant optionValue = mInvokeSelection->selectedValue();
if (optionValue.canConvert<Invocation*>()) {
// Trigger the Invocation.
Invocation *invocation = optionValue.value<Invocation*>();
invocation->trigger(invocation->query()->invokeActionId());
}
}
mInvokeButton->setEnabled(true);
}
示例3: onArmed
void ApplicationUI::onArmed()
{
Invocation *invocation = qobject_cast<Invocation *>(sender());
invocation->trigger("bb.action.SHARE");
}
示例4: onOpenInvocationArmed
// Should open the image in image editor. Currently not working.
void App::onOpenInvocationArmed()
{
Invocation *invocation = qobject_cast<Invocation*>(sender());
invocation->trigger("bb.action.EDIT");
}