1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-04 07:51:14 -05:00

Fix Qt6 compilation

This commit is contained in:
Jon Beniston 2023-04-10 15:57:16 +01:00
parent a76d11b3a1
commit f8efc14421
3 changed files with 6 additions and 4 deletions

View File

@ -355,7 +355,7 @@ void NavtexDemodSink::receiveBit(bool bit)
getMessageQueueToChannel()->push(msg);
}
// Add character to message buffer
m_messageBuffer.append(c);
m_messageBuffer.append(QChar(c));
}
else
{

View File

@ -695,7 +695,7 @@ void HeatMapGUI::displaySettings()
value = (int)std::log10(m_settings.m_sampleRate);
ui->sampleRate->setValue(value);
int idx = std::min(std::max(0, value-2), m_sampleRateTexts.size() - 1);
int idx = std::min(std::max(0, value-2), (int)m_sampleRateTexts.size() - 1);
ui->sampleRateText->setText(m_sampleRateTexts[idx]);
ui->averagePeriod->setMinimum(std::max(1, static_cast<int> (m_averagePeriodTexts.size()) - value));

View File

@ -358,10 +358,12 @@ void MainCore::initPosition()
if (m_positionSource)
{
connect(m_positionSource, &QGeoPositionInfoSource::positionUpdated, this, &MainCore::positionUpdated);
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
connect(m_positionSource, &QGeoPositionInfoSource::updateTimeout, this, &MainCore::positionUpdateTimeout);
#endif
connect(m_positionSource, qOverload<QGeoPositionInfoSource::Error>(&QGeoPositionInfoSource::error), this, &MainCore::positionError);
#else
connect(m_positionSource, &QGeoPositionInfoSource::errorOccurred, this, &MainCore::positionError);
#endif
m_position = m_positionSource->lastKnownPosition();
m_positionSource->setUpdateInterval(1000);
m_positionSource->startUpdates();