diff options
| author | Felix (xq) Queißner <git@mq32.de> | 2020-05-30 19:33:47 +0200 |
|---|---|---|
| committer | Felix (xq) Queißner <git@mq32.de> | 2020-05-30 19:33:47 +0200 |
| commit | ea39cc542e17ce592dc3c4f2053d534bc458d88e (patch) | |
| tree | c3c6a369d5b6d8a6a4e0b3e3667a56ca19e93173 /browsertab.hpp | |
| parent | 79ff338a3427a236ef53adf806c56616faa3426c (diff) | |
| download | kristall-ea39cc542e17ce592dc3c4f2053d534bc458d88e.tar.gz | |
More usability, survives conmans torture nearly with 100%
Diffstat (limited to 'browsertab.hpp')
| -rw-r--r-- | browsertab.hpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/browsertab.hpp b/browsertab.hpp index 47ee473..ddaf1b4 100644 --- a/browsertab.hpp +++ b/browsertab.hpp @@ -6,6 +6,7 @@ #include "geminiclient.hpp" #include "geminiwebpage.hpp" +#include "documentoutlinemodel.hpp" namespace Ui { class BrowserTab; @@ -61,6 +62,8 @@ private slots: void on_navigationRequest(QUrl const & url, bool & allow); + void on_fav_button_clicked(); + private: void setErrorMessage(QString const & msg); @@ -68,9 +71,9 @@ private: void updateUI(); - QByteArray translateGeminiToHtml(QByteArray const & input); + static QByteArray translateGeminiToHtml(QByteArray const & input, DocumentOutlineModel & outline); -private: +public: Ui::BrowserTab *ui; MainWindow * mainWindow; QUrl current_location; @@ -81,6 +84,10 @@ private: QVector<QUrl> navigation_history; GeminiWebPage page; + + bool successfully_loaded = false; + + DocumentOutlineModel outline; }; #endif // BROWSERTAB_HPP |
