mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-08 20:32:56 +03:00
Ladybird/BrowserWindow: Make "View Source" a separate window
View Source was a subwindow which made it cover part of the browser with no way for closing it.
This commit is contained in:
parent
c2230d5fe8
commit
742c4767df
Notes:
sideshowbarker
2024-07-17 06:24:08 +09:00
Author: https://github.com/moustafaraafat Commit: https://github.com/SerenityOS/serenity/commit/742c4767df Pull-request: https://github.com/SerenityOS/serenity/pull/16583 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/awesomekling ✅ Reviewed-by: https://github.com/linusg
@ -97,6 +97,7 @@ BrowserWindow::BrowserWindow()
|
||||
auto source = m_current_tab->view().source();
|
||||
|
||||
auto* text_edit = new QPlainTextEdit(this);
|
||||
text_edit->setWindowFlags(Qt::Window);
|
||||
text_edit->setFont(QFontDatabase::systemFont(QFontDatabase::SystemFont::FixedFont));
|
||||
text_edit->resize(800, 600);
|
||||
text_edit->setPlainText(source.characters());
|
||||
|
Loading…
Reference in New Issue
Block a user