void resetBinding() { if (!active) return; QToolTip::hideText(); editor->setInputBinding(oldBinding); editor->setFocus(); if (completer) { completer->list->hide(); completer->disconnect(editor,SIGNAL(cursorPositionChanged()),completer,SLOT(cursorPositionChanged())); } active=false; curLine=QDocumentLine(); //prevent crash if the editor is destroyed }
/*! \return The next line \note Avoid using this function whenever possible, especially inside loops or time-consuming processing : it is SLOW for big documents as determination of the line number is O(n), n being the total number of lines in the document */ QDocumentLine QDocumentLine::previous() const { return QDocumentLine(m_handle->previous()); }
/*! \return The previous line \note Avoid using this function whenever possible, especially inside loops or time-consuming processing : it is SLOW for big documents as determination of the line number is O(n), n being the total number of lines in the document */ QDocumentLine QDocumentLine::next() const { return QDocumentLine(m_handle->next()); }