void ClickToFlash::customContextMenuRequested(const QPoint &pos) { QMenu menu; menu.addAction(tr("Object blocked by ClickToFlash")); menu.addSeparator(); menu.addAction(tr("Hide object"), this, SLOT(hideObject())); menu.addAction(tr("Add '%1' to whitelist").arg(url_.host()), this, SLOT(toWhitelist())); menu.actions().at(0)->setEnabled(false); menu.exec(mapToGlobal(pos)); }
void ClickToFlash::customContextMenuRequested(const QPoint &pos) { QMenu menu; menu.addAction(tr("Object blocked by ClickToFlash")); menu.addAction(tr("Show more information about object"), this, SLOT(showInfo())); menu.addSeparator(); menu.addAction(tr("Delete object"), this, SLOT(hideObject())); menu.addAction(tr("Add %1 to whitelist").arg(m_url.host()), this, SLOT(toWhitelist())); menu.actions().at(0)->setEnabled(false); menu.exec(mapToGlobal(pos)); }