This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import bb.cascades 1.0 | |
| Page { | |
| content: Container { | |
| Label { | |
| id: emailLabel | |
| text: qsTr("Email") | |
| } | |
| Label { | |
| id: urlLabel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import bb.cascades 1.0 | |
| Page { | |
| content: Container { | |
| preferredWidth: 768 | |
| preferredHeight: 1280 | |
| id: root | |
| objectName: "rootContainer" | |
| layout: DockLayout { | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Container{ | |
| preferredWidth: 768 // testing purposes | |
| // preferredWidth: 720 // live production app | |
| preferredHeight: 1280 // testing/live | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Container{ | |
| preferredWidth: 768 // testing purposes | |
| // preferredWidth: 720 // live production app | |
| preferredHeight: 720 // testing/live | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "app.hpp" | |
| #include <bb/cascades/Application> | |
| #include <bb/cascades/QmlDocument> | |
| #include <bb/cascades/AbstractPane> | |
| #include <QtDeclarative> | |
| #include <bb/cascades/Menu> | |
| #include <bb/cascades/ActionItem> | |
| #include <bb/cascades/HelpActionItem> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| unction vBlinds() { | |
| var i=0; | |
| var tweens:Array=new Array(16); | |
| var shapes:Array=new Array(16); | |
| var timer:Timer=new Timer(200,16); | |
| timer.addEventListener(TimerEvent.TIMER, function(e:TimerEvent){ | |
| shapes[i]=new Sprite(); | |
| shapes[i].name=i; | |
| transitions.addChild(shapes[i]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // header file | |
| Q_INVOKABLE void openUrlExternally(QString url); | |
| // cpp file implementation | |
| #include <bps/navigator.h> | |
| void xxx:OpenUrlExternally(Qstring url) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body { | |
| padding: 50px; | |
| } | |
| hr { | |
| margin: 50px 0; | |
| } | |
| hr.style-one { | |
| border: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "app.hpp" | |
| #include <bb/cascades/Application> | |
| #include <bb/cascades/QmlDocument> | |
| #include <bb/cascades/AbstractPane> | |
| #include <bps/navigator.h> | |
| using namespace bb::cascades; | |
| App::App() |