diff options
author | Jussi Kuokkanen <jussi.kuokkanen@protonmail.com> | 2020-08-31 18:07:29 +0300 |
---|---|---|
committer | Jussi Kuokkanen <jussi.kuokkanen@protonmail.com> | 2020-08-31 18:07:29 +0300 |
commit | bb4636885df0dbfe9d2f632d02636c8e35947ae9 (patch) | |
tree | ee51fa84053f705db40c8328c07236515515562f | |
parent | get completion string based on trigger position instead of current word (diff) | |
download | nheko-bb4636885df0dbfe9d2f632d02636c8e35947ae9.tar.xz |
remove comment
-rw-r--r-- | src/TextInputWidget.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/TextInputWidget.h b/src/TextInputWidget.h index e4bd9b96..6003551e 100644 --- a/src/TextInputWidget.h +++ b/src/TextInputWidget.h @@ -124,21 +124,6 @@ private: tc.movePosition(QTextCursor::EndOfBlock, QTextCursor::KeepAnchor); return tc.selectedText(); } - /*QString wordUnderCursor() - { - auto tc = textCursor(); - auto editor_text = toPlainText(); - // Text before cursor - auto text = editor_text.chopped(editor_text.length() - tc.position()); - // Revert to find the first space (last before cursor in the original) - std::reverse(text.begin(), text.end()); - auto space_idx = text.indexOf(" "); - if (space_idx > -1) - text.chop(text.length() - space_idx); - // Revert back - std::reverse(text.begin(), text.end()); - return text; - }*/ dialogs::PreviewUploadOverlay previewDialog_; |