From d4a2e9ffd4c37dd31b6b797363802507ddf117db Mon Sep 17 00:00:00 2001 From: John <8084390+SirHerpDerp@users.noreply.github.com> Date: Tue, 18 Jan 2022 15:34:00 +0100 Subject: [PATCH] opcodes to newline in AsmDlg put the genereted OpCode (AssembleDialog) to a new line so for optical purposes so it does not look squeezed --- src/gui/Src/Gui/AssembleDialog.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/Src/Gui/AssembleDialog.cpp b/src/gui/Src/Gui/AssembleDialog.cpp index 5549a800..d41ac609 100644 --- a/src/gui/Src/Gui/AssembleDialog.cpp +++ b/src/gui/Src/Gui/AssembleDialog.cpp @@ -137,7 +137,7 @@ void AssembleDialog::instructionChangedSlot(dsint sizeDifference, QString data) { QString message = tr("Instruction bigger by %1 %2...") .arg(sizeDifference) - .arg(sizeDifference == 1 ? tr("byte") : tr("bytes")).append(data); + .arg(sizeDifference == 1 ? tr("byte") : tr("bytes")).append("
OpCode: " + data); setKeepSizeLabel(message); setOkButtonEnabled(false); @@ -147,7 +147,7 @@ void AssembleDialog::instructionChangedSlot(dsint sizeDifference, QString data) { QString message = tr("Instruction smaller by %1 %2...") .arg(-sizeDifference) - .arg(sizeDifference == -1 ? tr("byte") : tr("bytes")).append(data); + .arg(sizeDifference == -1 ? tr("byte") : tr("bytes")).append("
OpCode: " + data); setKeepSizeLabel(message); setOkButtonEnabled(true); @@ -155,7 +155,7 @@ void AssembleDialog::instructionChangedSlot(dsint sizeDifference, QString data) // SizeDifference == 0 <=> Both instruction have same size else { - QString message = tr("Instruction is same size!").append(data); + QString message = tr("Instruction is same size!").append("
OpCode: " + data); setKeepSizeLabel(message); setOkButtonEnabled(true); @@ -163,7 +163,7 @@ void AssembleDialog::instructionChangedSlot(dsint sizeDifference, QString data) } else { - QString message = tr("Instruction encoded successfully!").append(data); + QString message = tr("Instruction encoded successfully!").append("
OpCode: " + data); setKeepSizeLabel(message); setOkButtonEnabled(true);