Skip to content

Commit

Permalink
Syntax highlight for template kind window
Browse files Browse the repository at this point in the history
  • Loading branch information
RangelReale committed Jul 30, 2018
1 parent 893f14a commit 92321c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/TemplateKind.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "msgui/TemplateKind.h"
#include "msgwidget/highlighter/HL_CPP.h"

#include <mredit/Label.h>

Expand Down Expand Up @@ -40,6 +41,7 @@ void TemplateKind::addTemplateKind(const QString &name, const QString &kind, con

mredit::Label *msglbl = new mredit::Label(this);
msglbl->setFont(QFontDatabase::systemFont(QFontDatabase::FixedFont));
new msgwidget::highlighter::HL_CPP(msglbl->document());
msglbl->setPlainText(name);
setItemWidget(item, 0, msglbl);
QFileInfo fi(sourceLocation);
Expand Down

0 comments on commit 92321c6

Please sign in to comment.