Пример #1
0
void Notification::onFinished()
{
    QTimer::singleShot(7000, this, SLOT(startClosing()));

    disconnect(this, SLOT(onFinished()));

}
Пример #2
0
// --------------------------------------------------------
void HandleWidgetController::touchPointReleased( SceneTouchPoint * p )
{
	// change tool mode
	AbsoluteHandleMode old_mode = absoluteHandleMode();
	deallocateTouch(p);
	if(old_mode != absoluteHandleMode())
	{
		setupNewAbsoluteHandleMode();
	}

	// reset state machine
	resetTouchesAndWidgets();

	// handle closes
	if(absoluteHandleMode() == NoAbsoluteHandle && _clutch_touch == NULL)
	{
		startClosing();
	}
	else
	// handle transition
	if(absoluteHandleMode() == TwoFingerHandle && _clutch_touch == NULL)
	{
		_attached_widget->attach(new InteractionFinishedAttachment(_attached_widget, NULL));
		emit createMagnifyingWidget();

		logger() << "hwc_close" << this << _clutch_handle->posT() << _clutch_handle->radiusT() << _absolute_handle->posT() << _absolute_handle->radiusT();
		close();
	}
}