MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / GetView

Method GetView

Plugins/WebBrowser/FrmWebBrowser.cpp:573–583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

571}
572
573CFrmWebView* CFrmWebBrowser::GetView(int index, ViewType type)
574{
575 if(0 > index || !m_pTab || m_pTab->count() <= index) return nullptr;
576 auto w = m_pTab->widget(index);
577 if(!w) return nullptr;
578 QSplitter *pSplitter = qobject_cast<QSplitter*>(w);
579 if(!pSplitter) return nullptr;
580 int idx = (int)type;
581 if(0 > idx && pSplitter->count() <= idx) return nullptr;
582 return qobject_cast<CFrmWebView*>(pSplitter->widget(idx));
583}
584
585bool CFrmWebBrowser::IsCurrentView(CFrmWebView *pView)
586{

Callers 1

CreateWindowMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected