mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
Resolve build errors: add Q_DECL_EXPORT to SvgImageProvider;
change unsetenv to qputenv.
This commit is contained in:
parent
5cab871ac6
commit
a306b31c9c
@ -33,7 +33,7 @@
|
||||
#include <QSvgRenderer>
|
||||
#include <QMap>
|
||||
|
||||
class SvgImageProvider : public QObject, public QDeclarativeImageProvider
|
||||
class Q_DECL_EXPORT SvgImageProvider : public QObject, public QDeclarativeImageProvider
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
@ -52,6 +52,7 @@ void PfdQmlGadget::loadConfiguration(IUAVGadgetConfiguration* config)
|
||||
qputenv("OSGEARTH_CACHE_ONLY", "true");
|
||||
} else {
|
||||
//how portable it is?
|
||||
unsetenv("OSGEARTH_CACHE_ONLY");
|
||||
//unsetenv("OSGEARTH_CACHE_ONLY");
|
||||
qputenv("OSGEARTH_CACHE_ONLY", "false");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user