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

Method CreateTab

Plugins/WebBrowser/FrmWebBrowser.cpp:536–559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

534}
535
536QWidget* CFrmWebBrowser::CreateTab(CFrmWebView **view, bool offTheRecord)
537{
538 QSplitter *pSplitter = new QSplitter(Qt::Vertical, this);
539 if(pSplitter) {
540 pSplitter->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
541 //pSplitter->setContentsMargins(0, 0, 0, 0);
542 CFrmWebView* pWeb = nullptr;
543 if(view) {
544 if(*view) {
545 pWeb = *view;
546 } else {
547 pWeb = CreateWebView(offTheRecord);
548 *view = pWeb;
549 }
550 } else {
551 pWeb = CreateWebView(offTheRecord);
552 }
553 if(pWeb) {
554 pSplitter->addWidget(pWeb);
555 SetConnect(pWeb);
556 }
557 }
558 return pSplitter;
559}
560
561CFrmWebView *CFrmWebBrowser::CurrentView(ViewType type)
562{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected