2021-07-30 Fred Gleason <fredg@paravelsystems.com>

* Refactored the layout code of the 'RDCardSelector' widget.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-07-30 18:09:46 -04:00
parent 60f39a8c17
commit 0636ff068d
17 changed files with 189 additions and 113 deletions

View File

@@ -41,10 +41,8 @@ EditCartSlots::EditCartSlots(RDStation *station,RDStation *cae_station,
//
// Fix the Window Size
//
setMinimumWidth(sizeHint().width());
setMaximumWidth(sizeHint().width());
setMinimumHeight(sizeHint().height());
setMaximumHeight(sizeHint().height());
setMinimumSize(sizeHint());
setMaximumSize(sizeHint());
setWindowTitle("RDAdmin - "+tr("Edit CartSlots"));
@@ -110,7 +108,7 @@ EditCartSlots::EditCartSlots(RDStation *station,RDStation *cae_station,
// Card Selector
//
edit_card_spin=new QSpinBox(this);
edit_card_spin->setGeometry(127,145,50,20);
edit_card_spin->setGeometry(127,145,55,20);
edit_card_spin->setRange(-1,cae_station->cards()-1);
edit_card_spin->setSpecialValueText(tr("None"));
connect(edit_card_spin,SIGNAL(valueChanged(int)),
@@ -124,7 +122,7 @@ EditCartSlots::EditCartSlots(RDStation *station,RDStation *cae_station,
// Input Port Selector
//
edit_input_spin=new QSpinBox(this);
edit_input_spin->setGeometry(127,167,50,20);
edit_input_spin->setGeometry(127,167,55,20);
edit_input_spin->setRange(-1,RD_MAX_PORTS-1);
edit_input_spin->setSpecialValueText(tr("None"));
label=new QLabel(tr("Input Port:"),this);
@@ -136,7 +134,7 @@ EditCartSlots::EditCartSlots(RDStation *station,RDStation *cae_station,
// Output Port Selector
//
edit_output_spin=new QSpinBox(this);
edit_output_spin->setGeometry(127,189,50,20);
edit_output_spin->setGeometry(127,189,55,20);
edit_output_spin->setRange(-1,RD_MAX_PORTS-1);
edit_output_spin->setSpecialValueText(tr("None"));
label=new QLabel(tr("Output Port:"),this);