qt -> tqt conversion:

QT_NO_ASCII_CAST -> TQT_NO_ASCII_CAST
QT_NO_STL -> TQT_NO_STL
QT_NO_COMPAT -> TQT_NO_COMPAT
QT_NO_TRANSLATION -> TQT_NO_TRANSLATION

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/4/head
Michele Calgaro 6 years ago
parent 3e98ce7f85
commit 5fd88f2a20
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

2
configure vendored

@ -2586,7 +2586,7 @@ if [ "$CFG_LARGEFILE" = "yes" ]; then
QMAKE_CONFIG="$QMAKE_CONFIG largefile" QMAKE_CONFIG="$QMAKE_CONFIG largefile"
fi fi
if [ "$CFG_STL" = "no" ]; then if [ "$CFG_STL" = "no" ]; then
QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_STL" QCONFIG_FLAGS="$QCONFIG_FLAGS TQT_NO_STL"
else else
QMAKE_CONFIG="$QMAKE_CONFIG stl" QMAKE_CONFIG="$QMAKE_CONFIG stl"
fi fi

@ -1236,7 +1236,7 @@ significant digits (trailing zeroes are omitted).
<p> Returns <a href="#ascii">ascii</a>(). Be sure to see the warnings documented in the <p> Returns <a href="#ascii">ascii</a>(). Be sure to see the warnings documented in the
ascii() function. Note that for new code which you wish to be ascii() function. Note that for new code which you wish to be
strictly Unicode-clean, you can define the macro <tt>QT_NO_ASCII_CAST</tt> when compiling your code to hide this function so strictly Unicode-clean, you can define the macro <tt>TQT_NO_ASCII_CAST</tt> when compiling your code to hide this function so
that automatic casts are not done. This has the added advantage that automatic casts are not done. This has the added advantage
that you catch the programming error described in <a href="#operator!">operator!</a>(). that you catch the programming error described in <a href="#operator!">operator!</a>().
@ -1266,7 +1266,7 @@ alternative is to call ascii() directly and construct a std::string manually.
</pre> </pre>
<p> It will call "operator const char*()", which is inefficent; you <p> It will call "operator const char*()", which is inefficent; you
may wish to define the macro <tt>QT_NO_ASCII_CAST</tt> when writing code may wish to define the macro <tt>TQT_NO_ASCII_CAST</tt> when writing code
which you wish to remain Unicode-clean. which you wish to remain Unicode-clean.
<p> When you want the above semantics, use: <p> When you want the above semantics, use:
<p> <pre> <p> <pre>

@ -245,7 +245,7 @@ to catch places where
Unicode information is being converted to ASCII (loosing Unicode information is being converted to ASCII (loosing
information if your user in not using Latin1). TQt has information if your user in not using Latin1). TQt has
a small number of calls to this - ignore those. As a stricter a small number of calls to this - ignore those. As a stricter
alternative, compile your code with QT_NO_ASCII_CAST defined, alternative, compile your code with TQT_NO_ASCII_CAST defined,
which hides the automatic conversion of TQString to const char*, which hides the automatic conversion of TQString to const char*,
so you can catch problems at compile time. so you can catch problems at compile time.
</p> </p>
@ -880,7 +880,7 @@ filenames in other locales, either use the TQt functions, or convert the filenam
and <pre> TQFile::decodeFilename()</pre> and <pre> TQFile::decodeFilename()</pre>
- but do it - but do it
<em>just</em> as you call the system function - code that mixes encoded and unencoded filenames <em>just</em> as you call the system function - code that mixes encoded and unencoded filenames
is very error prone. See the comments in TQString, such as regarding QT_NO_ASCII_CAST that is very error prone. See the comments in TQString, such as regarding TQT_NO_ASCII_CAST that
can help find potential problems. can help find potential problems.
<p> <h3><a name="TQFontMetrics">TQFontMetrics</a></h3> <p> <h3><a name="TQFontMetrics">TQFontMetrics</a></h3>
<p> boundingRect(char) is replaced by <p> boundingRect(char) is replaced by

@ -237,7 +237,7 @@ private slots:
private: private:
TQActionGroupPrivate* d; TQActionGroupPrivate* d;
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
public: public:
void insert( TQAction* a ) { add( a ); } void insert( TQAction* a ) { add( a ); }
#endif #endif

@ -204,7 +204,7 @@ public:
static void beep(); static void beep();
#ifndef QT_NO_TRANSLATION #ifndef TQT_NO_TRANSLATION
# ifndef QT_NO_TEXTCODEC # ifndef QT_NO_TEXTCODEC
void setDefaultCodec( TQTextCodec * ); void setDefaultCodec( TQTextCodec * );
TQTextCodec* defaultCodec() const; TQTextCodec* defaultCodec() const;
@ -537,7 +537,7 @@ inline bool TQApplication::sendEvent( TQObject *receiver, TQEvent *event )
inline bool TQApplication::sendSpontaneousEvent( TQObject *receiver, TQEvent *event ) inline bool TQApplication::sendSpontaneousEvent( TQObject *receiver, TQEvent *event )
{ if ( event ) event-&gt;spont = TRUE; return tqApp ? tqApp-&gt;notify( receiver, event ) : FALSE; } { if ( event ) event-&gt;spont = TRUE; return tqApp ? tqApp-&gt;notify( receiver, event ) : FALSE; }
#ifdef QT_NO_TRANSLATION #ifdef TQT_NO_TRANSLATION
// Simple versions // Simple versions
inline TQString TQApplication::translate( const char *, const char *sourceText, inline TQString TQApplication::translate( const char *, const char *sourceText,
const char *, Encoding encoding ) const const char *, Encoding encoding ) const

@ -132,7 +132,7 @@ public:
enum ToggleState { Off, NoChange, On }; enum ToggleState { Off, NoChange, On };
ToggleState state() const; ToggleState state() const;
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
bool autoResize() const; bool autoResize() const;
void setAutoResize( bool ); void setAutoResize( bool );
#endif #endif
@ -232,7 +232,7 @@ inline bool TQButton::isOn() const
return stat != Off; return stat != Off;
} }
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
inline bool TQButton::autoResize() const inline bool TQButton::autoResize() const
{ {
return autoresize; return autoresize;

@ -179,7 +179,7 @@ public:
virtual void setActive(bool yes); virtual void setActive(bool yes);
bool isActive() const bool isActive() const
{ return (bool)act; } { return (bool)act; }
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
bool visible() const bool visible() const
{ return (bool)vis; } { return (bool)vis; }
bool selected() const bool selected() const

@ -106,7 +106,7 @@ public:
int weekNumber( int *yearNum = 0 ) const; int weekNumber( int *yearNum = 0 ) const;
#ifndef QT_NO_TEXTDATE #ifndef QT_NO_TEXTDATE
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
static TQString monthName( int month ) { return shortMonthName( month ); } static TQString monthName( int month ) { return shortMonthName( month ); }
static TQString dayName( int weekday ) { return shortDayName( weekday ); } static TQString dayName( int weekday ) { return shortDayName( weekday ); }
#endif #endif

@ -252,7 +252,7 @@ private:
#endif #endif
}; };
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
typedef TQUriDrag TQUrlDrag; typedef TQUriDrag TQUrlDrag;
#endif #endif

@ -337,12 +337,12 @@ public:
TQString lastResortFamily() const; TQString lastResortFamily() const;
TQString lastResortFont() const; TQString lastResortFont() const;
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
static TQFont defaultFont(); static TQFont defaultFont();
static void setDefaultFont( const TQFont &amp; ); static void setDefaultFont( const TQFont &amp; );
#endif // QT_NO_COMPAT #endif // TQT_NO_COMPAT
TQFont resolve( const TQFont &amp; ) const; TQFont resolve( const TQFont &amp; ) const;

