Skip to content

Commit

Permalink
Script Canvas: Fixed variable configuration panel minimizing editor (o…
Browse files Browse the repository at this point in the history
…3de#16897)

Signed-off-by: Luis Sempé <[email protected]>
  • Loading branch information
lsemp3d authored Oct 19, 2023
1 parent 45a7a4a commit 783c3b3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@ namespace GraphCanvas
{
QFont sizedFont;
int pointSize = sizedFont.pointSize();
sizedFont.setPointSizeF(pointSize * m_fontScale);
if (pointSize >= 0)
{
sizedFont.setPointSizeF(pointSize * m_fontScale);
}
return sizedFont;
}
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ namespace ScriptCanvasEditor
// only emitted on container types
OnCreateVariable(variableType);
OnNameChanged(variableName.c_str());
accept();
});

// Tell the widget to auto create our context menu, for now
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,9 @@ namespace ScriptCanvasEditor
GraphVariablesTableView::CopyVariableToClipboard(dockWidget->GetActiveScriptCanvasId(), varId);
});

QAction* pasteAction = new QAction(QObject::tr("Paste").arg(variableName.c_str()), this);
pasteAction->setToolTip(QObject::tr("Pastes the variable currently on the clipboard").arg(variableName.c_str()));
pasteAction->setStatusTip(QObject::tr("Pastes the variable currently on the clipboard").arg(variableName.c_str()));
QAction* pasteAction = new QAction(QObject::tr("Paste %1").arg(variableName.c_str()), this);
pasteAction->setToolTip(QObject::tr("Pastes the variable %1 currently on the clipboard").arg(variableName.c_str()));
pasteAction->setStatusTip(QObject::tr("Pastes the variable %1 currently on the clipboard").arg(variableName.c_str()));

pasteAction->setEnabled(GraphVariablesTableView::HasCopyVariableData());

Expand Down Expand Up @@ -763,7 +763,7 @@ namespace ScriptCanvasEditor
}
else
{
ResetPool();
ResetPool();
}

AZStd::vector<AZ::EntityId> selection;
Expand Down

0 comments on commit 783c3b3

Please sign in to comment.