remove comment

pull/267/head
Jussi Kuokkanen 4 years ago
parent beec2607fc
commit bb4636885d
  1. 15
      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_;

Loading…
Cancel
Save