mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:57:44 +00:00
Ladybird: Show hovered link URLs in the status bar :^)
This commit is contained in:
parent
9b8fe16e3d
commit
88d256c109
3 changed files with 12 additions and 2 deletions
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue