mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
af9d62bac3
commit
bd993a4135
2 changed files with 17 additions and 16 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue