/* * ActiveFrameQML.cpp * * Created on: Oct 21, 2016 * Author: morga */ #include #include #include #include #include using namespace bb::cascades; ActiveFrameQML::ActiveFrameQML(QObject *parent) : SceneCover(parent) { QmlDocument *qml = QmlDocument::create("asset:///AppCover.qml").parent(parent); Container *mainContainer = qml->createRootObject(); setContent(mainContainer); global_unread_label = mainContainer->findChild("global_label"); global_unread_label->setParent(mainContainer); home_unread_label = mainContainer->findChild("home_label"); home_unread_label->setParent(mainContainer); } ActiveFrameQML::~ActiveFrameQML() { // TODO Auto-generated destructor stub } void ActiveFrameQML::setGlobalUnread(QString count) { global_unread_label->setText(count); } void ActiveFrameQML::setHomeUnread(QString count) { home_unread_label->setText(count); }