Skip to content

Commit

Permalink
1.15.4
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidXanatos committed Dec 18, 2024
1 parent 488905b commit 83751d8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions SandboxiePlus/MiscHelpers/Common/CodeEdit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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); \
Expand Down
2 changes: 2 additions & 0 deletions SandboxiePlus/MiscHelpers/Common/CodeEdit.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class MISCHELPERS_EXPORT CCodeEdit : public QWidget

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();
Expand Down

0 comments on commit 83751d8

Please sign in to comment.