1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 10:04:59 +00:00

LibGUI: Add forwarding header

This patch adds <LibGUI/Forward.h> and uses it a bunch.
It also dragged various header dependency reduction changes into it.
This commit is contained in:
Andreas Kling 2020-02-16 09:17:49 +01:00
parent 2e6ab58117
commit 2143da6434
115 changed files with 220 additions and 338 deletions

View file

@ -44,6 +44,7 @@
#include <LibGUI/TextBox.h>
#include <LibGUI/TextEditor.h>
#include <LibGUI/ToolBar.h>
#include <LibGfx/Font.h>
TextEditorWidget::TextEditorWidget()
{
@ -466,7 +467,7 @@ void TextEditorWidget::drop_event(GUI::DropEvent& event)
if (event.mime_data().has_urls()) {
auto urls = event.mime_data().urls();
if (urls.is_empty() )
if (urls.is_empty())
return;
if (urls.size() > 1) {
GUI::MessageBox::show("TextEditor can only open one file at a time!", "One at a time please!", GUI::MessageBox::Type::Error, GUI::MessageBox::InputType::OK, window());