KoFindPrivate::KoFindPrivate(KoFind *find, KoCanvasResourceManager *crp, QWidget *w) : findNext(0) , findPrev(0) , q(find) , provider(crp) , findStrategy(w) , replaceStrategy(w) , strategy(&findStrategy) , document(0) , restarted(false) , start(false) , inFind(false) , findDirection(0) , findForward(crp) , findBackward(crp) { QObject::connect(findStrategy.dialog(), SIGNAL(okClicked()), q, SLOT(startFind())); QObject::connect(replaceStrategy.dialog(), SIGNAL(okClicked()), q, SLOT(startReplace())); }
void BrowserDialog::initTab(BrowserView *newView) { newView->page()->setNetworkAccessManager(m_AccessManager); newView->page()->setForwardUnsupportedContent(true); connect(newView, SIGNAL(loadProgress(int)), this, SLOT(progress(int))); connect(newView, SIGNAL(titleChanged(QString)), this, SLOT(titleChanged(QString))); connect(newView, SIGNAL(initTab(BrowserView*)), this, SLOT(initTab(BrowserView*))); connect(newView, SIGNAL(startFind()), this, SLOT(startSearch())); connect(newView, SIGNAL(urlChanged(QUrl)), this, SLOT(urlChanged(QUrl))); connect(newView, SIGNAL(openUrlInNewTab(QUrl)), this, SLOT(openInNewTab(QUrl))); connect(newView->page(), SIGNAL(downloadRequested(QNetworkRequest)), this, SLOT(downloadRequested(QNetworkRequest))); connect(newView->page(), SIGNAL(unsupportedContent(QNetworkReply*)), this, SLOT(unsupportedContent(QNetworkReply*))); ui->backBtn->setEnabled(false); ui->fwdBtn->setEnabled(false); m_Tabs->addTab(newView, tr("new")); newView->settings()->setAttribute(QWebSettings::PluginsEnabled, true); newView->settings()->setAttribute(QWebSettings::AutoLoadImages, true); }