Add missing image and fix Linux compilation warnings

pull/1127/head
Jon Beniston 2022-02-04 21:33:04 +00:00
rodzic fd70ffcfdc
commit 09eff20a8e
5 zmienionych plików z 38 dodań i 6 usunięć

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 53 KiB

Wyświetl plik

@ -64,9 +64,9 @@ public:
) :
Message(),
m_data(data),
m_dateTime(dateTime),
m_preambleCorrelation(preambleCorrelation),
m_correlationOnes(correlationOnes),
m_dateTime(dateTime)
m_correlationOnes(correlationOnes)
{
}
};

Wyświetl plik

@ -122,11 +122,16 @@ MapSettingsDialog::MapSettingsDialog(MapSettings *settings, QWidget* parent) :
ui->eciCamera->setCurrentIndex((int)m_settings->m_eciCamera);
ui->antiAliasing->setCurrentIndex(ui->antiAliasing->findText(m_settings->m_antiAliasing));
QHashIterator<QString, MapSettings::MapItemSettings *> itr(m_settings->m_itemSettings);
// Sort groups in table alphabetically
QList<MapSettings::MapItemSettings *> itemSettings = m_settings->m_itemSettings.values();
std::sort(itemSettings.begin(), itemSettings.end(),
[](const MapSettings::MapItemSettings* a, const MapSettings::MapItemSettings* b) -> bool {
return a->m_group < b->m_group;
});
QListIterator<MapSettings::MapItemSettings *> itr(itemSettings);
while (itr.hasNext())
{
itr.next();
MapSettings::MapItemSettings *itemSettings = itr.value();
MapSettings::MapItemSettings *itemSettings = itr.next();
// Add row to table with header
int row = ui->mapItemSettings->rowCount();

Wyświetl plik

@ -16,7 +16,7 @@
</font>
</property>
<property name="windowTitle">
<string>Select a Location</string>
<string>Map Display Settings</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
@ -366,6 +366,12 @@
</item>
<item row="1" column="0">
<widget class="QLabel" name="maptilerAPIKeyLabel">
<property name="minimumSize">
<size>
<width>140</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Maptiler API Key</string>
</property>
@ -380,6 +386,12 @@
</item>
<item row="2" column="0">
<widget class="QLabel" name="mapBoxAPIKeyLabel">
<property name="minimumSize">
<size>
<width>140</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Mapbox API Key</string>
</property>
@ -394,6 +406,12 @@
</item>
<item row="3" column="0">
<widget class="QLabel" name="cesiumIonAPIKeyLabel">
<property name="minimumSize">
<size>
<width>140</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Cesium Ion API Key</string>
</property>
@ -462,6 +480,7 @@
<tabstop>buildings</tabstop>
<tabstop>sunLightEnabled</tabstop>
<tabstop>eciCamera</tabstop>
<tabstop>antiAliasing</tabstop>
<tabstop>thunderforestAPIKey</tabstop>
<tabstop>maptilerAPIKey</tabstop>
<tabstop>mapBoxAPIKey</tabstop>

Wyświetl plik

@ -147,11 +147,19 @@ void WebServer::readClient()
// See if we can find the file in our resources
QResource res(path);
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
if (res.isValid() && (res.uncompressedSize() > 0))
{
QByteArray data = res.uncompressedData();
sendFile(socket, data, mimeType, path);
}
#else
if (res.isValid() && (res.size() > 0))
{
QByteArray data = QByteArray::fromRawData((const char *)res.data(), res.size());
sendFile(socket, data, mimeType, path);
}
#endif
else
{
// See if we can find a file