void SBI_ZoomWidget::currentViewChanged() { TabbedWebView* view = m_window->weView(); if (view) { connect(view, SIGNAL(zoomLevelChanged(int)), this, SLOT(setValue(int))); setValue(view->zoomLevel()); } }
void SBI_ZoomWidget::valueChanged(int value) { TabbedWebView* view = m_window->weView(); if (view) { view->setZoomLevel(value); setToolTip(tr("Zoom: %1%").arg(view->zoomFactor() * 100)); } }
void TabBar::bookmarkTab() { TabbedWebView* view = p_QupZilla->weView(m_clickedTab); if (!view) { return; } p_QupZilla->addBookmark(view->url(), view->title(), view->icon()); }
void TabBar::bookmarkTab() { TabbedWebView* view = m_window->weView(m_clickedTab); if (!view) { return; } WebTab* tab = view->webTab(); m_window->addBookmark(tab->url(), tab->title()); }