QCodeEdit completer refactor and works fine!
This commit is contained in:
@@ -31,6 +31,8 @@ namespace Ui {
|
||||
class QCodeEdit;
|
||||
}
|
||||
|
||||
class QCodeEditCompleter;
|
||||
|
||||
|
||||
class QAD_WIDGETS_EXPORT QCodeEdit: public QWidget
|
||||
{
|
||||
@@ -40,6 +42,8 @@ class QAD_WIDGETS_EXPORT QCodeEdit: public QWidget
|
||||
Q_PROPERTY(bool showLineNumbers READ showLineNumbers WRITE setShowLineNumbers)
|
||||
Q_PROPERTY(bool wordCompletitionEnabled READ wordCompletitionEnabled WRITE setWordCompletitionEnabled)
|
||||
Q_PROPERTY(QFont editorFont READ editorFont WRITE setEditorFont)
|
||||
|
||||
friend class QCodeEditCompleter;
|
||||
|
||||
public:
|
||||
QCodeEdit(QWidget * parent = 0);
|
||||
@@ -105,7 +109,7 @@ private:
|
||||
QIcon icon;
|
||||
};
|
||||
|
||||
QTreeWidget * completer;
|
||||
QCodeEditCompleter * completer;
|
||||
IconedLabel * lbl_help[2];
|
||||
QFrame * widget_help;
|
||||
QTextEdit::ExtraSelection es_line, es_cursor, es_bracket, es_range, es_search;
|
||||
@@ -123,8 +127,6 @@ private:
|
||||
void changeEvent(QEvent * e);
|
||||
void highlightBrackets();
|
||||
void applyExtraSelection();
|
||||
void nextCompletition();
|
||||
void previousCompletition();
|
||||
void clearSearch();
|
||||
void moveToSearch();
|
||||
int searchIndFromCursor();
|
||||
|
||||
Reference in New Issue
Block a user