- enhancement: Better layout for compiler options page.

This commit is contained in:
Roy Qu 2023-08-15 11:57:32 +08:00
parent 72883cf8fb
commit d720421830
4 changed files with 6 additions and 6 deletions

View File

@ -31,6 +31,7 @@ Red Panda C++ Version 2.24
- enhancement: Autowrap tool output text.
- fix: Press up/down arrow key in the option dialog's left panel won't switch page.
- fix: Can't suggest header filename starting with numbers.
- enhancement: Better layout for compiler options page.
Red Panda C++ Version 2.23

View File

@ -422,11 +422,9 @@ void SDCCCompilerInfo::prepareCompilerOptions()
sl.append(QPair<QString,QString>("Toshiba TLCS-90","tlcs90"));
sl.append(QPair<QString,QString>("Zilog eZ80","ez80_z80"));
sl.append(QPair<QString,QString>("STM8","stm8"));
sl.append(QPair<QString,QString>("Padauk processors with 13 bit wide program memory","pdk13"));
sl.append(QPair<QString,QString>("Padauk processors with 14 bit wide program memory","pdk14"));
sl.append(QPair<QString,QString>("Padauk processors with 15 bit wide program memory","pdk15"));
sl.append(QPair<QString,QString>("Padauk processors with 15 bit wide program memory","pdk15"));
sl.append(QPair<QString,QString>("Padauk processors with 15 bit wide program memory","pdk15"));
sl.append(QPair<QString,QString>("Padauk processors-13bit width memory","pdk13"));
sl.append(QPair<QString,QString>("Padauk processors-14bit width memory","pdk14"));
sl.append(QPair<QString,QString>("Padauk processors-15bit width memory","pdk15"));
addOption(SDCC_CMD_OPT_PROCESSOR, QObject::tr("Processor (-m)"), groupName, true, false, false, "-m", sl);
// C++ Language Standards

View File

@ -19,6 +19,7 @@
#include <QObject>
#include <QMutex>
#include "qt_utils/utils.h"
#include "../common.h"
class Runner;

View File

@ -109,7 +109,7 @@ void CompileArgumentsWidget::resetUI(Settings::PCompilerSet pSet, const QMap<QSt
QCheckBox* pCheckbox = new QCheckBox(pWidget);
pCheckbox->setText(pOption->name);
pCheckbox->setChecked(options.value(pOption->key,"")==COMPILER_OPTION_ON);
pLayout->addWidget(pCheckbox,row,1);
pLayout->addWidget(pCheckbox,row,1,1,2);
} else {
pLayout->addWidget(new QLabel(pOption->name,pWidget),row,1);
QComboBox* pCombo = new QComboBox(pWidget);