1
0
Fork 0

Translate opcode bytes label

This commit is contained in:
Duncan Ogilvie 2022-02-14 18:44:42 +01:00
parent d4a2e9ffd4
commit 72af1d2d35
2 changed files with 5 additions and 5 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("<br>OpCode: " + data);
.arg(sizeDifference == 1 ? tr("byte") : tr("bytes")).append(tr("<br>Bytes: %1").arg(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("<br>OpCode: " + data);
.arg(sizeDifference == -1 ? tr("byte") : tr("bytes")).append(tr("<br>Bytes: %1").arg(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("<br>OpCode: " + data);
QString message = tr("<font color='#00cc00'><b>Instruction is same size!</b></font>").append(tr("<br>Bytes: %1").arg(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("<br>OpCode: " + data);
QString message = tr("<font color='#00cc00'><b>Instruction encoded successfully!</b></font>").append(tr("<br>Bytes: %1").arg(data));
setKeepSizeLabel(message);
setOkButtonEnabled(true);

View File

@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>526</width>
<height>86</height>
<height>96</height>
</rect>
</property>
<property name="windowTitle">