Commit 961fc66d authored by Igor Kushnir's avatar Igor Kushnir
Browse files

Call setOverrideCssCode() once

There is no need to call this function each time a document is loaded.

Actually, setOverrideCssCode() was never called, because the slot
PhpDocumentationWidget::documentLoaded() is currently never invoked.
The reason is that porting kdev-php to QWidget-only
StandardDocumentationView was not finished. See disabled code in
PhpDocumentationWidget::PhpDocumentationWidget().
parent 5e91ae44
......@@ -24,6 +24,8 @@ PhpDocumentationWidget::PhpDocumentationWidget(KDevelop::DocumentationFindWidget
{
m_part = new KDevelop::StandardDocumentationView(find, this);
m_part->setDelegateLinks(true);
m_part->setOverrideCssCode(
QByteArrayLiteral(".page-tools { float: none !important; } body { background: white !important; };"));
addWidget(m_part);
addWidget(m_loading);
......@@ -77,9 +79,6 @@ void PhpDocumentationWidget::linkClicked(const QUrl& url)
void PhpDocumentationWidget::documentLoaded()
{
m_part->setOverrideCssCode(
QByteArrayLiteral(".page-tools { float: none !important; } body { background: white !important; };"));
setCurrentWidget(m_part);
removeWidget(m_loading);
delete m_loading;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment