kopia lustrzana https://github.com/f4exb/sdrangel
				
				
				
			Fix map feature 5.15.4 check
							rodzic
							
								
									0ce935b554
								
							
						
					
					
						commit
						9c846f363c
					
				| 
						 | 
				
			
			@ -88,8 +88,8 @@ MapSettings::~MapSettings()
 | 
			
		|||
void MapSettings::resetToDefaults()
 | 
			
		||||
{
 | 
			
		||||
    m_displayNames = true;
 | 
			
		||||
#if QT_VERSION == QT_VERSION_CHECK(5, 15, 3)
 | 
			
		||||
    m_mapProvider = "mapboxgl"; // osm maps do not work in Qt 5.15.3 - https://github.com/f4exb/sdrangel/issues/1169
 | 
			
		||||
#if QT_VERSION == QT_VERSION_CHECK(5, 15, 3) || QT_VERSION == QT_VERSION_CHECK(5, 15, 4)
 | 
			
		||||
    m_mapProvider = "mapboxgl"; // osm maps do not work in Qt 5.15.3/4 - https://github.com/f4exb/sdrangel/issues/1169
 | 
			
		||||
#else
 | 
			
		||||
    m_mapProvider = "osm";
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			@ -183,8 +183,8 @@ bool MapSettings::deserialize(const QByteArray& data)
 | 
			
		|||
        QByteArray blob;
 | 
			
		||||
 | 
			
		||||
        d.readBool(1, &m_displayNames, true);
 | 
			
		||||
#if QT_VERSION == QT_VERSION_CHECK(5, 15, 3)
 | 
			
		||||
        d.readString(2, &m_mapProvider, "mapboxgl"); // osm maps do not work in Qt 5.15.3 - https://github.com/f4exb/sdrangel/issues/1169
 | 
			
		||||
#if QT_VERSION == QT_VERSION_CHECK(5, 15, 3) || QT_VERSION == QT_VERSION_CHECK(5, 15, 4)
 | 
			
		||||
        d.readString(2, &m_mapProvider, "mapboxgl"); // osm maps do not work in Qt 5.15.3/4 - https://github.com/f4exb/sdrangel/issues/1169
 | 
			
		||||
#else
 | 
			
		||||
        d.readString(2, &m_mapProvider, "osm");
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Ładowanie…
	
		Reference in New Issue