1
0
Fork 0

opcodes to newline in AsmDlg

put the genereted OpCode (AssembleDialog) to a new line so for optical purposes so it does not look squeezed
This commit is contained in:
John 2022-01-18 15:34:00 +01:00 committed by GitHub
parent 30ce2fe778
commit d4a2e9ffd4
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -137,7 +137,7 @@ void AssembleDialog::instructionChangedSlot(dsint sizeDifference, QString data)
{
QString message = tr("<font color='red'><b>Instruction bigger by %1 %2...</b></font>")
.arg(sizeDifference)
.arg(sizeDifference == 1 ? tr("byte") : tr("bytes")).append(data);
.arg(sizeDifference == 1 ? tr("byte") : tr("bytes")).append("<br>OpCode: " + data);
setKeepSizeLabel(message);
setOkButtonEnabled(false);
@ -147,7 +147,7 @@ void AssembleDialog::instructionChangedSlot(dsint sizeDifference, QString data)
{
QString message = tr("<font color='#00cc00'><b>Instruction smaller by %1 %2...</b></font>")
.arg(-sizeDifference)
.arg(sizeDifference == -1 ? tr("byte") : tr("bytes")).append(data);
.arg(sizeDifference == -1 ? tr("byte") : tr("bytes")).append("<br>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("<font color='#00cc00'><b>Instruction is same size!</b></font>").append(data);
QString message = tr("<font color='#00cc00'><b>Instruction is same size!</b></font>").append("<br>OpCode: " + data);
setKeepSizeLabel(message);
setOkButtonEnabled(true);
@ -163,7 +163,7 @@ void AssembleDialog::instructionChangedSlot(dsint sizeDifference, QString data)
}
else
{
QString message = tr("<font color='#00cc00'><b>Instruction encoded successfully!</b></font>").append(data);
QString message = tr("<font color='#00cc00'><b>Instruction encoded successfully!</b></font>").append("<br>OpCode: " + data);
setKeepSizeLabel(message);
setOkButtonEnabled(true);