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
This commit is contained in:
Joe Taylor 2012-11-24 16:30:39 +00:00
parent 22e9eb5417
commit abe540754b
3 changed files with 19 additions and 1 deletions

View File

@ -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);
}

View File

@ -33,6 +33,11 @@ public:
public slots:
void accept();
private slots:
void on_myCallEntry_editingFinished();
void on_myGridEntry_editingFinished();
private:
Ui::DialogSndCard ui;
};

View File

@ -1,4 +1,4 @@
//--------------------------------------------------------------- MainWindow
//---------------------------------------------------------------- MainWindow
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "devsetup.h"