mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
remove comment
This commit is contained in:
parent
beec2607fc
commit
bb4636885d
1 changed files with 0 additions and 15 deletions
|
@ -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…
Reference in a new issue