本文整理汇总了C++中Navigator::setNavigationPane方法的典型用法代码示例。如果您正苦于以下问题:C++ Navigator::setNavigationPane方法的具体用法?C++ Navigator::setNavigationPane怎么用?C++ Navigator::setNavigationPane使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Navigator
的用法示例。
在下文中一共展示了Navigator::setNavigationPane方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
MainMenu::MainMenu(Application *app) :
_nfcManager(0), _appVersion(QString(Settings::AppVersion)) {
QCoreApplication::setOrganizationName("Example");
QCoreApplication::setApplicationName("Starship Settings");
_app = app;
_qml = QmlDocument::create("asset:///main.qml");
_qml->setContextProperty("_mainMenu", this);
_root = _qml->createRootObject<AbstractPane>();
StateManager* state_mgr = StateManager::getInstance();
_qml->setContextProperty("_stateManager", state_mgr);
_invokeManager = new bb::system::InvokeManager();
Navigator* nav = Navigator::getInstance();
NavigationPane* navpane = dynamic_cast<NavigationPane*>(_root);
nav->setNavigationPane(navpane);
_systemDialog = new bb::system::SystemDialog(this);
_systemDialog->setTitle("NFC Transaction");
bb::system::SystemUiButton *confirmButton = _systemDialog->confirmButton();
confirmButton->setLabel("OK");
createModules();
startEventProcessing();
qDebug() << "XXXX calling connectSignals";
connectSignals();
qDebug() << "XXXX done calling connectSignals";
onMainMenuTriggered();
//call onButtonClicked if the value of autoActive is True or at least pass the value (true or false)
// if (getValueFor("autoActive", "false") == "true") {
// //onButtonClicked(true);
// }
}
示例2:
MainMenu::MainMenu(Application *app) :
_nfcManager(0), _appVersion(QString(Settings::AppVersion)) {
bb::cascades::Application::setOrganizationName("RIM");
bb::cascades::Application::setApplicationName("NfcTool");
qDebug() << "XXXX NFC Tool V" << Settings::AppVersion;
qDebug() << "XXXX loading main menu qml document";
_app = app;
_qml = QmlDocument::create("asset:///main.qml");
_qml->setContextProperty("_mainMenu", this);
_root = _qml->createRootObject<AbstractPane>();
StateManager* state_mgr = StateManager::getInstance();
_qml->setContextProperty("_stateManager", state_mgr);
_invokeManager = new bb::system::InvokeManager();
Navigator* nav = Navigator::getInstance();
NavigationPane* navpane = dynamic_cast<NavigationPane*>(_root);
nav->setNavigationPane(navpane);
_systemDialog = new bb::system::SystemDialog(this);
_systemDialog->setTitle("NFC Transaction");
bb::system::SystemUiButton *confirmButton = _systemDialog->confirmButton();
confirmButton->setLabel("OK");
createModules();
startEventProcessing();
qDebug() << "XXXX calling connectSignals";
connectSignals();
qDebug() << "XXXX done calling connectSignals";
onMainMenuTriggered();
}