rocs/App
Go to the documentation of this file.
21 #include <QWebHistory>
26 ui =
new Ui::DocumentationWidget;
29 ui->buttonHome->setIcon(KIcon(
"go-home"));
30 ui->buttonBack->setIcon(KIcon(
"go-previous"));
31 ui->buttonForward->setIcon(KIcon(
"go-next"));
33 _handbook = QUrl(QString::fromLatin1(
"http://docs.kde.org/stable/en/kdeedu/rocs/index.html"));
35 connect(ui->buttonBack, SIGNAL(pressed()), ui->viewer, SLOT(back()));
36 connect(ui->buttonForward, SIGNAL(pressed()), ui->viewer, SLOT(forward()));
37 connect(ui->buttonHome, SIGNAL(pressed()),
this, SLOT(
goHome()));
38 connect(ui->viewer, SIGNAL(urlChanged(QUrl)),
this, SLOT(updateButtonStates()));
45 ui->viewer->setUrl(_handbook);
48 void DocumentationWidget::updateButtonStates()
50 QWebHistory* history = ui->viewer->history();
51 ui->buttonBack->setEnabled(history->canGoBack());
52 ui->buttonForward->setEnabled(history->canGoForward());
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:22 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.