node: added qstringliterals to node IDs
Minor code optimization.
This commit is contained in:
@@ -24,7 +24,7 @@ QString PanNode::Name() const
|
|||||||
|
|
||||||
QString PanNode::id() const
|
QString PanNode::id() const
|
||||||
{
|
{
|
||||||
return "org.olivevideoeditor.Olive.pan";
|
return QStringLiteral("org.olivevideoeditor.Olive.pan");
|
||||||
}
|
}
|
||||||
|
|
||||||
QString PanNode::Category() const
|
QString PanNode::Category() const
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ QString VolumeNode::Name() const
|
|||||||
|
|
||||||
QString VolumeNode::id() const
|
QString VolumeNode::id() const
|
||||||
{
|
{
|
||||||
return "org.olivevideoeditor.Olive.volume";
|
return QStringLiteral("org.olivevideoeditor.Olive.volume");
|
||||||
}
|
}
|
||||||
|
|
||||||
QString VolumeNode::Category() const
|
QString VolumeNode::Category() const
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ QString ClipBlock::Name() const
|
|||||||
|
|
||||||
QString ClipBlock::id() const
|
QString ClipBlock::id() const
|
||||||
{
|
{
|
||||||
return "org.olivevideoeditor.Olive.clip";
|
return QStringLiteral("org.olivevideoeditor.Olive.clip");
|
||||||
}
|
}
|
||||||
|
|
||||||
QString ClipBlock::Description() const
|
QString ClipBlock::Description() const
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ QString GapBlock::Name() const
|
|||||||
|
|
||||||
QString GapBlock::id() const
|
QString GapBlock::id() const
|
||||||
{
|
{
|
||||||
return "org.olivevideoeditor.Olive.gap";
|
return QStringLiteral("org.olivevideoeditor.Olive.gap");
|
||||||
}
|
}
|
||||||
|
|
||||||
QString GapBlock::Description() const
|
QString GapBlock::Description() const
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ QString TransformDistort::Name() const
|
|||||||
|
|
||||||
QString TransformDistort::id() const
|
QString TransformDistort::id() const
|
||||||
{
|
{
|
||||||
return "org.olivevideoeditor.Olive.transform";
|
return QStringLiteral("org.olivevideoeditor.Olive.transform");
|
||||||
}
|
}
|
||||||
|
|
||||||
QString TransformDistort::Category() const
|
QString TransformDistort::Category() const
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ QString AudioInput::Name() const
|
|||||||
|
|
||||||
QString AudioInput::id() const
|
QString AudioInput::id() const
|
||||||
{
|
{
|
||||||
return "org.olivevideoeditor.Olive.audioinput";
|
return QStringLiteral("org.olivevideoeditor.Olive.audioinput");
|
||||||
}
|
}
|
||||||
|
|
||||||
QString AudioInput::Category() const
|
QString AudioInput::Category() const
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ QString VideoInput::Name() const
|
|||||||
|
|
||||||
QString VideoInput::id() const
|
QString VideoInput::id() const
|
||||||
{
|
{
|
||||||
return "org.olivevideoeditor.Olive.videoinput";
|
return QStringLiteral("org.olivevideoeditor.Olive.videoinput");
|
||||||
}
|
}
|
||||||
|
|
||||||
QString VideoInput::Category() const
|
QString VideoInput::Category() const
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ QString TrackOutput::Name() const
|
|||||||
|
|
||||||
QString TrackOutput::id() const
|
QString TrackOutput::id() const
|
||||||
{
|
{
|
||||||
return "org.olivevideoeditor.Olive.track";
|
return QStringLiteral("org.olivevideoeditor.Olive.track");
|
||||||
}
|
}
|
||||||
|
|
||||||
QString TrackOutput::Category() const
|
QString TrackOutput::Category() const
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ TrackOutput* TrackList::AddTrack()
|
|||||||
if (last_track && last_track->output()->IsConnected()) {
|
if (last_track && last_track->output()->IsConnected()) {
|
||||||
foreach (NodeEdgePtr edge, last_track->output()->edges()) {
|
foreach (NodeEdgePtr edge, last_track->output()->edges()) {
|
||||||
if (!track_input_->ContainsSubParameter(edge->input())) {
|
if (!track_input_->ContainsSubParameter(edge->input())) {
|
||||||
Node* blend = NodeFactory::CreateFromID("org.olivevideoeditor.Olive.alphaoverblend");
|
Node* blend = NodeFactory::CreateFromID(QStringLiteral("org.olivevideoeditor.Olive.alphaoverblend"));
|
||||||
GetParentGraph()->AddNode(blend);
|
GetParentGraph()->AddNode(blend);
|
||||||
|
|
||||||
NodeParam::ConnectEdge(track->output(), static_cast<NodeInput*>(blend->GetParameterWithID("blend_in")));
|
NodeParam::ConnectEdge(track->output(), static_cast<NodeInput*>(blend->GetParameterWithID("blend_in")));
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ QString ViewerOutput::Name() const
|
|||||||
|
|
||||||
QString ViewerOutput::id() const
|
QString ViewerOutput::id() const
|
||||||
{
|
{
|
||||||
return "org.olivevideoeditor.Olive.vieweroutput";
|
return QStringLiteral("org.olivevideoeditor.Olive.vieweroutput");
|
||||||
}
|
}
|
||||||
|
|
||||||
QString ViewerOutput::Category() const
|
QString ViewerOutput::Category() const
|
||||||
|
|||||||
Reference in New Issue
Block a user