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_;