@ -133,7 +133,7 @@ public:
#endif #endif
// For source compatibility with &lt; 3.0 // For source compatibility with &lt; 3.0
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
TQStringList families(bool) const; TQStringList families(bool) const;
TQStringList styles( const TQString &amp;, const TQString &amp; ) const; TQStringList styles( const TQString &amp;, const TQString &amp; ) const;
@ -151,7 +151,7 @@ public:
bool bold( const TQString &amp;, const TQString &amp;, const TQString &amp; ) const; bool bold( const TQString &amp;, const TQString &amp;, const TQString &amp; ) const;
int weight( const TQString &amp;, const TQString &amp;, const TQString &amp; ) const; int weight( const TQString &amp;, const TQString &amp;, const TQString &amp; ) const;
#endif // QT_NO_COMPAT #endif // TQT_NO_COMPAT
private: private:
#if defined(Q_WS_X11) || defined(Q_WS_WIN) #if defined(Q_WS_X11) || defined(Q_WS_WIN)
@ -172,7 +172,7 @@ private:
}; };
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
inline TQStringList TQFontDatabase::families( bool ) const inline TQStringList TQFontDatabase::families( bool ) const
{ {
@ -256,7 +256,7 @@ inline int TQFontDatabase::weight( const TQString &amp;family,
return weight(family, style); return weight(family, style);
} }
#endif // QT_NO_COMPAT #endif // TQT_NO_COMPAT
#endif // QT_NO_FONTDATABASE #endif // QT_NO_FONTDATABASE

@ -115,7 +115,7 @@ public:
int width( const TQString &amp;, int len = -1 ) const; int width( const TQString &amp;, int len = -1 ) const;
int width( TQChar ) const; int width( TQChar ) const;
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
int width( char c ) const { return width( (TQChar) c ); } int width( char c ) const { return width( (TQChar) c ); }
#endif #endif

@ -88,7 +88,7 @@ body { background: #ffffff; color: black; }
#define TQM_EXPORT_OPENGL Q_EXPORT #define TQM_EXPORT_OPENGL Q_EXPORT
#endif #endif
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
#define TQGL_VERSION 450 #define TQGL_VERSION 450
#define TQGL_VERSION_STR "4.5" #define TQGL_VERSION_STR "4.5"
TQM_EXPORT_OPENGL inline const char *qGLVersion() { TQM_EXPORT_OPENGL inline const char *qGLVersion() {

@ -980,7 +980,7 @@ Q_EXPORT int qWinVersion();
#if !defined(QT_NO_DEBUG) &amp;&amp; !defined(QT_DEBUG) #if !defined(QT_NO_DEBUG) &amp;&amp; !defined(QT_DEBUG)
# define QT_DEBUG // display debug messages # define QT_DEBUG // display debug messages
# if !defined(QT_NO_COMPAT) // compatibility with TQt 2 # if !defined(TQT_NO_COMPAT) // compatibility with TQt 2
# if !defined(NO_DEBUG) &amp;&amp; !defined(DEBUG) # if !defined(NO_DEBUG) &amp;&amp; !defined(DEBUG)
# if !defined(Q_OS_MACX) // clash with MacOS X headers # if !defined(Q_OS_MACX) // clash with MacOS X headers
# define DEBUG # define DEBUG
@ -1023,13 +1023,13 @@ Q_EXPORT void tqSystemWarning( const char *, int code = -1 );
# endif # endif
#endif #endif
#if !defined(QT_NO_COMPAT) // compatibility with TQt 2 #if !defined(TQT_NO_COMPAT) // compatibility with TQt 2
# if !defined(ASSERT) # if !defined(ASSERT)
# if !defined(Q_OS_TEMP) # if !defined(Q_OS_TEMP)
# define ASSERT(x) Q_ASSERT(x) # define ASSERT(x) Q_ASSERT(x)
# endif # endif
# endif # endif
#endif // QT_NO_COMPAT #endif // TQT_NO_COMPAT
Q_EXPORT bool tqt_check_pointer( bool c, const char *, int ); Q_EXPORT bool tqt_check_pointer( bool c, const char *, int );
@ -1040,20 +1040,20 @@ Q_EXPORT bool tqt_check_pointer( bool c, const char *, int );
# define TQ_CHECK_PTR(p) # define TQ_CHECK_PTR(p)
#endif #endif
#if !defined(QT_NO_COMPAT) // compatibility with TQt 2 #if !defined(TQT_NO_COMPAT) // compatibility with TQt 2
# if !defined(CHECK_PTR) # if !defined(CHECK_PTR)
# define CHECK_PTR(x) TQ_CHECK_PTR(x) # define CHECK_PTR(x) TQ_CHECK_PTR(x)
# endif # endif
#endif // QT_NO_COMPAT #endif // TQT_NO_COMPAT
enum TQtMsgType { TQtDebugMsg, TQtWarningMsg, TQtFatalMsg }; enum TQtMsgType { TQtDebugMsg, TQtWarningMsg, TQtFatalMsg };
typedef void (*TQtMsgHandler)(TQtMsgType, const char *); typedef void (*TQtMsgHandler)(TQtMsgType, const char *);
Q_EXPORT TQtMsgHandler qInstallMsgHandler( TQtMsgHandler ); Q_EXPORT TQtMsgHandler qInstallMsgHandler( TQtMsgHandler );
#if !defined(QT_NO_COMPAT) // compatibility with TQt 2 #if !defined(TQT_NO_COMPAT) // compatibility with TQt 2
typedef TQtMsgHandler msg_handler; typedef TQtMsgHandler msg_handler;
#endif // QT_NO_COMPAT #endif // TQT_NO_COMPAT
Q_EXPORT void tqSuppressObsoleteWarnings( bool = TRUE ); Q_EXPORT void tqSuppressObsoleteWarnings( bool = TRUE );

@ -92,7 +92,7 @@ public:
void setSpacing( int ); void setSpacing( int );
TQSize sizeHint() const; TQSize sizeHint() const;
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
typedef Orientation Direction; typedef Orientation Direction;
#endif #endif

@ -145,7 +145,7 @@ public:
int alignment() const; int alignment() const;
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
void cursorLeft( bool mark, int steps = 1 ) { cursorForward( mark, -steps ); } void cursorLeft( bool mark, int steps = 1 ) { cursorForward( mark, -steps ); }
void cursorRight( bool mark, int steps = 1 ) { cursorForward( mark, steps ); } void cursorRight( bool mark, int steps = 1 ) { cursorForward( mark, steps ); }
#endif #endif
@ -171,7 +171,7 @@ public:
bool isUndoAvailable() const; bool isUndoAvailable() const;
bool isRedoAvailable() const; bool isRedoAvailable() const;
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
bool hasMarkedText() const { return hasSelectedText(); } bool hasMarkedText() const { return hasSelectedText(); }
TQString markedText() const { return selectedText(); } TQString markedText() const { return selectedText(); }
#endif #endif
@ -237,7 +237,7 @@ protected:
void contextMenuEvent( TQContextMenuEvent * ); void contextMenuEvent( TQContextMenuEvent * );
virtual TQPopupMenu *createPopupMenu(); virtual TQPopupMenu *createPopupMenu();
void windowActivationChange( bool ); void windowActivationChange( bool );
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
void repaintArea( int, int ) { update(); } void repaintArea( int, int ) { update(); }
#endif #endif

@ -205,7 +205,7 @@ public:
void viewportPaintEvent( TQPaintEvent * ); void viewportPaintEvent( TQPaintEvent * );
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
bool dragSelect() const { return TRUE; } bool dragSelect() const { return TRUE; }
void setDragSelect( bool ) {} void setDragSelect( bool ) {}
bool autoScroll() const { return TRUE; } bool autoScroll() const { return TRUE; }
@ -294,7 +294,7 @@ protected:
void updateItem( int index ); void updateItem( int index );
void updateItem( TQListBoxItem * ); void updateItem( TQListBoxItem * );
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
void updateCellWidth() { } void updateCellWidth() { }
int totalWidth() const { return contentsWidth(); } int totalWidth() const { return contentsWidth(); }
int totalHeight() const { return contentsHeight(); } int totalHeight() const { return contentsHeight(); }
@ -309,7 +309,7 @@ protected:
void windowActivationChange( bool ); void windowActivationChange( bool );
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
bool itemYPos( int index, int *yPos ) const; bool itemYPos( int index, int *yPos ) const;
int findItem( int yPos ) const { return index(itemAt(TQPoint(0,yPos)) ); } int findItem( int yPos ) const { return index(itemAt(TQPoint(0,yPos)) ); }
#endif #endif
@ -367,7 +367,7 @@ public:
bool isSelected() const { return s; } bool isSelected() const { return s; }
bool isCurrent() const; bool isCurrent() const;
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
bool selected() const { return isSelected(); } bool selected() const { return isSelected(); }
bool current() const { return isCurrent(); } bool current() const { return isCurrent(); }
#endif #endif

@ -85,7 +85,7 @@ body { background: #ffffff; color: black; }
#include "ntqvaluelist.h" #include "ntqvaluelist.h"
#endif // QT_H #endif // QT_H
#ifndef QT_NO_STL #ifndef TQT_NO_STL
#include &lt;iterator&gt; #include &lt;iterator&gt;
#include &lt;map&gt; #include &lt;map&gt;
#endif #endif
@ -138,11 +138,11 @@ class TQMapIterator
* Typedefs * Typedefs
*/ */
typedef TQMapNode&lt; K, T &gt;* NodePtr; typedef TQMapNode&lt; K, T &gt;* NodePtr;
#ifndef QT_NO_STL #ifndef TQT_NO_STL
typedef std::bidirectional_iterator_tag iterator_category; typedef std::bidirectional_iterator_tag iterator_category;
#endif #endif
typedef T value_type; typedef T value_type;
#ifndef QT_NO_STL #ifndef TQT_NO_STL
typedef ptrdiff_t difference_type; typedef ptrdiff_t difference_type;
#else #else
typedef int difference_type; typedef int difference_type;
@ -254,11 +254,11 @@ class TQMapConstIterator
* Typedefs * Typedefs
*/ */
typedef TQMapNode&lt; K, T &gt;* NodePtr; typedef TQMapNode&lt; K, T &gt;* NodePtr;
#ifndef QT_NO_STL #ifndef TQT_NO_STL
typedef std::bidirectional_iterator_tag iterator_category; typedef std::bidirectional_iterator_tag iterator_category;
#endif #endif
typedef T value_type; typedef T value_type;
#ifndef QT_NO_STL #ifndef TQT_NO_STL
typedef ptrdiff_t difference_type; typedef ptrdiff_t difference_type;
#else #else
typedef int difference_type; typedef int difference_type;
@ -639,7 +639,7 @@ public:
typedef const value_type* const_pointer; typedef const value_type* const_pointer;
typedef value_type&amp; reference; typedef value_type&amp; reference;
typedef const value_type&amp; const_reference; typedef const value_type&amp; const_reference;
#ifndef QT_NO_STL #ifndef TQT_NO_STL
typedef ptrdiff_t difference_type; typedef ptrdiff_t difference_type;
#else #else
typedef int difference_type; typedef int difference_type;
@ -666,7 +666,7 @@ public:
sh = m.sh; sh-&gt;ref(); sh = m.sh; sh-&gt;ref();
} }
#ifndef QT_NO_STL #ifndef TQT_NO_STL
TQMap( const std::map&lt;Key,T&gt;&amp; m ) TQMap( const std::map&lt;Key,T&gt;&amp; m )
{ {
sh = new TQMapPrivate&lt;Key,T&gt;; sh = new TQMapPrivate&lt;Key,T&gt;;
@ -683,7 +683,7 @@ public:
delete sh; delete sh;
} }
TQMap&lt;Key,T&gt;&amp; operator= ( const TQMap&lt;Key,T&gt;&amp; m ); TQMap&lt;Key,T&gt;&amp; operator= ( const TQMap&lt;Key,T&gt;&amp; m );
#ifndef QT_NO_STL #ifndef TQT_NO_STL
TQMap&lt;Key,T&gt;&amp; operator= ( const std::map&lt;Key,T&gt;&amp; m ) TQMap&lt;Key,T&gt;&amp; operator= ( const std::map&lt;Key,T&gt;&amp; m )
{ {
clear(); clear();
@ -766,7 +766,7 @@ public:
#if defined(Q_FULL_TEMPLATE_INSTANTIATION) #if defined(Q_FULL_TEMPLATE_INSTANTIATION)
bool operator==( const TQMap&lt;Key,T&gt;&amp; ) const { return FALSE; } bool operator==( const TQMap&lt;Key,T&gt;&amp; ) const { return FALSE; }
#ifndef QT_NO_STL #ifndef TQT_NO_STL
bool operator==( const std::map&lt;Key,T&gt;&amp; ) const { return FALSE; } bool operator==( const std::map&lt;Key,T&gt;&amp; ) const { return FALSE; }
#endif #endif
#endif #endif

@ -148,7 +148,7 @@ public:
ConstIterator end() const { return data() + size(); } ConstIterator end() const { return data() + size(); }
}; };
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
#define TQArray TQMemArray #define TQArray TQMemArray
#endif #endif

@ -264,7 +264,7 @@ public:
WStyle_Splash = WStyle_NoBorder | WMacNoSheet | WStyle_Tool | WWinOwnDC, WStyle_Splash = WStyle_NoBorder | WMacNoSheet | WStyle_Tool | WWinOwnDC,
#endif #endif
WNoAutoErase = WRepaintNoErase | WResizeNoErase WNoAutoErase = WRepaintNoErase | WResizeNoErase
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
, ,
WNorthWestGravity = WStaticContents, WNorthWestGravity = WStaticContents,
WType_Modal = WType_Dialog | WShowModal, WType_Modal = WType_Dialog | WShowModal,
@ -317,7 +317,7 @@ public:
OpaqueMode OpaqueMode
}; };
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
// documented in qpainter.cpp // documented in qpainter.cpp
enum PaintUnit { // paint unit enum PaintUnit { // paint unit
PixelUnit, PixelUnit,
@ -330,10 +330,10 @@ public:
#endif #endif
// documented in qstyle.cpp // documented in qstyle.cpp
#ifdef QT_NO_COMPAT #ifdef TQT_NO_COMPAT
enum GUIStyle { enum GUIStyle {
WindowsStyle = 1, // ### TQt 4.0: either remove the obsolete enums or clean up compat vs. WindowsStyle = 1, // ### TQt 4.0: either remove the obsolete enums or clean up compat vs.
MotifStyle = 4 // ### QT_NO_COMPAT by reordering or combination into one enum. MotifStyle = 4 // ### TQT_NO_COMPAT by reordering or combination into one enum.
}; };
#else #else
enum GUIStyle { enum GUIStyle {
@ -858,7 +858,7 @@ public:
DockRight, DockRight,
DockLeft, DockLeft,
DockMinimized DockMinimized
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
, ,
Unmanaged = DockUnmanaged, Unmanaged = DockUnmanaged,
TornOff = DockTornOff, TornOff = DockTornOff,

@ -172,12 +172,12 @@ public:
virtual bool setProperty( const char *name, const TQVariant&amp; value ); virtual bool setProperty( const char *name, const TQVariant&amp; value );
virtual TQVariant property( const char *name ) const; virtual TQVariant property( const char *name ) const;
#endif // QT_NO_PROPERTIES #endif // QT_NO_PROPERTIES
#ifdef QT_NO_TRANSLATION #ifdef TQT_NO_TRANSLATION
static TQString tr( const char *sourceText, const char * = 0); static TQString tr( const char *sourceText, const char * = 0);
#ifndef QT_NO_TEXTCODEC #ifndef QT_NO_TEXTCODEC
static TQString trUtf8( const char *sourceText, const char * = 0); static TQString trUtf8( const char *sourceText, const char * = 0);
#endif #endif
#endif //QT_NO_TRANSLATION #endif //TQT_NO_TRANSLATION
#ifndef QT_NO_USERDATA #ifndef QT_NO_USERDATA
static uint registerUserData(); static uint registerUserData();
@ -281,7 +281,7 @@ inline bool TQObject::disconnect( const TQObject *receiver, const char *member )
} }
#ifdef QT_NO_TRANSLATION #ifdef TQT_NO_TRANSLATION
inline TQString TQObject::tr( const char *sourceText, const char * ) { inline TQString TQObject::tr( const char *sourceText, const char * ) {
return TQString::fromLatin1( sourceText ); return TQString::fromLatin1( sourceText );
} }
@ -290,7 +290,7 @@ inline TQString TQObject::trUtf8( const char *sourceText, const char * ) {
return TQString::fromUtf8( sourceText ); return TQString::fromUtf8( sourceText );
} }
#endif #endif
#endif //QT_NO_TRANSLATION #endif //TQT_NO_TRANSLATION
#define Q_DEFINED_QOBJECT #define Q_DEFINED_QOBJECT

@ -173,14 +173,14 @@ public:
const TQColorGroup &amp;active() const { return data-&gt;active; } const TQColorGroup &amp;active() const { return data-&gt;active; }
const TQColorGroup &amp;disabled() const { return data-&gt;disabled; } const TQColorGroup &amp;disabled() const { return data-&gt;disabled; }
const TQColorGroup &amp;inactive() const { return data-&gt;inactive; } const TQColorGroup &amp;inactive() const { return data-&gt;inactive; }
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
const TQColorGroup &amp;normal() const { return active(); } const TQColorGroup &amp;normal() const { return active(); }
#endif #endif
void setActive( const TQColorGroup &amp; ); void setActive( const TQColorGroup &amp; );
void setDisabled( const TQColorGroup &amp; ); void setDisabled( const TQColorGroup &amp; );
void setInactive( const TQColorGroup &amp; ); void setInactive( const TQColorGroup &amp; );
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
void setNormal( const TQColorGroup &amp; cg ) { setActive(cg); } void setNormal( const TQColorGroup &amp; cg ) { setActive(cg); }
#endif #endif

@ -108,7 +108,7 @@ protected:
}; };
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
#define TQCollection TQPtrCollection #define TQCollection TQPtrCollection
#endif #endif

@ -221,7 +221,7 @@ public:
{ TQGListIterator::operator=(it); return *this; } { TQGListIterator::operator=(it); return *this; }
}; };
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
#define TQList TQPtrList #define TQList TQPtrList
#define TQListIterator TQPtrListIterator #define TQListIterator TQPtrListIterator
#endif #endif

@ -123,7 +123,7 @@ template&lt;class type&gt; inline void TQPtrQueue&lt;type&gt;::deleteItem( TQPtr
if ( del_item ) delete (type *)d; if ( del_item ) delete (type *)d;
} }
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
#define TQQueue TQPtrQueue #define TQQueue TQPtrQueue
#endif #endif

@ -123,7 +123,7 @@ template&lt;class type&gt; inline void TQPtrStack&lt;type&gt;::deleteItem( TQPtr
if ( del_item ) delete (type *)d; if ( del_item ) delete (type *)d;
} }
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
#define TQStack TQPtrStack #define TQStack TQPtrStack
#endif #endif

@ -145,7 +145,7 @@ template&lt;class type&gt; inline void TQPtrVector&lt;type&gt;::deleteItem( TQPt
if ( del_item ) delete (type *)d; if ( del_item ) delete (type *)d;
} }
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
#define TQVector TQPtrVector #define TQVector TQPtrVector
#endif #endif

@ -114,7 +114,7 @@ public:
void setMinimal( bool minimal ); void setMinimal( bool minimal );
bool exactMatch( const TQString&amp; str ) const; bool exactMatch( const TQString&amp; str ) const;
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
int match( const TQString&amp; str, int index = 0, int *len = 0, int match( const TQString&amp; str, int index = 0, int *len = 0,
bool indexIsStart = TRUE ) const; bool indexIsStart = TRUE ) const;
#endif #endif

@ -96,7 +96,7 @@ public:
void activate(); void activate();
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
bool isBlocked() const { return TQObject::signalsBlocked(); } bool isBlocked() const { return TQObject::signalsBlocked(); }
void block( bool b ) { TQObject::blockSignals( b ); } void block( bool b ) { TQObject::blockSignals( b ); }
#ifndef QT_NO_VARIANT #ifndef QT_NO_VARIANT

