2021-08-11 Fred Gleason <fredg@paravelsystems.com>

* Adjusted layout in the event dialogs in rdcatch(1) to be
	compatible with 12 hour time format.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-08-11 16:30:18 -04:00
parent 2a9153f08b
commit d0b3fe29cd
9 changed files with 75 additions and 87 deletions

View File

@@ -38,12 +38,6 @@ EditCartEvent::EditCartEvent(int id,std::vector<int> *adds,QWidget *parent)
setWindowTitle("RDCatch - "+tr("Edit Cart Event"));
//
// Fix the Window Size
//
setMinimumSize(sizeHint());
setMaximumSize(sizeHint());
//
// Text Validator
//
@@ -128,6 +122,12 @@ EditCartEvent::EditCartEvent(int id,std::vector<int> *adds,QWidget *parent)
edit_cancel_button->setText(tr("Cancel"));
connect(edit_cancel_button,SIGNAL(clicked()),this,SLOT(cancelData()));
//
// Fix the Window Size
//
setMinimumSize(sizeHint());
setMaximumSize(sizeHint());
//
// Populate Data
//
@@ -154,7 +154,7 @@ EditCartEvent::~EditCartEvent()
QSize EditCartEvent::sizeHint() const
{
return QSize(520,255);
return QSize(edit_event_widget->sizeHint().width(),255);
}