1.15.4
This commit is contained in:
parent
488905bcd1
commit
83751d866f
|
@ -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); \
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue