1
0
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:
Mike LaBranche 2012-07-30 14:30:03 -07:00
parent c93cfc5d50
commit b490fdb6e9
2 changed files with 3 additions and 2 deletions

View File

@ -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:

View File

@ -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");
}
}