@ -100,7 +100,7 @@ public:
enum ExpandData { NoDirection = 0, enum ExpandData { NoDirection = 0,
Horizontally = 1, Horizontally = 1,
Vertically = 2, Vertically = 2,
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
Horizontal = Horizontally, Horizontal = Horizontally,
Vertical = Vertically, Vertical = Vertically,
#endif #endif

@ -102,7 +102,7 @@ public:
? ?
*/ */
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
static bool available() { return isAvailable(); } static bool available() { return isAvailable(); }
#endif #endif

@ -85,7 +85,7 @@ body { background: #ffffff; color: black; }
#include &lt;limits.h&gt; #include &lt;limits.h&gt;
#endif #endif
#ifndef QT_NO_STL #ifndef TQT_NO_STL
#if defined ( Q_CC_MSVC_NET ) &amp;&amp; _MSC_VER &lt; 1310 // Avoids nasty warning for xlocale, line 450 #if defined ( Q_CC_MSVC_NET ) &amp;&amp; _MSC_VER &lt; 1310 // Avoids nasty warning for xlocale, line 450
# pragma warning ( push ) # pragma warning ( push )
# pragma warning ( disable : 4189 ) # pragma warning ( disable : 4189 )
@ -444,14 +444,14 @@ public:
#ifndef QT_NO_CAST_ASCII #ifndef QT_NO_CAST_ASCII
TQString( const char *str ); // deep copy TQString( const char *str ); // deep copy
#endif #endif
#ifndef QT_NO_STL #ifndef TQT_NO_STL
TQString( const std::string&amp; ); // deep copy TQString( const std::string&amp; ); // deep copy
#endif #endif
~TQString(); ~TQString();
TQString &amp;operator=( const TQString &amp; ); // impl-shared copy TQString &amp;operator=( const TQString &amp; ); // impl-shared copy
TQString &amp;operator=( const char * ); // deep copy TQString &amp;operator=( const char * ); // deep copy
#ifndef QT_NO_STL #ifndef TQT_NO_STL
TQString &amp;operator=( const std::string&amp; ); // deep copy TQString &amp;operator=( const std::string&amp; ); // deep copy
#endif #endif
TQString &amp;operator=( const TQCString&amp; ); // deep copy TQString &amp;operator=( const TQCString&amp; ); // deep copy
@ -570,7 +570,7 @@ public:
TQString &amp;append( const TQByteArray &amp; ); TQString &amp;append( const TQByteArray &amp; );
TQString &amp;append( const char * ); TQString &amp;append( const char * );
#endif #endif
#if !defined(QT_NO_STL) &amp;&amp; !defined(QT_NO_CAST_ASCII) #if !defined(TQT_NO_STL) &amp;&amp; !defined(QT_NO_CAST_ASCII)
TQString &amp;append( const std::string&amp; ); TQString &amp;append( const std::string&amp; );
#endif #endif
TQString &amp;prepend( char ); TQString &amp;prepend( char );
@ -580,7 +580,7 @@ public:
TQString &amp;prepend( const TQByteArray &amp; ); TQString &amp;prepend( const TQByteArray &amp; );
TQString &amp;prepend( const char * ); TQString &amp;prepend( const char * );
#endif #endif
#if !defined(QT_NO_STL) &amp;&amp; !defined(QT_NO_CAST_ASCII) #if !defined(TQT_NO_STL) &amp;&amp; !defined(QT_NO_CAST_ASCII)
TQString &amp;prepend( const std::string&amp; ); TQString &amp;prepend( const std::string&amp; );
#endif #endif
TQString &amp;remove( uint index, uint len ); TQString &amp;remove( uint index, uint len );
@ -667,7 +667,7 @@ public:
TQString &amp;operator+=( const TQByteArray &amp;str ); TQString &amp;operator+=( const TQByteArray &amp;str );
TQString &amp;operator+=( const char *str ); TQString &amp;operator+=( const char *str );
#endif #endif
#if !defined(QT_NO_STL) &amp;&amp; !defined(QT_NO_CAST_ASCII) #if !defined(TQT_NO_STL) &amp;&amp; !defined(QT_NO_CAST_ASCII)
TQString &amp;operator+=( const std::string&amp; ); TQString &amp;operator+=( const std::string&amp; );
#endif #endif
TQString &amp;operator+=( TQChar c ); TQString &amp;operator+=( TQChar c );
@ -699,10 +699,10 @@ public:
TQCString local8Bit() const; TQCString local8Bit() const;
static TQString fromLocal8Bit(const char*, int len=-1); static TQString fromLocal8Bit(const char*, int len=-1);
bool operator!() const; bool operator!() const;
#ifndef QT_NO_ASCII_CAST #ifndef TQT_NO_ASCII_CAST
operator const char *() const { return ascii(); } operator const char *() const { return ascii(); }
#endif #endif
#ifndef QT_NO_STL #ifndef TQT_NO_STL
operator std::string() const { return ascii() ? ascii() : ""; } operator std::string() const { return ascii() ? ascii() : ""; }
#endif #endif
@ -728,7 +728,7 @@ public:
void compose(); void compose();
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
const char* data() const { return ascii(); } const char* data() const { return ascii(); }
#endif #endif
@ -977,7 +977,7 @@ inline TQString &amp;TQString::append( TQChar c )
inline TQString &amp;TQString::append( char c ) inline TQString &amp;TQString::append( char c )
{ return operator+=(c); } { return operator+=(c); }
#ifndef QT_NO_STL #ifndef TQT_NO_STL
inline TQString &amp;TQString::operator=( const std::string&amp; str ) inline TQString &amp;TQString::operator=( const std::string&amp; str )
{ return operator=(str.c_str()); } { return operator=(str.c_str()); }
#ifndef QT_NO_CAST_ASCII #ifndef QT_NO_CAST_ASCII
@ -1124,7 +1124,7 @@ Q_EXPORT inline const TQString operator+( char c1, const TQString &amp;s2 )
return tmp; return tmp;
} }
#ifndef QT_NO_STL #ifndef TQT_NO_STL
Q_EXPORT inline const TQString operator+(const TQString&amp; s1, const std::string&amp; s2) Q_EXPORT inline const TQString operator+(const TQString&amp; s1, const std::string&amp; s2)
{ {
return s1 + TQString(s2); return s1 + TQString(s2);

@ -759,7 +759,7 @@ public:
// Old 2.x TQStyle API // Old 2.x TQStyle API
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
int defaultFrameWidth() const int defaultFrameWidth() const
{ {
return pixelMetric( PM_DefaultFrameWidth ); return pixelMetric( PM_DefaultFrameWidth );

@ -81,11 +81,11 @@ body { background: #ffffff; color: black; }
#ifndef QT_H #ifndef QT_H
#include "ntqwindowdefs.h" #include "ntqwindowdefs.h"
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
#include "ntqmutex.h" #include "ntqmutex.h"
#include "ntqsemaphore.h" #include "ntqsemaphore.h"
#include "ntqwaitcondition.h" #include "ntqwaitcondition.h"
#endif // QT_NO_COMPAT #endif // TQT_NO_COMPAT
#endif // QT_H #endif // QT_H
#include &lt;limits.h&gt; #include &lt;limits.h&gt;
@ -97,7 +97,7 @@ class Q_EXPORT TQThread : public TQt
public: public:
static TQt::HANDLE currentThread(); static TQt::HANDLE currentThread();
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
static void postEvent( TQObject *,TQEvent * ); static void postEvent( TQObject *,TQEvent * );
#endif #endif

@ -130,7 +130,7 @@ public:
TQSize sizeHint() const; TQSize sizeHint() const;
TQSize minimumSizeHint() const; TQSize minimumSizeHint() const;
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
void setOnIconSet( const TQIconSet&amp; ); void setOnIconSet( const TQIconSet&amp; );
void setOffIconSet( const TQIconSet&amp; ); void setOffIconSet( const TQIconSet&amp; );
void setIconSet( const TQIconSet &amp;, bool on ); void setIconSet( const TQIconSet &amp;, bool on );

@ -149,7 +149,7 @@ public:
static TQPalette palette(); static TQPalette palette();
static void setPalette( const TQPalette &amp; ); static void setPalette( const TQPalette &amp; );
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
static void setEnabled( bool enable ) { setGloballyEnabled( enable ); } static void setEnabled( bool enable ) { setGloballyEnabled( enable ); }
static bool enabled() { return isGloballyEnabled(); } static bool enabled() { return isGloballyEnabled(); }
#endif #endif

@ -83,7 +83,7 @@ body { background: #ffffff; color: black; }
#include "ntqvaluelist.h" #include "ntqvaluelist.h"
#endif // QT_H #endif // QT_H
#ifndef QT_NO_TRANSLATION #ifndef TQT_NO_TRANSLATION
class TQTranslatorPrivate; class TQTranslatorPrivate;
@ -145,7 +145,7 @@ public:
TQTranslator( TQObject * parent = 0, const char * name = 0 ); TQTranslator( TQObject * parent = 0, const char * name = 0 );
~TQTranslator(); ~TQTranslator();
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
TQString find( const char *context, const char *sourceText, const char * comment = 0 ) const { TQString find( const char *context, const char *sourceText, const char * comment = 0 ) const {
return findMessage( context, sourceText, comment ).translation(); return findMessage( context, sourceText, comment ).translation();
} }
@ -164,7 +164,7 @@ public:
void clear(); void clear();
#ifndef QT_NO_TRANSLATION_BUILDER #ifndef TQT_NO_TRANSLATION_BUILDER
enum SaveMode { Everything, Stripped }; enum SaveMode { Everything, Stripped };
bool save( const TQString &amp; filename, SaveMode mode = Everything ); bool save( const TQString &amp; filename, SaveMode mode = Everything );
@ -198,7 +198,7 @@ private:
TQTranslatorPrivate * d; TQTranslatorPrivate * d;
}; };
#endif // QT_NO_TRANSLATION #endif // TQT_NO_TRANSLATION
#endif #endif
</pre> </pre>

@ -83,7 +83,7 @@ body { background: #ffffff; color: black; }
#include "ntqdatastream.h" #include "ntqdatastream.h"
#endif // QT_H #endif // QT_H
#ifndef QT_NO_STL #ifndef TQT_NO_STL
#include &lt;iterator&gt; #include &lt;iterator&gt;
#include &lt;list&gt; #include &lt;list&gt;
#endif #endif
@ -118,12 +118,12 @@ class TQValueListIterator
* Typedefs * Typedefs
*/ */
typedef TQValueListNode&lt;T&gt;* NodePtr; typedef TQValueListNode&lt;T&gt;* NodePtr;
#ifndef QT_NO_STL #ifndef TQT_NO_STL
typedef std::bidirectional_iterator_tag iterator_category; typedef std::bidirectional_iterator_tag iterator_category;
#endif #endif
typedef T value_type; typedef T value_type;
typedef size_t size_type; typedef size_t size_type;
#ifndef QT_NO_STL #ifndef TQT_NO_STL
typedef ptrdiff_t difference_type; typedef ptrdiff_t difference_type;
#else #else
typedef int difference_type; typedef int difference_type;
@ -194,12 +194,12 @@ class TQValueListConstIterator
* Typedefs * Typedefs
*/ */
typedef TQValueListNode&lt;T&gt;* NodePtr; typedef TQValueListNode&lt;T&gt;* NodePtr;
#ifndef QT_NO_STL #ifndef TQT_NO_STL
typedef std::bidirectional_iterator_tag iterator_category; typedef std::bidirectional_iterator_tag iterator_category;
#endif #endif
typedef T value_type; typedef T value_type;
typedef size_t size_type; typedef size_t size_type;
#ifndef QT_NO_STL #ifndef TQT_NO_STL
typedef ptrdiff_t difference_type; typedef ptrdiff_t difference_type;
#else #else
typedef int difference_type; typedef int difference_type;
@ -459,7 +459,7 @@ public:
typedef value_type&amp; reference; typedef value_type&amp; reference;
typedef const value_type&amp; const_reference; typedef const value_type&amp; const_reference;
typedef size_t size_type; typedef size_t size_type;
#ifndef QT_NO_STL #ifndef TQT_NO_STL
typedef ptrdiff_t difference_type; typedef ptrdiff_t difference_type;
#else #else
typedef int difference_type; typedef int difference_type;
@ -470,7 +470,7 @@ public:
*/ */
TQValueList() { sh = new TQValueListPrivate&lt;T&gt;; } TQValueList() { sh = new TQValueListPrivate&lt;T&gt;; }
TQValueList( const TQValueList&lt;T&gt;&amp; l ) { sh = l.sh; sh-&gt;ref(); } TQValueList( const TQValueList&lt;T&gt;&amp; l ) { sh = l.sh; sh-&gt;ref(); }
#ifndef QT_NO_STL #ifndef TQT_NO_STL
TQValueList( const std::list&lt;T&gt;&amp; l ) TQValueList( const std::list&lt;T&gt;&amp; l )
{ {
sh = new TQValueListPrivate&lt;T&gt;; sh = new TQValueListPrivate&lt;T&gt;;
@ -486,7 +486,7 @@ public:
sh = l.sh; sh = l.sh;
return *this; return *this;
} }
#ifndef QT_NO_STL #ifndef TQT_NO_STL
TQValueList&lt;T&gt;&amp; operator= ( const std::list&lt;T&gt;&amp; l ) TQValueList&lt;T&gt;&amp; operator= ( const std::list&lt;T&gt;&amp; l )
{ {
detach(); detach();

@ -81,7 +81,7 @@ body { background: #ffffff; color: black; }
#include "ntqdatastream.h" #include "ntqdatastream.h"
#endif // QT_H #endif // QT_H
#ifndef QT_NO_STL #ifndef TQT_NO_STL
#include &lt;vector&gt; #include &lt;vector&gt;
#endif #endif
@ -279,7 +279,7 @@ public:
typedef value_type&amp; reference; typedef value_type&amp; reference;
typedef const value_type&amp; const_reference; typedef const value_type&amp; const_reference;
typedef size_t size_type; typedef size_t size_type;
#ifndef QT_NO_STL #ifndef TQT_NO_STL
typedef ptrdiff_t difference_type; typedef ptrdiff_t difference_type;
#else #else
typedef int difference_type; typedef int difference_type;
@ -298,7 +298,7 @@ public:
TQValueVector( size_type n, const T&amp; val = T() ); TQValueVector( size_type n, const T&amp; val = T() );
#ifndef QT_NO_STL #ifndef TQT_NO_STL
TQValueVector( std::vector&lt;T&gt;&amp; v ) // ### remove in 4.0 TQValueVector( std::vector&lt;T&gt;&amp; v ) // ### remove in 4.0
{ {
sh = new TQValueVectorPrivate&lt;T&gt;( v.size() ); sh = new TQValueVectorPrivate&lt;T&gt;( v.size() );
@ -325,7 +325,7 @@ public:
return *this; return *this;
} }
#ifndef QT_NO_STL #ifndef TQT_NO_STL
TQValueVector&lt;T&gt;&amp; operator= ( const std::vector&lt;T&gt;&amp; v ) TQValueVector&lt;T&gt;&amp; operator= ( const std::vector&lt;T&gt;&amp; v )
{ {
clear(); clear();

@ -387,7 +387,7 @@ public slots:
virtual void hide(); virtual void hide();
void setShown( bool show ); void setShown( bool show );
void setHidden( bool hide ); void setHidden( bool hide );
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
void iconify() { showMinimized(); } void iconify() { showMinimized(); }
#endif #endif
virtual void showMinimized(); virtual void showMinimized();
@ -445,7 +445,7 @@ public:
bool showIt=FALSE ); bool showIt=FALSE );
void reparent( TQWidget *parent, const TQPoint &amp;, void reparent( TQWidget *parent, const TQPoint &amp;,
bool showIt=FALSE ); bool showIt=FALSE );
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
void recreate( TQWidget *parent, WFlags f, const TQPoint &amp; p, void recreate( TQWidget *parent, WFlags f, const TQPoint &amp; p,
bool showIt=FALSE ) { reparent(parent,f,p,showIt); } bool showIt=FALSE ) { reparent(parent,f,p,showIt); }
#endif #endif

@ -1456,7 +1456,7 @@ With 'e', 'E', and 'f', \fIprec\fR is the number of digits after the decimal poi
.PP .PP
See also setNum(). See also setNum().
.SH "QString::operator const char * () const" .SH "QString::operator const char * () const"
Returns ascii(). Be sure to see the warnings documented in the ascii() function. Note that for new code which you wish to be strictly Unicode-clean, you can define the macro \fCQT_NO_ASCII_CAST\fR when compiling your code to hide this function so that automatic casts are not done. This has the added advantage that you catch the programming error described in operator!(). Returns ascii(). Be sure to see the warnings documented in the ascii() function. Note that for new code which you wish to be strictly Unicode-clean, you can define the macro \fCTQT_NO_ASCII_CAST\fR when compiling your code to hide this function so that automatic casts are not done. This has the added advantage that you catch the programming error described in operator!().
.SH "QString::operator std::string () const" .SH "QString::operator std::string () const"
Returns ascii() as a std::string. Returns ascii() as a std::string.
.PP .PP
@ -1486,7 +1486,7 @@ Note that if you say
.br .br
.fi .fi
.PP .PP
It will call "operator const char*()", which is inefficent; you may wish to define the macro \fCQT_NO_ASCII_CAST\fR when writing code which you wish to remain Unicode-clean. It will call "operator const char*()", which is inefficent; you may wish to define the macro \fCTQT_NO_ASCII_CAST\fR when writing code which you wish to remain Unicode-clean.
.PP .PP
When you want the above semantics, use: When you want the above semantics, use:
.PP .PP

@ -280,7 +280,7 @@ functionality in TQt 2.x, the following steps are required:
Unicode information is being converted to ASCII (loosing Unicode information is being converted to ASCII (loosing
information if your user in not using Latin1). TQt has information if your user in not using Latin1). TQt has
a small number of calls to this - ignore those. As a stricter a small number of calls to this - ignore those. As a stricter
alternative, compile your code with QT_NO_ASCII_CAST defined, alternative, compile your code with TQT_NO_ASCII_CAST defined,
which hides the automatic conversion of QString to const char*, which hides the automatic conversion of QString to const char*,
so you can catch problems at compile time. so you can catch problems at compile time.
</p> </p>
@ -1002,7 +1002,7 @@ only work for Latin1 locales (eg. Western Europe, the U.S.). To ensure your cod
filenames in other locales, either use the TQt functions, or convert the filenames via filenames in other locales, either use the TQt functions, or convert the filenames via
\code QFile::encodeFilename()\endcode and \code QFile::decodeFilename()\endcode - but do it \code QFile::encodeFilename()\endcode and \code QFile::decodeFilename()\endcode - but do it
\e just as you call the system function - code that mixes encoded and unencoded filenames \e just as you call the system function - code that mixes encoded and unencoded filenames
is very error prone. See the comments in QString, such as regarding QT_NO_ASCII_CAST that is very error prone. See the comments in QString, such as regarding TQT_NO_ASCII_CAST that
can help find potential problems. can help find potential problems.

@ -51,7 +51,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -51,7 +51,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -47,7 +47,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -47,7 +47,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -43,7 +43,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -62,7 +62,7 @@
#include <netinet/in.h> #include <netinet/in.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -42,7 +42,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -47,7 +47,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -45,7 +45,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -45,7 +45,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -45,7 +45,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -48,7 +48,7 @@
extern "C" int res_init(); extern "C" int res_init();
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -50,7 +50,7 @@
extern "C" int res_init(); extern "C" int res_init();
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -51,7 +51,7 @@ extern "C" int res_init();
#define QT_NO_LIBRARY_UNLOAD #define QT_NO_LIBRARY_UNLOAD
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -42,7 +42,7 @@
extern "C" int res_init(); extern "C" int res_init();
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -48,7 +48,7 @@
extern "C" int res_init(); extern "C" int res_init();
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -50,7 +50,7 @@
extern "C" int res_init(); extern "C" int res_init();
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -50,7 +50,7 @@
extern "C" int res_init(); extern "C" int res_init();
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -50,7 +50,7 @@
extern "C" int res_init(); extern "C" int res_init();
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -60,7 +60,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -43,7 +43,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -43,7 +43,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -43,7 +43,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -43,7 +43,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -59,7 +59,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -59,7 +59,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -59,7 +59,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -59,7 +59,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -59,7 +59,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -59,7 +59,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -59,7 +59,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -59,7 +59,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -62,7 +62,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -59,7 +59,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -59,7 +59,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -44,7 +44,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -43,7 +43,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -7,7 +7,7 @@ MAKEFILE_GENERATOR = METROWERKS
TEMPLATE = app TEMPLATE = app
CONFIG += qt release warn_off separate_volume link_prl CONFIG += qt release warn_off separate_volume link_prl
DEFINES += QT_NO_STL __MACOSX__ __CF_USE_FRAMEWORK_INCLUDES__ DEFINES += TQT_NO_STL __MACOSX__ __CF_USE_FRAMEWORK_INCLUDES__
CODEWARRIOR_LINKER = Mach-O PPC Linker CODEWARRIOR_LINKER = Mach-O PPC Linker
QMAKE_EXTENSION_SHLIB = dylib QMAKE_EXTENSION_SHLIB = dylib

@ -38,7 +38,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -43,7 +43,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -43,7 +43,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -43,7 +43,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -43,7 +43,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -45,7 +45,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -39,7 +39,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -39,7 +39,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -44,7 +44,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -50,7 +50,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -44,7 +44,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -45,7 +45,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -47,7 +47,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -47,7 +47,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -39,7 +39,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -39,7 +39,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -44,7 +44,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -44,7 +44,7 @@
#include <resolv.h> #include <resolv.h>
#if !defined(QT_NO_COMPAT) #if !defined(TQT_NO_COMPAT)
#define QT_STATBUF struct stat #define QT_STATBUF struct stat
#define QT_STATBUF4TSTAT struct stat #define QT_STATBUF4TSTAT struct stat
#define QT_STAT ::stat #define QT_STAT ::stat

@ -35,7 +35,7 @@ DEPEND_SRC=project.cpp property.cpp meta.cpp main.cpp qtmd5.cpp generators/makef
CXXFLAGS= @QMAKE_CXXFLAGS@ \ CXXFLAGS= @QMAKE_CXXFLAGS@ \
-I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac \ -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac \
-I@BUILD_PATH@/include/qmake -I@BUILD_PATH@/include -I@SOURCE_PATH@/include \ -I@BUILD_PATH@/include/qmake -I@BUILD_PATH@/include -I@SOURCE_PATH@/include \
-DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL \ -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DTQT_NO_STL \
-DQT_NO_COMPRESS -I@QMAKESPEC@ -DHAVE_QCONFIG_CPP -DQT_NO_COMPRESS -I@QMAKESPEC@ -DHAVE_QCONFIG_CPP
LFLAGS=@QMAKE_LFLAGS@ LFLAGS=@QMAKE_LFLAGS@

@ -5,7 +5,7 @@ CXX = g++
CFLAGS = -c -o$@ -O \ CFLAGS = -c -o$@ -O \
-I. -Igenerators -Igenerators\unix -Igenerators\win32 -Igenerators\mac -I..\include -I..\src\tools \ -I. -Igenerators -Igenerators\unix -Igenerators\win32 -Igenerators\mac -I..\include -I..\src\tools \
-I..\mkspecs\win32-g++ \ -I..\mkspecs\win32-g++ \
-DUNICODE -DQT_NO_TEXTCODEC -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DUNICODE -DQT_NO_TEXTCODEC -DQT_LITE_COMPONENT -DQT_NODLL -DTQT_NO_STL -DQT_NO_COMPRESS
CXXFLAGS = $(CFLAGS) CXXFLAGS = $(CFLAGS)
LFLAGS = LFLAGS =
LIBS = -lole32 -luuid LIBS = -lole32 -luuid

@ -922,7 +922,7 @@ UnixMakefileGenerator::writeMakeParts(TQTextStream &t)
<< outdir << "allmoc.cpp: " << precomph << " " << outdir << "allmoc.cpp: " << precomph << " "
<< varList("HEADERS_ORIG") << "\n\t" << varList("HEADERS_ORIG") << "\n\t"
<< "echo '#include \"" << precomph << "\"' >" << outdir << "allmoc.cpp" << "\n\t" << "echo '#include \"" << precomph << "\"' >" << outdir << "allmoc.cpp" << "\n\t"
<< "$(CXX) -E -DQT_MOC_CPP -DQT_NO_STL $(CXXFLAGS) $(INCPATH) >" << outdir << "allmoc.h " << "$(CXX) -E -DQT_MOC_CPP -DTQT_NO_STL $(CXXFLAGS) $(INCPATH) >" << outdir << "allmoc.h "
<< outdir << "allmoc.cpp" << "\n\t" << outdir << "allmoc.cpp" << "\n\t"
<< "$(MOC) -o " << outdir << "allmoc.cpp " << outdir << "allmoc.h" << "\n\t" << "$(MOC) -o " << outdir << "allmoc.cpp " << outdir << "allmoc.h" << "\n\t"
<< "perl -pi -e 's{#include \"allmoc.h\"}{#define QT_H_CPP\\n#include \"" << "perl -pi -e 's{#include \"allmoc.h\"}{#define QT_H_CPP\\n#include \""

@ -24,7 +24,7 @@
#include "ntqtimer.h" #include "ntqtimer.h"
#include "ntqdict.h" #include "ntqdict.h"
#include "ntqcursor.h" #include "ntqcursor.h"
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
#include "ntqstyle.h" #include "ntqstyle.h"
#endif #endif
@ -2384,7 +2384,7 @@ void TQtMultiLineEdit::mouseReleaseEvent( TQMouseEvent *e )
#if defined(_WS_X11_) #if defined(_WS_X11_)
paste(); // Will repaint the cursor line. paste(); // Will repaint the cursor line.
#else #else
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
if ( style().styleHint(TQStyle::SH_GUIStyle) == TQt::MotifStyle ) if ( style().styleHint(TQStyle::SH_GUIStyle) == TQt::MotifStyle )
paste(); paste();
#endif #endif

@ -143,7 +143,7 @@ public:
virtual void setActive(bool yes); virtual void setActive(bool yes);
bool isActive() const bool isActive() const
{ return (bool)act; } { return (bool)act; }
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
bool visible() const bool visible() const
{ return (bool)vis; } { return (bool)vis; }
bool selected() const bool selected() const

@ -21,7 +21,7 @@
*****************************************************************************/ *****************************************************************************/
#ifndef TQARRAY_H #ifndef TQARRAY_H
#define TQARRAY_H #define TQARRAY_H
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
#include "ntqmemarray.h" #include "ntqmemarray.h"
#endif #endif
#endif #endif

@ -21,7 +21,7 @@
*****************************************************************************/ *****************************************************************************/
#ifndef TQCOLLECTION_H #ifndef TQCOLLECTION_H
#define TQCOLLECTION_H #define TQCOLLECTION_H
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
#include "ntqptrcollection.h" #include "ntqptrcollection.h"
#endif #endif
#endif #endif

@ -21,7 +21,7 @@
*****************************************************************************/ *****************************************************************************/
#ifndef TQLIST_H #ifndef TQLIST_H
#define TQLIST_H #define TQLIST_H
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
#include "ntqptrlist.h" #include "ntqptrlist.h"
#endif #endif
#endif #endif

@ -21,7 +21,7 @@
*****************************************************************************/ *****************************************************************************/
#ifndef TQQUEUE_H #ifndef TQQUEUE_H
#define TQQUEUE_H #define TQQUEUE_H
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
#include "ntqptrqueue.h" #include "ntqptrqueue.h"
#endif #endif
#endif #endif

@ -21,7 +21,7 @@
*****************************************************************************/ *****************************************************************************/
#ifndef TQSTACK_H #ifndef TQSTACK_H
#define TQSTACK_H #define TQSTACK_H
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
#include "ntqptrstack.h" #include "ntqptrstack.h"
#endif #endif
#endif #endif

@ -21,7 +21,7 @@
*****************************************************************************/ *****************************************************************************/
#ifndef TQVECTOR_H #ifndef TQVECTOR_H
#define TQVECTOR_H #define TQVECTOR_H
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
#include "ntqptrvector.h" #include "ntqptrvector.h"
#endif #endif
#endif #endif

@ -45,7 +45,7 @@
#include "ntqdialog.h" #include "ntqdialog.h"
#endif // QT_H #endif // QT_H
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
#ifndef QT_NO_SEMIMODAL #ifndef QT_NO_SEMIMODAL
class Q_EXPORT TQSemiModal : public TQDialog class Q_EXPORT TQSemiModal : public TQDialog
{ {

@ -46,7 +46,7 @@
*/ */
#ifndef QT_H #ifndef QT_H
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
#include "ntqlayout.h" #include "ntqlayout.h"
#endif #endif
#endif // QT_H #endif // QT_H

@ -174,7 +174,7 @@ public:
static void beep(); static void beep();
#ifndef QT_NO_TRANSLATION #ifndef TQT_NO_TRANSLATION
# ifndef QT_NO_TEXTCODEC # ifndef QT_NO_TEXTCODEC
void setDefaultCodec( TQTextCodec * ); void setDefaultCodec( TQTextCodec * );
TQTextCodec* defaultCodec() const; TQTextCodec* defaultCodec() const;
@ -539,7 +539,7 @@ inline TQSize TQApplication::globalStrut()
return app_strut; return app_strut;
} }
#ifdef QT_NO_TRANSLATION #ifdef TQT_NO_TRANSLATION
// Simple versions // Simple versions
inline TQString TQApplication::translate( const char *, const char *sourceText, inline TQString TQApplication::translate( const char *, const char *sourceText,
const char *, Encoding encoding ) const const char *, Encoding encoding ) const

@ -216,7 +216,7 @@ private:
#endif #endif
}; };
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
typedef TQUriDrag TQUrlDrag; typedef TQUriDrag TQUrlDrag;
#endif #endif

@ -301,12 +301,12 @@ public:
TQString lastResortFamily() const; TQString lastResortFamily() const;
TQString lastResortFont() const; TQString lastResortFont() const;
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
static TQFont defaultFont(); static TQFont defaultFont();
static void setDefaultFont( const TQFont & ); static void setDefaultFont( const TQFont & );
#endif // QT_NO_COMPAT #endif // TQT_NO_COMPAT
TQFont resolve( const TQFont & ) const; TQFont resolve( const TQFont & ) const;

@ -97,7 +97,7 @@ public:
#endif #endif
// For source compatibility with < 3.0 // For source compatibility with < 3.0
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
TQStringList families(bool) const; TQStringList families(bool) const;
TQStringList styles( const TQString &, const TQString & ) const; TQStringList styles( const TQString &, const TQString & ) const;
@ -115,7 +115,7 @@ public:
bool bold( const TQString &, const TQString &, const TQString & ) const; bool bold( const TQString &, const TQString &, const TQString & ) const;
int weight( const TQString &, const TQString &, const TQString & ) const; int weight( const TQString &, const TQString &, const TQString & ) const;
#endif // QT_NO_COMPAT #endif // TQT_NO_COMPAT
private: private:
#if defined(Q_WS_X11) || defined(Q_WS_WIN) #if defined(Q_WS_X11) || defined(Q_WS_WIN)
@ -136,7 +136,7 @@ private:
}; };
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
inline TQStringList TQFontDatabase::families( bool ) const inline TQStringList TQFontDatabase::families( bool ) const
{ {
@ -220,7 +220,7 @@ inline int TQFontDatabase::weight( const TQString &family,
return weight(family, style); return weight(family, style);
} }
#endif // QT_NO_COMPAT #endif // TQT_NO_COMPAT
#endif // QT_NO_FONTDATABASE #endif // QT_NO_FONTDATABASE

@ -79,7 +79,7 @@ public:
int width( const TQString &, int len = -1 ) const; int width( const TQString &, int len = -1 ) const;
int width( TQChar ) const; int width( TQChar ) const;
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
int width( char c ) const { return width( (TQChar) c ); } int width( char c ) const { return width( (TQChar) c ); }
#endif #endif

@ -250,7 +250,7 @@ public:
WStyle_Splash = WStyle_NoBorder | WMacNoSheet | WStyle_Tool | WWinOwnDC, WStyle_Splash = WStyle_NoBorder | WMacNoSheet | WStyle_Tool | WWinOwnDC,
#endif #endif
WNoAutoErase = WRepaintNoErase | WResizeNoErase WNoAutoErase = WRepaintNoErase | WResizeNoErase
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
, ,
WNorthWestGravity = WStaticContents, WNorthWestGravity = WStaticContents,
WType_Modal = WType_Dialog | WShowModal, WType_Modal = WType_Dialog | WShowModal,
@ -303,7 +303,7 @@ public:
OpaqueMode OpaqueMode
}; };
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
// documented in qpainter.cpp // documented in qpainter.cpp
enum PaintUnit { // paint unit enum PaintUnit { // paint unit
PixelUnit, PixelUnit,
@ -316,10 +316,10 @@ public:
#endif #endif
// documented in qstyle.cpp // documented in qstyle.cpp
#ifdef QT_NO_COMPAT #ifdef TQT_NO_COMPAT
enum GUIStyle { enum GUIStyle {
WindowsStyle = 1, // ### TQt 4.0: either remove the obsolete enums or clean up compat vs. WindowsStyle = 1, // ### TQt 4.0: either remove the obsolete enums or clean up compat vs.
MotifStyle = 4, // ### QT_NO_COMPAT by reordering or combination into one enum. MotifStyle = 4, // ### TQT_NO_COMPAT by reordering or combination into one enum.
GtkStyle = 6 // Gtk compability mode GtkStyle = 6 // Gtk compability mode
}; };
#else #else
@ -933,7 +933,7 @@ public:
DockRight, DockRight,
DockLeft, DockLeft,
DockMinimized DockMinimized
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
, ,
Unmanaged = DockUnmanaged, Unmanaged = DockUnmanaged,
TornOff = DockTornOff, TornOff = DockTornOff,

@ -150,12 +150,12 @@ public:
virtual bool setProperty( const char *name, const TQVariant& value ); virtual bool setProperty( const char *name, const TQVariant& value );
virtual TQVariant property( const char *name ) const; virtual TQVariant property( const char *name ) const;
#endif // QT_NO_PROPERTIES #endif // QT_NO_PROPERTIES
#ifdef QT_NO_TRANSLATION #ifdef TQT_NO_TRANSLATION
static TQString tr( const char *sourceText, const char * = 0); static TQString tr( const char *sourceText, const char * = 0);
#ifndef QT_NO_TEXTCODEC #ifndef QT_NO_TEXTCODEC
static TQString trUtf8( const char *sourceText, const char * = 0); static TQString trUtf8( const char *sourceText, const char * = 0);
#endif #endif
#endif //QT_NO_TRANSLATION #endif //TQT_NO_TRANSLATION
#ifndef QT_NO_USERDATA #ifndef QT_NO_USERDATA
static uint registerUserData(); static uint registerUserData();
@ -272,7 +272,7 @@ inline bool TQObject::disconnect( const TQObject *receiver, const char *member )
} }
#ifdef QT_NO_TRANSLATION #ifdef TQT_NO_TRANSLATION
inline TQString TQObject::tr( const char *sourceText, const char * ) { inline TQString TQObject::tr( const char *sourceText, const char * ) {
return TQString::fromLatin1( sourceText ); return TQString::fromLatin1( sourceText );
} }
@ -281,7 +281,7 @@ inline TQString TQObject::trUtf8( const char *sourceText, const char * ) {
return TQString::fromUtf8( sourceText ); return TQString::fromUtf8( sourceText );
} }
#endif #endif
#endif //QT_NO_TRANSLATION #endif //TQT_NO_TRANSLATION
#define Q_DEFINED_QOBJECT #define Q_DEFINED_QOBJECT

@ -46,7 +46,7 @@
#endif // QT_H #endif // QT_H
#ifndef QT_NO_TRANSLATION #ifndef TQT_NO_TRANSLATION
# ifndef QT_NO_TEXTCODEC # ifndef QT_NO_TEXTCODEC
// full set of tr functions // full set of tr functions
# define TQT_TR_FUNCTIONS \ # define TQT_TR_FUNCTIONS \

@ -137,14 +137,14 @@ public:
const TQColorGroup &active() const { return data->active; } const TQColorGroup &active() const { return data->active; }
const TQColorGroup &disabled() const { return data->disabled; } const TQColorGroup &disabled() const { return data->disabled; }
const TQColorGroup &inactive() const { return data->inactive; } const TQColorGroup &inactive() const { return data->inactive; }
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
const TQColorGroup &normal() const { return active(); } const TQColorGroup &normal() const { return active(); }
#endif #endif
void setActive( const TQColorGroup & ); void setActive( const TQColorGroup & );
void setDisabled( const TQColorGroup & ); void setDisabled( const TQColorGroup & );
void setInactive( const TQColorGroup & ); void setInactive( const TQColorGroup & );
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
void setNormal( const TQColorGroup & cg ) { setActive(cg); } void setNormal( const TQColorGroup & cg ) { setActive(cg); }
#endif #endif

@ -60,7 +60,7 @@ public:
void activate(); void activate();
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
bool isBlocked() const { return TQObject::signalsBlocked(); } bool isBlocked() const { return TQObject::signalsBlocked(); }
void block( bool b ) { TQObject::blockSignals( b ); } void block( bool b ) { TQObject::blockSignals( b ); }
#ifndef QT_NO_VARIANT #ifndef QT_NO_VARIANT

@ -64,7 +64,7 @@ public:
enum ExpandData { NoDirection = 0, enum ExpandData { NoDirection = 0,
Horizontally = 1, Horizontally = 1,
Vertically = 2, Vertically = 2,
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
Horizontal = Horizontally, Horizontal = Horizontally,
Vertical = Vertically, Vertical = Vertically,
#endif #endif

@ -66,7 +66,7 @@ public:
? ?
*/ */
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
static bool available() { return isAvailable(); } static bool available() { return isAvailable(); }
#endif #endif

@ -1199,7 +1199,7 @@ public:
// Old 2.x TQStyle API // Old 2.x TQStyle API
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
int defaultFrameWidth() const; int defaultFrameWidth() const;
void tabbarMetrics( const TQWidget* t, int& hf, int& vf, int& ov ) const; void tabbarMetrics( const TQWidget* t, int& hf, int& vf, int& ov ) const;
TQSize scrollBarExtent() const; TQSize scrollBarExtent() const;

@ -45,11 +45,11 @@
#ifndef QT_H #ifndef QT_H
#include "ntqwindowdefs.h" #include "ntqwindowdefs.h"
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
#include "ntqmutex.h" #include "ntqmutex.h"
#include "ntqsemaphore.h" #include "ntqsemaphore.h"
#include "ntqwaitcondition.h" #include "ntqwaitcondition.h"
#endif // QT_NO_COMPAT #endif // TQT_NO_COMPAT
#endif // QT_H #endif // QT_H
#include <limits.h> #include <limits.h>
@ -61,7 +61,7 @@ class Q_EXPORT TQThread : public TQt
public: public:
static TQt::HANDLE currentThread(); static TQt::HANDLE currentThread();
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
static void postEvent( TQObject *,TQEvent * ); static void postEvent( TQObject *,TQEvent * );
#endif #endif

@ -47,7 +47,7 @@
#include "ntqvaluelist.h" #include "ntqvaluelist.h"
#endif // QT_H #endif // QT_H
#ifndef QT_NO_TRANSLATION #ifndef TQT_NO_TRANSLATION
class TQTranslatorPrivate; class TQTranslatorPrivate;
@ -109,7 +109,7 @@ public:
TQTranslator( TQObject * parent = 0, const char * name = 0 ); TQTranslator( TQObject * parent = 0, const char * name = 0 );
~TQTranslator(); ~TQTranslator();
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
TQString find( const char *context, const char *sourceText, const char * comment = 0 ) const { TQString find( const char *context, const char *sourceText, const char * comment = 0 ) const {
return findMessage( context, sourceText, comment ).translation(); return findMessage( context, sourceText, comment ).translation();
} }
@ -128,7 +128,7 @@ public:
void clear(); void clear();
#ifndef QT_NO_TRANSLATION_BUILDER #ifndef TQT_NO_TRANSLATION_BUILDER
enum SaveMode { Everything, Stripped }; enum SaveMode { Everything, Stripped };
bool save( const TQString & filename, SaveMode mode = Everything ); bool save( const TQString & filename, SaveMode mode = Everything );
@ -162,6 +162,6 @@ private:
TQTranslatorPrivate * d; TQTranslatorPrivate * d;
}; };
#endif // QT_NO_TRANSLATION #endif // TQT_NO_TRANSLATION
#endif #endif

@ -356,7 +356,7 @@ public slots:
virtual void hide(); virtual void hide();
void setShown( bool show ); void setShown( bool show );
void setHidden( bool hide ); void setHidden( bool hide );
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
void iconify() { showMinimized(); } void iconify() { showMinimized(); }
#endif #endif
virtual void showMinimized(); virtual void showMinimized();
@ -414,7 +414,7 @@ public:
bool showIt=FALSE ); bool showIt=FALSE );
void reparent( TQWidget *parent, const TQPoint &, void reparent( TQWidget *parent, const TQPoint &,
bool showIt=FALSE ); bool showIt=FALSE );
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
void recreate( TQWidget *parent, WFlags f, const TQPoint & p, void recreate( TQWidget *parent, WFlags f, const TQPoint & p,
bool showIt=FALSE ) { reparent(parent,f,p,showIt); } bool showIt=FALSE ) { reparent(parent,f,p,showIt); }
#endif #endif

