mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 06:07:35 +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
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