Skip to content

Commit 1e9c454

Browse files
committed
Test bug 729 for other SO
1 parent 8dc6828 commit 1e9c454

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

src/database.cpp

-6
Original file line numberDiff line numberDiff line change
@@ -5109,12 +5109,6 @@ bool DataBase::updateTo011()
51095109
// return false;
51105110
//}
51115111

5112-
if (!recreateTableWAZ())
5113-
{
5114-
//qDebug() << "DataBase::updateTo011: - recreateTableWAZ NOK " ;
5115-
// emit debugLog(Q_FUNC_INFO, "4", 7);
5116-
return false;
5117-
}
51185112

51195113
if(!execQuery(Q_FUNC_INFO, "INSERT INTO mode (submode, name, cabrillo, deprecated) VALUES ('MSK144', 'MSK144', 'NO', '0')"))
51205114
{

src/inputwidgets/mainwindowinputqso.cpp

+15-5
Original file line numberDiff line numberDiff line change
@@ -289,14 +289,19 @@ void MainWindowInputQSO::setDefaultData()
289289
freqTX = 0.0;
290290
freqRX = 0.0;
291291
modify = false;
292+
292293
QSettings settings(util->getCfgFile (), QSettings::IniFormat);
293294
settings.beginGroup ("Colors");
294295
darkMode = settings.value("DarkMode", false).toBool ();
295296
settings.endGroup ();
296297
if (darkMode) {
297298
txFreqSpinBox->setPalette(palWhite);
299+
rxFreqSpinBox->setPalette(palWhite);
300+
qDebug() << Q_FUNC_INFO << " - DarkMode: ON";
298301
} else {
302+
qDebug() << Q_FUNC_INFO << " - DarkMode: OFF";
299303
txFreqSpinBox->setPalette(palBlack);
304+
rxFreqSpinBox->setPalette(palBlack);
300305
}
301306
}
302307

@@ -615,9 +620,12 @@ void MainWindowInputQSO::setRSTToMode(const QString &_m, const bool _reading)
615620

616621
bool MainWindowInputQSO::getDarkMode()
617622
{
618-
//qDebug() << Q_FUNC_INFO << " - Start: " << nameLineEdit->palette().color(QPalette::Base).name(QColor::HexRgb);
623+
qDebug() << Q_FUNC_INFO << " - Start: " << nameLineEdit->palette().color(QPalette::Base).name(QColor::HexRgb);
624+
//New faf9f8
625+
//FOrmer color #646464
626+
qDebug() << Q_FUNC_INFO << " - Start: " << util->boolToQString((nameLineEdit->palette().color(QPalette::Base).name(QColor::HexRgb) == "#646464"));
619627
//return darkMode;
620-
return (nameLineEdit->palette().color(QPalette::Base).name(QColor::HexRgb) == "#646464");
628+
return (nameLineEdit->palette().color(QPalette::Base).name(QColor::HexRgb) == "#faf9f8");
621629
}
622630

623631
void MainWindowInputQSO::setPaletteRightName(const bool _ok)
@@ -709,12 +717,12 @@ void MainWindowInputQSO::slotFreqTXChanged (double _f)
709717
txFreqSpinBox->setToolTip(tr("TX Frequency in MHz."));
710718
if (getDarkMode())
711719
{
712-
//qDebug() << Q_FUNC_INFO << " - We are in darkmode";
720+
qDebug() << Q_FUNC_INFO << " - We are in darkmode";
713721
txFreqSpinBox->setPalette(palWhite);
714722
}
715723
else
716724
{
717-
//qDebug() << Q_FUNC_INFO << " - We are NOT in darkmode";
725+
qDebug() << Q_FUNC_INFO << " - We are NOT in darkmode";
718726
txFreqSpinBox->setPalette(palBlack);
719727
}
720728
//qDebug() << Q_FUNC_INFO << ": emitting: " << QString::number(_f);
@@ -724,7 +732,7 @@ void MainWindowInputQSO::slotFreqTXChanged (double _f)
724732
{
725733
txFreqSpinBox->setToolTip(tr("TX Frequency in MHz.\nFrequency is not in a hamradio band!"));
726734
txFreqSpinBox->setPalette(palRed);
727-
//qDebug() << Q_FUNC_INFO << ":RED - Not in band " ;
735+
qDebug() << Q_FUNC_INFO << ":RED - Not in band " ;
728736
}
729737
if ((!splitCheckBox->isChecked()) && !modify)
730738
{
@@ -757,10 +765,12 @@ void MainWindowInputQSO::slotFreqRXChanged(double _f)
757765
{ // If the freq belongs to one ham band
758766
if (getDarkMode())
759767
{
768+
qDebug() << Q_FUNC_INFO << " - We are in darkmode";
760769
rxFreqSpinBox->setPalette(palWhite);
761770
}
762771
else
763772
{
773+
qDebug() << Q_FUNC_INFO << " - We are NOT in darkmode";
764774
rxFreqSpinBox->setPalette(palBlack);
765775
}
766776
rxFreqSpinBox->setToolTip(tr("RX Frequency in MHz."));

0 commit comments

Comments
 (0)