summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-07-11 13:32:20 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-07-11 13:41:33 +0900
commit979f5621d7cb2015eef214b0258dac1d6cd4c742 (patch)
treedab9e0ac7429c6814598a2c92cc683638c34730b /src/widgets
parent83991febd2b98788a0a018e187de0dfb7d95b500 (diff)
downloadtqt3-979f5621d7cb2015eef214b0258dac1d6cd4c742.tar.gz
tqt3-979f5621d7cb2015eef214b0258dac1d6cd4c742.zip
Drop compatibility code for TQLineEdit
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/ntqlineedit.h14
-rw-r--r--src/widgets/qlineedit.cpp39
2 files changed, 1 insertions, 52 deletions
diff --git a/src/widgets/ntqlineedit.h b/src/widgets/ntqlineedit.h
index 18979f8f..1542acbd 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 b2348683..27f5867c 100644
--- a/src/widgets/qlineedit.cpp
+++ b/src/widgets/qlineedit.cpp
@@ -789,23 +789,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
FALSE the selection is cleared.
@@ -980,12 +963,6 @@ 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
@@ -1002,12 +979,6 @@ bool TQLineEdit::hasSelectedText() const
}
/*!
- \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 );