From 83751d866fa46c7833be63ecbe178e7fd29348bd Mon Sep 17 00:00:00 2001 From: DavidXanatos <3890945+DavidXanatos@users.noreply.github.com> Date: Wed, 18 Dec 2024 12:28:56 +0100 Subject: [PATCH] 1.15.4 --- SandboxiePlus/MiscHelpers/Common/CodeEdit.cpp | 10 ++++++++++ SandboxiePlus/MiscHelpers/Common/CodeEdit.h | 2 ++ 2 files changed, 12 insertions(+) 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();