| 534 | } |
| 535 | |
| 536 | QWidget* 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 | |
| 561 | CFrmWebView *CFrmWebBrowser::CurrentView(ViewType type) |
| 562 | { |
nothing calls this directly
no outgoing calls
no test coverage detected