Fix for sensor plugin in TelldusCenter in Linux. This closes #181 kind of.
This commit is contained in:
parent
979bee6174
commit
d1e33dff0c
2 changed files with 11 additions and 0 deletions
|
@ -6,6 +6,9 @@
|
|||
#include <QVariant>
|
||||
#include <QApplication>
|
||||
|
||||
#define DEFINE_STRING_HELPER(X) #X
|
||||
#define DEFINE_STRING(X) DEFINE_STRING_HELPER(X)
|
||||
|
||||
class QMLView::PrivateData {
|
||||
public:
|
||||
QDir baseDir;
|
||||
|
@ -32,6 +35,10 @@ QMLView::QMLView(const QDir &dir, const QScriptValue &object) :
|
|||
paths << pluginsDir.absolutePath();
|
||||
}
|
||||
|
||||
#if defined(Q_OS_UNIX)
|
||||
paths << DEFINE_STRING(PLUGIN_LIB_PATH);
|
||||
#endif
|
||||
|
||||
eng->setImportPathList(paths);
|
||||
|
||||
d = new PrivateData;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue