forked from openlp/openlp
Fix cursor position
This commit is contained in:
parent
4b0dc2a83f
commit
c022e6a89f
@ -161,6 +161,7 @@ class EditVerseForm(QtGui.QDialog, Ui_EditVerseDialog):
|
|||||||
self.InsertButton.setVisible(True)
|
self.InsertButton.setVisible(True)
|
||||||
self.VerseTextEdit.setPlainText(text)
|
self.VerseTextEdit.setPlainText(text)
|
||||||
self.VerseTextEdit.setFocus(QtCore.Qt.OtherFocusReason)
|
self.VerseTextEdit.setFocus(QtCore.Qt.OtherFocusReason)
|
||||||
|
self.VerseTextEdit.moveCursor(QtGui.QTextCursor.End)
|
||||||
|
|
||||||
def getVerse(self):
|
def getVerse(self):
|
||||||
return self.VerseTextEdit.toPlainText(), \
|
return self.VerseTextEdit.toPlainText(), \
|
||||||
@ -173,4 +174,3 @@ class EditVerseForm(QtGui.QDialog, Ui_EditVerseDialog):
|
|||||||
text = u'---[Verse:1]---\n%s' % text
|
text = u'---[Verse:1]---\n%s' % text
|
||||||
return text
|
return text
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user