mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-09-27 15:46:51 -04:00
Shift+F11/F12 should not move Rx Freq. Fixed.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7850 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
7edb7d72b8
commit
033e060895
@ -1710,20 +1710,22 @@ void MainWindow::keyPressEvent (QKeyEvent * e)
|
|||||||
case Qt::Key_F11:
|
case Qt::Key_F11:
|
||||||
n=11;
|
n=11;
|
||||||
if(e->modifiers() & Qt::ControlModifier) n+=100;
|
if(e->modifiers() & Qt::ControlModifier) n+=100;
|
||||||
bumpFqso(n);
|
|
||||||
if(e->modifiers() & Qt::ShiftModifier) {
|
if(e->modifiers() & Qt::ShiftModifier) {
|
||||||
int f=ui->TxFreqSpinBox->value()/50;
|
int f=ui->TxFreqSpinBox->value()/50;
|
||||||
if((ui->TxFreqSpinBox->value() % 50) == 0) f=f-1;
|
if((ui->TxFreqSpinBox->value() % 50) == 0) f=f-1;
|
||||||
ui->TxFreqSpinBox->setValue(50*f);
|
ui->TxFreqSpinBox->setValue(50*f);
|
||||||
|
} else{
|
||||||
|
bumpFqso(n);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
case Qt::Key_F12:
|
case Qt::Key_F12:
|
||||||
n=12;
|
n=12;
|
||||||
if(e->modifiers() & Qt::ControlModifier) n+=100;
|
if(e->modifiers() & Qt::ControlModifier) n+=100;
|
||||||
bumpFqso(n);
|
|
||||||
if(e->modifiers() & Qt::ShiftModifier) {
|
if(e->modifiers() & Qt::ShiftModifier) {
|
||||||
int f=ui->TxFreqSpinBox->value()/50;
|
int f=ui->TxFreqSpinBox->value()/50;
|
||||||
ui->TxFreqSpinBox->setValue(50*(f+1));
|
ui->TxFreqSpinBox->setValue(50*(f+1));
|
||||||
|
} else {
|
||||||
|
bumpFqso(n);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
case Qt::Key_E:
|
case Qt::Key_E:
|
||||||
|
Loading…
Reference in New Issue
Block a user