From 46d07864c04d8b2f5bc6e80e51344696f255edad Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Tue, 27 Jul 2021 15:40:19 -0400 Subject: [PATCH] 2021-07-27 Fred Gleason * Fixed layout errors in the 'Add Log' dialog in 'RDAddLog'. Signed-off-by: Fred Gleason --- ChangeLog | 2 ++ lib/rdadd_log.cpp | 14 ++++++-------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index a2bfa023..157edba4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -22092,3 +22092,5 @@ * Fixed a layout glitch in the 'Add Event' dialog in rdcatch(1). 2021-07-27 Fred Gleason * Added type icons to the 'Location' dropdowns in rdcatch(1). +2021-07-27 Fred Gleason + * Fixed layout errors in the 'Add Log' dialog in 'RDAddLog'. diff --git a/lib/rdadd_log.cpp b/lib/rdadd_log.cpp index e585a620..4df321ed 100644 --- a/lib/rdadd_log.cpp +++ b/lib/rdadd_log.cpp @@ -2,7 +2,7 @@ // // Create a Rivendell Log // -// (C) Copyright 2002-2018 Fred Gleason +// (C) Copyright 2002-2021 Fred Gleason // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as @@ -18,7 +18,7 @@ // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // -#include +#include #include "rdapplication.h" #include "rddb.h" @@ -40,10 +40,8 @@ RDAddLog::RDAddLog(QString *logname,QString *svcname, // // Fix the Window Size // - setMinimumWidth(sizeHint().width()); - setMaximumWidth(sizeHint().width()); - setMinimumHeight(sizeHint().height()); - setMaximumHeight(sizeHint().height()); + setMinimumSize(sizeHint()); + setMinimumSize(sizeHint()); setWindowTitle(tr("Create Log")); @@ -60,7 +58,7 @@ RDAddLog::RDAddLog(QString *logname,QString *svcname, add_name_edit->setGeometry(115,11,sizeHint().width()-125,19); add_name_edit->setMaxLength(64); add_name_edit->setValidator(v); - QLabel *label=new QLabel(tr("&New Log Name:"),this); + QLabel *label=new QLabel(tr("New Log Name")+":",this); label->setGeometry(10,13,100,19); label->setFont(labelFont()); label->setAlignment(Qt::AlignRight); @@ -72,7 +70,7 @@ RDAddLog::RDAddLog(QString *logname,QString *svcname, // add_service_box=new QComboBox(this); add_service_box->setGeometry(115,33,100,19); - label=new QLabel(tr("&Service:"),this); + label=new QLabel(tr("Service")+":",this); label->setGeometry(10,33,100,19); label->setFont(labelFont()); label->setAlignment(Qt::AlignRight);