Commit 23ca6018 authored by Kåre Särs's avatar Kåre Särs
Browse files

Use the editor font for results both the tree and plaintext view

Do not trim the result in the tree view to get compiler ASCII graphics
results displayed correctly
parent a9e4fa4e
......@@ -41,6 +41,7 @@
#include <KActionCollection>
#include <KTextEditor/Application>
#include <KTextEditor/ConfigInterface>
#include <KXMLGUIFactory>
#include <KMessageBox>
......@@ -500,7 +501,7 @@ void KateBuildView::addError(const QString &filename, const QString &line, const
item->setText(0, file.fileName());
item->setText(1, line);
item->setText(2, message.trimmed());
item->setText(2, message);
// used to read from when activating an item
item->setData(0, Qt::UserRole, filename);
......@@ -740,6 +741,16 @@ bool KateBuildView::startProcess(const QString &dir, const QString &command)
m_buildUi.displayModeSlider->setValue(0);
m_win->showToolView(m_toolView);
KTextEditor::View *kv = m_win->activeView();
if (kv) {
KTextEditor::ConfigInterface *ciface = qobject_cast<KTextEditor::ConfigInterface *>(kv);
if (ciface) {
QFont font = ciface->configValue(QStringLiteral("font")).value<QFont>();
m_buildUi.errTreeWidget->setFont(font);
//m_buildUi.plainTextEdit->setFont(font);
}
}
// set working directory
m_make_dir = dir;
m_make_dir_stack.push(m_make_dir);
......
Markdown is supported
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