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
This commit is contained in:
Bill Somerville 2018-04-21 19:09:47 +00:00
parent 078b76ceaa
commit c59c650fed
1 changed files with 2 additions and 0 deletions

View File

@ -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 ()