void DeclarativeTabModel::updateNewTabData(NewTabData *newTabData) { bool hadNewTabData = hasNewTabData(); QString currentTabUrl = newTabUrl(); bool urlChanged = newTabData ? currentTabUrl != newTabData->url : !currentTabUrl.isEmpty(); m_newTabData.reset(newTabData); if (urlChanged) { emit newTabUrlChanged(); } if (hadNewTabData != hasNewTabData()) { emit hasNewTabDataChanged(); } }
void WebBridgeRS::newTabAt(QString url){ emit newTabUrl(url); }