@ -1210,7 +1210,7 @@ TQApplication::~TQApplication()
delete app_cursor; delete app_cursor;
app_cursor = 0; app_cursor = 0;
#endif #endif
#ifndef QT_NO_TRANSLATION #ifndef TQT_NO_TRANSLATION
delete translators; delete translators;
#endif #endif
@ -3161,7 +3161,7 @@ TQt::WindowsVersion TQApplication::winVersion()
} }
#endif #endif
#ifndef QT_NO_TRANSLATION #ifndef TQT_NO_TRANSLATION
bool qt_detectRTLLanguage() bool qt_detectRTLLanguage()
{ {
@ -3192,7 +3192,7 @@ void TQApplication::installTranslator( TQTranslator * mf )
translators->prepend( mf ); translators->prepend( mf );
#ifndef QT_NO_TRANSLATION_BUILDER #ifndef TQT_NO_TRANSLATION_BUILDER
if ( mf->isEmpty() ) if ( mf->isEmpty() )
return; return;
#endif #endif

@ -1343,7 +1343,7 @@ TQFont TQFont::resolve( const TQFont &other ) const
return font; return font;
} }
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
/*! \obsolete /*! \obsolete

@ -1399,7 +1399,7 @@ void TQGridLayout::setColStretch( int col, int stretch )
} }
#if TQT_VERSION >= 0x040000 #if TQT_VERSION >= 0x040000
#error "Make add{Row,Col}Spacing() inline QT_NO_COMPAT functions defined in terms of set{Row,Col}Spacing()" #error "Make add{Row,Col}Spacing() inline TQT_NO_COMPAT functions defined in terms of set{Row,Col}Spacing()"
#endif #endif
/*! /*!

@ -241,7 +241,7 @@ TQVariant TQSignal::value() const
\internal \internal
*/ */
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
/*! \obsolete */ /*! \obsolete */
void TQSignal::setParameter( int value ) void TQSignal::setParameter( int value )
{ {

@ -2806,7 +2806,7 @@ TQPixmap TQStyle::stylePixmap(StylePixmap sp, const TQWidget *w, const TQStyleOp
\obsolete \obsolete
*/ */
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
int TQStyle::defaultFrameWidth() const int TQStyle::defaultFrameWidth() const
{ {
TQStyleControlElementData ceData; TQStyleControlElementData ceData;

@ -16,7 +16,7 @@
#if defined __cplusplus #if defined __cplusplus
# if defined(__GNUC__) # if defined(__GNUC__)
# ifndef QT_NO_STL # ifndef TQT_NO_STL
# include <ios> # include <ios>
# undef _GLIBCPP_FULLY_COMPLIANT_HEADERS // Makes qlocale.cpp compile # undef _GLIBCPP_FULLY_COMPLIANT_HEADERS // Makes qlocale.cpp compile
# endif # endif
@ -44,7 +44,7 @@
#include <limits.h> #include <limits.h>
#include <stdlib.h> #include <stdlib.h>
#if defined(__GNUC__) #if defined(__GNUC__)
# ifndef QT_NO_STL # ifndef TQT_NO_STL
# define _GLIBCPP_FULLY_COMPLIANT_HEADERS # define _GLIBCPP_FULLY_COMPLIANT_HEADERS
# endif # endif
#endif #endif

@ -256,7 +256,7 @@ bool TQThread::threadPostedEventsDisabled() const
\sa wait() \sa wait()
*/ */
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
/*! \obsolete /*! \obsolete
Use TQApplication::postEvent() instead. Use TQApplication::postEvent() instead.
*/ */

@ -54,7 +54,7 @@ static inline int qt_open(const char *pathname, int flags, mode_t mode)
#include "ntqtranslator.h" #include "ntqtranslator.h"
#ifndef QT_NO_TRANSLATION #ifndef TQT_NO_TRANSLATION
#include "ntqfileinfo.h" #include "ntqfileinfo.h"
#include "ntqwidgetlist.h" #include "ntqwidgetlist.h"
@ -192,7 +192,7 @@ public:
TQTranslatorPrivate() : TQTranslatorPrivate() :
unmapPointer( 0 ), unmapLength( 0 ), unmapPointer( 0 ), unmapLength( 0 ),
messageArray( 0 ), offsetArray( 0 ), contextArray( 0 ) messageArray( 0 ), offsetArray( 0 ), contextArray( 0 )
#ifndef QT_NO_TRANSLATION_BUILDER #ifndef TQT_NO_TRANSLATION_BUILDER
, messages( 0 ) , messages( 0 )
#endif #endif
{ } { }
@ -207,7 +207,7 @@ public:
TQByteArray * offsetArray; TQByteArray * offsetArray;
TQByteArray * contextArray; TQByteArray * contextArray;
#ifndef QT_NO_TRANSLATION_BUILDER #ifndef TQT_NO_TRANSLATION_BUILDER
TQMap<TQTranslatorMessage, void *> * messages; TQMap<TQTranslatorMessage, void *> * messages;
#endif #endif
#ifdef Q_WS_WIN #ifdef Q_WS_WIN
@ -602,7 +602,7 @@ bool TQTranslator::do_load( const uchar *data, int len )
return ok; return ok;
} }
#ifndef QT_NO_TRANSLATION_BUILDER #ifndef TQT_NO_TRANSLATION_BUILDER
/*! /*!
Saves this message file to \a filename, overwriting the previous Saves this message file to \a filename, overwriting the previous
@ -685,7 +685,7 @@ void TQTranslator::clear()
delete d->contextArray; delete d->contextArray;
d->contextArray = 0; d->contextArray = 0;
} }
#ifndef QT_NO_TRANSLATION_BUILDER #ifndef TQT_NO_TRANSLATION_BUILDER
delete d->messages; delete d->messages;
d->messages = 0; d->messages = 0;
#endif #endif
@ -705,7 +705,7 @@ void TQTranslator::clear()
} }
} }
#ifndef QT_NO_TRANSLATION_BUILDER #ifndef TQT_NO_TRANSLATION_BUILDER
/*! /*!
Converts this message file to the compact format used to store Converts this message file to the compact format used to store
@ -973,7 +973,7 @@ TQTranslatorMessage TQTranslator::findMessage( const char* context,
if ( comment == 0 ) if ( comment == 0 )
comment = ""; comment = "";
#ifndef QT_NO_TRANSLATION_BUILDER #ifndef TQT_NO_TRANSLATION_BUILDER
if ( d->messages ) { if ( d->messages ) {
TQMap<TQTranslatorMessage, void *>::ConstIterator it; TQMap<TQTranslatorMessage, void *>::ConstIterator it;
@ -1078,14 +1078,14 @@ bool TQTranslator::isEmpty() const
{ {
return !( d->unmapPointer || d->unmapLength || d->messageArray || return !( d->unmapPointer || d->unmapLength || d->messageArray ||
d->offsetArray || d->contextArray d->offsetArray || d->contextArray
#ifndef QT_NO_TRANSLATION_BUILDER #ifndef TQT_NO_TRANSLATION_BUILDER
|| (d->messages && d->messages->count()) || (d->messages && d->messages->count())
#endif #endif
); );
} }
#ifndef QT_NO_TRANSLATION_BUILDER #ifndef TQT_NO_TRANSLATION_BUILDER
/*! /*!
Returns a list of the messages in the translator. This function is Returns a list of the messages in the translator. This function is
@ -1475,4 +1475,4 @@ bool TQTranslatorMessage::operator<( const TQTranslatorMessage& m ) const
otherwise returns FALSE. otherwise returns FALSE.
*/ */
#endif // QT_NO_TRANSLATION #endif // TQT_NO_TRANSLATION

@ -3,7 +3,7 @@ TARGET = tqmoc
CONFIG = console release qtinc yacc lex_included yacc_no_name_mangle CONFIG = console release qtinc yacc lex_included yacc_no_name_mangle
DEFINES += QT_MOC QT_NO_CODECS QT_LITE_UNICODE QT_NO_COMPONENT \ DEFINES += QT_MOC QT_NO_CODECS QT_LITE_UNICODE QT_NO_COMPONENT \
QT_NO_STL QT_NO_COMPRESS TQT_NO_STL QT_NO_COMPRESS
win32:DEFINES += QT_NODLL win32:DEFINES += QT_NODLL
DESTDIR = ../../bin DESTDIR = ../../bin

@ -2879,15 +2879,15 @@ void generateClass() // generate C++ source code for a class
if ( !g->noInclude ) { if ( !g->noInclude ) {
/* /*
The header file might be a TQt header file with The header file might be a TQt header file with
QT_NO_COMPAT macros around signals, slots or TQT_NO_COMPAT macros around signals, slots or
properties. Without the #undef, we cannot compile the properties. Without the #undef, we cannot compile the
TQt library with QT_NO_COMPAT defined. TQt library with TQT_NO_COMPAT defined.
Header files of libraries build around TQt can also use Header files of libraries build around TQt can also use
QT_NO_COMPAT, so this #undef might be beneficial to TQT_NO_COMPAT, so this #undef might be beneficial to
users of TQt, and not only to developers of TQt. users of TQt, and not only to developers of TQt.
*/ */
fprintf( out, "#undef QT_NO_COMPAT\n" ); fprintf( out, "#undef TQT_NO_COMPAT\n" );
if ( !g->pchFile.isEmpty() ) if ( !g->pchFile.isEmpty() )
fprintf( out, "#include \"%s\" // PCH include\n", (const char*)g->pchFile ); fprintf( out, "#include \"%s\" // PCH include\n", (const char*)g->pchFile );
@ -2959,7 +2959,7 @@ void generateClass() // generate C++ source code for a class
// //
// Generate tr and trUtf8 member functions // Generate tr and trUtf8 member functions
// //
fprintf( out, "#ifndef QT_NO_TRANSLATION\n" ); fprintf( out, "#ifndef TQT_NO_TRANSLATION\n" );
fprintf( out, "TQString %s::tr( const char *s, const char *c )\n{\n", fprintf( out, "TQString %s::tr( const char *s, const char *c )\n{\n",
(const char*)qualifiedClassName() ); (const char*)qualifiedClassName() );
fprintf( out, " if ( tqApp )\n" ); fprintf( out, " if ( tqApp )\n" );
@ -2969,7 +2969,7 @@ void generateClass() // generate C++ source code for a class
fprintf( out, " else\n" ); fprintf( out, " else\n" );
fprintf( out, "\treturn TQString::fromLatin1( s );\n"); fprintf( out, "\treturn TQString::fromLatin1( s );\n");
fprintf( out, "}\n" ); fprintf( out, "}\n" );
fprintf( out, "#ifndef QT_NO_TRANSLATION_UTF8\n" ); fprintf( out, "#ifndef TQT_NO_TRANSLATION_UTF8\n" );
fprintf( out, "TQString %s::trUtf8( const char *s, const char *c )\n{\n", fprintf( out, "TQString %s::trUtf8( const char *s, const char *c )\n{\n",
(const char*)qualifiedClassName() ); (const char*)qualifiedClassName() );
fprintf( out, " if ( tqApp )\n" ); fprintf( out, " if ( tqApp )\n" );
@ -2979,8 +2979,8 @@ void generateClass() // generate C++ source code for a class
fprintf( out, " else\n" ); fprintf( out, " else\n" );
fprintf( out, "\treturn TQString::fromUtf8( s );\n" ); fprintf( out, "\treturn TQString::fromUtf8( s );\n" );
fprintf( out, "}\n" ); fprintf( out, "}\n" );
fprintf( out, "#endif // QT_NO_TRANSLATION_UTF8\n\n" ); fprintf( out, "#endif // TQT_NO_TRANSLATION_UTF8\n\n" );
fprintf( out, "#endif // QT_NO_TRANSLATION\n\n" ); fprintf( out, "#endif // TQT_NO_TRANSLATION\n\n" );
// //
// Generate staticMetaObject member function // Generate staticMetaObject member function

@ -5754,15 +5754,15 @@ void generateClass() // generate C++ source code for a class
if ( !g->noInclude ) { if ( !g->noInclude ) {
/* /*
The header file might be a TQt header file with The header file might be a TQt header file with
QT_NO_COMPAT macros around signals, slots or TQT_NO_COMPAT macros around signals, slots or
properties. Without the #undef, we cannot compile the properties. Without the #undef, we cannot compile the
TQt library with QT_NO_COMPAT defined. TQt library with TQT_NO_COMPAT defined.
Header files of libraries build around TQt can also use Header files of libraries build around TQt can also use
QT_NO_COMPAT, so this #undef might be beneficial to TQT_NO_COMPAT, so this #undef might be beneficial to
users of TQt, and not only to developers of TQt. users of TQt, and not only to developers of TQt.
*/ */
fprintf( out, "#undef QT_NO_COMPAT\n" ); fprintf( out, "#undef TQT_NO_COMPAT\n" );
if ( !g->pchFile.isEmpty() ) if ( !g->pchFile.isEmpty() )
fprintf( out, "#include \"%s\" // PCH include\n", (const char*)g->pchFile ); fprintf( out, "#include \"%s\" // PCH include\n", (const char*)g->pchFile );
@ -5834,7 +5834,7 @@ void generateClass() // generate C++ source code for a class
// //
// Generate tr and trUtf8 member functions // Generate tr and trUtf8 member functions
// //
fprintf( out, "#ifndef QT_NO_TRANSLATION\n" ); fprintf( out, "#ifndef TQT_NO_TRANSLATION\n" );
fprintf( out, "TQString %s::tr( const char *s, const char *c )\n{\n", fprintf( out, "TQString %s::tr( const char *s, const char *c )\n{\n",
(const char*)qualifiedClassName() ); (const char*)qualifiedClassName() );
fprintf( out, " if ( tqApp )\n" ); fprintf( out, " if ( tqApp )\n" );
@ -5844,7 +5844,7 @@ void generateClass() // generate C++ source code for a class
fprintf( out, " else\n" ); fprintf( out, " else\n" );
fprintf( out, "\treturn TQString::fromLatin1( s );\n"); fprintf( out, "\treturn TQString::fromLatin1( s );\n");
fprintf( out, "}\n" ); fprintf( out, "}\n" );
fprintf( out, "#ifndef QT_NO_TRANSLATION_UTF8\n" ); fprintf( out, "#ifndef TQT_NO_TRANSLATION_UTF8\n" );
fprintf( out, "TQString %s::trUtf8( const char *s, const char *c )\n{\n", fprintf( out, "TQString %s::trUtf8( const char *s, const char *c )\n{\n",
(const char*)qualifiedClassName() ); (const char*)qualifiedClassName() );
fprintf( out, " if ( tqApp )\n" ); fprintf( out, " if ( tqApp )\n" );
@ -5854,8 +5854,8 @@ void generateClass() // generate C++ source code for a class
fprintf( out, " else\n" ); fprintf( out, " else\n" );
fprintf( out, "\treturn TQString::fromUtf8( s );\n" ); fprintf( out, "\treturn TQString::fromUtf8( s );\n" );
fprintf( out, "}\n" ); fprintf( out, "}\n" );
fprintf( out, "#endif // QT_NO_TRANSLATION_UTF8\n\n" ); fprintf( out, "#endif // TQT_NO_TRANSLATION_UTF8\n\n" );
fprintf( out, "#endif // QT_NO_TRANSLATION\n\n" ); fprintf( out, "#endif // TQT_NO_TRANSLATION\n\n" );
// //
// Generate staticMetaObject member function // Generate staticMetaObject member function

@ -52,7 +52,7 @@
#define TQM_EXPORT_OPENGL Q_EXPORT #define TQM_EXPORT_OPENGL Q_EXPORT
#endif #endif
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
#define TQGL_VERSION 450 #define TQGL_VERSION 450
#define TQGL_VERSION_STR "4.5" #define TQGL_VERSION_STR "4.5"
TQM_EXPORT_OPENGL inline const char *qGLVersion() { TQM_EXPORT_OPENGL inline const char *qGLVersion() {

@ -71,7 +71,7 @@ public:
int weekNumber( int *yearNum = 0 ) const; int weekNumber( int *yearNum = 0 ) const;
#ifndef QT_NO_TEXTDATE #ifndef QT_NO_TEXTDATE
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
static TQString monthName( int month ) { return shortMonthName( month ); } static TQString monthName( int month ) { return shortMonthName( month ); }
static TQString dayName( int weekday ) { return shortDayName( weekday ); } static TQString dayName( int weekday ) { return shortDayName( weekday ); }
#endif #endif

@ -141,7 +141,7 @@
//#define QT_NO_SOUND //#define QT_NO_SOUND
// Standard template library compatiblity // Standard template library compatiblity
//#define QT_NO_STL //#define TQT_NO_STL
// TQStringList // TQStringList
//#define QT_NO_STRINGLIST //#define QT_NO_STRINGLIST
@ -328,8 +328,8 @@
#endif #endif
// Translations via TQObject::tr() // Translations via TQObject::tr()
#if !defined(QT_NO_TRANSLATION) && (defined(QT_NO_DATASTREAM)) #if !defined(TQT_NO_TRANSLATION) && (defined(QT_NO_DATASTREAM))
#define QT_NO_TRANSLATION #define TQT_NO_TRANSLATION
#endif #endif
// Window icon and caption // Window icon and caption
@ -428,8 +428,8 @@
#endif #endif
// Translations via TQObject::trUtf8() // Translations via TQObject::trUtf8()
#if !defined(QT_NO_TRANSLATION_UTF8) && (defined(QT_NO_TRANSLATION) || defined(QT_NO_TEXTCODEC)) #if !defined(TQT_NO_TRANSLATION_UTF8) && (defined(TQT_NO_TRANSLATION) || defined(QT_NO_TEXTCODEC))
#define QT_NO_TRANSLATION_UTF8 #define TQT_NO_TRANSLATION_UTF8
#endif #endif
// URL parser // URL parser

@ -949,7 +949,7 @@ Q_EXPORT int qWinVersion();
#if !defined(QT_NO_DEBUG) && !defined(QT_DEBUG) #if !defined(QT_NO_DEBUG) && !defined(QT_DEBUG)
# define QT_DEBUG // display debug messages # define QT_DEBUG // display debug messages
# if !defined(QT_NO_COMPAT) // compatibility with TQt 2 # if !defined(TQT_NO_COMPAT) // compatibility with TQt 2
# if !defined(NO_DEBUG) && !defined(DEBUG) # if !defined(NO_DEBUG) && !defined(DEBUG)
# if !defined(Q_OS_MACX) // clash with MacOS X headers # if !defined(Q_OS_MACX) // clash with MacOS X headers
# define DEBUG # define DEBUG
@ -992,13 +992,13 @@ Q_EXPORT void tqSystemWarning( const char *, int code = -1 );
# endif # endif
#endif #endif
#if !defined(QT_NO_COMPAT) // compatibility with TQt 2 #if !defined(TQT_NO_COMPAT) // compatibility with TQt 2
# if !defined(ASSERT) # if !defined(ASSERT)
# if !defined(Q_OS_TEMP) # if !defined(Q_OS_TEMP)
# define ASSERT(x) Q_ASSERT(x) # define ASSERT(x) Q_ASSERT(x)
# endif # endif
# endif # endif
#endif // QT_NO_COMPAT #endif // TQT_NO_COMPAT
Q_EXPORT bool tqt_check_pointer( bool c, const char *, int ); Q_EXPORT bool tqt_check_pointer( bool c, const char *, int );
@ -1009,20 +1009,20 @@ Q_EXPORT bool tqt_check_pointer( bool c, const char *, int );
# define TQ_CHECK_PTR(p) # define TQ_CHECK_PTR(p)
#endif #endif
#if !defined(QT_NO_COMPAT) // compatibility with TQt 2 #if !defined(TQT_NO_COMPAT) // compatibility with TQt 2
# if !defined(CHECK_PTR) # if !defined(CHECK_PTR)
# define CHECK_PTR(x) TQ_CHECK_PTR(x) # define CHECK_PTR(x) TQ_CHECK_PTR(x)
# endif # endif
#endif // QT_NO_COMPAT #endif // TQT_NO_COMPAT
enum TQtMsgType { TQtDebugMsg, TQtWarningMsg, TQtFatalMsg }; enum TQtMsgType { TQtDebugMsg, TQtWarningMsg, TQtFatalMsg };
typedef void (*TQtMsgHandler)(TQtMsgType, const char *); typedef void (*TQtMsgHandler)(TQtMsgType, const char *);
Q_EXPORT TQtMsgHandler qInstallMsgHandler( TQtMsgHandler ); Q_EXPORT TQtMsgHandler qInstallMsgHandler( TQtMsgHandler );
#if !defined(QT_NO_COMPAT) // compatibility with TQt 2 #if !defined(TQT_NO_COMPAT) // compatibility with TQt 2
typedef TQtMsgHandler msg_handler; typedef TQtMsgHandler msg_handler;
#endif // QT_NO_COMPAT #endif // TQT_NO_COMPAT
Q_EXPORT void tqSuppressObsoleteWarnings( bool = TRUE ); Q_EXPORT void tqSuppressObsoleteWarnings( bool = TRUE );

@ -49,7 +49,7 @@
#include "ntqvaluelist.h" #include "ntqvaluelist.h"
#endif // QT_H #endif // QT_H
#ifndef QT_NO_STL #ifndef TQT_NO_STL
#include <iterator> #include <iterator>
#include <map> #include <map>
#include <cstddef> #include <cstddef>
@ -103,11 +103,11 @@ class TQMapIterator
* Typedefs * Typedefs
*/ */
typedef TQMapNode< K, T >* NodePtr; typedef TQMapNode< K, T >* NodePtr;
#ifndef QT_NO_STL #ifndef TQT_NO_STL
typedef std::bidirectional_iterator_tag iterator_category; typedef std::bidirectional_iterator_tag iterator_category;
#endif #endif
typedef T value_type; typedef T value_type;
#ifndef QT_NO_STL #ifndef TQT_NO_STL
typedef ptrdiff_t difference_type; typedef ptrdiff_t difference_type;
#else #else
typedef int difference_type; typedef int difference_type;
@ -219,11 +219,11 @@ class TQMapConstIterator
* Typedefs * Typedefs
*/ */
typedef TQMapNode< K, T >* NodePtr; typedef TQMapNode< K, T >* NodePtr;
#ifndef QT_NO_STL #ifndef TQT_NO_STL
typedef std::bidirectional_iterator_tag iterator_category; typedef std::bidirectional_iterator_tag iterator_category;
#endif #endif
typedef T value_type; typedef T value_type;
#ifndef QT_NO_STL #ifndef TQT_NO_STL
typedef ptrdiff_t difference_type; typedef ptrdiff_t difference_type;
#else #else
typedef int difference_type; typedef int difference_type;
@ -604,7 +604,7 @@ public:
typedef const value_type* const_pointer; typedef const value_type* const_pointer;
typedef value_type& reference; typedef value_type& reference;
typedef const value_type& const_reference; typedef const value_type& const_reference;
#ifndef QT_NO_STL #ifndef TQT_NO_STL
typedef ptrdiff_t difference_type; typedef ptrdiff_t difference_type;
#else #else
typedef int difference_type; typedef int difference_type;
@ -631,7 +631,7 @@ public:
sh = m.sh; sh->ref(); sh = m.sh; sh->ref();
} }
#ifndef QT_NO_STL #ifndef TQT_NO_STL
TQMap( const std::map<Key,T>& m ) TQMap( const std::map<Key,T>& m )
{ {
sh = new TQMapPrivate<Key,T>; sh = new TQMapPrivate<Key,T>;
@ -652,7 +652,7 @@ public:
} }
} }
TQMap<Key,T>& operator= ( const TQMap<Key,T>& m ); TQMap<Key,T>& operator= ( const TQMap<Key,T>& m );
#ifndef QT_NO_STL #ifndef TQT_NO_STL
TQMap<Key,T>& operator= ( const std::map<Key,T>& m ) TQMap<Key,T>& operator= ( const std::map<Key,T>& m )
{ {
clear(); clear();
@ -735,7 +735,7 @@ public:
#if defined(Q_FULL_TEMPLATE_INSTANTIATION) #if defined(Q_FULL_TEMPLATE_INSTANTIATION)
bool operator==( const TQMap<Key,T>& ) const { return FALSE; } bool operator==( const TQMap<Key,T>& ) const { return FALSE; }
#ifndef QT_NO_STL #ifndef TQT_NO_STL
bool operator==( const std::map<Key,T>& ) const { return FALSE; } bool operator==( const std::map<Key,T>& ) const { return FALSE; }
#endif #endif
#endif #endif

@ -112,7 +112,7 @@ public:
ConstIterator end() const { return data() + size(); } ConstIterator end() const { return data() + size(); }
}; };
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
#define TQArray TQMemArray #define TQArray TQMemArray
#endif #endif

@ -73,7 +73,7 @@ protected:
}; };
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
#define TQCollection TQPtrCollection #define TQCollection TQPtrCollection
#endif #endif

@ -185,7 +185,7 @@ public:
{ TQGListIterator::operator=(it); return *this; } { TQGListIterator::operator=(it); return *this; }
}; };
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
#define TQList TQPtrList #define TQList TQPtrList
#define TQListIterator TQPtrListIterator #define TQListIterator TQPtrListIterator
#endif #endif

@ -87,7 +87,7 @@ template<class type> inline void TQPtrQueue<type>::deleteItem( TQPtrCollection::
if ( del_item ) delete (type *)d; if ( del_item ) delete (type *)d;
} }
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
#define TQQueue TQPtrQueue #define TQQueue TQPtrQueue
#endif #endif

