diff options
| author | Mike Skec <skec@protonmail.ch> | 2021-01-09 15:55:52 +1100 |
|---|---|---|
| committer | Felix Queißner <felix@ib-queissner.de> | 2021-01-10 13:40:46 +0100 |
| commit | c635094a6bdfcf2f081eb3c0ed9a1454ae2933fb (patch) | |
| tree | b41aca9c2803ad3acbe89c027b340b15ac473eee /src/mainwindow.hpp | |
| parent | dd3e8716b276f9f1646338f8801ca9a2f688fc46 (diff) | |
| download | kristall-c635094a6bdfcf2f081eb3c0ed9a1454ae2933fb.tar.gz | |
status bar: show request status when loading pages
status text for loading HTTP/S is only a simple 'loading webpage'. The other protocols display more information
Diffstat (limited to 'src/mainwindow.hpp')
| -rw-r--r-- | src/mainwindow.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mainwindow.hpp b/src/mainwindow.hpp index 8b092f3..7602ac5 100644 --- a/src/mainwindow.hpp +++ b/src/mainwindow.hpp @@ -20,6 +20,8 @@ class BrowserTab; enum class UIDensity : int; +enum class RequestState : int; + class MainWindow : public QMainWindow { Q_OBJECT @@ -96,6 +98,8 @@ private: // slots void on_tab_fileLoaded(DocumentStats const & stats); + void on_tab_requestStateChanged(RequestState state); + void on_tab_titleChanged(QString const & title); void on_tab_locationChanged(QUrl const & url); @@ -106,6 +110,8 @@ private: // slots private: void setFileStatus(DocumentStats const & stats); + void setRequestState(RequestState state); + public: QApplication * application; @@ -117,5 +123,8 @@ private: QLabel * file_cached; QLabel * file_mime; QLabel * load_time; + + QString request_status; + bool previewing_url = false; }; #endif // MAINWINDOW_HPP |
