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"