From abe540754b45f7fc231d48f2132e21e7eb84c74b Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Sat, 24 Nov 2012 16:30:39 +0000 Subject: [PATCH] Use correct upper/lower case for MyCall, MyGrid. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@2770 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- devsetup.cpp | 13 +++++++++++++ devsetup.h | 5 +++++ mainwindow.cpp | 2 +- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/devsetup.cpp b/devsetup.cpp index f035134b3..8bb255abb 100644 --- a/devsetup.cpp +++ b/devsetup.cpp @@ -133,3 +133,16 @@ void DevSetup::accept() QDialog::accept(); } + +void DevSetup::on_myCallEntry_editingFinished() +{ + QString t=ui.myCallEntry->text(); + ui.myCallEntry->setText(t.toUpper()); +} + +void DevSetup::on_myGridEntry_editingFinished() +{ + QString t=ui.myGridEntry->text(); + t=t.mid(0,4).toUpper()+t.mid(4,2).toLower(); + ui.myGridEntry->setText(t); +} diff --git a/devsetup.h b/devsetup.h index 8ed91c681..6a231610c 100644 --- a/devsetup.h +++ b/devsetup.h @@ -33,6 +33,11 @@ public: public slots: void accept(); +private slots: + void on_myCallEntry_editingFinished(); + + void on_myGridEntry_editingFinished(); + private: Ui::DialogSndCard ui; }; diff --git a/mainwindow.cpp b/mainwindow.cpp index f7008a5f6..40ec14188 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1,4 +1,4 @@ -//--------------------------------------------------------------- MainWindow +//---------------------------------------------------------------- MainWindow #include "mainwindow.h" #include "ui_mainwindow.h" #include "devsetup.h"