@ -87,7 +87,7 @@ template<class type> inline void TQPtrStack<type>::deleteItem( TQPtrCollection::
if ( del_item ) delete (type *)d; if ( del_item ) delete (type *)d;
} }
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
#define TQStack TQPtrStack #define TQStack TQPtrStack
#endif #endif

@ -109,7 +109,7 @@ template<class type> inline void TQPtrVector<type>::deleteItem( TQPtrCollection:
if ( del_item ) delete (type *)d; if ( del_item ) delete (type *)d;
} }
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
#define TQVector TQPtrVector #define TQVector TQPtrVector
#endif #endif

@ -78,7 +78,7 @@ public:
void setMinimal( bool minimal ); void setMinimal( bool minimal );
bool exactMatch( const TQString& str ) const; bool exactMatch( const TQString& str ) const;
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
int match( const TQString& str, int index = 0, int *len = 0, int match( const TQString& str, int index = 0, int *len = 0,
bool indexIsStart = TRUE ) const; bool indexIsStart = TRUE ) const;
#endif #endif

@ -50,7 +50,7 @@
#include <limits.h> #include <limits.h>
#endif #endif
#ifndef QT_NO_STL #ifndef TQT_NO_STL
#if defined ( Q_CC_MSVC_NET ) && _MSC_VER < 1310 // Avoids nasty warning for xlocale, line 450 #if defined ( Q_CC_MSVC_NET ) && _MSC_VER < 1310 // Avoids nasty warning for xlocale, line 450
# pragma warning ( push ) # pragma warning ( push )
# pragma warning ( disable : 4189 ) # pragma warning ( disable : 4189 )
@ -408,14 +408,14 @@ public:
#ifndef QT_NO_CAST_ASCII #ifndef QT_NO_CAST_ASCII
TQString( const char *str ); // deep copy TQString( const char *str ); // deep copy
#endif #endif
#ifndef QT_NO_STL #ifndef TQT_NO_STL
TQString( const std::string& ); // deep copy TQString( const std::string& ); // deep copy
#endif #endif
~TQString(); ~TQString();
TQString &operator=( const TQString & ); // impl-shared copy TQString &operator=( const TQString & ); // impl-shared copy
TQString &operator=( const char * ); // deep copy TQString &operator=( const char * ); // deep copy
#ifndef QT_NO_STL #ifndef TQT_NO_STL
TQString &operator=( const std::string& ); // deep copy TQString &operator=( const std::string& ); // deep copy
#endif #endif
TQString &operator=( const TQCString& ); // deep copy TQString &operator=( const TQCString& ); // deep copy
@ -539,7 +539,7 @@ public:
TQString &append( const TQByteArray & ); TQString &append( const TQByteArray & );
TQString &append( const char * ); TQString &append( const char * );
#endif #endif
#if !defined(QT_NO_STL) && !defined(QT_NO_CAST_ASCII) #if !defined(TQT_NO_STL) && !defined(QT_NO_CAST_ASCII)
TQString &append( const std::string& ); TQString &append( const std::string& );
#endif #endif
TQString &prepend( char ); TQString &prepend( char );
@ -549,7 +549,7 @@ public:
TQString &prepend( const TQByteArray & ); TQString &prepend( const TQByteArray & );
TQString &prepend( const char * ); TQString &prepend( const char * );
#endif #endif
#if !defined(QT_NO_STL) && !defined(QT_NO_CAST_ASCII) #if !defined(TQT_NO_STL) && !defined(QT_NO_CAST_ASCII)
TQString &prepend( const std::string& ); TQString &prepend( const std::string& );
#endif #endif
TQString &remove( uint index, uint len ); TQString &remove( uint index, uint len );
@ -636,7 +636,7 @@ public:
TQString &operator+=( const TQByteArray &str ); TQString &operator+=( const TQByteArray &str );
TQString &operator+=( const char *str ); TQString &operator+=( const char *str );
#endif #endif
#if !defined(QT_NO_STL) && !defined(QT_NO_CAST_ASCII) #if !defined(TQT_NO_STL) && !defined(QT_NO_CAST_ASCII)
TQString &operator+=( const std::string& ); TQString &operator+=( const std::string& );
#endif #endif
TQString &operator+=( TQChar c ); TQString &operator+=( TQChar c );
@ -662,10 +662,10 @@ public:
TQCString local8Bit() const; TQCString local8Bit() const;
static TQString fromLocal8Bit(const char*, int len=-1); static TQString fromLocal8Bit(const char*, int len=-1);
bool operator!() const; bool operator!() const;
#ifndef QT_NO_ASCII_CAST #ifndef TQT_NO_ASCII_CAST
operator const char *() const { return ascii(); } operator const char *() const { return ascii(); }
#endif #endif
#ifndef QT_NO_STL #ifndef TQT_NO_STL
operator std::string() const { return ascii() ? ascii() : ""; } operator std::string() const { return ascii() ? ascii() : ""; }
#endif #endif
@ -691,7 +691,7 @@ public:
void compose(); void compose();
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
const char* data() const { return ascii(); } const char* data() const { return ascii(); }
#endif #endif
@ -926,7 +926,7 @@ inline TQString &TQString::append( TQChar c )
inline TQString &TQString::append( char c ) inline TQString &TQString::append( char c )
{ return operator+=(c); } { return operator+=(c); }
#ifndef QT_NO_STL #ifndef TQT_NO_STL
inline TQString &TQString::operator=( const std::string& str ) inline TQString &TQString::operator=( const std::string& str )
{ return operator=(str.c_str()); } { return operator=(str.c_str()); }
#ifndef QT_NO_CAST_ASCII #ifndef QT_NO_CAST_ASCII
@ -1073,7 +1073,7 @@ Q_EXPORT inline const TQString operator+( char c1, const TQString &s2 )
return tmp; return tmp;
} }
#ifndef QT_NO_STL #ifndef TQT_NO_STL
Q_EXPORT inline const TQString operator+(const TQString& s1, const std::string& s2) Q_EXPORT inline const TQString operator+(const TQString& s1, const std::string& s2)
{ {
return s1 + TQString(s2); return s1 + TQString(s2);

@ -47,7 +47,7 @@
#include "ntqdatastream.h" #include "ntqdatastream.h"
#endif // QT_H #endif // QT_H
#ifndef QT_NO_STL #ifndef TQT_NO_STL
#include <iterator> #include <iterator>
#include <list> #include <list>
#include <cstddef> #include <cstddef>
@ -79,12 +79,12 @@ class TQValueListIterator
* Typedefs * Typedefs
*/ */
typedef TQValueListNode<T>* NodePtr; typedef TQValueListNode<T>* NodePtr;
#ifndef QT_NO_STL #ifndef TQT_NO_STL
typedef std::bidirectional_iterator_tag iterator_category; typedef std::bidirectional_iterator_tag iterator_category;
#endif #endif
typedef T value_type; typedef T value_type;
typedef size_t size_type; typedef size_t size_type;
#ifndef QT_NO_STL #ifndef TQT_NO_STL
typedef ptrdiff_t difference_type; typedef ptrdiff_t difference_type;
#else #else
typedef int difference_type; typedef int difference_type;
@ -155,12 +155,12 @@ class TQValueListConstIterator
* Typedefs * Typedefs
*/ */
typedef TQValueListNode<T>* NodePtr; typedef TQValueListNode<T>* NodePtr;
#ifndef QT_NO_STL #ifndef TQT_NO_STL
typedef std::bidirectional_iterator_tag iterator_category; typedef std::bidirectional_iterator_tag iterator_category;
#endif #endif
typedef T value_type; typedef T value_type;
typedef size_t size_type; typedef size_t size_type;
#ifndef QT_NO_STL #ifndef TQT_NO_STL
typedef ptrdiff_t difference_type; typedef ptrdiff_t difference_type;
#else #else
typedef int difference_type; typedef int difference_type;
@ -428,7 +428,7 @@ public:
typedef value_type& reference; typedef value_type& reference;
typedef const value_type& const_reference; typedef const value_type& const_reference;
typedef size_t size_type; typedef size_t size_type;
#ifndef QT_NO_STL #ifndef TQT_NO_STL
typedef ptrdiff_t difference_type; typedef ptrdiff_t difference_type;
#else #else
typedef int difference_type; typedef int difference_type;
@ -439,7 +439,7 @@ public:
*/ */
TQValueList() { sh = new TQValueListPrivate<T>; } TQValueList() { sh = new TQValueListPrivate<T>; }
TQValueList( const TQValueList<T>& l ) { sh = l.sh; sh->ref(); } TQValueList( const TQValueList<T>& l ) { sh = l.sh; sh->ref(); }
#ifndef QT_NO_STL #ifndef TQT_NO_STL
TQValueList( const std::list<T>& l ) TQValueList( const std::list<T>& l )
{ {
sh = new TQValueListPrivate<T>; sh = new TQValueListPrivate<T>;
@ -463,7 +463,7 @@ public:
return *this; return *this;
} }
#ifndef QT_NO_STL #ifndef TQT_NO_STL
TQValueList<T>& operator= ( const std::list<T>& l ) TQValueList<T>& operator= ( const std::list<T>& l )
{ {
detach(); detach();

@ -47,7 +47,7 @@
#include "ntqdatastream.h" #include "ntqdatastream.h"
#endif // QT_H #endif // QT_H
#ifndef QT_NO_STL #ifndef TQT_NO_STL
#include <vector> #include <vector>
#endif #endif
@ -245,7 +245,7 @@ public:
typedef value_type& reference; typedef value_type& reference;
typedef const value_type& const_reference; typedef const value_type& const_reference;
typedef size_t size_type; typedef size_t size_type;
#ifndef QT_NO_STL #ifndef TQT_NO_STL
typedef ptrdiff_t difference_type; typedef ptrdiff_t difference_type;
#else #else
typedef int difference_type; typedef int difference_type;
@ -264,7 +264,7 @@ public:
TQValueVector( size_type n, const T& val = T() ); TQValueVector( size_type n, const T& val = T() );
#ifndef QT_NO_STL #ifndef TQT_NO_STL
TQValueVector( std::vector<T>& v ) // ### remove in 4.0 TQValueVector( std::vector<T>& v ) // ### remove in 4.0
{ {
sh = new TQValueVectorPrivate<T>( v.size() ); sh = new TQValueVectorPrivate<T>( v.size() );
@ -291,7 +291,7 @@ public:
return *this; return *this;
} }
#ifndef QT_NO_STL #ifndef TQT_NO_STL
TQValueVector<T>& operator= ( const std::vector<T>& v ) TQValueVector<T>& operator= ( const std::vector<T>& v )
{ {
clear(); clear();

@ -11,7 +11,7 @@
/* #define QT_NO_FREETYPE */ /* #define QT_NO_FREETYPE */
#define QT_NO_BDF #define QT_NO_BDF
//#define QT_NO_FONTDATABASE //#define QT_NO_FONTDATABASE
#define QT_NO_TRANSLATION #define TQT_NO_TRANSLATION
#define QT_NO_DRAGANDDROP #define QT_NO_DRAGANDDROP
#define QT_NO_CLIPBOARD #define QT_NO_CLIPBOARD
#define QT_NO_SOUND #define QT_NO_SOUND

@ -12,7 +12,7 @@
/* #define QT_NO_FREETYPE */ /* #define QT_NO_FREETYPE */
#define QT_NO_BDF #define QT_NO_BDF
//#define QT_NO_FONTDATABASE //#define QT_NO_FONTDATABASE
#define QT_NO_TRANSLATION #define TQT_NO_TRANSLATION
#define QT_NO_DRAGANDDROP #define QT_NO_DRAGANDDROP
#define QT_NO_CLIPBOARD #define QT_NO_CLIPBOARD
#define QT_NO_SOUND #define QT_NO_SOUND

@ -21,7 +21,7 @@
/* //#define QT_NO_FREETYPE //done by configure -no-freetype */ /* //#define QT_NO_FREETYPE //done by configure -no-freetype */
#define QT_NO_BDF #define QT_NO_BDF
//#define QT_NO_FONTDATABASE //#define QT_NO_FONTDATABASE
#define QT_NO_TRANSLATION #define TQT_NO_TRANSLATION
#define QT_NO_MIME #define QT_NO_MIME
#define QT_NO_SOUND #define QT_NO_SOUND
/* #define QT_NO_PROPERTIES */ /* #define QT_NO_PROPERTIES */
@ -87,8 +87,8 @@
#define QT_NO_IMAGE_HEURISTIC_MASK #define QT_NO_IMAGE_HEURISTIC_MASK
#define QT_NO_IMAGE_MIRROR #define QT_NO_IMAGE_MIRROR
#ifndef QT_NO_STL #ifndef TQT_NO_STL
# define QT_NO_STL # define TQT_NO_STL
#endif #endif
#define QT_NO_DATESTRING #define QT_NO_DATESTRING

@ -17,7 +17,7 @@
/* #define QT_NO_FREETYPE //done by configure -no-freetype */ /* #define QT_NO_FREETYPE //done by configure -no-freetype */
#define QT_NO_BDF #define QT_NO_BDF
//#define QT_NO_FONTDATABASE //#define QT_NO_FONTDATABASE
#define QT_NO_TRANSLATION #define TQT_NO_TRANSLATION
#define QT_NO_MIME #define QT_NO_MIME
#define QT_NO_SOUND #define QT_NO_SOUND
#define QT_NO_PROPERTIES #define QT_NO_PROPERTIES

@ -3600,7 +3600,7 @@ bool TQRegExp::exactMatch( const TQString& str ) const
} }
} }
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
/*! \obsolete /*! \obsolete
Attempts to match in \a str, starting from position \a index. Attempts to match in \a str, starting from position \a index.
@ -3625,7 +3625,7 @@ int TQRegExp::match( const TQString& str, int index, int *len,
*len = matchedLength(); *len = matchedLength();
return pos; return pos;
} }
#endif // QT_NO_COMPAT #endif // TQT_NO_COMPAT
int TQRegExp::search( const TQString& str, int offset ) const int TQRegExp::search( const TQString& str, int offset ) const
{ {

@ -1630,7 +1630,7 @@ TQString::TQString( const char *str )
d = new TQStringData(uc,l,l); d = new TQStringData(uc,l,l);
} }
#ifndef QT_NO_STL #ifndef TQT_NO_STL
/*! /*!
Constructs a string that is a deep copy of \a str. Constructs a string that is a deep copy of \a str.
@ -5703,7 +5703,7 @@ void TQString::setExpand( uint index, TQChar c )
\endcode \endcode
It will call "operator const char*()", which is inefficent; you It will call "operator const char*()", which is inefficent; you
may wish to define the macro \c QT_NO_ASCII_CAST when writing code may wish to define the macro \c TQT_NO_ASCII_CAST when writing code
which you wish to remain Unicode-clean. which you wish to remain Unicode-clean.
When you want the above semantics, use: When you want the above semantics, use:
@ -6314,7 +6314,7 @@ TQString TQString::fromLocal8Bit( const char* local8Bit, int len )
Returns ascii(). Be sure to see the warnings documented in the Returns ascii(). Be sure to see the warnings documented in the
ascii() function. Note that for new code which you wish to be ascii() function. Note that for new code which you wish to be
strictly Unicode-clean, you can define the macro \c strictly Unicode-clean, you can define the macro \c
QT_NO_ASCII_CAST when compiling your code to hide this function so TQT_NO_ASCII_CAST when compiling your code to hide this function so
that automatic casts are not done. This has the added advantage that automatic casts are not done. This has the added advantage
that you catch the programming error described in operator!(). that you catch the programming error described in operator!().
*/ */

@ -201,7 +201,7 @@ private slots:
private: private:
TQActionGroupPrivate* d; TQActionGroupPrivate* d;
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
public: public:
void insert( TQAction* a ) { add( a ); } void insert( TQAction* a ) { add( a ); }
#endif #endif

@ -96,7 +96,7 @@ public:
enum ToggleState { Off, NoChange, On }; enum ToggleState { Off, NoChange, On };
ToggleState state() const; ToggleState state() const;
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
bool autoResize() const; bool autoResize() const;
void setAutoResize( bool ); void setAutoResize( bool );
#endif #endif
@ -196,7 +196,7 @@ inline bool TQButton::isOn() const
return ToggleState(stat) != Off; return ToggleState(stat) != Off;
} }
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
inline bool TQButton::autoResize() const inline bool TQButton::autoResize() const
{ {
return autoresize; return autoresize;

@ -56,7 +56,7 @@ public:
void setSpacing( int ); void setSpacing( int );
TQSize sizeHint() const; TQSize sizeHint() const;
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
typedef Orientation Direction; typedef Orientation Direction;
#endif #endif

@ -109,7 +109,7 @@ public:
int alignment() const; int alignment() const;
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
void cursorLeft( bool mark, int steps = 1 ) { cursorForward( mark, -steps ); } void cursorLeft( bool mark, int steps = 1 ) { cursorForward( mark, -steps ); }
void cursorRight( bool mark, int steps = 1 ) { cursorForward( mark, steps ); } void cursorRight( bool mark, int steps = 1 ) { cursorForward( mark, steps ); }
#endif #endif
@ -135,7 +135,7 @@ public:
bool isUndoAvailable() const; bool isUndoAvailable() const;
bool isRedoAvailable() const; bool isRedoAvailable() const;
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
bool hasMarkedText() const { return hasSelectedText(); } bool hasMarkedText() const { return hasSelectedText(); }
TQString markedText() const { return selectedText(); } TQString markedText() const { return selectedText(); }
#endif #endif
@ -202,7 +202,7 @@ protected:
bool sendMouseEventToInputContext( TQMouseEvent *e ); bool sendMouseEventToInputContext( TQMouseEvent *e );
virtual TQPopupMenu *createPopupMenu(); virtual TQPopupMenu *createPopupMenu();
void windowActivationChange( bool ); void windowActivationChange( bool );
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
void repaintArea( int, int ) { update(); } void repaintArea( int, int ) { update(); }
#endif #endif

@ -169,7 +169,7 @@ public:
void viewportPaintEvent( TQPaintEvent * ); void viewportPaintEvent( TQPaintEvent * );
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
bool dragSelect() const { return TRUE; } bool dragSelect() const { return TRUE; }
void setDragSelect( bool ) {} void setDragSelect( bool ) {}
bool autoScroll() const { return TRUE; } bool autoScroll() const { return TRUE; }
@ -258,7 +258,7 @@ protected:
void updateItem( int index ); void updateItem( int index );
void updateItem( TQListBoxItem * ); void updateItem( TQListBoxItem * );
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
void updateCellWidth() { } void updateCellWidth() { }
int totalWidth() const { return contentsWidth(); } int totalWidth() const { return contentsWidth(); }
int totalHeight() const { return contentsHeight(); } int totalHeight() const { return contentsHeight(); }
@ -273,7 +273,7 @@ protected:
void windowActivationChange( bool ); void windowActivationChange( bool );
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
bool itemYPos( int index, int *yPos ) const; bool itemYPos( int index, int *yPos ) const;
int findItem( int yPos ) const { return index(itemAt(TQPoint(0,yPos)) ); } int findItem( int yPos ) const { return index(itemAt(TQPoint(0,yPos)) ); }
#endif #endif
@ -331,7 +331,7 @@ public:
bool isSelected() const { return s; } bool isSelected() const { return s; }
bool isCurrent() const; bool isCurrent() const;
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
bool selected() const { return isSelected(); } bool selected() const { return isSelected(); }
bool current() const { return isCurrent(); } bool current() const { return isCurrent(); }
#endif #endif

@ -94,7 +94,7 @@ public:
TQSize sizeHint() const; TQSize sizeHint() const;
TQSize minimumSizeHint() const; TQSize minimumSizeHint() const;
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
void setOnIconSet( const TQIconSet& ); void setOnIconSet( const TQIconSet& );
void setOffIconSet( const TQIconSet& ); void setOffIconSet( const TQIconSet& );
void setIconSet( const TQIconSet &, bool on ); void setIconSet( const TQIconSet &, bool on );

@ -114,7 +114,7 @@ public:
static TQPalette palette(); static TQPalette palette();
static void setPalette( const TQPalette & ); static void setPalette( const TQPalette & );
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
static void setEnabled( bool enable ) { setGloballyEnabled( enable ); } static void setEnabled( bool enable ) { setGloballyEnabled( enable ); }
static bool enabled() { return isGloballyEnabled(); } static bool enabled() { return isGloballyEnabled(); }
#endif #endif

@ -38,7 +38,7 @@
** **
**********************************************************************/ **********************************************************************/
#undef QT_NO_COMPAT #undef TQT_NO_COMPAT
#include "ntqbutton.h" #include "ntqbutton.h"
#ifndef QT_NO_BUTTON #ifndef QT_NO_BUTTON
#include "ntqbuttongroup.h" #include "ntqbuttongroup.h"
@ -554,7 +554,7 @@ void TQButton::setAccel( const TQKeySequence& key )
} }
#endif #endif
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
void TQButton::setAutoResize( bool enable ) void TQButton::setAutoResize( bool enable )
{ {

@ -3958,7 +3958,7 @@ TQRect TQListBox::itemRect( TQListBoxItem *item ) const
} }
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
/*! /*!
\obsolete \obsolete
@ -4149,7 +4149,7 @@ void TQListBox::showEvent( TQShowEvent * )
ensureCurrentVisible(); ensureCurrentVisible();
} }
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
/*! /*!
\obsolete \obsolete

@ -38,7 +38,7 @@
** **
**********************************************************************/ **********************************************************************/
#undef QT_NO_COMPAT #undef TQT_NO_COMPAT
#include "ntqtoolbutton.h" #include "ntqtoolbutton.h"
#ifndef QT_NO_TOOLBUTTON #ifndef QT_NO_TOOLBUTTON
@ -685,7 +685,7 @@ void TQToolButton::setTextLabel( const TQString &newLabel , bool tipToo )
} }
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
TQIconSet TQToolButton::onIconSet() const TQIconSet TQToolButton::onIconSet() const
{ {
@ -787,7 +787,7 @@ void TQToolButton::setIconSet( const TQIconSet & set )
\sa iconSet TQIconSet::State \sa iconSet TQIconSet::State
*/ */
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
void TQToolButton::setIconSet( const TQIconSet & set, bool /* on */ ) void TQToolButton::setIconSet( const TQIconSet & set, bool /* on */ )
{ {
@ -818,7 +818,7 @@ TQIconSet TQToolButton::iconSet() const
return TQIconSet(); return TQIconSet();
} }
#ifndef QT_NO_COMPAT #ifndef TQT_NO_COMPAT
/*! \overload /*! \overload
\obsolete \obsolete

Loading…
Cancel
Save