mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-17 13:18:56 -04:00
Set background color of QMAP's MaxDrift control if its valus is > 0.
This commit is contained in:
@@ -1114,3 +1114,13 @@ void MainWindow::on_actionAlso_Q65_30x_toggled(bool b)
|
||||
m_bAlso30=b;
|
||||
}
|
||||
|
||||
|
||||
void MainWindow::on_sbMaxDrift_valueChanged(int n)
|
||||
{
|
||||
qDebug() << "aa";
|
||||
if(n>0) {
|
||||
ui->sbMaxDrift->setStyleSheet("QSpinBox { background-color: #ff6666; }");
|
||||
} else {
|
||||
ui->sbMaxDrift->setStyleSheet("");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -84,6 +84,8 @@ private slots:
|
||||
void on_actionQuick_Start_Guide_to_WSJT_X_2_7_and_QMAP_triggered();
|
||||
void on_actionAlso_Q65_30x_toggled(bool b);
|
||||
|
||||
void on_sbMaxDrift_valueChanged(int arg1);
|
||||
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
QString m_appDir;
|
||||
|
||||
Reference in New Issue
Block a user