diff --git a/NEWS.md b/NEWS.md index e52fd412..8f161887 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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 diff --git a/RedPandaIDE/compiler/compilerinfo.cpp b/RedPandaIDE/compiler/compilerinfo.cpp index c457584e..e3082a9f 100644 --- a/RedPandaIDE/compiler/compilerinfo.cpp +++ b/RedPandaIDE/compiler/compilerinfo.cpp @@ -422,11 +422,9 @@ void SDCCCompilerInfo::prepareCompilerOptions() sl.append(QPair("Toshiba TLCS-90","tlcs90")); sl.append(QPair("Zilog eZ80","ez80_z80")); sl.append(QPair("STM8","stm8")); - sl.append(QPair("Padauk processors with 13 bit wide program memory","pdk13")); - sl.append(QPair("Padauk processors with 14 bit wide program memory","pdk14")); - sl.append(QPair("Padauk processors with 15 bit wide program memory","pdk15")); - sl.append(QPair("Padauk processors with 15 bit wide program memory","pdk15")); - sl.append(QPair("Padauk processors with 15 bit wide program memory","pdk15")); + sl.append(QPair("Padauk processors-13bit width memory","pdk13")); + sl.append(QPair("Padauk processors-14bit width memory","pdk14")); + sl.append(QPair("Padauk processors-15bit width memory","pdk15")); addOption(SDCC_CMD_OPT_PROCESSOR, QObject::tr("Processor (-m)"), groupName, true, false, false, "-m", sl); // C++ Language Standards diff --git a/RedPandaIDE/compiler/compilermanager.h b/RedPandaIDE/compiler/compilermanager.h index 1a7ee2cf..6f1773c4 100644 --- a/RedPandaIDE/compiler/compilermanager.h +++ b/RedPandaIDE/compiler/compilermanager.h @@ -19,6 +19,7 @@ #include #include +#include "qt_utils/utils.h" #include "../common.h" class Runner; diff --git a/RedPandaIDE/widgets/compileargumentswidget.cpp b/RedPandaIDE/widgets/compileargumentswidget.cpp index e947208c..c3cd7320 100644 --- a/RedPandaIDE/widgets/compileargumentswidget.cpp +++ b/RedPandaIDE/widgets/compileargumentswidget.cpp @@ -109,7 +109,7 @@ void CompileArgumentsWidget::resetUI(Settings::PCompilerSet pSet, const QMapsetText(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);