diff options
Diffstat (limited to 'doc/porting3.doc')
-rw-r--r-- | doc/porting3.doc | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/doc/porting3.doc b/doc/porting3.doc index 2f33d6c54..c6c1af973 100644 --- a/doc/porting3.doc +++ b/doc/porting3.doc @@ -111,7 +111,7 @@ the top of the file giving the error. Header files that you might need to add #include directives for include: \list \i \c <ntqcursor.h> -\i \c <ntqpainter.h> +\i \c <tqpainter.h> \i \c <ntqpen.h> \i \c <tqstringlist.h> \i \c <tqregexp.h> @@ -195,8 +195,8 @@ All these functions have been removed in TQt 3.x: \list \i QButton::autoResize() const \i QButton::setAutoResize(bool) -\i QFont::charSet() -\i QFont::setCharSet() +\i TQFont::charSet() +\i TQFont::setCharSet() \i QLineEdit::cursorLeft(bool mark, int steps = 1). Use TQLineEdit::cursorBackward() instead. \i QLineEdit::cursorRight(bool mark, int steps = 1). Use TQLineEdit::cursorForward() instead. \i QLineEdit::hasMarkedText() const. Use TQLineEdit::hasSelectedText() instead. @@ -205,7 +205,7 @@ All these functions have been removed in TQt 3.x: \i TQMenuBar::setActItem() \i TQMenuBar::setWindowsAltMode() \i TQObject::initMetaObject() -\i QPainter::drawQuadBezier() +\i TQPainter::drawQuadBezier() \i QPalette::normal(). Use TQPalette::active() instead. \i QPalette::setNormal(). Use TQPalette::setActive() instead. \i QPointArray::quadBezier() @@ -260,7 +260,7 @@ new code. \i TQCanvasItem::visible() const \i TQCanvasPixmapArray::TQCanvasPixmapArray( TQPtrList\<QPixmap\> list, TQPtrList\<QPoint\> hotspots ) \i TQCanvasPixmapArray::operator!() -\i QColorGroup::QColorGroup( const TQColor \& foreground, const TQColor \& background, const TQColor \& light, const TQColor \& dark, const TQColor \& mid, const TQColor \& text, const TQColor \& base ) +\i TQColorGroup::TQColorGroup( const TQColor \& foreground, const TQColor \& background, const TQColor \& light, const TQColor \& dark, const TQColor \& mid, const TQColor \& text, const TQColor \& base ) \i QComboBox::autoResize() const \i QComboBox::setAutoResize( bool ) \i TQDate::dayName( int weekday ) @@ -271,21 +271,21 @@ new code. \i QDockWindow::isVerticalStretchable() const \i QDockWindow::setHorizontalStretchable( bool b ) \i QDockWindow::setVerticalStretchable( bool b ) -\i QFont::defaultFont() -\i QFont::setDefaultFont( const QFont \& f ) -\i QFont::setPixelSizeFloat( float pixelSize ) -\i QFontDatabase::bold( const TQString \& family, const TQString \& style, const TQString \& ) const -\i QFontDatabase::families( bool ) const -\i QFontDatabase::font( const TQString \& familyName, const TQString \& style, int pointSize, const TQString \& ) -\i QFontDatabase::isBitmapScalable( const TQString \& family, const TQString \& style, const TQString \& ) const -\i QFontDatabase::isFixedPitch( const TQString \& family, const TQString \& style, const TQString \& ) const -\i QFontDatabase::isScalable( const TQString \& family, const TQString \& style, const TQString \& ) const -\i QFontDatabase::isSmoothlyScalable( const TQString \& family, const TQString \& style, const TQString \& ) const -\i QFontDatabase::italic( const TQString \& family, const TQString \& style, const TQString \& ) const -\i QFontDatabase::pointSizes( const TQString \& family, const TQString \& style, const TQString \& ) -\i QFontDatabase::smoothSizes( const TQString \& family, const TQString \& style, const TQString \& ) -\i QFontDatabase::styles( const TQString \& family, const TQString \& ) const -\i QFontDatabase::weight( const TQString \& family, const TQString \& style, const TQString \& ) const +\i TQFont::defaultFont() +\i TQFont::setDefaultFont( const TQFont \& f ) +\i TQFont::setPixelSizeFloat( float pixelSize ) +\i TQFontDatabase::bold( const TQString \& family, const TQString \& style, const TQString \& ) const +\i TQFontDatabase::families( bool ) const +\i TQFontDatabase::font( const TQString \& familyName, const TQString \& style, int pointSize, const TQString \& ) +\i TQFontDatabase::isBitmapScalable( const TQString \& family, const TQString \& style, const TQString \& ) const +\i TQFontDatabase::isFixedPitch( const TQString \& family, const TQString \& style, const TQString \& ) const +\i TQFontDatabase::isScalable( const TQString \& family, const TQString \& style, const TQString \& ) const +\i TQFontDatabase::isSmoothlyScalable( const TQString \& family, const TQString \& style, const TQString \& ) const +\i TQFontDatabase::italic( const TQString \& family, const TQString \& style, const TQString \& ) const +\i TQFontDatabase::pointSizes( const TQString \& family, const TQString \& style, const TQString \& ) +\i TQFontDatabase::smoothSizes( const TQString \& family, const TQString \& style, const TQString \& ) +\i TQFontDatabase::styles( const TQString \& family, const TQString \& ) const +\i TQFontDatabase::weight( const TQString \& family, const TQString \& style, const TQString \& ) const \i QLabel::autoResize() const \i QLabel::setAutoResize( bool enable ) \i QListBox::cellHeight( int i ) const @@ -317,7 +317,7 @@ new code. \i TQRegExp::match( const TQString \& str, int index = 0, int *len = 0, bool indexIsStart = TRUE ) const \i QScrollView::childIsVisible( TQWidget *child ) \i QScrollView::showChild( TQWidget *child, bool show = TRUE ) -\i QSimpleRichText::draw( QPainter *p, int x, int y, const QRegion \& clipRegion, const QColorGroup \& cg, const QBrush *paper = 0 ) const +\i QSimpleRichText::draw( TQPainter *p, int x, int y, const QRegion \& clipRegion, const TQColorGroup \& cg, const TQBrush *paper = 0 ) const \i TQString::ascii() const \i TQString::data() const \i TQString::setExpand( uint index, TQChar c ) @@ -341,7 +341,7 @@ new code. \i TQWidget::iconify() \i TQWidget::setBackgroundColor( const TQColor \& c ) \i TQWidget::setBackgroundPixmap( const QPixmap \& pm ) -\i TQWidget::setFont( const QFont \& f, bool ) +\i TQWidget::setFont( const TQFont \& f, bool ) \i TQWidget::setPalette( const QPalette \& p, bool ) \i QWizard::setFinish( TQWidget *, bool ) \i TQXmlInputSource::TQXmlInputSource( TQFile \& file ) @@ -415,9 +415,9 @@ non-existent file, the dialog would accept this. In TQt 3.x, you must set the mode, e.g. setMode(TQFileDialog::AnyFile), to get the same behavior. -\section1 QFont +\section1 TQFont -The internals of QFont have changed significantly between TQt 2.2 and +The internals of TQFont have changed significantly between TQt 2.2 and Qt 3.0, to give better Unicode support and to make developing internationalized applications easier. The original API has been preserved with minimal changes. The CharSet enum and its related @@ -425,8 +425,8 @@ functions have disappeared. This is because TQt now handles all charset related issues internally, and removes this burden from the developer. If you used the CharSet enum or its related functions, e.g -QFont::charSet() or QFont::setCharSet(), just remove them from your -code. There are a few functions that took a QFont::CharSet as a +TQFont::charSet() or TQFont::setCharSet(), just remove them from your +code. There are a few functions that took a TQFont::CharSet as a parameter; in these cases simply remove the charset from the parameter list. @@ -501,7 +501,7 @@ QtMultiLineEdit throughout. QPrinter has undergone some changes, to make it more flexible and to ensure it has the same runtime behaviour on both Unix and Windows. In 2.x, QPrinter behaved differently on Windows and Unix, when using view -transformations on the QPainter. This has changed now, and QPrinter +transformations on the TQPainter. This has changed now, and QPrinter behaves consistently across all platforms. A compatibilty mode has been added that forces the old behaviour, to ease porting from TQt 2.x to TQt 3.x. This compatibilty mode can be enabled by passing the @@ -775,13 +775,13 @@ are QCheckBox, QComboBox, QPushButton, QRadioButton and QTabWidget. \section1 Bezier Curves -The function names for Bezier curves in QPainter and QPointArray have +The function names for Bezier curves in TQPainter and QPointArray have been corrected. They now properly reflect their cubic form instead of a quadratic one. If you have been using either -QPainter::drawQuadBezier() or QPointArray::quadBezier() you must +TQPainter::drawQuadBezier() or QPointArray::quadBezier() you must replace these calls with \list -\i void QPainter::drawCubicBezier( const QPointArray \&, int index=0 ) and +\i void TQPainter::drawCubicBezier( const QPointArray \&, int index=0 ) and \i QPointArray QPointArray::cubicBezier() const \endlist respectively. Neither the arguments nor the resulting curve have changed. |