You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tqt3/doc/man/man1/tqt20fix.1

33 lines
1.1 KiB

.TH "ttqt20fix" "1" "3.0.3" "Troll Tech AS, Norway." ""
13 years ago
.SH "NAME"
.LP
ttqt20fix \- Helps clean namespace when porting an app from Qt1 to Qt2
13 years ago
.SH "SYNTAX"
.LP
ttqt20fix myapp.cpp
13 years ago
.SH "DESCRIPTION"
.LP
Qt 2.x is namespace\-clean, unlike 1.x. Qt now uses very
few global identifiers. Identifiers like red, blue,
LeftButton, AlignRight, Key_Up, Key_Down, NoBrush etc.
are now part of a special class Qt (defined in
ntqnamespace.h), which is inherited by most Qt classes.
13 years ago
Member functions of classes that inherit from QWidget,
etc. are totally unaffected, but code that is not in
functions of classes inherited from Qt, you must qualify
these identifiers like this: Qt::red, Qt::LeftButton,
Qt::AlignRight, etc.
The qt/bin/ttqt20fix script helps to fix the code that
13 years ago
needs adaption, though most code does not need changing.
Compiling with \-DQT1COMPATIBILITY will help you get going
with Qt 2.x \- it allows all the old "dirty namespace"
identifiers from Qt 1.x to continue working. Without it,
you'll get compile errors that can easily be fixed by
searching this page for the clean identifiers.
.SH "AUTHORS"
.LP
TrollTech <http://www.trolltech.com/>