Extract user manual web view into a separate class

Provide search functionality which addresses ticket #391

Signed-off-by: Sergey Starosek <sergey.starosek@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Sergey Starosek 2014-01-09 19:21:29 +02:00 committed by Dirk Hohndel
parent e5ae3fca7f
commit 8b00f8ffe6
4 changed files with 296 additions and 3 deletions

32
qt-ui/usermanual.h Normal file
View file

@ -0,0 +1,32 @@
#ifndef USERMANUAL_H
#define USERMANUAL_H
#include <QMainWindow>
#include <QWebPage>
namespace Ui {
class UserManual;
}
class UserManual : public QWidget
{
Q_OBJECT
public:
explicit UserManual(QWidget *parent = 0);
~UserManual();
private slots:
void showSearchPanel();
void hideSearchPanel();
void searchTextChanged(QString);
void searchNext();
void searchPrev();
void linkClickedSlot(QUrl url);
private:
Ui::UserManual *ui;
void search(QString, QWebPage::FindFlags);
};
#endif // USERMANUAL_H