diff options
Diffstat (limited to 'kwordquiz/src/kwordquizview.cpp')
-rw-r--r-- | kwordquiz/src/kwordquizview.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kwordquiz/src/kwordquizview.cpp b/kwordquiz/src/kwordquizview.cpp index 799644f5..9e78ce8c 100644 --- a/kwordquiz/src/kwordquizview.cpp +++ b/kwordquiz/src/kwordquizview.cpp @@ -284,16 +284,16 @@ bool KWordQuizView::gridIsEmpty() return true; } -TQWidget * KWordQuizView::beginEdit( int row, int col, bool tqreplace ) +TQWidget * KWordQuizView::beginEdit( int row, int col, bool replace ) { m_currentText = text(row, col); - cellEditor = TQTable::beginEdit(row, col, tqreplace); + cellEditor = TQTable::beginEdit(row, col, replace); if (cellEditor) cellEditor->installEventFilter(this); return cellEditor; } -void KWordQuizView::endEdit( int row, int col, bool accept, bool tqreplace ) +void KWordQuizView::endEdit( int row, int col, bool accept, bool replace ) { // this code gets called after enter and arrow keys, now we // only process if editing really has been done @@ -302,7 +302,7 @@ void KWordQuizView::endEdit( int row, int col, bool accept, bool tqreplace ) { if (((TQLineEdit *) cellWidget(row, col))->text() != m_currentText) addUndo(i18n("&Undo Entry")); - TQTable::endEdit(row, col, accept, tqreplace); //this will destroy the cellWidget + TQTable::endEdit(row, col, accept, replace); //this will destroy the cellWidget if (!text(row, col).isEmpty()) { TQTableItem* itm; @@ -472,7 +472,7 @@ void KWordQuizView::doEditPaste( ) br= br + sl.count() - 1; if (lc == 0) //left col? - if (sl[0].tqfind("\t") < ((int) sl[0].length() - 1)) + if (sl[0].find("\t") < ((int) sl[0].length() - 1)) rc = 1; //expand to second column; uint i = 0; @@ -666,7 +666,7 @@ void KWordQuizView::doEditMarkBlank( ) st = st.prepend(delim_start); st = st.append(delim_end); int ss = l->selectionStart(); - s = s.tqreplace(ss, len, st); + s = s.replace(ss, len, st); l->setText(s); l->setSelection(ss, st.length()); } @@ -691,7 +691,7 @@ void KWordQuizView::doEditUnmarkBlank( ) s.remove(delim_start); s.remove(delim_end); int ss = l->selectionStart(); - ls = ls.tqreplace(ss, len, s); + ls = ls.replace(ss, len, s); l->setText(ls); l->setSelection(ss, s.length()); } @@ -702,15 +702,15 @@ void KWordQuizView::doEditUnmarkBlank( ) s = l->text(); int cs = l->cursorPosition(); - int fr = s.tqfindRev(delim_start, cs); + int fr = s.findRev(delim_start, cs); if (fr > 0) { - s = s.tqreplace(fr, 1, ""); + s = s.replace(fr, 1, ""); cs--; } - int ff = s.tqfind(delim_end, cs); + int ff = s.find(delim_end, cs); if (ff > 0) - s = s.tqreplace(ff, 1, ""); + s = s.replace(ff, 1, ""); l->setText(s); l->setCursorPosition(cs); @@ -870,7 +870,7 @@ void KWordQuizView::slotSpecChar(const TQChar & c) TQString s = l->selectedText(); int len = s.length(); int ss = l->selectionStart(); - ls = ls.tqreplace(ss, len, c); + ls = ls.replace(ss, len, c); l->setText(ls); l->setSelection(ss, 1); } |