This commit is contained in:
DavidXanatos 2024-12-18 12:28:56 +01:00
parent 488905bcd1
commit 83751d866f
2 changed files with 12 additions and 0 deletions

View File

@ -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); \

View File

@ -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();