remove comment

This commit is contained in:
Jussi Kuokkanen 2020-08-31 18:07:29 +03:00
parent beec2607fc
commit bb4636885d

View file

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