mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-23 20:58:55 -05:00
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:
parent
22e9eb5417
commit
abe540754b
13
devsetup.cpp
13
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);
|
||||
}
|
||||
|
@ -33,6 +33,11 @@ public:
|
||||
public slots:
|
||||
void accept();
|
||||
|
||||
private slots:
|
||||
void on_myCallEntry_editingFinished();
|
||||
|
||||
void on_myGridEntry_editingFinished();
|
||||
|
||||
private:
|
||||
Ui::DialogSndCard ui;
|
||||
};
|
||||
|
@ -1,4 +1,4 @@
|
||||
//--------------------------------------------------------------- MainWindow
|
||||
//---------------------------------------------------------------- MainWindow
|
||||
#include "mainwindow.h"
|
||||
#include "ui_mainwindow.h"
|
||||
#include "devsetup.h"
|
||||
|
Loading…
Reference in New Issue
Block a user