From c59c650fede7947d7ceec2ebdb3f7a5fd82bf671 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Sat, 21 Apr 2018 19:09:47 +0000 Subject: [PATCH] Add grid validation to the log QSO dialog This also has the desirable attribute of enforcing the canonical case for grid characters i.e. AA99bb. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8625 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- logqso.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/logqso.cpp b/logqso.cpp index 7b0e26304..980cdcef2 100644 --- a/logqso.cpp +++ b/logqso.cpp @@ -11,6 +11,7 @@ #include "MessageBox.hpp" #include "Configuration.hpp" #include "Bands.hpp" +#include "MaidenheadLocatorValidator.hpp" #include "ui_logqso.h" #include "moc_logqso.cpp" @@ -25,6 +26,7 @@ LogQSO::LogQSO(QString const& programTitle, QSettings * settings ui->setupUi(this); setWindowTitle(programTitle + " - Log QSO"); loadSettings (); + ui->grid->setValidator (new MaidenheadLocatorValidator {this}); } LogQSO::~LogQSO ()