diff options
author | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2013-10-11 00:19:11 +0000 |
---|---|---|
committer | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2013-10-11 00:19:11 +0000 |
commit | 00532acef4a6b48133675db50947b8c4b98175b6 (patch) | |
tree | c9b456963696195e79a9a624fe6b08ea9438396b /qmlpage.cpp | |
parent | add qmlpage for keydetails, just a test now (diff) | |
download | gpg4usb-00532acef4a6b48133675db50947b8c4b98175b6.tar.gz gpg4usb-00532acef4a6b48133675db50947b8c4b98175b6.zip |
include qml in resources
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@1044 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'qmlpage.cpp')
-rw-r--r-- | qmlpage.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qmlpage.cpp b/qmlpage.cpp index eafb0af..213315a 100644 --- a/qmlpage.cpp +++ b/qmlpage.cpp @@ -10,8 +10,9 @@ QMLPage::QMLPage(const QString qmlfile, QWidget *parent) : { // http://harmattan-dev.nokia.com/docs/library/html/qt4/qml-integration.html + // http://qt-project.org/doc/qt-4.8/qtbinding.html QDeclarativeView *qmlView = new QDeclarativeView; - qmlView->setSource(QUrl::fromLocalFile("keydetails.qml")); + qmlView->setSource(QUrl("qrc:/qml/keydetails.qml")); QDeclarativeContext *context = qmlView->rootContext(); context->setContextProperty("var1", "derText"); |