mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-06-05 00:02:25 -04:00
Change from a LineEdit to a ComboBox for SuperFox Free Text messages.
This commit is contained in:
parent
d57d22556a
commit
6518f52a80
@ -9965,9 +9965,12 @@ void MainWindow::on_pbFoxReset_clicked()
|
|||||||
void MainWindow::on_pbFreeText_clicked()
|
void MainWindow::on_pbFreeText_clicked()
|
||||||
{
|
{
|
||||||
bool ok;
|
bool ok;
|
||||||
m_freeTextMsg = QInputDialog::getText (this, tr("Free Text Message"),
|
static QStringList items;
|
||||||
tr("Message:"), QLineEdit::Normal, m_freeTextMsg0, &ok);
|
if(items.isEmpty()) items << "HELLO TEST 1234..." << "CALL FROM 200 to 5000 HZ";
|
||||||
|
m_freeTextMsg = QInputDialog::getItem (this, tr("Free Text Message"),
|
||||||
|
tr("Message:"), items, 0, true, &ok);
|
||||||
if(ok) {
|
if(ok) {
|
||||||
|
if(!m_freeTextMsg.isEmpty()) items.append(m_freeTextMsg);
|
||||||
m_freeTextMsg=m_freeTextMsg.toUpper();
|
m_freeTextMsg=m_freeTextMsg.toUpper();
|
||||||
m_freeTextMsg0=m_freeTextMsg;
|
m_freeTextMsg0=m_freeTextMsg;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user