diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-07-11 18:01:35 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-11 16:59:14 -0700 |
commit | bd993a4135c8b717248ce9dd28ea81995f0c86db (patch) | |
tree | c74523932c2f4b22a19abbade33e4bfdeebd13a7 /qt-ui/usermanual.h | |
parent | af9d62bac3add0de07744f3d8a42e3a058e32a41 (diff) | |
download | subsurface-bd993a4135c8b717248ce9dd28ea81995f0c86db.tar.gz |
Use a layout to lay down the search and the help
The old layout tried to add the search on top of the help view, which
didn't really work because of the way that the QWebView rendered: we got
garbage after a scroll with the find opened. So now I'v created a QWidget
and layed down the QWebView and the search bar vertically.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/usermanual.h')
-rw-r--r-- | qt-ui/usermanual.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/qt-ui/usermanual.h b/qt-ui/usermanual.h index 7cd10c185..c36226027 100644 --- a/qt-ui/usermanual.h +++ b/qt-ui/usermanual.h @@ -21,20 +21,19 @@ private: Ui::SearchBar ui; }; -class UserManual : public QWebView { +class UserManual : public QWidget { Q_OBJECT public: explicit UserManual(QWidget *parent = 0); - ~UserManual(); private slots: void searchTextChanged(const QString& s); void searchNext(); void searchPrev(); - void linkClickedSlot(QUrl url); - + void linkClickedSlot(const QUrl& url); private: + QWebView *userManual; SearchBar *searchBar; QString mLastText; void search(QString, QWebPage::FindFlags); |