diff options
Diffstat (limited to 'doc/porting3.doc')
-rw-r--r-- | doc/porting3.doc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/porting3.doc b/doc/porting3.doc index 1ab796639..39e75beb2 100644 --- a/doc/porting3.doc +++ b/doc/porting3.doc @@ -332,9 +332,9 @@ new code. \i TQToolBar::TQToolBar( const TQString \& label, TQMainWindow *, ToolBarDock = DockTop, bool newLine = FALSE, const char *name = 0 ) \i TQToolTip::enabled() \i TQToolTip::setEnabled( bool enable ) -\i QTranslator::find( const char *context, const char *sourceText, const char *comment = 0 ) const -\i QTranslator::insert( const char *context, const char *sourceText, const TQString \& translation ) -\i QTranslator::remove( const char *context, const char *sourceText ) +\i TQTranslator::find( const char *context, const char *sourceText, const char *comment = 0 ) const +\i TQTranslator::insert( const char *context, const char *sourceText, const TQString \& translation ) +\i TQTranslator::remove( const char *context, const char *sourceText ) \i TQUriDrag::setFilenames( const TQStringList \& fnames ) \i TQWidget::backgroundColor() const \i TQWidget::backgroundPixmap() const @@ -682,24 +682,24 @@ were renamed to qSetW(), qSetFill() and qSetPrecision() to avoid conflicts with \c <iostream.h>. If you used them, you must rename the occurrences to the new names. -\section1 QTranslator +\section1 TQTranslator -The \l QTranslator class was extended in TQt 2.2, and these extensions +The \l TQTranslator class was extended in TQt 2.2, and these extensions lead to a new interface. This interface is used mainly by translation tools (for example, \link linguist-manual.book Qt Linguist \endlink). For source compatibility, no member function was -effectively removed. The \l QTranslator documentation points out +effectively removed. The \l TQTranslator documentation points out which functions are obsolete. This function is no longer virtual: \list -\i TQString QTranslator::find( const char * context, +\i TQString TQTranslator::find( const char * context, const char * sourceText ) const \endlist -If you have a class that inherits QTranslator and which reimplements -QTranslator::find(), you should reimplement QTranslator::findMessage() instead. +If you have a class that inherits TQTranslator and which reimplements +TQTranslator::find(), you should reimplement TQTranslator::findMessage() instead. In fact, find() is now defined in terms of findMessage(). By doing the conversion, you will also gain support for translator comments and for any future extensions. |