From 979f5621d7cb2015eef214b0258dac1d6cd4c742 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 11 Jul 2023 13:32:20 +0900 Subject: Drop compatibility code for TQLineEdit Signed-off-by: Michele Calgaro --- src/widgets/ntqlineedit.h | 14 -------------- src/widgets/qlineedit.cpp | 39 +-------------------------------------- 2 files changed, 1 insertion(+), 52 deletions(-) (limited to 'src/widgets') diff --git a/src/widgets/ntqlineedit.h b/src/widgets/ntqlineedit.h index 18979f8f6..1542acbdd 100644 --- a/src/widgets/ntqlineedit.h +++ b/src/widgets/ntqlineedit.h @@ -69,9 +69,7 @@ class Q_EXPORT TQLineEdit : public TQFrame TQ_PROPERTY( Alignment alignment READ alignment WRITE setAlignment ) TQ_PROPERTY( bool edited READ edited WRITE setEdited DESIGNABLE false ) TQ_PROPERTY( bool modified READ isModified ) - TQ_PROPERTY( bool hasMarkedText READ hasMarkedText DESIGNABLE false ) TQ_PROPERTY( bool hasSelectedText READ hasSelectedText ) - TQ_PROPERTY( TQString markedText READ markedText DESIGNABLE false ) TQ_PROPERTY( TQString selectedText READ selectedText ) TQ_PROPERTY( bool dragEnabled READ dragEnabled WRITE setDragEnabled ) TQ_PROPERTY( bool readOnly READ isReadOnly WRITE setReadOnly ) @@ -109,10 +107,6 @@ public: int alignment() const; -#ifndef TQT_NO_COMPAT - void cursorLeft( bool mark, int steps = 1 ) { cursorForward( mark, -steps ); } - void cursorRight( bool mark, int steps = 1 ) { cursorForward( mark, steps ); } -#endif void cursorForward( bool mark, int steps = 1 ); void cursorBackward( bool mark, int steps = 1 ); void cursorWordForward( bool mark ); @@ -135,11 +129,6 @@ public: bool isUndoAvailable() const; bool isRedoAvailable() const; -#ifndef TQT_NO_COMPAT - bool hasMarkedText() const { return hasSelectedText(); } - TQString markedText() const { return selectedText(); } -#endif - bool dragEnabled() const; TQString inputMask() const; @@ -202,9 +191,6 @@ protected: bool sendMouseEventToInputContext( TQMouseEvent *e ); virtual TQPopupMenu *createPopupMenu(); void windowActivationChange( bool ); -#ifndef TQT_NO_COMPAT - void repaintArea( int, int ) { update(); } -#endif private slots: void clipboardChanged(); diff --git a/src/widgets/qlineedit.cpp b/src/widgets/qlineedit.cpp index b23486831..27f5867c0 100644 --- a/src/widgets/qlineedit.cpp +++ b/src/widgets/qlineedit.cpp @@ -788,23 +788,6 @@ void TQLineEdit::setAlignment( int flag ) } -/*! - \obsolete - \fn void TQLineEdit::cursorRight( bool, int ) - - Use cursorForward() instead. - - \sa cursorForward() -*/ - -/*! - \obsolete - \fn void TQLineEdit::cursorLeft( bool, int ) - For compatibilty with older applications only. Use cursorBackward() - instead. - \sa cursorBackward() -*/ - /*! Moves the cursor forward \a steps characters. If \a mark is TRUE each character moved over is added to the selection; if \a mark is @@ -979,12 +962,6 @@ void TQLineEdit::clearModified() bool TQLineEdit::edited() const { return d->modified; } void TQLineEdit::setEdited( bool on ) { d->modified = on; } -/*! - \obsolete - \property TQLineEdit::hasMarkedText - \brief whether part of the text has been selected by the user. Use hasSelectedText instead. -*/ - /*! \property TQLineEdit::hasSelectedText \brief whether there is any text selected @@ -1001,12 +978,6 @@ bool TQLineEdit::hasSelectedText() const return d->hasSelectedText(); } -/*! - \obsolete - \property TQLineEdit::markedText - \brief the text selected by the user. Use selectedText instead. -*/ - /*! \property TQLineEdit::selectedText \brief the selected text @@ -2319,15 +2290,7 @@ void TQLineEdit::setPalette( const TQPalette & p ) update(); } -/*! - \obsolete - \fn void TQLineEdit::repaintArea( int from, int to ) - Repaints all characters from \a from to \a to. If cursorPos is - between from and to, ensures that cursorPos is visible. -*/ - -/*! \reimp - */ +/*! \reimp */ void TQLineEdit::setFont( const TQFont & f ) { TQWidget::setFont( f ); -- cgit v1.2.1