コード例 #1
0
ファイル: toolcontroller.cpp プロジェクト: Rambo2015/Drawpile
void ToolController::setActiveTool(Tool::Type tool)
{
	if(activeTool() != tool) {
		m_activeTool = getTool(tool);
		emit activeToolChanged(tool);
		emit toolCursorChanged(activeToolCursor());
	}
}
コード例 #2
0
VideoConnection::VideoConnection(VideoServiceBackendPtr backend)
{
	mBackend = backend;
	mUnusedProbeDefinitionVector.clear();

	connect(mBackend->tracking().get(), &TrackingService::stateChanged, this, &VideoConnection::connectVideoToProbe);
	connect(mBackend->tracking().get(), SIGNAL(activeToolChanged(QString)), this, SLOT(connectVideoToProbe()));
}