1
0
Fork 0

Merge pull request #2822 from SirHerpDerp/asmdlg_opcode_pos

AssembleDialog - OpCode to newline
This commit is contained in:
Duncan Ogilvie 2022-02-14 19:10:43 +01:00 committed by GitHub
commit bc94635cef
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23
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(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(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(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(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">