mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
7e7a1d29ad
Make search panel floating so that web view does not resize. This commit also addresses following issues: - search now wraps around document - application icon and window title are now back Signed-off-by: Sergey Starosek <sergey.starosek@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
32 lines
516 B
C++
32 lines
516 B
C++
#ifndef USERMANUAL_H
|
|
#define USERMANUAL_H
|
|
|
|
#include <QMainWindow>
|
|
#include <QWebPage>
|
|
|
|
namespace Ui {
|
|
class UserManual;
|
|
}
|
|
|
|
class UserManual : public QMainWindow
|
|
{
|
|
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
|