コード例 #1
0
	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
	}
コード例 #2
0
ファイル: qdocumentline.cpp プロジェクト: BaconGo/alepherp
/*!
	\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());
}
コード例 #3
0
ファイル: qdocumentline.cpp プロジェクト: BaconGo/alepherp
/*!
	\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());
}