diff --git a/portcontrol.cpp b/portcontrol.cpp --- a/portcontrol.cpp +++ b/portcontrol.cpp @@ -26,6 +26,8 @@ #include #include "utils.h" +#define TBPORTLIST_MINWIDTH (200) + PortControl::PortControl(QSerialPort* port, QWidget* parent) : QWidget(parent), ui(new Ui::PortControl), @@ -47,6 +49,7 @@ PortControl::PortControl(QSerialPort* po portToolBar.addAction(&openAction); // setup port selection widgets + tbPortList.setMinimumWidth(TBPORTLIST_MINWIDTH); tbPortList.setModel(&portList); ui->cbPortList->setModel(&portList); QObject::connect(ui->cbPortList,