diff options
Diffstat (limited to 'Ladybird/main.cpp')
-rw-r--r-- | Ladybird/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Ladybird/main.cpp b/Ladybird/main.cpp index 94f56d5906..2b87ee22c6 100644 --- a/Ladybird/main.cpp +++ b/Ladybird/main.cpp @@ -11,6 +11,7 @@ #include <LibMain/Main.h> #include <QApplication> #include <QMainWindow> +#include <QStatusBar> #include <QWidget> extern void initialize_web_engine(); @@ -36,6 +37,9 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) WebView view; window.setCentralWidget(&view); + QObject::connect(&view, &WebView::linkHovered, window.statusBar(), &QStatusBar::showMessage); + QObject::connect(&view, &WebView::linkUnhovered, window.statusBar(), &QStatusBar::clearMessage); + auto qt_event_loop_driver = Core::Timer::create_repeating(50, [&] { app.processEvents(); }); |