From 6272f7a67624b67aacbdf094214969ea78e58618 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 10 Jul 2023 19:24:44 +0900 Subject: Replace usage of obsolete TQLineEdit methods with supported methods Signed-off-by: Michele Calgaro --- lilo-config/kde-qt-common/EditWidget.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lilo-config/kde-qt-common/EditWidget.h b/lilo-config/kde-qt-common/EditWidget.h index 411c907..8d17a12 100644 --- a/lilo-config/kde-qt-common/EditWidget.h +++ b/lilo-config/kde-qt-common/EditWidget.h @@ -60,8 +60,8 @@ public: void paste() { line->paste(); }; void setAlignment(int flag) { line->setAlignment(flag); }; int alignment() const { return line->alignment(); }; - void cursorLeft(bool mark, int steps=1) { line->cursorLeft(mark, steps); }; - void cursorRight(bool mark, int steps=1) { line->cursorRight(mark, steps); }; + void cursorLeft(bool mark, int steps=1) { line->cursorBackward(mark, steps); }; + void cursorRight(bool mark, int steps=1) { line->cursorForward(mark, steps); }; void cursorWordForward(bool mark) { line->cursorWordForward(mark); }; void cursorWordBackward(bool mark) { line->cursorWordBackward(mark); }; void backspace() { line->backspace(); }; @@ -70,8 +70,8 @@ public: void end(bool mark) { line->end(mark); }; void setEdited(bool e) { line->setEdited(e); }; bool edited() const { return line->edited(); }; - bool hasMarkedText() const { return line->hasMarkedText(); }; - TQString markedText() const { return line->markedText(); }; + bool hasMarkedText() const { return line->hasSelectedText(); }; + TQString markedText() const { return line->selectedText(); }; virtual TQSize sizeHint() const; virtual TQSize minimumSizeHint() const; public slots: -- cgit v1.2.1