mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-21 23:55:13 -05:00
Fix compiler warnings.
This commit is contained in:
parent
1ace16cfe2
commit
e6e4d1661e
@ -7,7 +7,7 @@ Multiple Sky Maps are supported, including the [World Wide Telescope](https://ww
|
||||
|
||||
The Rotator Controller and Star Tracker plugins can track the position viewed in the Sky Map. The Sky Map can also be set to track coordinates from the Star Tracker, Satellite Tracker, Rotator Controller or Map.
|
||||
|
||||
![Sky Map feature WWT](../../../doc/img/SkyMap_WWT.png)
|
||||
![Sky Map feature WWT](../../../doc/img/SkyMap_wwt.png)
|
||||
|
||||
With the ESASky map, a host of astronomical data is available from JWST, Hubble, Gaia, Herschel and others, including images, spectra and publications:
|
||||
|
||||
|
@ -106,6 +106,7 @@ bool SkyMapGUI::handleMessage(const Message& message)
|
||||
else if (SkyMap::MsgSetDateTime::match(message))
|
||||
{
|
||||
SkyMap::MsgSetDateTime& msgSetDateTime = (SkyMap::MsgSetDateTime&) message;
|
||||
setDateTime(msgSetDateTime.getDateTime());
|
||||
return true;
|
||||
}
|
||||
else if (MainCore::MsgTargetAzimuthElevation::match(message))
|
||||
@ -292,6 +293,8 @@ void SkyMapGUI::blockApplySettings(bool block)
|
||||
|
||||
void SkyMapGUI::on_map_currentIndexChanged(int index)
|
||||
{
|
||||
(void) index;
|
||||
|
||||
m_settings.m_map = ui->map->currentText();
|
||||
applySetting("map");
|
||||
|
||||
@ -458,7 +461,7 @@ void SkyMapGUI::applySettings(const QStringList& settingsKeys, bool force)
|
||||
{
|
||||
if (m_doApplySettings)
|
||||
{
|
||||
SkyMap::MsgConfigureSkyMap* message = SkyMap::MsgConfigureSkyMap::create(m_settings, m_settingsKeys, force);
|
||||
SkyMap::MsgConfigureSkyMap* message = SkyMap::MsgConfigureSkyMap::create(m_settings, settingsKeys, force);
|
||||
m_skymap->getInputMessageQueue()->push(message);
|
||||
|
||||
QObject *oldSource = m_source;
|
||||
@ -482,8 +485,6 @@ void SkyMapGUI::applySettings(const QStringList& settingsKeys, bool force)
|
||||
MainCore::instance()->getSettings().getAltitude());
|
||||
}
|
||||
}
|
||||
|
||||
m_settingsKeys.clear();
|
||||
}
|
||||
|
||||
void SkyMapGUI::applyAllSettings()
|
||||
@ -1045,21 +1046,33 @@ void SkyMapGUI::updateSourceList()
|
||||
|
||||
void SkyMapGUI::handleFeatureAdded(int featureSetIndex, Feature *feature)
|
||||
{
|
||||
(void) featureSetIndex;
|
||||
(void) feature;
|
||||
|
||||
updateSourceList();
|
||||
}
|
||||
|
||||
void SkyMapGUI::handleFeatureRemoved(int featureSetIndex, Feature *oldFeature)
|
||||
{
|
||||
(void) featureSetIndex;
|
||||
(void) oldFeature;
|
||||
|
||||
updateSourceList();
|
||||
}
|
||||
|
||||
void SkyMapGUI::handleChannelAdded(int deviceSetIndex, ChannelAPI *channel)
|
||||
{
|
||||
(void) deviceSetIndex;
|
||||
(void) channel;
|
||||
|
||||
updateSourceList();
|
||||
}
|
||||
|
||||
void SkyMapGUI::handleChannelRemoved(int deviceSetIndex, ChannelAPI *channel)
|
||||
{
|
||||
(void) deviceSetIndex;
|
||||
(void) channel;
|
||||
|
||||
updateSourceList();
|
||||
}
|
||||
|
||||
|
@ -72,7 +72,6 @@ private:
|
||||
PluginAPI* m_pluginAPI;
|
||||
FeatureUISet* m_featureUISet;
|
||||
SkyMapSettings m_settings;
|
||||
QList<QString> m_settingsKeys;
|
||||
RollupState m_rollupState;
|
||||
bool m_doApplySettings;
|
||||
QList<MainCore::AvailableChannelOrFeature> m_availableChannelOrFeatures;
|
||||
|
@ -28,6 +28,7 @@ WebView::WebView(QWidget *parent) :
|
||||
|
||||
QWebEngineView *WebView::createWindow(QWebEnginePage::WebWindowType type)
|
||||
{
|
||||
(void) type;
|
||||
QWebEngineView *view = new QWebEngineView();
|
||||
connect(view, &QWebEngineView::titleChanged, this, &WebView::on_titleChanged);
|
||||
|
||||
|
@ -439,7 +439,6 @@ void MainCore::updateWakeLock()
|
||||
QList<MainCore::AvailableChannelOrFeature> MainCore::getAvailableChannels(const QStringList& uris)
|
||||
{
|
||||
QList<AvailableChannelOrFeature> list;
|
||||
std::vector<DeviceSet*>& deviceSets = MainCore::instance()->getDeviceSets();
|
||||
|
||||
for (const auto deviceSet : m_deviceSets)
|
||||
{
|
||||
|
@ -19,6 +19,8 @@
|
||||
|
||||
QValidator::State Int64Validator::validate(QString& input, int &pos) const
|
||||
{
|
||||
(void) pos;
|
||||
|
||||
if (input == "") {
|
||||
return QValidator::Acceptable;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user