Truly independent web browser
UI/Qt: Use an arrow cursor over JavaScript dialogs
Sam Atkinsac5e49066dc1
diff --git a/Tests/UI/Qt/TestJavaScriptDialog.cpp b/Tests/UI/Qt/TestJavaScriptDialog.cppindex 16e51229924..ed077f74a20 100644--- a/Tests/UI/Qt/TestJavaScriptDialog.cpp+++ b/Tests/UI/Qt/TestJavaScriptDialog.cpp@@ -95,10 +95,12 @@ void send_key(QWidget& widget, int key)TEST_CASE(alert_and_confirm_report_the_expected_results){QWidget web_view;+ web_view.setCursor(Qt::PointingHandCursor);web_view.resize(800, 600);web_view.show();Ladybird::JavaScriptDialog dialog(&web_view);+ EXPECT_EQ(dialog.cursor().shape(), Qt::ArrowCursor);Completion completion;record_completions(dialog, completion);diff --git a/UI/Qt/JavaScriptDialog.cpp b/UI/Qt/JavaScriptDialog.cppindex fa8235477a0..d85e75684b7 100644--- a/UI/Qt/JavaScriptDialog.cpp+++ b/UI/Qt/JavaScriptDialog.cpp@@ -37,6 +37,7 @@ JavaScriptDialog::JavaScriptDialog(QWidget* parent): QWidget(parent){setObjectName("LadybirdJavaScriptDialogOverlay");+ setCursor(Qt::ArrowCursor);setAttribute(Qt::WA_StyledBackground);#if defined(AK_OS_MACOS) || defined(USE_DIRECTX) || defined(USE_VULKAN_DMABUF_IMAGES)// Native rendering surfaces stack above ordinary child widgets. Match their native stacking level so the dialog