| 593 | } |
| 594 | |
| 595 | int CFrmWebBrowser::IndexOfTab(CFrmWebView *pView) |
| 596 | { |
| 597 | int nRet = -1; |
| 598 | if(!pView) return nRet; |
| 599 | QWidget* p = qobject_cast<QWidget*>(pView->parent()); |
| 600 | if(!p) return nRet; |
| 601 | if(m_pTab) |
| 602 | nRet = m_pTab->indexOf(p); |
| 603 | return nRet; |
| 604 | } |
| 605 | |
| 606 | int CFrmWebBrowser::InitMenu(QMenu *pMenu) |
| 607 | { |