HelpWindow *TabbedBrowser::createHelpWindow(){ MainWindow *mainWin = mainWindow(); HelpWindow *win = new HelpWindow(mainWin, 0); win->setFrameStyle(QFrame::NoFrame); win->setPalette(palette()); win->setSearchPaths(Config::configuration()->mimePaths()); ui.tab->addTab(win, tr("...")); connect(win, SIGNAL(highlighted(QString)), (const QObject*) (mainWin->statusBar()), SLOT(showMessage(QString))); connect(win, SIGNAL(backwardAvailable(bool)), mainWin, SLOT(backwardAvailable(bool))); connect(win, SIGNAL(forwardAvailable(bool)), mainWin, SLOT(forwardAvailable(bool))); connect(win, SIGNAL(sourceChanged(QUrl)), this, SLOT(sourceChanged())); ui.tab->cornerWidget(Qt::TopRightCorner)->setEnabled(ui.tab->count() > 1); win->installEventFilter(this); win->viewport()->installEventFilter(this); ui.editFind->installEventFilter(this); return win;}