0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-11-25 00:18:06 +03:00

Highlighter has been added

This commit is contained in:
Arin Alexander
2017-09-16 16:04:29 +03:00
parent 090477fa68
commit aa66b6a057
9 changed files with 408 additions and 112 deletions

View File

@@ -12,24 +12,6 @@ namespace LimeReport{
class ReportEnginePrivate;
class BaseDesignIntf;
class TextEditorWithCompleater :public QTextEdit
{
Q_OBJECT
public:
TextEditorWithCompleater(QWidget* parent=0);
void setCompleter(QCompleter* value);
QCompleter* compleater() const{ return m_compleater;}
protected:
virtual void keyPressEvent(QKeyEvent *e);
virtual void focusInEvent(QFocusEvent *e);
private:
QString textUnderCursor() const;
private slots:
void insertCompletion(const QString& completion);
private:
QCompleter* m_compleater;
};
namespace Ui {
class ScriptEditor;
}