Changeset 5531d6
- Timestamp:
- 01/13/12 14:36:38 (4 months ago)
- Branches:
- ('master', 'deebf2045e7119c339412580f37a1e653f7d5715')('controller-upgrade', '00f95d22e12d96ef089e0902ef62ae8ce841dc6f')
- Children:
- aadc4554fc97f0caac4d591e1b9f8197e02d94f0
- Parents:
- ab436a212fb4158c66b118c557ab4b4f8275033d
- git-author:
- Micke Prag <micke.prag@telldus.se>2012-01-13 14:36:38+01:00
- git-committer:
- Micke Prag <micke.prag@telldus.se>2012-01-13 14:36:38+01:00
- Location:
- telldus-gui/Plugins/QML
- Files:
-
- 2 edited
-
CMakeLists.txt (modified) (1 diff)
-
qmlview.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
telldus-gui/Plugins/QML/CMakeLists.txt
r3738b3 r5531d6 24 24 25 25 INCLUDE( ../TelldusCenterPlugin.cmake NO_POLICY_SCOPE ) 26 27 SET(QT_COMPONENTS_OUTPUT_DIR "${CMAKE_BINARY_DIR}/TelldusCenter/Plugins/declarative") 28 INCLUDE( ${CMAKE_SOURCE_DIR}/3rdparty/qt-components-desktop.cmake NO_POLICY_SCOPE ) -
telldus-gui/Plugins/QML/qmlview.cpp
r61331e r5531d6 3 3 #include <QDeclarativeContext> 4 4 #include <QScriptValueIterator> 5 #include <QDeclarativeEngine> 5 6 #include <QVariant> 7 #include <QApplication> 6 8 7 9 class QMLView::PrivateData { … … 16 18 setAttribute(Qt::WA_TranslucentBackground); 17 19 setStyleSheet("background:transparent;"); 20 21 QDeclarativeEngine *eng = this->engine(); 22 QStringList paths(eng->importPathList()); 23 QDir pluginsDir = QDir(qApp->applicationDirPath()); 24 25 #if defined(Q_OS_MAC) 26 if (pluginsDir.dirName() == "MacOS") { 27 pluginsDir.cdUp(); 28 } 29 #endif 30 31 if (pluginsDir.cd("Plugins/declarative")) { 32 paths << pluginsDir.absolutePath(); 33 } 34 35 eng->setImportPathList(paths); 18 36 19 37 d = new PrivateData;
Note: See TracChangeset
for help on using the changeset viewer.
