Update Ring Notepad - No need to clean resources, RingQt and Ring 1.9 will do automatic deletion for temp. objects like QCursor.
@@ -1154,14 +1154,12 @@ Class RNoteController from WindowsControllerParent
oDockSourceCode.setWindowTitle("Source Code : " + cActiveFileName)
func pCursorPositionChanged
- oCursor = textedit1.textcursor()
- nLine = oCursor.blocknumber()+1
+ nLine = textedit1.textcursor().blocknumber()+1
StatusMessage(" Line : "+nLine+
- " Column : " +(oCursor.columnnumber()+1) +
+ " Column : " +(textedit1.textcursor().columnnumber()+1) +
" Total Lines : " + textedit1.document().linecount())
pSetActiveLineColor()
aFilesLines[cActiveFileName] = nLine
- oCursor.delete()
func pGoto
oInput = New QInputDialog(win1)
@@ -1495,7 +1493,6 @@ Class RNoteController from WindowsControllerParent
oCursor.clearselection()
textedit1.settextcursor(oCursor)
textedit1.Document().setdefaultfont(oTempFont)
- oCursor.delete()
func pColor
new qcolordialog() {
@@ -1702,7 +1699,6 @@ Class RNoteController from WindowsControllerParent
oFontMetrics = new QFontMetrics(oTempFont)
nSpaceWidth = oFontMetrics.Width(" ",1)
textedit1.setTabStopWidth(nTabSpaces*nSpaceWidth)
- oFontMetrics.Delete()
func pBrowserLink x
cLink = aBrowserLinks[x][2]
