1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 01:55:48 -05:00

Fix gcc warnings.

This commit is contained in:
srcejon 2024-02-27 16:28:23 +00:00
parent cacb740566
commit bb7ea39d28
2 changed files with 8 additions and 7 deletions

View File

@ -207,8 +207,8 @@ MapGUI::MapGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *featur
m_legend(nullptr),
m_nasaWidget(nullptr),
m_legendWidget(nullptr),
m_descriptionWidget(nullptr),
m_overviewWidget(nullptr)
m_overviewWidget(nullptr),
m_descriptionWidget(nullptr)
{
m_feature = feature;
setAttribute(Qt::WA_DeleteOnClose, true);
@ -1437,6 +1437,8 @@ void MapGUI::nasaGlobalImageryMetaDataUpdated(const NASAGlobalImagery::MetaData&
void MapGUI::nasaGlobalImageryLegendAvailable(const QString& url, const QByteArray& data)
{
(void) url;
if (m_legendWidget)
{
m_legendWidget->load(data);
@ -1450,6 +1452,8 @@ void MapGUI::nasaGlobalImageryLegendAvailable(const QString& url, const QByteArr
void MapGUI::nasaGlobalImageryHTMLAvailable(const QString& url, const QByteArray& data)
{
(void) url;
if (m_descriptionWidget) {
m_descriptionWidget->setHtml(data);
}
@ -1657,6 +1661,8 @@ bool MapGUI::eventFilter(QObject *obj, QEvent *event)
void MapGUI::orientationChanged(Qt::ScreenOrientation orientation)
{
(void) orientation;
// Need a delay before geometry() reflects new orientation
// https://bugreports.qt.io/browse/QTBUG-109127
QTimer::singleShot(200, [this]() {

View File

@ -358,11 +358,6 @@ private slots:
{
qDebug() << "MapTileServer::downloadFinished: Failed to load image: " << url;
}
else
{
bool cached = reply->attribute(QNetworkRequest::SourceIsFromCacheAttribute).toBool();
//qDebug() << "Downloaded " << url << "as" << image.size() << "cached:" << cached;
}
}
else
{