QCodeEdit now can comment/uncomment on ctrl+/
This commit is contained in:
@@ -89,6 +89,8 @@ public:
|
||||
bool showLineNumbers() const;
|
||||
void setHelpHintVisible(bool on);
|
||||
bool isHelpHintVisible() const;
|
||||
QString commentText() const;
|
||||
void setCommentText(QString t);
|
||||
|
||||
void setEditorFont(QFont f);
|
||||
QFont editorFont() const;
|
||||
@@ -146,6 +148,7 @@ private:
|
||||
QList<QTextEdit::ExtraSelection> es_selected, es_custom, es_brackets, es_search_list, es_blockselection;
|
||||
QMap<int, ACClass> ac_classes;
|
||||
QStringList cursor_scope;
|
||||
QString comment_text;
|
||||
ACEntry link_entry, help_entry;
|
||||
QTextCursor block_start_cursor, drag_cursor;
|
||||
int prev_lc, auto_comp_pl, timer_parse, timer_blink, cur_search_ind, pos_press, pos_el_press;
|
||||
@@ -159,6 +162,7 @@ private:
|
||||
void leaveEvent(QEvent * ) override;
|
||||
void changeEvent(QEvent * e) override;
|
||||
bool codeKeyEvent(QKeyEvent * ke);
|
||||
void toggleComment();
|
||||
void highlightBrackets();
|
||||
void applyExtraSelection();
|
||||
void clearSearch();
|
||||
|
||||
Reference in New Issue
Block a user