mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00: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: 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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue