diff --git a/SandboxiePlus/MiscHelpers/Common/CodeEdit.cpp b/SandboxiePlus/MiscHelpers/Common/CodeEdit.cpp index 2757e11e..7eab6647 100644 --- a/SandboxiePlus/MiscHelpers/Common/CodeEdit.cpp +++ b/SandboxiePlus/MiscHelpers/Common/CodeEdit.cpp @@ -57,6 +57,16 @@ CCodeEdit::CCodeEdit(QSyntaxHighlighter* pHighlighter, QWidget* pParent) m_pSourceCode->addAction(m_pUnComment);*/ } +void CCodeEdit::SetFont(const QFont& Font) +{ + m_pSourceCode->setFont(Font); +} + +const QFont& CCodeEdit::GetFont() const +{ + return m_pSourceCode->font(); +} + #define ADD_HISTORY(list,entry) \ list.removeAll(entry); \ list.prepend(entry); \ diff --git a/SandboxiePlus/MiscHelpers/Common/CodeEdit.h b/SandboxiePlus/MiscHelpers/Common/CodeEdit.h index 92bba49b..9070e37e 100644 --- a/SandboxiePlus/MiscHelpers/Common/CodeEdit.h +++ b/SandboxiePlus/MiscHelpers/Common/CodeEdit.h @@ -12,6 +12,8 @@ public: void SetCode(const QString& Code) {m_pSourceCode->setPlainText(Code);} QString GetCode() {return m_pSourceCode->toPlainText();} + void SetFont(const QFont& Font); + const QFont& GetFont() const; signals: void textChanged();