diff options
Diffstat (limited to 'doc/porting3.doc')
-rw-r--r-- | doc/porting3.doc | 106 |
1 files changed, 53 insertions, 53 deletions
diff --git a/doc/porting3.doc b/doc/porting3.doc index 5437d25bf..ed783ed4c 100644 --- a/doc/porting3.doc +++ b/doc/porting3.doc @@ -193,8 +193,8 @@ have been changed: All these functions have been removed in TQt 3.x: \list -\i QButton::autoResize() const -\i QButton::setAutoResize(bool) +\i TQButton::autoResize() const +\i TQButton::setAutoResize(bool) \i TQFont::charSet() \i TQFont::setCharSet() \i TQLineEdit::cursorLeft(bool mark, int steps = 1). Use TQLineEdit::cursorBackward() instead. @@ -288,20 +288,20 @@ new code. \i TQFontDatabase::weight( const TQString \& family, const TQString \& style, const TQString \& ) const \i TQLabel::autoResize() const \i TQLabel::setAutoResize( bool enable ) -\i QListBox::cellHeight( int i ) const -\i QListBox::cellHeight() const -\i QListBox::cellWidth() const -\i QListBox::findItem( int yPos ) const -\i QListBox::inSort( const QListBoxItem *lbi ) -\i QListBox::inSort( const TQString \& text ) -\i QListBox::itemYPos( int index, int *yPos ) const -\i QListBox::numCols() const -\i QListBox::totalHeight() const -\i QListBox::totalWidth() const -\i QListBoxItem::current() const -\i QListBoxItem::selected() const -\i QListView::removeItem( QListViewItem *item ) -\i QListViewItem::removeItem( QListViewItem *item ) +\i TQListBox::cellHeight( int i ) const +\i TQListBox::cellHeight() const +\i TQListBox::cellWidth() const +\i TQListBox::findItem( int yPos ) const +\i TQListBox::inSort( const TQListBoxItem *lbi ) +\i TQListBox::inSort( const TQString \& text ) +\i TQListBox::itemYPos( int index, int *yPos ) const +\i TQListBox::numCols() const +\i TQListBox::totalHeight() const +\i TQListBox::totalWidth() const +\i TQListBoxItem::current() const +\i TQListBoxItem::selected() const +\i TQListView::removeItem( TQListViewItem *item ) +\i TQListViewItem::removeItem( TQListViewItem *item ) \i TQMainWindow::addToolBar( QDockWindow *, Dock = DockTop, bool newLine = FALSE ) \i TQMainWindow::addToolBar( QDockWindow *, const TQString \& label, Dock = DockTop, bool newLine = FALSE ) \i TQMainWindow::lineUpToolBars( bool keepNewLines = FALSE ) @@ -324,10 +324,10 @@ new code. \i TQStyle::defaultFrameWidth() const \i TQStyle::scrollBarExtent() const \i TQStyle::tabbarMetrics( const TQWidget *t, int \& hf, int \& vf, int \& ov ) const -\i QTabDialog::isTabEnabled( const char *name ) const -\i QTabDialog::selected( const TQString \& ) -\i QTabDialog::selected( const TQString \& tabLabel ) -\i QTabDialog::setTabEnabled( const char *name, bool enable ) +\i TQTabDialog::isTabEnabled( const char *name ) const +\i TQTabDialog::selected( const TQString \& ) +\i TQTabDialog::selected( const TQString \& tabLabel ) +\i TQTabDialog::setTabEnabled( const char *name, bool enable ) \i TQTextStream::TQTextStream( TQString \& str, int filemode ) \i TQToolBar::TQToolBar( const TQString \& label, TQMainWindow *, ToolBarDock = DockTop, bool newLine = FALSE, const char *name = 0 ) \i TQToolTip::enabled() @@ -343,7 +343,7 @@ new code. \i TQWidget::setBackgroundPixmap( const TQPixmap \& pm ) \i TQWidget::setFont( const TQFont \& f, bool ) \i TQWidget::setPalette( const TQPalette \& p, bool ) -\i QWizard::setFinish( TQWidget *, bool ) +\i TQWizard::setFinish( TQWidget *, bool ) \i TQXmlInputSource::TQXmlInputSource( TQFile \& file ) \i TQXmlInputSource::TQXmlInputSource( TQTextStream \& stream ) \i TQXmlReader::parse( const TQXmlInputSource \& input ) @@ -368,7 +368,7 @@ passed to the standard C functions in your code base. \section1 Collection Class Renaming -The classes QArray, QCollection, QList, QListIterator, QQueue, QStack +The classes QArray, QCollection, TQList, TQListIterator, QQueue, QStack and QVector have been renamed as per the following table. The original names are no longer avaialable. @@ -376,19 +376,19 @@ names are no longer avaialable. \header \i Old Name \i New Name \i New Header File \row \i QArray \i \l TQMemArray \i \c <tqmemarray.h> \row \i QCollection \i \l TQPtrCollection \i \c <tqptrcollection.h> -\row \i QList \i \l TQPtrList \i \c <tqptrlist.h> -\row \i QListIterator \i \l TQPtrListIterator \i \c <tqptrlist.h> +\row \i TQList \i \l TQPtrList \i \c <tqptrlist.h> +\row \i TQListIterator \i \l TQPtrListIterator \i \c <tqptrlist.h> \row \i QQueue \i \l TQPtrQueue \i \c <tqptrqueue.h> \row \i QStack \i \l TQPtrStack \i \c <tqptrstack.h> \row \i QVector \i \l TQPtrVector \i \c <tqptrvector.h> \endtable -\section1 QButtonGroup +\section1 TQButtonGroup -In TQt 2.x, the function QButtonGroup::selected() returns the selected +In TQt 2.x, the function TQButtonGroup::selected() returns the selected \e radio button (TQRadioButton). In TQt 3.0, it returns the selected \e -toggle button (\l QButton::toggleButton), a more general concept. -This might affect programs that use QButtonGroups that contain a +toggle button (\l TQButton::toggleButton), a more general concept. +This might affect programs that use TQButtonGroups that contain a mixture of radio buttons and non-radio (e.g. TQCheckBox) toggle buttons. \section1 TQDate @@ -448,7 +448,7 @@ QLayoutIterator, \l QSpacerItem and \l TQWidgetItem have been moved from \c <ntqabstractlayout.h> now includes \c <ntqlayout.h> for compatibility. It might be removed in a future version. -\section1 QListViewItem +\section1 TQListViewItem The paintBranches() function in TQt 2.x had a GUIStyle parameter; this has been dropped for TQt 3.x since GUI style is handled by the new @@ -461,21 +461,21 @@ widget in its parent widget, including the window frame. In TQt 3.0, it returns the new position of the widget, excluding window frame for top level widgets. -\section1 QMultiLineEdit +\section1 TQMultiLineEdit -The QMultiLineEdit was a simple editor widget in previous TQt versions. +The TQMultiLineEdit was a simple editor widget in previous TQt versions. Since TQt 3.0 includes a new richtext engine, which also supports -editing, QMultiLineEdit is obsolete. For the sake of compatibility -QMultiLineEdit is still provided. It is now a subclass of TQTextEdit -which wraps the old QMultiLineEdit so that it is mostly source +editing, TQMultiLineEdit is obsolete. For the sake of compatibility +TQMultiLineEdit is still provided. It is now a subclass of TQTextEdit +which wraps the old TQMultiLineEdit so that it is mostly source compatible to keep old applications working. For new applications and when maintaining existing applications we -recommend that you use TQTextEdit instead of QMultiLineEdit wherever +recommend that you use TQTextEdit instead of TQMultiLineEdit wherever possible. -Although most of the old QMultiLineEdit API is still available, there -is one important difference. The old QMultiLineEdit operated in terms +Although most of the old TQMultiLineEdit API is still available, there +is one important difference. The old TQMultiLineEdit operated in terms of lines, whereas TQTextEdit operates in terms of paragraphs. This is because lines change all the time during wordwrap, whereas paragraphs remain paragraphs. The consequence of this change is that functions @@ -485,15 +485,15 @@ now work on paragraphs. Also the function getString() has been removed since it published the internal data structure. -In most cases, applications that used QMultiLineEdit will continue to +In most cases, applications that used TQMultiLineEdit will continue to work without problems. Applications that worked in terms of lines may require some porting. -The source code for the old 2.x version of QMultiLineEdit can be found +The source code for the old 2.x version of TQMultiLineEdit can be found in \c $TQTDIR/src/attic/qtmultilineedit.h/cpp. Note that the class has been renamed to QtMultiLineEdit to avoid name clashes. If you really -need to keep compatibility with the old QMultiLineEdit, simply include -this class in your project and rename QMultiLineEdit to +need to keep compatibility with the old TQMultiLineEdit, simply include +this class in your project and rename TQMultiLineEdit to QtMultiLineEdit throughout. \section1 TQPrinter @@ -644,15 +644,15 @@ modal dialog instead. The QSortedList class is now obsolete. Consider using a TQDict, a TQMap or a plain TQPtrList instead. -\section1 QTableView +\section1 TQTableView -The QTableView class has been obsoleted and is no longer a part of the -Qt API. Either use the powerful QTable class or the simplistic -QGridView in any new code you create. If you really need the old table +The TQTableView class has been obsoleted and is no longer a part of the +Qt API. Either use the powerful TQTable class or the simplistic +TQGridView in any new code you create. If you really need the old table view for compatibility you can find it in \c $TQTDIR/src/attic/qttableview.{cpp,h}. Note that the class has been -renamed from QTableView to QtTableView to avoid name clashes. To use -it, simply include it in your project and rename QTableView to +renamed from TQTableView to QtTableView to avoid name clashes. To use +it, simply include it in your project and rename TQTableView to QtTableView throughout. \section1 TQToolButton @@ -771,7 +771,7 @@ transparent-looking widget. In general, this approach is slow and processor hungry. TQt 3.0 uses the BackgroundOrigin which provides vastly improved performance and more flexibility in most cases. The few classes for which the AutoMask property is still the best approach -are TQCheckBox, TQComboBox, TQPushButton, TQRadioButton and QTabWidget. +are TQCheckBox, TQComboBox, TQPushButton, TQRadioButton and TQTabWidget. \section1 Bezier Curves @@ -786,8 +786,8 @@ replace these calls with \endlist respectively. Neither the arguments nor the resulting curve have changed. -\section1 Locale-aware String Comparisons in TQIconView, QListBox, - QListView and QTable +\section1 Locale-aware String Comparisons in TQIconView, TQListBox, + TQListView and TQTable In TQt 2.x, TQString only provided string comparisons using the Unicode values of the characters of a string. This is efficient and reliable, @@ -797,10 +797,10 @@ French users expect 'é' (e acute) to be treated essentially as In TQt 3.0, TQString::localeAwareCompare() implements locale aware string comparisions on certain platforms. The classes \l TQIconView, \l -QListBox, \l QListView and \l QTable now use +TQListBox, \l TQListView and \l TQTable now use TQString::localeAwareCompare() instead of TQString::compare(). If you want to control the behaviour yourself you can always reimplement -TQIconViewItem::compare(), QListBox::text(), QListViewItem::compare() -or QTableItem::key() as appropriate. +TQIconViewItem::compare(), TQListBox::text(), TQListViewItem::compare() +or TQTableItem::key() as appropriate. */ |