fix unwanted debugging code

This commit is contained in:
Martin Rotter 2023-11-14 06:50:03 +01:00
parent 1ee283103d
commit 734a46c910

View file

@ -44,13 +44,14 @@ TextBrowserViewer::TextBrowserViewer(QWidget* parent)
a_color = qApp->palette().color(QPalette::ColorRole::Highlight); a_color = qApp->palette().color(QPalette::ColorRole::Highlight);
} }
// m_document.data()->setDefaultStyleSheet(QSL("a { color: %1; }").arg(a_color.name())); m_document.data()->setDefaultStyleSheet(QSL("a { color: %1; }").arg(a_color.name()));
/*
m_document->setDefaultStyleSheet("p {" m_document->setDefaultStyleSheet("p {"
"background-color: yellow;" "background-color: yellow;"
"border: 1px solid black;" "border: 1px solid black;"
"}"); "}");
*/
connect(this, &TextBrowserViewer::reloadDocument, this, [this]() { connect(this, &TextBrowserViewer::reloadDocument, this, [this]() {
const auto scr = verticalScrollBarPosition(); const auto scr = verticalScrollBarPosition();
setHtmlPrivate(html(), m_currentUrl); setHtmlPrivate(html(), m_currentUrl);