void Core::ConnectSignals (BrowserWidget *widget) { SetupConnections (widget); connect (widget, SIGNAL (titleChanged (const QString&)), this, SLOT (handleTitleChanged (const QString&))); connect (widget, SIGNAL (iconChanged (const QIcon&)), this, SLOT (handleIconChanged (const QIcon&))); connect (widget, SIGNAL (needToClose ()), this, SLOT (handleNeedToClose ())); connect (widget, SIGNAL (statusBarChanged (const QString&)), this, SLOT (handleStatusBarChanged (const QString&))); connect (widget, SIGNAL (tooltipChanged (QWidget*)), this, SLOT (handleTooltipChanged (QWidget*))); connect (widget, SIGNAL (invalidateSettings ()), this, SLOT (saveSingleSession ())); connect (widget, SIGNAL (raiseTab (QWidget*)), this, SIGNAL (raiseTab (QWidget*))); }
void CustomWebView::zoomOut () { int i = LevelForZoom (zoomFactor ()); if (i > 0) setZoomFactor (Zooms_ [i - 1]); emit invalidateSettings (); }
void CustomWebView::zoomIn () { int i = LevelForZoom (zoomFactor ()); if (i < Zooms_.size () - 1) setZoomFactor (Zooms_ [i + 1]); emit invalidateSettings (); }
void CustomWebView::zoomReset () { setZoomFactor (1); emit invalidateSettings (); }