diff options
Diffstat (limited to 'src/kernel')
82 files changed, 941 insertions, 941 deletions
diff --git a/src/kernel/ntqwindowdefs.h b/src/kernel/ntqwindowdefs.h index b2e511871..604f5984c 100644 --- a/src/kernel/ntqwindowdefs.h +++ b/src/kernel/ntqwindowdefs.h @@ -147,12 +147,12 @@ typedef struct _XGC *GC; typedef struct _XRegion *Region; typedef unsigned long WId; -Q_EXPORT Display *qt_xdisplay(); -Q_EXPORT int qt_xscreen(); -Q_EXPORT WId qt_xrootwin(); // ### REMOVE 4.0 -Q_EXPORT WId qt_xrootwin( int scrn ); // ### 4.0 add default arg of -1 -Q_EXPORT GC qt_xget_readonly_gc( int scrn, bool monochrome ); -Q_EXPORT GC qt_xget_temp_gc( int scrn, bool monochrome ); +Q_EXPORT Display *tqt_xdisplay(); +Q_EXPORT int tqt_xscreen(); +Q_EXPORT WId tqt_xrootwin(); // ### REMOVE 4.0 +Q_EXPORT WId tqt_xrootwin( int scrn ); // ### 4.0 add default arg of -1 +Q_EXPORT GC tqt_xget_readonly_gc( int scrn, bool monochrome ); +Q_EXPORT GC tqt_xget_temp_gc( int scrn, bool monochrome ); Q_EXPORT const char *tqAppClass(); // get application class @@ -185,8 +185,8 @@ Q_EXPORT const char *tqAppName(); // get application name // Misc functions typedef void (*TQtCleanUpFunction)(); -Q_EXPORT void qAddPostRoutine( TQtCleanUpFunction ); -Q_EXPORT void qRemovePostRoutine( TQtCleanUpFunction ); +Q_EXPORT void tqAddPostRoutine( TQtCleanUpFunction ); +Q_EXPORT void tqRemovePostRoutine( TQtCleanUpFunction ); #if !defined(QT_CLEAN_NAMESPACE) // source compatibility with TQt 2.x diff --git a/src/kernel/qabstractlayout.cpp b/src/kernel/qabstractlayout.cpp index bf1851991..b0f0e8beb 100644 --- a/src/kernel/qabstractlayout.cpp +++ b/src/kernel/qabstractlayout.cpp @@ -606,7 +606,7 @@ TQLayout::TQLayout( TQWidget *parent, int margin, int spacing, const char *name init(); if ( parent ) { if ( parent->layout() ) { - qWarning( "TQLayout \"%s\" added to %s \"%s\", which already has a" + tqWarning( "TQLayout \"%s\" added to %s \"%s\", which already has a" " layout", TQObject::name(), parent->className(), parent->name() ); parent->removeChild( this ); @@ -1063,7 +1063,7 @@ void TQLayout::addChildLayout( TQLayout *l ) { if ( l->parent() ) { #if defined(QT_CHECK_NULL) - qWarning( "TQLayout::addChildLayout: layout already has a parent" ); + tqWarning( "TQLayout::addChildLayout: layout already has a parent" ); #endif return; } @@ -1189,7 +1189,7 @@ bool TQLayout::activate() TQWidget *mw = mainWidget(); if (!mw) { #if defined( QT_CHECK_NULL ) - qWarning( "TQLayout::activate: %s \"%s\" does not have a main widget", + tqWarning( "TQLayout::activate: %s \"%s\" does not have a main widget", TQObject::className(), TQObject::name() ); #endif return FALSE; diff --git a/src/kernel/qaccel.cpp b/src/kernel/qaccel.cpp index 5e34f6ce0..3f7619916 100644 --- a/src/kernel/qaccel.cpp +++ b/src/kernel/qaccel.cpp @@ -210,7 +210,7 @@ static bool qt_accel_no_shortcuts = TRUE; #else static bool qt_accel_no_shortcuts = FALSE; #endif -void Q_EXPORT qt_setAccelAutoShortcuts(bool b) { qt_accel_no_shortcuts = b; } +void Q_EXPORT tqt_setAccelAutoShortcuts(bool b) { qt_accel_no_shortcuts = b; } /* \internal @@ -576,7 +576,7 @@ TQAccel::TQAccel( TQWidget *parent, const char *name ) d->watch = parent; #if defined(QT_CHECK_NULL) if ( !d->watch ) - qWarning( "TQAccel: An accelerator must have a parent or a watch widget" ); + tqWarning( "TQAccel: An accelerator must have a parent or a watch widget" ); #endif } @@ -594,7 +594,7 @@ TQAccel::TQAccel( TQWidget* watch, TQObject *parent, const char *name ) d->watch = watch; #if defined(QT_CHECK_NULL) if ( !d->watch ) - qWarning( "TQAccel: An accelerator must have a parent or a watch widget" ); + tqWarning( "TQAccel: An accelerator must have a parent or a watch widget" ); #endif } diff --git a/src/kernel/qaccessible.cpp b/src/kernel/qaccessible.cpp index fdf7e93b7..d87b8e689 100644 --- a/src/kernel/qaccessible.cpp +++ b/src/kernel/qaccessible.cpp @@ -385,7 +385,7 @@ TQRESULT TQAccessible::queryAccessibleInterface( TQObject *object, TQAccessibleI if ( !qAccessibleManager ) { qAccessibleManager = new TQPluginManager<TQAccessibleFactoryInterface>( IID_QAccessibleFactory, TQApplication::libraryPaths(), "/accessible" ); if ( !cleanupAdded ) { - qAddPostRoutine( qAccessibleCleanup ); + tqAddPostRoutine( qAccessibleCleanup ); cleanupAdded = TRUE; } } @@ -652,7 +652,7 @@ TQAccessibleObject::TQAccessibleObject( TQObject *object ) if ( !qAccessibleInterface ) { qAccessibleInterface = new AccessibleCache; if ( !cleanupAdded ) { - qAddPostRoutine( qAccessibleCleanup ); + tqAddPostRoutine( qAccessibleCleanup ); cleanupAdded = TRUE; } } @@ -703,7 +703,7 @@ TQObject *TQAccessibleObject::object() const { #if defined(QT_CHECK_RANGE) if ( !isValid() ) - qWarning( "TQAccessibleInterface is invalid. Crash pending..." ); + tqWarning( "TQAccessibleInterface is invalid. Crash pending..." ); #endif return object_; } diff --git a/src/kernel/qapplication.cpp b/src/kernel/qapplication.cpp index 149048905..8cc05071f 100644 --- a/src/kernel/qapplication.cpp +++ b/src/kernel/qapplication.cpp @@ -351,8 +351,8 @@ int TQApplication::mouse_double_click_time = 400; // mouse dbl click limit int TQApplication::wheel_scroll_lines = 3; // number of lines to scroll #endif bool qt_is_gui_used; -bool Q_EXPORT qt_resolve_symlinks = TRUE; -bool Q_EXPORT qt_tab_all_widgets = TRUE; +bool Q_EXPORT tqt_resolve_symlinks = TRUE; +bool Q_EXPORT tqt_tab_all_widgets = TRUE; TQRect qt_maxWindowRect; static int drag_time = 500; static int drag_distance = 4; @@ -377,7 +377,7 @@ int TQApplication::composedUnicode = 0; TQMutex *TQApplication::qt_mutex = 0; static TQMutex *postevent_mutex = 0; static TQt::HANDLE qt_application_thread_id = 0; -Q_EXPORT TQt::HANDLE qt_get_application_thread_id() +Q_EXPORT TQt::HANDLE tqt_get_application_thread_id() { return qt_application_thread_id; } @@ -438,12 +438,12 @@ static TQVFuncList *postRList = 0; // list of post routines void init_ptr() { global_ptr = new int[100]; // allocate data - qAddPostRoutine( cleanup_ptr ); // delete later + tqAddPostRoutine( cleanup_ptr ); // delete later } \endcode Note that for an application- or module-wide cleanup, - qAddPostRoutine() is often not suitable. People have a tendency to + tqAddPostRoutine() is often not suitable. People have a tendency to make such modules dynamically loaded, and then unload those modules long before the TQApplication destructor is called, for example. @@ -477,7 +477,7 @@ static TQVFuncList *postRList = 0; // list of post routines to clean up the module's data at the exact right moment. */ -Q_EXPORT void qAddPostRoutine( TQtCleanUpFunction p) +Q_EXPORT void tqAddPostRoutine( TQtCleanUpFunction p) { if ( !postRList ) { postRList = new TQVFuncList; @@ -487,7 +487,7 @@ Q_EXPORT void qAddPostRoutine( TQtCleanUpFunction p) } -Q_EXPORT void qRemovePostRoutine( TQtCleanUpFunction p ) +Q_EXPORT void tqRemovePostRoutine( TQtCleanUpFunction p ) { if ( !postRList ) return; TQVFuncList::Iterator it = postRList->begin(); @@ -862,7 +862,7 @@ TQApplication::TQApplication( Display* dpy, HANDLE visual, HANDLE colormap ) if ( ! dpy ) { #ifdef QT_CHECK_STATE - qWarning( "TQApplication: invalid Display* argument." ); + tqWarning( "TQApplication: invalid Display* argument." ); #endif // QT_CHECK_STATE qt_init( &aargc, aargv, GuiClient ); @@ -903,7 +903,7 @@ TQApplication::TQApplication(Display *dpy, int argc, char **argv, if ( ! dpy ) { #ifdef QT_CHECK_STATE - qWarning( "TQApplication: invalid Display* argument." ); + tqWarning( "TQApplication: invalid Display* argument." ); #endif // QT_CHECK_STATE qt_init( &argc, argv, GuiClient ); @@ -933,7 +933,7 @@ void TQApplication::init_precmdline() #endif #if defined(QT_CHECK_STATE) if ( tqApp ) - qWarning( "TQApplication: There should be max one application object" ); + tqWarning( "TQApplication: There should be max one application object" ); #endif tqApp = (TQApplication*)this; } @@ -1106,7 +1106,7 @@ TQApplication::~TQApplication() is_app_running = FALSE; if ( widgetCount ) { - qDebug( "Widgets left: %i Max widgets: %i \n", TQWidget::instanceCounter, TQWidget::maxInstances ); + tqDebug( "Widgets left: %i Max widgets: %i \n", TQWidget::instanceCounter, TQWidget::maxInstances ); } #ifndef QT_NO_SESSIONMANAGER delete session_manager; @@ -1214,7 +1214,7 @@ TQStyle& TQApplication::style() if ( app_style ) return *app_style; if ( !qt_is_gui_used ) - qFatal( "No style available in non-gui applications!" ); + tqFatal( "No style available in non-gui applications!" ); #if defined(Q_WS_X11) if(!qt_style_override) @@ -1262,7 +1262,7 @@ TQStyle& TQApplication::style() && !(app_style = TQStyleFactory::create( TQStyleFactory::keys()[0] ) ) #endif ) - qFatal( "No %s style available!", style.latin1() ); + tqFatal( "No %s style available!", style.latin1() ); } TQPalette app_pal_copy ( *app_pal ); @@ -1500,7 +1500,7 @@ void TQApplication::setColorSpec( int spec ) { #if defined(QT_CHECK_STATE) if ( tqApp ) { - qWarning( "TQApplication::setColorSpec: This function must be " + tqWarning( "TQApplication::setColorSpec: This function must be " "called before the TQApplication object is created" ); } #endif @@ -1723,7 +1723,7 @@ TQStringList TQApplication::libraryPaths() { if ( !app_libpaths ) { app_libpaths = new TQStringList; - TQString installPathPlugins = TQString::fromLocal8Bit(qInstallPathPlugins()); + TQString installPathPlugins = TQString::fromLocal8Bit(tqInstallPathPlugins()); if ( TQFile::exists(installPathPlugins) ) { #ifdef Q_WS_WIN installPathPlugins.replace('\\', '/'); @@ -1742,7 +1742,7 @@ TQStringList TQApplication::libraryPaths() #endif if (!app_location.isEmpty()) { app_location.truncate( app_location.findRev( '/' ) ); - if ( app_location != qInstallPathPlugins() && TQFile::exists( app_location ) ) + if ( app_location != tqInstallPathPlugins() && TQFile::exists( app_location ) ) app_libpaths->append( app_location ); } } @@ -1822,7 +1822,7 @@ TQPalette TQApplication::palette(const TQWidget* w) { #if defined(QT_CHECK_STATE) if ( !tqApp ) - qWarning( "TQApplication::palette: This function can only be " + tqWarning( "TQApplication::palette: This function can only be " "called after the TQApplication object has been created" ); #endif if ( !app_pal ) { @@ -2319,7 +2319,7 @@ bool TQApplication::notify( TQObject *receiver, TQEvent *e ) if ( receiver == 0 ) { // serious error #if defined(QT_CHECK_NULL) - qWarning( "TQApplication::notify: Unexpected null receiver" ); + tqWarning( "TQApplication::notify: Unexpected null receiver" ); #endif return FALSE; } @@ -3098,7 +3098,7 @@ void TQApplication::postEvent( TQObject *receiver, TQEvent *event ) { if ( receiver == 0 ) { #if defined(QT_CHECK_NULL) - qWarning( "TQApplication::postEvent: Unexpected null receiver" ); + tqWarning( "TQApplication::postEvent: Unexpected null receiver" ); #endif delete event; return; @@ -3412,7 +3412,7 @@ void TQApplication::removePostedEvent( TQEvent * event ) if ( !globalPostedEvents ) { #if defined(QT_DEBUG) - qDebug( "TQApplication::removePostedEvent: %p %d is posted: impossible", + tqDebug( "TQApplication::removePostedEvent: %p %d is posted: impossible", (void*)event, event->type() ); return; #endif @@ -3493,7 +3493,7 @@ void TQApplication::removePostedEvent( TQEvent * event ) n = "<other>"; break; } - qWarning("TQEvent: Warning: %s event deleted while posted to %s %s", + tqWarning("TQEvent: Warning: %s event deleted while posted to %s %s", n, pe->receiver ? pe->receiver->className() : "null", pe->receiver ? pe->receiver->name() : "object" ); diff --git a/src/kernel/qapplication_p.h b/src/kernel/qapplication_p.h index 400ad84be..ae7568b8e 100644 --- a/src/kernel/qapplication_p.h +++ b/src/kernel/qapplication_p.h @@ -65,7 +65,7 @@ class TQKeyEvent; class TQMouseEvent; class TQWheelEvent; -extern Q_EXPORT bool qt_modal_state(); +extern Q_EXPORT bool tqt_modal_state(); extern Q_EXPORT void qt_enter_modal( TQWidget* ); extern Q_EXPORT void qt_leave_modal( TQWidget* ); diff --git a/src/kernel/qapplication_x11.cpp b/src/kernel/qapplication_x11.cpp index 72e29b148..ccb02c735 100644 --- a/src/kernel/qapplication_x11.cpp +++ b/src/kernel/qapplication_x11.cpp @@ -131,7 +131,7 @@ extern "C" Bool XftInitFtLibrary(void); extern "C" char *_Xsetlocale(int category, const char *locale); char *_Xsetlocale(int category, const char *locale) { - //qDebug("_Xsetlocale(%d,%s),category,locale"); + //tqDebug("_Xsetlocale(%d,%s),category,locale"); return setlocale(category,locale); } # endif // setlocale @@ -217,9 +217,9 @@ static GC* app_gc_tmp = 0; // temporary GC static GC* app_gc_ro_m = 0; // read-only GC (monochrome) static GC* app_gc_tmp_m = 0; // temporary GC (monochrome) // symbols needed by extern TQXEmbed class -Q_EXPORT Atom qt_wm_protocols = 0; // window manager protocols -Q_EXPORT Atom qt_wm_delete_window = 0; // delete window protocol -Q_EXPORT Atom qt_wm_take_focus = 0; // take focus window protocol +Q_EXPORT Atom tqt_wm_protocols = 0; // window manager protocols +Q_EXPORT Atom tqt_wm_delete_window = 0; // delete window protocol +Q_EXPORT Atom tqt_wm_take_focus = 0; // take focus window protocol Atom qt_qt_scrolldone = 0; // scroll synchronization Atom qt_net_wm_context_help = 0; // context help @@ -230,15 +230,15 @@ Atom qt_xa_clipboard = 0; Atom qt_selection_property = 0; Atom qt_clipboard_sentinel = 0; Atom qt_selection_sentinel = 0; -Q_EXPORT Atom qt_wm_state = 0; +Q_EXPORT Atom tqt_wm_state = 0; Atom qt_wm_change_state = 0; static Atom qt_settings_timestamp = 0; // TQt >=3 settings timestamp static Atom qt_input_encoding = 0; // TQt desktop properties static Atom qt_resource_manager = 0; // X11 Resource manager Atom qt_sizegrip = 0; // sizegrip Atom qt_wm_client_leader = 0; -Q_EXPORT Atom qt_window_role = 0; -Q_EXPORT Atom qt_sm_client_id = 0; +Q_EXPORT Atom tqt_window_role = 0; +Q_EXPORT Atom tqt_sm_client_id = 0; Atom qt_xa_motif_wm_hints = 0; Atom qt_cde_running = 0; Atom qt_twin_running = 0; @@ -331,7 +331,7 @@ static int xrandr_eventbase; // TRUE if TQt is compiled w/ XRender support and XRender exists on the connected // Display -Q_EXPORT bool qt_use_xrender = FALSE; +Q_EXPORT bool tqt_use_xrender = FALSE; #ifndef QT_NO_XSYNC // True if SYNC extension exists on the connected display @@ -350,7 +350,7 @@ static long qt_mode_switch_remove_mask = 0; // flags for extensions for special Languages, currently only for RTL languages static bool qt_use_rtl_extensions = FALSE; -Q_EXPORT bool qt_hebrew_keyboard_hack = FALSE; +Q_EXPORT bool tqt_hebrew_keyboard_hack = FALSE; static Window mouseActWindow = 0; // window where mouse is static int mouseButtonPressed = 0; // last mouse button pressed @@ -406,10 +406,10 @@ static uint appliedstamp = 0; typedef int (*QX11EventFilter) (XEvent*); -QX11EventFilter qt_set_x11_event_filter(QX11EventFilter filter); +QX11EventFilter tqt_set_x11_event_filter(QX11EventFilter filter); static QX11EventFilter qt_x11_event_filter = 0; -Q_EXPORT QX11EventFilter qt_set_x11_event_filter(QX11EventFilter filter) +Q_EXPORT QX11EventFilter tqt_set_x11_event_filter(QX11EventFilter filter) { QX11EventFilter old_filter = qt_x11_event_filter; qt_x11_event_filter = filter; @@ -436,8 +436,8 @@ static XIMStyle xim_default_style = XIMPreeditCallbacks | XIMStatusNothing; int qt_ximComposingKeycode=0; TQTextCodec * qt_input_mapper = 0; -Q_EXPORT Time qt_x_time = CurrentTime; -Q_EXPORT Time qt_x_user_time = CurrentTime; +Q_EXPORT Time tqt_x_time = CurrentTime; +Q_EXPORT Time tqt_x_user_time = CurrentTime; extern bool qt_check_clipboard_sentinel(); //def in qclipboard_x11.cpp extern bool qt_check_selection_sentinel(); //def in qclipboard_x11.cpp @@ -497,7 +497,7 @@ extern bool qt_app_has_font; static bool qt_x11_cmdline_font = false; -extern bool qt_resolve_symlinks; // from qapplication.cpp +extern bool tqt_resolve_symlinks; // from qapplication.cpp // Paint event clipping magic extern void qt_set_paintevent_clipping( TQPaintDevice* dev, const TQRegion& region); @@ -520,7 +520,7 @@ void qt_deferred_map_add( TQWidget* w) { if ( !deferred_map_list ) { deferred_map_list = new TQPtrList<TQWidget>; - qAddPostRoutine( qt_deferred_map_cleanup ); + tqAddPostRoutine( qt_deferred_map_cleanup ); } deferred_map_list->append( w ); } @@ -788,7 +788,7 @@ static int qt_x_errhandler( Display *dpy, XErrorEvent *err ) char errstr[256]; XGetErrorText( dpy, err->error_code, errstr, 256 ); - qWarning( "X Error: %s %d\n" + tqWarning( "X Error: %s %d\n" " Major opcode: %d\n" " Minor opcode: %d\n" " Resource id: 0x%lx", @@ -806,7 +806,7 @@ static int qt_x_errhandler( Display *dpy, XErrorEvent *err ) static int qt_xio_errhandler( Display * ) { - qWarning( "%s: Fatal IO error: client killed", appName ); + tqWarning( "%s: Fatal IO error: client killed", appName ); tqApp = 0; exit( 1 ); //### give the application a chance for a proper shutdown instead, @@ -866,7 +866,7 @@ static void qt_x11_process_intern_atoms() while( it.current() ) { res[i] = 0; resp[i] = it.current(); - names[i] = qstrdup(it.currentKey()); + names[i] = tqstrdup(it.currentKey()); i++; ++it; } @@ -1105,7 +1105,7 @@ bool TQApplication::x11_apply_settings() qt_broken_wm = settings.readBoolEntry("/qt/brokenWindowManager", qt_broken_wm); - qt_resolve_symlinks = + tqt_resolve_symlinks = settings.readBoolEntry("/qt/resolveSymlinks", TRUE); qt_use_rtl_extensions = @@ -1184,7 +1184,7 @@ static void qt_set_input_encoding() qt_input_mapper = TQTextCodec::codecForLocale(); } else { - if ( !qstricmp( data, "locale" ) ) + if ( !tqstricmp( data, "locale" ) ) qt_input_mapper = TQTextCodec::codecForLocale(); else qt_input_mapper = TQTextCodec::codecForName( data ); @@ -1562,7 +1562,7 @@ void qt_x11_create_wm_client_leader() TQCString session = tqApp->sessionId().latin1(); if ( !session.isEmpty() ) { XChangeProperty( TQPaintDevice::x11AppDisplay(), - qt_x11_wm_client_leader, qt_sm_client_id, + qt_x11_wm_client_leader, tqt_sm_client_id, XA_STRING, 8, PropModeReplace, (unsigned char *)session.data(), session.length() ); } @@ -1658,11 +1658,11 @@ void qt_init_internal( int *argcptr, char **argv, appDpy = display; // Set application name and class - appName = qstrdup( "TQt-subapplication" ); + appName = tqstrdup( "TQt-subapplication" ); char *app_class = 0; if (argv) { const char* p = strrchr( argv[0], '/' ); - app_class = qstrdup(p ? p + 1 : argv[0]); + app_class = tqstrdup(p ? p + 1 : argv[0]); if (app_class[0]) app_class[0] = toupper(app_class[0]); } @@ -1686,7 +1686,7 @@ void qt_init_internal( int *argcptr, char **argv, if (argv) { const char *p = strrchr( argv[0], '/' ); appName = p ? p + 1 : argv[0]; - app_class = qstrdup(appName); + app_class = tqstrdup(appName); if (app_class[0]) app_class[0] = toupper(app_class[0]); } @@ -1795,7 +1795,7 @@ void qt_init_internal( int *argcptr, char **argv, } if ( s == "gdb" ) { appNoGrab = TRUE; - qDebug( "TQt: gdb: -nograb added to command-line options.\n" + tqDebug( "TQt: gdb: -nograb added to command-line options.\n" "\t Use the -dograb option to enforce grabbing." ); } f.close(); @@ -1806,7 +1806,7 @@ void qt_init_internal( int *argcptr, char **argv, if( qt_is_gui_used ) { if ( ( appDpy = XOpenDisplay(appDpyName) ) == 0 ) { - qWarning( "%s: cannot connect to X server %s", appName, + tqWarning( "%s: cannot connect to X server %s", appName, XDisplayName(appDpyName) ); tqApp = 0; exit( 1 ); @@ -1846,7 +1846,7 @@ void qt_init_internal( int *argcptr, char **argv, int screen; TQString serverVendor( ServerVendor( appDpy) ); if (serverVendor.contains("XFree86") && VendorRelease(appDpy) < 40300000) - qt_hebrew_keyboard_hack = TRUE; + tqt_hebrew_keyboard_hack = TRUE; for ( screen = 0; screen < appScreenCount; ++screen ) { TQPaintDevice::x_appdepth_arr[ screen ] = DefaultDepth(appDpy, screen); @@ -2091,7 +2091,7 @@ void qt_init_internal( int *argcptr, char **argv, XRenderPictFormat *format = XRenderFindVisualFormat(appDpy, (Visual *) TQPaintDevice::x_appvisual); - qt_use_xrender = (format != 0) && (TQPaintDevice::x_appdepth != 8); + tqt_use_xrender = (format != 0) && (TQPaintDevice::x_appdepth != 8); } #endif // QT_NO_XRENDER @@ -2113,15 +2113,15 @@ void qt_init_internal( int *argcptr, char **argv, #if !defined(QT_NO_XFTFREETYPE) // defined in qfont_x11.cpp - extern bool qt_has_xft; + extern bool tqt_has_xft; #ifndef QT_XFT2 - if (!qt_use_xrender) - qt_has_xft = FALSE; + if (!tqt_use_xrender) + tqt_has_xft = FALSE; else #endif - qt_has_xft = XftInit(0) && XftInitFtLibrary(); + tqt_has_xft = XftInit(0) && XftInitFtLibrary(); - if (qt_has_xft) { + if (tqt_has_xft) { char *dpi_str = XGetDefault(appDpy, "Xft", "dpi"); if (dpi_str) { // use a custom DPI @@ -2272,7 +2272,7 @@ void qt_init_internal( int *argcptr, char **argv, devices = XListInputDevices( appDpy, &ndev); if ( devices == NULL ) { - qWarning( "Failed to get list of devices" ); + tqWarning( "Failed to get list of devices" ); ndev = -1; } dev = NULL; @@ -2305,7 +2305,7 @@ void qt_init_internal( int *argcptr, char **argv, ev_class = event_list_eraser; } if ( dev == NULL ) { - qWarning( "Failed to open device" ); + tqWarning( "Failed to open device" ); } else { if ( dev->num_classes > 0 ) { for ( ip = dev->classes, j = 0; j < devs->num_classes; @@ -2401,7 +2401,7 @@ void qt_init_internal( int *argcptr, char **argv, tqApp->setDefaultCodec(codec); } - qt_resolve_symlinks = + tqt_resolve_symlinks = settings.readBoolEntry("/qt/resolveSymlinks", TRUE); } } @@ -2605,7 +2605,7 @@ bool qt_wstate_iconified( WId winid ) int format; unsigned long length, after; uchar *data; - int r = XGetWindowProperty( appDpy, winid, qt_wm_state, 0, 2, + int r = XGetWindowProperty( appDpy, winid, tqt_wm_state, 0, 2, False, AnyPropertyType, &type, &format, &length, &after, &data ); bool iconic = FALSE; @@ -2628,23 +2628,23 @@ const char *tqAppClass() // get application class return appClass; } -Display *qt_xdisplay() // get current X display +Display *tqt_xdisplay() // get current X display { return appDpy; } -int qt_xscreen() // get current X screen +int tqt_xscreen() // get current X screen { return appScreen; } // ### REMOVE 4.0 -WId qt_xrootwin() // get X root window +WId tqt_xrootwin() // get X root window { return TQPaintDevice::x11AppRootWindow(); } -WId qt_xrootwin( int scrn ) // get X root window for screen +WId tqt_xrootwin( int scrn ) // get X root window for screen { return TQPaintDevice::x11AppRootWindow( scrn ); } @@ -2686,10 +2686,10 @@ static GC create_gc( int scrn, bool monochrome ) return gc; } -GC qt_xget_readonly_gc( int scrn, bool monochrome ) // get read-only GC +GC tqt_xget_readonly_gc( int scrn, bool monochrome ) // get read-only GC { if ( scrn < 0 || scrn >= appScreenCount ) { - qDebug("invalid screen %d %d", scrn, appScreenCount ); + tqDebug("invalid screen %d %d", scrn, appScreenCount ); TQWidget* bla = 0; bla->setName("hello"); } @@ -2710,10 +2710,10 @@ GC qt_xget_readonly_gc( int scrn, bool monochrome ) // get read-only GC return gc; } -GC qt_xget_temp_gc( int scrn, bool monochrome ) // get temporary GC +GC tqt_xget_temp_gc( int scrn, bool monochrome ) // get temporary GC { if ( scrn < 0 || scrn >= appScreenCount ) { - qDebug("invalid screen (tmp) %d %d", scrn, appScreenCount ); + tqDebug("invalid screen (tmp) %d %d", scrn, appScreenCount ); TQWidget* bla = 0; bla->setName("hello"); } @@ -2773,7 +2773,7 @@ void TQApplication::setMainWidget( TQWidget *mainWidget ) #if defined(QT_CHECK_STATE) if ( mainWidget && mainWidget->parentWidget() && ! mainWidget->parentWidget()->isDesktop() ) - qWarning( "TQApplication::setMainWidget(): New main widget (%s/%s) " + tqWarning( "TQApplication::setMainWidget(): New main widget (%s/%s) " "has a parent!", mainWidget->className(), mainWidget->name() ); #endif @@ -3058,7 +3058,7 @@ TQWidget *TQApplication::widgetAt( int x, int y, bool child ) if ( !w ) { qt_ignore_badwindow(); - target = qt_x11_findClientWindow( target, qt_wm_state, TRUE ); + target = qt_x11_findClientWindow( target, tqt_wm_state, TRUE ); if (qt_badwindow() ) return 0; w = TQWidget::find( (WId)target ); @@ -3217,16 +3217,16 @@ int TQApplication::x11ClientMessage(TQWidget* w, XEvent* event, bool passive_onl { TQETWidget *widget = (TQETWidget*)w; if ( event->xclient.format == 32 && event->xclient.message_type ) { - if ( event->xclient.message_type == qt_wm_protocols ) { + if ( event->xclient.message_type == tqt_wm_protocols ) { Atom a = event->xclient.data.l[0]; - if ( a == qt_wm_delete_window ) { + if ( a == tqt_wm_delete_window ) { if ( passive_only ) return 0; widget->translateCloseEvent(event); } - else if ( a == qt_wm_take_focus ) { + else if ( a == tqt_wm_take_focus ) { TQWidget * amw = activeModalWidget(); - if ( (ulong) event->xclient.data.l[1] > qt_x_time ) - qt_x_time = event->xclient.data.l[1]; + if ( (ulong) event->xclient.data.l[1] > tqt_x_time ) + tqt_x_time = event->xclient.data.l[1]; if ( amw && amw != widget ) { TQWidget* groupLeader = widget; while ( groupLeader && !groupLeader->testWFlags( TQt::WGroupLeader ) @@ -3299,29 +3299,29 @@ int TQApplication::x11ProcessEvent( XEvent* event ) switch ( event->type ) { case ButtonPress: ignoreNextMouseReleaseEvent = FALSE; - qt_x_user_time = event->xbutton.time; + tqt_x_user_time = event->xbutton.time; // fallthrough intended case ButtonRelease: - qt_x_time = event->xbutton.time; + tqt_x_time = event->xbutton.time; break; case MotionNotify: - qt_x_time = event->xmotion.time; + tqt_x_time = event->xmotion.time; break; case XKeyPress: - qt_x_user_time = event->xkey.time; + tqt_x_user_time = event->xkey.time; // fallthrough intended case XKeyRelease: - qt_x_time = event->xkey.time; + tqt_x_time = event->xkey.time; break; case PropertyNotify: - qt_x_time = event->xproperty.time; + tqt_x_time = event->xproperty.time; break; case EnterNotify: case LeaveNotify: - qt_x_time = event->xcrossing.time; + tqt_x_time = event->xcrossing.time; break; case SelectionClear: - qt_x_time = event->xselectionclear.time; + tqt_x_time = event->xselectionclear.time; break; default: break; @@ -3567,7 +3567,7 @@ int TQApplication::x11ProcessEvent( XEvent* event ) case XKeyRelease: { if ( keywidget && keywidget->isEnabled() ) { // should always exist - // qDebug( "sending key event" ); + // tqDebug( "sending key event" ); keywidget->translateKeyEvent( event, grabbed ); } break; @@ -3837,7 +3837,7 @@ bool TQApplication::x11EventFilter( XEvent * ) TQWidget *widget A modal widget *****************************************************************************/ -bool qt_modal_state() +bool tqt_modal_state() { return app_do_modal; } @@ -4474,22 +4474,22 @@ bool TQETWidget::translateXinputEvent( const XEvent *ev ) } button = (XDeviceButtonEvent*)ev; /* - qDebug( "\n\nXInput Button Event" ); - qDebug( "serial:\t%d", button->serial ); - qDebug( "send_event:\t%d", button->send_event ); - qDebug( "display:\t%p", button->display ); - qDebug( "window:\t%d", button->window ); - qDebug( "deviceID:\t%d", button->deviceid ); - qDebug( "root:\t%d", button->root ); - qDebug( "subwindot:\t%d", button->subwindow ); - qDebug( "x:\t%d", button->x ); - qDebug( "y:\t%d", button->y ); - qDebug( "x_root:\t%d", button->x_root ); - qDebug( "y_root:\t%d", button->y_root ); - qDebug( "state:\t%d", button->state ); - qDebug( "button:\t%d", button->button ); - qDebug( "same_screen:\t%d", button->same_screen ); - qDebug( "time:\t%d", button->time ); + tqDebug( "\n\nXInput Button Event" ); + tqDebug( "serial:\t%d", button->serial ); + tqDebug( "send_event:\t%d", button->send_event ); + tqDebug( "display:\t%p", button->display ); + tqDebug( "window:\t%d", button->window ); + tqDebug( "deviceID:\t%d", button->deviceid ); + tqDebug( "root:\t%d", button->root ); + tqDebug( "subwindot:\t%d", button->subwindow ); + tqDebug( "x:\t%d", button->x ); + tqDebug( "y:\t%d", button->y ); + tqDebug( "x_root:\t%d", button->x_root ); + tqDebug( "y_root:\t%d", button->y_root ); + tqDebug( "state:\t%d", button->state ); + tqDebug( "button:\t%d", button->button ); + tqDebug( "same_screen:\t%d", button->same_screen ); + tqDebug( "time:\t%d", button->time ); */ curr = TQPoint( button->x, button->y ); } @@ -4675,7 +4675,7 @@ bool TQETWidget::translatePropertyEvent(const XEvent *event) TQEvent e(TQEvent::WindowStateChange); TQApplication::sendSpontaneousEvent(this, &e); } - } else if (event->xproperty.atom == qt_wm_state) { + } else if (event->xproperty.atom == tqt_wm_state) { // the widget frame strut should also be invalidated topData()->fleft = topData()->fright = topData()->ftop = topData()->fbottom = 0; fstrut_dirty = 1; @@ -4699,17 +4699,17 @@ bool TQETWidget::translatePropertyEvent(const XEvent *event) // TQPaintDevice::x11AppRootWindow(x11Screen())) check // above - e = XGetWindowProperty(appDpy, winId(), qt_wm_state, 0, 2, False, qt_wm_state, + e = XGetWindowProperty(appDpy, winId(), tqt_wm_state, 0, 2, False, tqt_wm_state, &ret, &format, &nitems, &after, &data ); - if (e == Success && ret == qt_wm_state && format == 32 && nitems > 0) { + if (e == Success && ret == tqt_wm_state && format == 32 && nitems > 0) { long *state = (long *) data; switch (state[0]) { case WithdrawnState: // if we are in the withdrawn state, we are free // to reuse this window provided we remove the // WM_STATE property (ICCCM 4.1.3.1) - XDeleteProperty(appDpy, winId(), qt_wm_state); + XDeleteProperty(appDpy, winId(), tqt_wm_state); // set the parent id to zero, so that show() will // work again @@ -5181,7 +5181,7 @@ bool TQETWidget::translateKeyEventInternal( const XEvent *event, int& count, keyDict->setAutoDelete( FALSE ); textDict = new TQIntDict<void>( 13 ); textDict->setAutoDelete( FALSE ); - qAddPostRoutine( deleteKeyDicts ); + tqAddPostRoutine( deleteKeyDicts ); } TQWidget* tlw = topLevelWidget(); @@ -5891,7 +5891,7 @@ extern "C" { static Bool qt_net_wm_sync_request_scanner(Display*, XEvent* event, XPointer arg) { return (event->type == ClientMessage && event->xclient.window == *(Window*)arg - && event->xclient.message_type == qt_wm_protocols + && event->xclient.message_type == tqt_wm_protocols && event->xclient.data.l[ 0 ] == qt_net_wm_sync_request ); } #endif @@ -6375,7 +6375,7 @@ static void sm_performSaveYourself( TQSessionManagerData* smd ) // generate a restart and discard command that makes sense TQStringList restart; restart << tqApp->argv()[0] << "-session" << smd->sessionId + "_" + smd->sessionKey; - if (qstricmp(tqAppName(), tqAppClass()) != 0) + if (tqstricmp(tqAppName(), tqAppClass()) != 0) restart << "-name" << tqAppName(); sm->setRestartCommand( restart ); TQStringList discard; @@ -6524,7 +6524,7 @@ TQSessionManager::TQSessionManager( TQApplication * app, TQString &id, TQString& TQString error = cerror; if (!smcConnection ) { - qWarning("Session management error: %s", error.latin1() ); + tqWarning("Session management error: %s", error.latin1() ); } else { sm_receiver = new TQSmSocketReceiver( IceConnectionNumber( SmcGetIceConnection( smcConnection ) ) ); diff --git a/src/kernel/qasyncimageio.cpp b/src/kernel/qasyncimageio.cpp index 320e4bd4b..277a2e08f 100644 --- a/src/kernel/qasyncimageio.cpp +++ b/src/kernel/qasyncimageio.cpp @@ -304,7 +304,7 @@ public: gif_decoder_factory = new TQGIFFormatType; #endif qt_init_image_handlers(); - qAddPostRoutine( cleanup ); + tqAddPostRoutine( cleanup ); } } @@ -438,7 +438,7 @@ TQImageFormatType* TQImageDecoder::format( const char* name ) f; f = TQImageDecoderPrivate::factories->next()) { - if ( qstricmp(name,f->formatName())==0 ) + if ( tqstricmp(name,f->formatName())==0 ) return f; } return 0; diff --git a/src/kernel/qasyncio.cpp b/src/kernel/qasyncio.cpp index 84912e1ff..0bccc14d8 100644 --- a/src/kernel/qasyncio.cpp +++ b/src/kernel/qasyncio.cpp @@ -187,7 +187,7 @@ bool TQDataSource::rewindable() const is TRUE, then the data source must take measures to allow the rewind() function to subsequently operate as described. If rewindable() is FALSE, the function should call TQDataSource::enableRewind(), which aborts with - a qFatal() error. + a tqFatal() error. For example, a network connection may choose to use a disk cache of input only if rewinding is enabled before the first buffer-full of @@ -196,7 +196,7 @@ bool TQDataSource::rewindable() const */ void TQDataSource::enableRewind( bool /* on */ ) { - qFatal( "Attempted to make unrewindable TQDataSource rewindable" ); + tqFatal( "Attempted to make unrewindable TQDataSource rewindable" ); } /*! @@ -205,7 +205,7 @@ void TQDataSource::enableRewind( bool /* on */ ) */ void TQDataSource::rewind() { - qFatal("Attempted to rewind unrewindable TQDataSource"); + tqFatal("Attempted to rewind unrewindable TQDataSource"); } /*! diff --git a/src/kernel/qclipboard.cpp b/src/kernel/qclipboard.cpp index 32da6a764..77b1235e7 100644 --- a/src/kernel/qclipboard.cpp +++ b/src/kernel/qclipboard.cpp @@ -72,7 +72,7 @@ // Copy text from the clipboard (paste) TQString text = cb->text(TQClipboard::Clipboard); if ( !text.isNull() ) - qDebug( "The clipboard contains: " + text ); + tqDebug( "The clipboard contains: " + text ); // Copy text into the clipboard cb->setText( "This text can be pasted by other programs", diff --git a/src/kernel/qclipboard_x11.cpp b/src/kernel/qclipboard_x11.cpp index 32f428fcf..b80e86987 100644 --- a/src/kernel/qclipboard_x11.cpp +++ b/src/kernel/qclipboard_x11.cpp @@ -42,15 +42,15 @@ // #define TQCLIPBOARD_DEBUG_VERBOSE #ifdef TQCLIPBOARD_DEBUG -# define TQDEBUG qDebug +# define TQDEBUG tqDebug #else -# define TQDEBUG if (FALSE) qDebug +# define TQDEBUG if (FALSE) tqDebug #endif #ifdef TQCLIPBOARD_DEBUG_VERBOSE -# define VTQDEBUG qDebug +# define VTQDEBUG tqDebug #else -# define VTQDEBUG if (FALSE) qDebug +# define VTQDEBUG if (FALSE) tqDebug #endif #include "qplatformdefs.h" @@ -85,9 +85,9 @@ // from qapplication_x11.cpp typedef int (*QX11EventFilter) (XEvent*); -extern QX11EventFilter qt_set_x11_event_filter (QX11EventFilter filter); +extern QX11EventFilter tqt_set_x11_event_filter (QX11EventFilter filter); -extern Time qt_x_time; // def. in qapplication_x11.cpp +extern Time tqt_x_time; // def. in qapplication_x11.cpp extern Time qt_x_incr; // def. in qapplication_x11.cpp extern Atom qt_xa_clipboard; extern Atom qt_selection_property; @@ -112,7 +112,7 @@ static int pending_timer_id = 0; static bool pending_clipboard_changed = FALSE; static bool pending_selection_changed = FALSE; -Q_EXPORT bool qt_qclipboard_bailout_hack = false; +Q_EXPORT bool tqt_qclipboard_bailout_hack = false; // event capture mechanism for qt_xclb_wait_for_event static bool waiting_for_data = FALSE; @@ -140,7 +140,7 @@ void setupOwner() return; owner = new TQWidget( 0, "internal clipboard owner" ); requestor = new TQWidget(0, "internal clipboard requestor"); - qAddPostRoutine( cleanup ); + tqAddPostRoutine( cleanup ); } static @@ -239,7 +239,7 @@ static TQClipboardData *clipboardData() if ( internalCbData == 0 ) { internalCbData = new TQClipboardData; TQ_CHECK_PTR( internalCbData ); - qAddPostRoutine( cleanupClipboardData ); + tqAddPostRoutine( cleanupClipboardData ); } return internalCbData; } @@ -261,7 +261,7 @@ static TQClipboardData *selectionData() if (internalSelData == 0) { internalSelData = new TQClipboardData; TQ_CHECK_PTR(internalSelData); - qAddPostRoutine(cleanupSelectionData); + tqAddPostRoutine(cleanupSelectionData); } return internalSelData; } @@ -306,7 +306,7 @@ static int qt_xclb_transation_event_handler(XEvent *event) */ static void qt_xclb_incr_timeout(void) { - qWarning("TQClipboard: timed out while sending data"); + tqWarning("TQClipboard: timed out while sending data"); while (transactions) delete *transactions->begin(); @@ -323,7 +323,7 @@ TQClipboardINCRTransaction::TQClipboardINCRTransaction(Window w, Atom p, Atom t, if (! transactions) { VTQDEBUG("TQClipboard: created INCR transaction map"); transactions = new TransactionMap; - prev_x11_event_filter = qt_set_x11_event_filter(qt_xclb_transation_event_handler); + prev_x11_event_filter = tqt_set_x11_event_filter(qt_xclb_transation_event_handler); incr_timer_id = TQApplication::clipboard()->startTimer(clipboard_timeout); } @@ -341,7 +341,7 @@ TQClipboardINCRTransaction::~TQClipboardINCRTransaction(void) VTQDEBUG("TQClipboard: no more INCR transations"); delete transactions; transactions = 0; - (void)qt_set_x11_event_filter(prev_x11_event_filter); + (void)tqt_set_x11_event_filter(prev_x11_event_filter); if (incr_timer_id != 0) { TQApplication::clipboard()->killTimer(incr_timer_id); @@ -482,19 +482,19 @@ bool qt_xclb_wait_for_event( Display *dpy, Window win, int type, XEvent *event, if (tqApp->eventLoop()->inherits("TQMotif")) { // yes yes, evil hack, we know if ( waiting_for_data ) - qFatal( "TQClipboard: internal error, qt_xclb_wait_for_event recursed" ); + tqFatal( "TQClipboard: internal error, qt_xclb_wait_for_event recursed" ); waiting_for_data = TRUE; has_captured_event = FALSE; capture_event_win = win; capture_event_type = type; - QX11EventFilter old_event_filter = qt_set_x11_event_filter(qt_xclb_event_filter); + QX11EventFilter old_event_filter = tqt_set_x11_event_filter(qt_xclb_event_filter); do { if ( XCheckTypedWindowEvent(dpy,win,type,event) ) { waiting_for_data = FALSE; - qt_set_x11_event_filter(old_event_filter); + tqt_set_x11_event_filter(old_event_filter); return TRUE; } @@ -510,13 +510,13 @@ bool qt_xclb_wait_for_event( Display *dpy, Window win, int type, XEvent *event, if ( has_captured_event ) { waiting_for_data = FALSE; *event = captured_event; - qt_set_x11_event_filter(old_event_filter); + tqt_set_x11_event_filter(old_event_filter); return TRUE; } } while ( started.msecsTo(now) < timeout ); waiting_for_data = FALSE; - qt_set_x11_event_filter(old_event_filter); + tqt_set_x11_event_filter(old_event_filter); return FALSE; } @@ -525,7 +525,7 @@ bool qt_xclb_wait_for_event( Display *dpy, Window win, int type, XEvent *event, do { if ( XCheckTypedWindowEvent(dpy,win,type,event) ) return TRUE; - if( qt_qclipboard_bailout_hack ) { + if( tqt_qclipboard_bailout_hack ) { XEvent dummy; selection_request_pending = false; if ( owner != NULL ) @@ -1061,7 +1061,7 @@ bool TQClipboard::event( TQEvent *e ) } } else { #ifdef QT_CHECK_STATE - qWarning("TQClipboard: Unknown SelectionClear event received."); + tqWarning("TQClipboard: Unknown SelectionClear event received."); #endif return FALSE; } @@ -1110,7 +1110,7 @@ bool TQClipboard::event( TQEvent *e ) d = clipboardData(); } else { #ifdef QT_CHECK_RANGE - qWarning("TQClipboard: unknown selection '%lx'", req->selection); + tqWarning("TQClipboard: unknown selection '%lx'", req->selection); #endif // QT_CHECK_RANGE XSendEvent(dpy, req->requestor, False, NoEventMask, &event); @@ -1119,7 +1119,7 @@ bool TQClipboard::event( TQEvent *e ) if (! d->source()) { #ifdef QT_CHECK_STATE - qWarning("TQClipboard: cannot transfer data, no data available"); + tqWarning("TQClipboard: cannot transfer data, no data available"); #endif // QT_CHECK_STATE XSendEvent(dpy, req->requestor, False, NoEventMask, &event); @@ -1190,7 +1190,7 @@ bool TQClipboard::event( TQEvent *e ) } else { #ifdef QT_CHECK_STATE - qWarning("TQClipboard: invalid data timestamp"); + tqWarning("TQClipboard: invalid data timestamp"); #endif // QT_CHECK_STATE } } else if (target == xa_targets) { @@ -1262,7 +1262,7 @@ TQClipboardWatcher::TQClipboardWatcher( TQClipboard::Mode mode ) #ifdef QT_CHECK_RANGE default: - qWarning( "TQClipboardWatcher: internal error, unknown clipboard mode" ); + tqWarning( "TQClipboardWatcher: internal error, unknown clipboard mode" ); break; #endif // QT_CHECK_RANGE } @@ -1285,7 +1285,7 @@ bool TQClipboardWatcher::empty() const #ifdef QT_CHECK_STATE if( win == requestor->winId()) { - qWarning( "TQClipboardWatcher::empty: internal error, app owns the selection" ); + tqWarning( "TQClipboardWatcher::empty: internal error, app owns the selection" ); return TRUE; } #endif // QT_CHECK_STATE @@ -1371,10 +1371,10 @@ TQByteArray TQClipboardWatcher::encodedData( const char* fmt ) const Atom fmtatom = 0; - if ( 0==qstricmp(fmt,"text/plain;charset=iso-8859-1") ) { + if ( 0==tqstricmp(fmt,"text/plain;charset=iso-8859-1") ) { // ICCCM section 2.6.2 says STRING is latin1 text fmtatom = XA_STRING; - } else if ( 0==qstricmp(fmt,"text/plain;charset=utf-8") ) { + } else if ( 0==tqstricmp(fmt,"text/plain;charset=utf-8") ) { // proprosed UTF8_STRING conversion type fmtatom = *qt_xdnd_str_to_atom( "UTF8_STRING" ); } else if ( 0==qstrcmp(fmt,"text/plain") ) { @@ -1432,7 +1432,7 @@ TQByteArray TQClipboardWatcher::getDataInFormat(Atom fmtatom) const XSelectInput(dpy, win, NoEventMask); // don't listen for any events XDeleteProperty(dpy, win, qt_selection_property); - XConvertSelection(dpy, atom, fmtatom, qt_selection_property, win, qt_x_time); + XConvertSelection(dpy, atom, fmtatom, qt_selection_property, win, tqt_x_time); XSync(dpy, FALSE); VTQDEBUG("TQClipboardWatcher::getDataInFormat: waiting for SelectionNotify event"); @@ -1476,7 +1476,7 @@ TQMimeSource* TQClipboard::data( Mode mode ) const default: #ifdef QT_CHECK_RANGE - qWarning( "TQClipboard::data: invalid mode '%d'", mode ); + tqWarning( "TQClipboard::data: invalid mode '%d'", mode ); #endif // QT_CHECK_RANGE return 0; } @@ -1526,7 +1526,7 @@ void TQClipboard::setData( TQMimeSource* src, Mode mode ) default: #ifdef QT_CHECK_RANGE - qWarning( "TQClipboard::data: invalid mode '%d'", mode ); + tqWarning( "TQClipboard::data: invalid mode '%d'", mode ); #endif // QT_CHECK_RANGE return; } @@ -1543,12 +1543,12 @@ void TQClipboard::setData( TQMimeSource* src, Mode mode ) newOwner = owner->winId(); d->setSource(src); - d->timestamp = qt_x_time; + d->timestamp = tqt_x_time; } Window prevOwner = XGetSelectionOwner( dpy, atom ); - // use qt_x_time, since d->timestamp == CurrentTime when clearing - XSetSelectionOwner(dpy, atom, newOwner, qt_x_time); + // use tqt_x_time, since d->timestamp == CurrentTime when clearing + XSetSelectionOwner(dpy, atom, newOwner, tqt_x_time); if ( mode == Selection ) emit selectionChanged(); @@ -1557,7 +1557,7 @@ void TQClipboard::setData( TQMimeSource* src, Mode mode ) if (XGetSelectionOwner(dpy, atom) != newOwner) { #ifdef QT_CHECK_STATE - qWarning("TQClipboard::setData: Cannot set X11 selection owner for %s", + tqWarning("TQClipboard::setData: Cannot set X11 selection owner for %s", qt_xdnd_atom_to_str(atom)); #endif // QT_CHECK_STATE diff --git a/src/kernel/qcolor.cpp b/src/kernel/qcolor.cpp index a7f6b30ba..eb345bfd7 100644 --- a/src/kernel/qcolor.cpp +++ b/src/kernel/qcolor.cpp @@ -564,7 +564,7 @@ void TQColor::setNamedColor( const TQString &name ) d.d32.argb = Invalid; d.d32.pix = Dirt; #if defined(QT_CHECK_RANGE) - qWarning( "TQColor::setNamedColor: could not parse color '%s'", + tqWarning( "TQColor::setNamedColor: could not parse color '%s'", name.local8Bit().data() ); #endif } else { @@ -668,7 +668,7 @@ void TQColor::setHsv( int h, int s, int v ) { if ( h < -1 || (uint)s > 255 || (uint)v > 255 ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQColor::setHsv: HSV parameters out of range" ); + tqWarning( "TQColor::setHsv: HSV parameters out of range" ); #endif return; } @@ -745,7 +745,7 @@ void TQColor::setRgb( int r, int g, int b ) { if ( (uint)r > 255 || (uint)g > 255 || (uint)b > 255 ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQColor::setRgb: RGB parameter(s) out of range" ); + tqWarning( "TQColor::setRgb: RGB parameter(s) out of range" ); #endif return; } diff --git a/src/kernel/qcolor_p.cpp b/src/kernel/qcolor_p.cpp index 680737ffc..5db1ffe18 100644 --- a/src/kernel/qcolor_p.cpp +++ b/src/kernel/qcolor_p.cpp @@ -728,7 +728,7 @@ static int __cdecl rgb_cmp( const void *d1, const void *d2 ) static int rgb_cmp( const void *d1, const void *d2 ) #endif { - return qstricmp( ((RGBData *)d1)->name, ((RGBData *)d2)->name ); + return tqstricmp( ((RGBData *)d1)->name, ((RGBData *)d2)->name ); } #if defined(Q_C_CALLBACKS) diff --git a/src/kernel/qcolor_x11.cpp b/src/kernel/qcolor_x11.cpp index 6be79b40b..67a3912fb 100644 --- a/src/kernel/qcolor_x11.cpp +++ b/src/kernel/qcolor_x11.cpp @@ -640,7 +640,7 @@ void TQColor::setSystemNamedColor( const TQString& name ) } } else if ( !color_init ) { #if defined(QT_CHECK_STATE) - qWarning( "TQColor::setSystemNamedColor: Cannot perform this operation " + tqWarning( "TQColor::setSystemNamedColor: Cannot perform this operation " "because TQApplication does not exist" ); #endif // set color to invalid @@ -737,7 +737,7 @@ int TQColor::enterAllocContext() init_context_stack(); if ( context_ptr+1 == MAX_CONTEXTS ) { #if defined(QT_CHECK_STATE) - qWarning( "TQColor::enterAllocContext: Context stack overflow" ); + tqWarning( "TQColor::enterAllocContext: Context stack overflow" ); #endif return 0; } @@ -759,7 +759,7 @@ void TQColor::leaveAllocContext() init_context_stack(); if ( context_ptr == 0 ) { #if defined(QT_CHECK_STATE) - qWarning( "TQColor::leaveAllocContext: Context stack underflow" ); + tqWarning( "TQColor::leaveAllocContext: Context stack underflow" ); #endif return; } diff --git a/src/kernel/qcursor.cpp b/src/kernel/qcursor.cpp index 12e7cc780..2a4cfd18d 100644 --- a/src/kernel/qcursor.cpp +++ b/src/kernel/qcursor.cpp @@ -165,7 +165,7 @@ TQDataStream &operator<<( TQDataStream &s, const TQCursor &c ) s << *c.bitmap() << *c.mask(); s << c.hotSpot(); #else - qWarning("No Image Cursor I/O"); + tqWarning("No Image Cursor I/O"); #endif } return s; @@ -189,7 +189,7 @@ TQDataStream &operator>>( TQDataStream &s, TQCursor &c ) s >> bm >> bmm >> hot; c = TQCursor( bm, bmm, hot.x(), hot.y() ); #else - qWarning("No Image Cursor I/O"); + tqWarning("No Image Cursor I/O"); #endif } else { c.setShape( (int)shape ); // create cursor with shape diff --git a/src/kernel/qcursor_x11.cpp b/src/kernel/qcursor_x11.cpp index 790ebafc7..39b603333 100644 --- a/src/kernel/qcursor_x11.cpp +++ b/src/kernel/qcursor_x11.cpp @@ -166,7 +166,7 @@ void TQCursor::initialize() for( shape = 0; shape <= LastCursor; shape++ ) cursorTable[shape].data = new TQCursorData( shape ); initialized = TRUE; - qAddPostRoutine( cleanup ); + tqAddPostRoutine( cleanup ); } @@ -234,7 +234,7 @@ void TQCursor::setBitmap( const TQBitmap &bitmap, const TQBitmap &mask, if ( bitmap.depth() != 1 || mask.depth() != 1 || bitmap.size() != mask.size() ) { #if defined(QT_CHECK_NULL) - qWarning( "TQCursor: Cannot create bitmap cursor; invalid bitmap(s)" ); + tqWarning( "TQCursor: Cannot create bitmap cursor; invalid bitmap(s)" ); #endif TQCursor *c = &cursorTable[arrowCursorIdx]; c->data->ref(); @@ -825,7 +825,7 @@ void TQCursor::update() const #endif /* QT_USE_APPROXIMATE_CURSORS */ default: #if defined(QT_CHECK_RANGE) - qWarning( "TQCursor::update: Invalid cursor shape %d", d->cshape ); + tqWarning( "TQCursor::update: Invalid cursor shape %d", d->cshape ); #endif return; } diff --git a/src/kernel/qdnd_x11.cpp b/src/kernel/qdnd_x11.cpp index 149c2fe05..aeb025830 100644 --- a/src/kernel/qdnd_x11.cpp +++ b/src/kernel/qdnd_x11.cpp @@ -82,9 +82,9 @@ extern void qt_leave_modal( TQWidget *widget ); #endif extern Window qt_x11_findClientWindow( Window, Atom, bool ); -extern Atom qt_wm_state; -extern Time qt_x_time; -extern Time qt_x_user_time; +extern Atom tqt_wm_state; +extern Time tqt_x_time; +extern Time tqt_x_user_time; // this stuff is copied from qclb_x11.cpp @@ -460,7 +460,7 @@ void qt_xdnd_setup() { qt_x11_intern_atom( "QT_SELECTION", &qt_selection_property ); qt_x11_intern_atom( "INCR", &qt_incr_atom ); - qAddPostRoutine( qt_xdnd_cleanup ); + tqAddPostRoutine( qt_xdnd_cleanup ); } @@ -616,14 +616,14 @@ void qt_handle_xdnd_position( TQWidget *w, const XEvent * xe, bool passive ) } if ( l[0] != qt_xdnd_dragsource_xid ) { - //qDebug( "xdnd drag position from unexpected source (%08lx not %08lx)", + //tqDebug( "xdnd drag position from unexpected source (%08lx not %08lx)", // l[0], qt_xdnd_dragsource_xid ); return; } if (l[3] != 0) { // timestamp from the source - qt_xdnd_target_current_time = qt_x_user_time = l[3]; + qt_xdnd_target_current_time = tqt_x_user_time = l[3]; } XClientMessageEvent response; @@ -761,7 +761,7 @@ void qt_handle_xdnd_status( TQWidget * w, const XEvent * xe, bool /*passive*/ ) void qt_handle_xdnd_leave( TQWidget *w, const XEvent * xe, bool /*passive*/ ) { - //qDebug( "xdnd leave" ); + //tqDebug( "xdnd leave" ); if ( !qt_xdnd_current_widget || w->topLevelWidget() != qt_xdnd_current_widget->topLevelWidget() ) { return; // sanity @@ -780,7 +780,7 @@ void qt_handle_xdnd_leave( TQWidget *w, const XEvent * xe, bool /*passive*/ ) if ( l[0] != qt_xdnd_dragsource_xid ) { // This often happens - leave other-process window tquickly - //qDebug( "xdnd drag leave from unexpected source (%08lx not %08lx", + //tqDebug( "xdnd drag leave from unexpected source (%08lx not %08lx", //l[0], qt_xdnd_dragsource_xid ); qt_xdnd_current_widget = 0; return; @@ -839,17 +839,17 @@ void qt_handle_xdnd_drop( TQWidget *, const XEvent * xe, bool passive ) } const unsigned long *l = (const unsigned long *)xe->xclient.data.l; - //qDebug( "xdnd drop" ); + //tqDebug( "xdnd drop" ); if ( l[0] != qt_xdnd_dragsource_xid ) { - //qDebug( "xdnd drop from unexpected source (%08lx not %08lx", + //tqDebug( "xdnd drop from unexpected source (%08lx not %08lx", // l[0], qt_xdnd_dragsource_xid ); return; } if (l[2] != 0) { // update the "user time" from the timestamp in the event. - qt_xdnd_target_current_time = qt_x_user_time = l[2]; + qt_xdnd_target_current_time = tqt_x_user_time = l[2]; } if ( qt_xdnd_source_object ) @@ -910,7 +910,7 @@ void TQDragManager::timerEvent( TQTimerEvent* e ) Window root, child; int root_x, root_y, win_x, win_y; unsigned int mask; - XQueryPointer( qt_xdisplay(), qt_xrootwin( qt_xdnd_current_screen ), + XQueryPointer( tqt_xdisplay(), tqt_xrootwin( qt_xdnd_current_screen ), &root, &child, &root_x, &root_y, &win_x, &win_y, &mask ); if( updateMode( (ButtonState)qt_x11_translateButtonState( mask ))) qt_xdnd_source_sameanswer = TQRect(); // force move @@ -956,7 +956,7 @@ bool qt_xdnd_another_movement() qt_xdnd_was_move = false; qt_xdnd_found = false; XEvent dummy; - XCheckIfEvent( qt_xdisplay(), &dummy, qt_xdnd_predicate, NULL ); + XCheckIfEvent( tqt_xdisplay(), &dummy, qt_xdnd_predicate, NULL ); return qt_xdnd_was_move; } @@ -1309,7 +1309,7 @@ void TQDragManager::move( const TQPoint & globalPos ) unsigned long n, a; WId *proxy_id; qt_ignore_badwindow(); - r = XGetWindowProperty( qt_xdisplay(), target, qt_xdnd_proxy, 0, + r = XGetWindowProperty( tqt_xdisplay(), target, qt_xdnd_proxy, 0, 1, False, XA_WINDOW, &type, &f,&n,&a,(uchar**)&proxy_id ); if ( ( r != Success ) || qt_badwindow() ) { proxy_target = target = 0; @@ -1317,7 +1317,7 @@ void TQDragManager::move( const TQPoint & globalPos ) proxy_target = *proxy_id; XFree(proxy_id); proxy_id = 0; - r = XGetWindowProperty( qt_xdisplay(), proxy_target, qt_xdnd_proxy, 0, + r = XGetWindowProperty( tqt_xdisplay(), proxy_target, qt_xdnd_proxy, 0, 1, False, XA_WINDOW, &type, &f,&n,&a,(uchar**)&proxy_id ); if ( ( r != Success ) || qt_badwindow() || !type || !proxy_id || *proxy_id != proxy_target ) { // Bogus @@ -1330,7 +1330,7 @@ void TQDragManager::move( const TQPoint & globalPos ) if ( proxy_target ) { int *tv; qt_ignore_badwindow(); - r = XGetWindowProperty( qt_xdisplay(), proxy_target, qt_xdnd_aware, 0, + r = XGetWindowProperty( tqt_xdisplay(), proxy_target, qt_xdnd_aware, 0, 1, False, AnyPropertyType, &type, &f,&n,&a,(uchar**)&tv ); if ( r != Success ) { target = 0; @@ -1400,7 +1400,7 @@ void TQDragManager::move( const TQPoint & globalPos ) move.data.l[0] = object->source()->winId(); move.data.l[1] = 0; // flags move.data.l[2] = (globalPos.x() << 16) + globalPos.y(); - move.data.l[3] = qt_x_time; + move.data.l[3] = tqt_x_time; move.data.l[4] = qtaction_to_xdndaction( global_requested_action ); if ( w ) @@ -1434,7 +1434,7 @@ void TQDragManager::drop() drop.message_type = qt_xdnd_drop; drop.data.l[0] = object->source()->winId(); drop.data.l[1] = 0; // flags - drop.data.l[2] = qt_x_time; + drop.data.l[2] = tqt_x_time; drop.data.l[3] = 0; drop.data.l[4] = 0; @@ -1509,7 +1509,7 @@ bool qt_xdnd_handle_badwindow() bool TQDropEvent::provides( const char *mimeType ) const { - if ( qt_motifdnd_active && qstrnicmp( mimeType, "text/", 5 ) == 0 ) + if ( qt_motifdnd_active && tqstrnicmp( mimeType, "text/", 5 ) == 0 ) return TRUE; int n=0; @@ -1519,7 +1519,7 @@ bool TQDropEvent::provides( const char *mimeType ) const if ( !f ) return FALSE; n++; - } while( qstricmp( mimeType, f ) ); + } while( tqstricmp( mimeType, f ) ); return TRUE; } @@ -1617,7 +1617,7 @@ static TQByteArray qt_xdnd_obtain_data( const char *format ) qt_xdnd_selection, nbytes, FALSE ); } else if ( type != *a ) { - // (includes None) qDebug( "TQt clipboard: unknown atom %ld", type); + // (includes None) tqDebug( "TQt clipboard: unknown atom %ld", type); } #if 0 // this needs to be matched by a qt_xdnd_target_data->clear() @@ -1781,7 +1781,7 @@ bool TQDragManager::drag( TQDragObject * o, TQDragObject::DragMode mode ) qt_xdnd_deco->x11SetWindowTransient( dragSource->topLevelWidget()); tqApp->installEventFilter( this ); - qt_xdnd_source_current_time = qt_x_time; + qt_xdnd_source_current_time = tqt_x_time; XSetSelectionOwner( TQPaintDevice::x11AppDisplay(), qt_xdnd_selection, dragSource->topLevelWidget()->winId(), qt_xdnd_source_current_time ); diff --git a/src/kernel/qdragobject.cpp b/src/kernel/qdragobject.cpp index 66e1c66cb..47f298b7d 100644 --- a/src/kernel/qdragobject.cpp +++ b/src/kernel/qdragobject.cpp @@ -814,7 +814,7 @@ TQTextCodec* findcodec(const TQMimeSource* e) const char* f; int i; for ( i=0; (f=e->format(i)); i++ ) { - bool html = !qstrnicmp(f, "text/html", 9); + bool html = !tqstrnicmp(f, "text/html", 9); if (html) r = codecForHTML(TQCString(e->encodedData(f))); if (!r) @@ -833,7 +833,7 @@ TQTextCodec* findcodec(const TQMimeSource* e) TQByteArray TQTextDrag::encodedData(const char* mime) const { TQCString r; - if ( 0==qstrnicmp(mime,"text/",5) ) { + if ( 0==tqstrnicmp(mime,"text/",5) ) { TQCString m(mime); m = m.lower(); TQTextCodec *codec = qt_findcharset(m); @@ -872,7 +872,7 @@ bool TQTextDrag::canDecode( const TQMimeSource* e ) { const char* f; for (int i=0; (f=e->format(i)); i++) { - if ( 0==qstrnicmp(f,"text/",5) ) { + if ( 0==tqstrnicmp(f,"text/",5) ) { return findcodec(e) != 0; } } @@ -912,7 +912,7 @@ bool TQTextDrag::decode( const TQMimeSource* e, TQString& str, TQCString& subtyp const char* mime; for (int i=0; (mime = e->format(i)); i++) { - if ( 0==qstrnicmp(mime,"text/",5) ) { + if ( 0==tqstrnicmp(mime,"text/",5) ) { TQCString m(mime); m = m.lower(); int semi = m.find(';'); @@ -920,7 +920,7 @@ bool TQTextDrag::decode( const TQMimeSource* e, TQString& str, TQCString& subtyp semi = m.length(); TQCString foundst = m.mid(5,semi-5); if ( subtype.isNull() || foundst == subtype ) { - bool html = !qstrnicmp(mime, "text/html", 9); + bool html = !tqstrnicmp(mime, "text/html", 9); TQTextCodec* codec = 0; if (html) { TQByteArray bytes = e->encodedData(mime); @@ -1087,7 +1087,7 @@ const char * TQImageDrag::format(int i) const */ TQByteArray TQImageDrag::encodedData(const char* fmt) const { - if ( qstrnicmp( fmt, "image/", 6 )==0 ) { + if ( tqstrnicmp( fmt, "image/", 6 )==0 ) { TQCString f = fmt+6; TQByteArray data; TQBuffer w( data ); @@ -1233,7 +1233,7 @@ TQStoredDrag::TQStoredDrag( const char* mimeType, TQWidget * dragSource, const c TQDragObject(dragSource,name) { d = new TQStoredDragData(); - d->fmt = qstrdup(mimeType); + d->fmt = tqstrdup(mimeType); } /*! @@ -1278,7 +1278,7 @@ void TQStoredDrag::setEncodedData( const TQByteArray & encodedData ) */ TQByteArray TQStoredDrag::encodedData(const char* m) const { - if ( !qstricmp(m,d->fmt) ) + if ( !tqstricmp(m,d->fmt) ) return d->enc; else return TQByteArray(); @@ -1588,7 +1588,7 @@ TQString TQUriDrag::uriToLocalFile(const char* uri) if (!uri) return file; - if (0==qstrnicmp(uri,"file:/",6)) // It is a local file uri + if (0==tqstrnicmp(uri,"file:/",6)) // It is a local file uri uri += 6; else if (TQString(uri).find(":/") != -1) // It is a different scheme uri return file; diff --git a/src/kernel/qdrawutil.cpp b/src/kernel/qdrawutil.cpp index d9505797b..8dfb93297 100644 --- a/src/kernel/qdrawutil.cpp +++ b/src/kernel/qdrawutil.cpp @@ -86,7 +86,7 @@ void qDrawShadeLine( TQPainter *p, int x1, int y1, int x2, int y2, { if (!( p && lineWidth >= 0 && midLineWidth >= 0 ) ) { #if defined(QT_CHECK_RANGE) - qWarning( "qDrawShadeLine invalid parameters." ); + tqWarning( "qDrawShadeLine invalid parameters." ); #endif return; } @@ -209,7 +209,7 @@ void qDrawShadeRect( TQPainter *p, int x, int y, int w, int h, return; if ( ! ( w > 0 && h > 0 && lineWidth >= 0 && midLineWidth >= 0 ) ) { #if defined(QT_CHECK_RANGE) - qWarning( "qDrawShadeRect(): Invalid parameters" ); + tqWarning( "qDrawShadeRect(): Invalid parameters" ); #endif return; } @@ -309,7 +309,7 @@ void qDrawShadePanel( TQPainter *p, int x, int y, int w, int h, return; if ( !( w > 0 && h > 0 && lineWidth >= 0 ) ) { #if defined(QT_CHECK_RANGE) - qWarning( "qDrawShadePanel() Invalid parameters." ); + tqWarning( "qDrawShadePanel() Invalid parameters." ); #endif } TQColor shade = g.dark(); @@ -538,7 +538,7 @@ void qDrawPlainRect( TQPainter *p, int x, int y, int w, int h, const TQColor &c, return; if ( !( w > 0 && h > 0 && lineWidth >= 0 ) ) { #if defined(QT_CHECK_RANGE) - qWarning( "qDrawPlainRect() Invalid parameters." ); + tqWarning( "qDrawPlainRect() Invalid parameters." ); #endif } TQPen oldPen = p->pen(); @@ -948,7 +948,7 @@ void qDrawArrow( TQPainter *p, TQt::ArrowType type, TQt::GUIStyle style, bool do #endif default: #if defined(QT_CHECK_RANGE) - qWarning( "qDrawArrow: Requested GUI style not supported" ); + tqWarning( "qDrawArrow: Requested GUI style not supported" ); #else ; #endif diff --git a/src/kernel/qeventloop.cpp b/src/kernel/qeventloop.cpp index c01d8ad5f..4824f5717 100644 --- a/src/kernel/qeventloop.cpp +++ b/src/kernel/qeventloop.cpp @@ -101,7 +101,7 @@ TQEventLoop::TQEventLoop( TQObject *parent, const char *name ) { #if defined(QT_CHECK_STATE) if ( TQApplication::eventloop ) - qFatal( "TQEventLoop: there must be only one event loop object. \nConstruct it before TQApplication." ); + tqFatal( "TQEventLoop: there must be only one event loop object. \nConstruct it before TQApplication." ); // for now ;) #endif // QT_CHECK_STATE diff --git a/src/kernel/qeventloop_unix.cpp b/src/kernel/qeventloop_unix.cpp index f7b829a91..1441b78c5 100644 --- a/src/kernel/qeventloop_unix.cpp +++ b/src/kernel/qeventloop_unix.cpp @@ -184,7 +184,7 @@ static void insertTimer( const TimerInfo *ti ) // insert timer info into list timerList->insert( index, ti ); // inserts sorted #if defined(QT_DEBUG) if ( dangerCount > 16 ) - qDebug( "TQObject: %d timers now exist for object %s::%s", + tqDebug( "TQObject: %d timers now exist for object %s::%s", dangerCount, ti->obj->className(), ti->obj->name() ); #endif } @@ -367,7 +367,7 @@ void TQEventLoop::registerSocketNotifier( TQSocketNotifier *notifier ) int type = notifier->type(); if ( sockfd < 0 || sockfd >= FD_SETSIZE || type < 0 || type > 2 || notifier == 0 ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQSocketNotifier: Internal error" ); + tqWarning( "TQSocketNotifier: Internal error" ); #endif return; } @@ -399,7 +399,7 @@ void TQEventLoop::registerSocketNotifier( TQSocketNotifier *notifier ) #if defined(QT_CHECK_STATE) if ( p && p->fd == sockfd ) { static const char *t[] = { "read", "write", "exception" }; - qWarning( "TQSocketNotifier: Multiple socket notifiers for " + tqWarning( "TQSocketNotifier: Multiple socket notifiers for " "same socket %d and type %s", sockfd, t[type] ); } #endif @@ -419,7 +419,7 @@ void TQEventLoop::unregisterSocketNotifier( TQSocketNotifier *notifier ) int type = notifier->type(); if ( sockfd < 0 || type < 0 || type > 2 || notifier == 0 ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQSocketNotifier: Internal error" ); + tqWarning( "TQSocketNotifier: Internal error" ); #endif return; } @@ -456,7 +456,7 @@ void TQEventLoop::setSocketNotifierPending( TQSocketNotifier *notifier ) int type = notifier->type(); if ( sockfd < 0 || type < 0 || type > 2 || notifier == 0 ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQSocketNotifier: Internal error" ); + tqWarning( "TQSocketNotifier: Internal error" ); #endif return; } diff --git a/src/kernel/qeventloop_x11.cpp b/src/kernel/qeventloop_x11.cpp index 1e446bace..bada85fdd 100644 --- a/src/kernel/qeventloop_x11.cpp +++ b/src/kernel/qeventloop_x11.cpp @@ -170,8 +170,8 @@ bool TQEventLoop::processEvents( ProcessEventsFlags flags ) case ClientMessage: { // from qapplication_x11.cpp - extern Atom qt_wm_protocols; - extern Atom qt_wm_take_focus; + extern Atom tqt_wm_protocols; + extern Atom tqt_wm_take_focus; extern Atom qt_qt_scrolldone; // only keep the wm_take_focus and @@ -180,8 +180,8 @@ bool TQEventLoop::processEvents( ProcessEventsFlags flags ) if ( event.xclient.format != 32 ) continue; - if ( event.xclient.message_type == qt_wm_protocols || - (Atom) event.xclient.data.l[0] == qt_wm_take_focus ) + if ( event.xclient.message_type == tqt_wm_protocols || + (Atom) event.xclient.data.l[0] == tqt_wm_take_focus ) break; if ( event.xclient.message_type == qt_qt_scrolldone ) break; @@ -337,7 +337,7 @@ bool TQEventLoop::processEvents( ProcessEventsFlags flags ) if (ret == -1 && errno == EBADF) { // disable the invalid socket notifier static const char *t[] = { "Read", "Write", "Exception" }; - qWarning("TQSocketNotifier: invalid socket %d and type '%s', disabling...", + tqWarning("TQSocketNotifier: invalid socket %d and type '%s', disabling...", sn->fd, t[type]); sn->obj->setEnabled(FALSE); } diff --git a/src/kernel/qfont.cpp b/src/kernel/qfont.cpp index ed2555228..be0275151 100644 --- a/src/kernel/qfont.cpp +++ b/src/kernel/qfont.cpp @@ -63,9 +63,9 @@ // #define TQFONTCACHE_DEBUG #ifdef TQFONTCACHE_DEBUG -# define FC_DEBUG qDebug +# define FC_DEBUG tqDebug #else -# define FC_DEBUG if (FALSE) qDebug +# define FC_DEBUG if (FALSE) tqDebug #endif @@ -733,7 +733,7 @@ void TQFont::setPointSize( int pointSize ) if ( pointSize <= 0 ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQFont::setPointSize: Point size <= 0 (%d)", pointSize ); + tqWarning( "TQFont::setPointSize: Point size <= 0 (%d)", pointSize ); #endif return; @@ -758,7 +758,7 @@ void TQFont::setPointSizeFloat( float pointSize ) { if ( pointSize <= 0.0 ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQFont::setPointSize: Point size <= 0 (%f)", pointSize ); + tqWarning( "TQFont::setPointSize: Point size <= 0 (%f)", pointSize ); #endif return; } @@ -795,7 +795,7 @@ void TQFont::setPixelSize( int pixelSize ) { if ( pixelSize <= 0 ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQFont::setPixelSize: Pixel size <= 0 (%d)", pixelSize ); + tqWarning( "TQFont::setPixelSize: Pixel size <= 0 (%d)", pixelSize ); #endif return; } @@ -892,7 +892,7 @@ void TQFont::setWeight( int weight ) if ( weight < 0 || weight > 99 ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQFont::setWeight: Value out of range (%d)", weight ); + tqWarning( "TQFont::setWeight: Value out of range (%d)", weight ); #endif return; @@ -1203,7 +1203,7 @@ void TQFont::setStretch( int factor ) { if ( factor < 1 || factor > 4000 ) { #ifdef QT_CHECK_RANGE - qWarning( "TQFont::setStretch(): parameter '%d' out of range", factor ); + tqWarning( "TQFont::setStretch(): parameter '%d' out of range", factor ); #endif // QT_CHECK_RANGE return; @@ -1658,7 +1658,7 @@ bool TQFont::fromString(const TQString &descrip) if ( !count || ( count > 2 && count < 9 ) || count > 11 ) { #ifdef QT_CHECK_STATE - qWarning("TQFont::fromString: invalid description '%s'", + tqWarning("TQFont::fromString: invalid description '%s'", descrip.isEmpty() ? "(empty)" : descrip.latin1()); #endif @@ -1917,7 +1917,7 @@ TQFontMetrics::TQFontMetrics( const TQPainter *p ) { #if defined(CHECK_STATE) if ( !painter->isActive() ) - qWarning( "TQFontMetrics: Get font metrics between TQPainter::begin() " + tqWarning( "TQFontMetrics: Get font metrics between TQPainter::begin() " "and TQPainter::end()" ); #endif @@ -2676,7 +2676,7 @@ TQFontInfo::TQFontInfo( const TQPainter *p ) #if defined(CHECK_STATE) if ( !painter->isActive() ) - qWarning( "TQFontInfo: Get font info between TQPainter::begin() " + tqWarning( "TQFontInfo: Get font info between TQPainter::begin() " "and TQPainter::end()" ); #endif diff --git a/src/kernel/qfont_x11.cpp b/src/kernel/qfont_x11.cpp index 4e2c6f014..9baa6a5cf 100644 --- a/src/kernel/qfont_x11.cpp +++ b/src/kernel/qfont_x11.cpp @@ -69,7 +69,7 @@ #define TQFONTLOADER_DEBUG #define TQFONTLOADER_DEBUG_VERBOSE -Q_EXPORT bool qt_has_xft = FALSE; +Q_EXPORT bool tqt_has_xft = FALSE; #ifndef QT_NO_XFTFREETYPE TQt::HANDLE qt_xft_handle(const TQFont &font) @@ -350,7 +350,7 @@ void TQFontPrivate::load( TQFont::Script script ) #ifdef QT_CHECK_STATE // sanity checks if (!TQFontCache::instance) - qWarning("Must construct a TQApplication before a TQFont"); + tqWarning("Must construct a TQApplication before a TQFont"); Q_ASSERT( script >= 0 && script < TQFont::LastPrivateScript ); #endif // QT_CHECK_STATE @@ -521,7 +521,7 @@ void TQFont::setRawName( const TQString &name ) if ( ! qt_fillFontDef( qt_fixXLFD( name.latin1() ), &d->request, d->screen ) ) { #ifdef QT_CHECK_STATE - qWarning("TQFont::setRawName(): Invalid XLFD: \"%s\"", name.latin1()); + tqWarning("TQFont::setRawName(): Invalid XLFD: \"%s\"", name.latin1()); #endif // QT_CHECK_STATE setFamily( name ); @@ -650,7 +650,7 @@ TQString TQFont::lastResortFont() const } #if defined(CHECK_NULL) - qFatal( "TQFontPrivate::lastResortFont: Cannot find any reasonable font" ); + tqFatal( "TQFontPrivate::lastResortFont: Cannot find any reasonable font" ); #endif return last; diff --git a/src/kernel/qfontdatabase.cpp b/src/kernel/qfontdatabase.cpp index 09846b029..af4cf5993 100644 --- a/src/kernel/qfontdatabase.cpp +++ b/src/kernel/qfontdatabase.cpp @@ -57,16 +57,16 @@ //#define TQFONTDATABASE_DEBUG #ifdef TQFONTDATABASE_DEBUG -# define FD_DEBUG qDebug +# define FD_DEBUG tqDebug #else -# define FD_DEBUG if (FALSE) qDebug +# define FD_DEBUG if (FALSE) tqDebug #endif //#define FONT_MATCH_DEBUG #ifdef FONT_MATCH_DEBUG -# define FM_DEBUG qDebug +# define FM_DEBUG tqDebug #else -# define FM_DEBUG if (FALSE) qDebug +# define FM_DEBUG if (FALSE) tqDebug #endif #if defined(Q_CC_MSVC) && !defined(Q_CC_MSVC_NET) @@ -307,7 +307,7 @@ TQtFontStyle *TQtFontFoundry::style( const TQtFontStyle::Key &key, bool create ) if ( !create ) return 0; -// qDebug("adding key (weight=%d, italic=%d, oblique=%d stretch=%d) at %d", key.weight, key.italic, key.oblique, key.stretch, pos ); +// tqDebug("adding key (weight=%d, italic=%d, oblique=%d stretch=%d) at %d", key.weight, key.italic, key.oblique, key.stretch, pos ); if ( !(count % 8) ) styles = (TQtFontStyle **) realloc( styles, (((count+8) >> 3 ) << 3) * sizeof( TQtFontStyle * ) ); @@ -439,7 +439,7 @@ TQtFontFamily *TQFontDatabasePrivate::family( const TQString &f, bool create ) if ( res < 0 ) pos++; - // qDebug("adding family %s at %d total=%d", f.latin1(), pos, count); + // tqDebug("adding family %s at %d total=%d", f.latin1(), pos, count); if ( !(count % 8) ) families = (TQtFontFamily **) realloc( families, @@ -1343,7 +1343,7 @@ int main( int argc, char **argv ) TQStringList families = fdb.families(); for ( TQStringList::Iterator f = families.begin(); f != families.end(); ++f ) { TQString family = *f; - qDebug( family ); + tqDebug( family ); TQStringList styles = fdb.styles( family ); for ( TQStringList::Iterator s = styles.begin(); s != styles.end(); ++s ) { TQString style = *s; @@ -1354,7 +1354,7 @@ int main( int argc, char **argv ) dstyle += TQString::number( *points ) + " "; } dstyle = dstyle.left( dstyle.length() - 1 ) + ")"; - qDebug( dstyle ); + tqDebug( dstyle ); } } return 0; diff --git a/src/kernel/qfontdatabase_x11.cpp b/src/kernel/qfontdatabase_x11.cpp index c027bfc41..ba768d811 100644 --- a/src/kernel/qfontdatabase_x11.cpp +++ b/src/kernel/qfontdatabase_x11.cpp @@ -65,9 +65,9 @@ #endif #ifdef TQFONTDATABASE_DEBUG -# define FD_DEBUG qDebug +# define FD_DEBUG tqDebug #else -# define FD_DEBUG if (FALSE) qDebug +# define FD_DEBUG if (FALSE) tqDebug #endif // TQFONTDATABASE_DEBUG // from qfont_x11.cpp @@ -450,7 +450,7 @@ const int numEncodings = sizeof( xlfd_encoding ) / sizeof( XlfdEncoding ) - 1; int qt_xlfd_encoding_id( const char *encoding ) { - // qDebug("looking for encoding id for '%s'", encoding ); + // tqDebug("looking for encoding id for '%s'", encoding ); int len = strlen( encoding ); if ( len < 4 ) return -1; @@ -468,11 +468,11 @@ int qt_xlfd_encoding_id( const char *encoding ) const char *n = enc->name; const char *e = encoding; while ( 1 ) { - // qDebug("bol: *e='%c', *n='%c'", *e, *n ); + // tqDebug("bol: *e='%c', *n='%c'", *e, *n ); if ( *e == '\0' ) { if ( *n ) break; - // qDebug( "found encoding id %d", enc->id ); + // tqDebug( "found encoding id %d", enc->id ); return enc->id; } if ( *e == *n ) { @@ -483,12 +483,12 @@ int qt_xlfd_encoding_id( const char *encoding ) if ( *n != '*' ) break; ++n; - // qDebug("skip: *e='%c', *n='%c'", *e, *n ); + // tqDebug("skip: *e='%c', *n='%c'", *e, *n ); while ( *e && *e != *n ) ++e; } } - // qDebug( "couldn't find encoding %s", encoding ); + // tqDebug( "couldn't find encoding %s", encoding ); return -1; } @@ -706,7 +706,7 @@ static TQtFontStyle::Key getStyle( char ** tokens ) } -extern bool qt_has_xft; // defined in qfont_x11.cpp +extern bool tqt_has_xft; // defined in qfont_x11.cpp static bool xlfdsFullyLoaded = FALSE; static unsigned char encodingLoaded[numEncodings]; @@ -722,7 +722,7 @@ static void loadXlfds( const char *reqFamily, int encoding_id ) return; #ifdef QT_XFT2 - if ( !qt_has_xft ) { + if ( !tqt_has_xft ) { #endif // QT_XFT2 int fontCount; // force the X server to give us XLFDs @@ -734,7 +734,7 @@ static void loadXlfds( const char *reqFamily, int encoding_id ) char **fontList = XListFonts( TQPaintDevice::x11AppDisplay(), xlfd_pattern.data(), 0xffff, &fontCount ); - // qDebug("requesting xlfd='%s', got %d fonts", xlfd_pattern.data(), fontCount ); + // tqDebug("requesting xlfd='%s', got %d fonts", xlfd_pattern.data(), fontCount ); char *tokens[NFontFields]; @@ -787,9 +787,9 @@ static void loadXlfds( const char *reqFamily, int encoding_id ) TQtFontStyle *style = foundry->style( styleKey, TRUE ); delete [] style->weightName; - style->weightName = qstrdup( tokens[Weight] ); + style->weightName = tqstrdup( tokens[Weight] ); delete [] style->setwidthName; - style->setwidthName = qstrdup( tokens[Width] ); + style->setwidthName = tqstrdup( tokens[Width] ); if ( smooth_scalable ) { style->smoothScalable = TRUE; @@ -849,7 +849,7 @@ static int getXftWeight(int xftweight) static void loadXft() { - if (!qt_has_xft) + if (!tqt_has_xft) return; #ifdef QT_XFT2 @@ -1095,7 +1095,7 @@ static Q_UINT16 getGlyphIndex( unsigned char *table, Q_UINT16 format, unsigned s if ( unicode < 256 ) return (int) *(table+6+unicode); } else if ( format == 2 ) { - qWarning("format 2 encoding table for Unicode, not implemented!"); + tqWarning("format 2 encoding table for Unicode, not implemented!"); } else if ( format == 4 ) { Q_UINT16 segCountX2 = getUShort( table + 6 ); unsigned char *ends = table + 14; @@ -1137,7 +1137,7 @@ static inline void checkXftCoverage( TQtFontFamily *family ) TQCString ext = family->fontFilename.mid( family->fontFilename.findRev( '.' ) ).lower(); if ( family->fontFileIndex == 0 && ( ext == ".ttf" || ext == ".otf" ) ) { void *map; - // qDebug("using own ttf code coverage checking of '%s'!", family->name.latin1() ); + // tqDebug("using own ttf code coverage checking of '%s'!", family->name.latin1() ); int fd = open( family->fontFilename.data(), O_RDONLY ); size_t pagesize = getpagesize(); off_t offset = 0; @@ -1152,7 +1152,7 @@ static inline void checkXftCoverage( TQtFontFamily *family ) unsigned char *ttf = (unsigned char *)map; Q_UINT32 version = getUInt( ttf ); if ( version != 0x00010000 ) { - // qDebug("file has wrong version %x", version ); + // tqDebug("file has wrong version %x", version ); goto error1; } Q_UINT16 numTables = getUShort( ttf+4 ); @@ -1169,7 +1169,7 @@ static inline void checkXftCoverage( TQtFontFamily *family ) } } if ( !cmap_offset ) { - // qDebug("no cmap found" ); + // tqDebug("no cmap found" ); goto error1; } @@ -1186,7 +1186,7 @@ static inline void checkXftCoverage( TQtFontFamily *family ) version = getUShort( cmap ); if ( version != 0 ) { - // qDebug("wrong cmap version" ); + // tqDebug("wrong cmap version" ); goto error1; } numTables = getUShort( cmap + 2 ); @@ -1205,7 +1205,7 @@ static inline void checkXftCoverage( TQtFontFamily *family ) } if ( !unicode_table ) { - // qDebug("no unicode table found" ); + // tqDebug("no unicode table found" ); goto error1; } @@ -1230,7 +1230,7 @@ static inline void checkXftCoverage( TQtFontFamily *family ) } } if ( supported ){ - // qDebug("font can render script %d", i ); + // tqDebug("font can render script %d", i ); family->scripts[i] = TQtFontFamily::Supported; } else { family->scripts[i] |= TQtFontFamily::UnSupported_Xft; @@ -1293,7 +1293,7 @@ static void load( const TQString &family = TQString::null, int script = -1 ) if ( family.isNull() ) { #ifndef QT_NO_XFTFREETYPE static bool xft_readall_done = false; - if (qt_has_xft && !xft_readall_done) { + if (tqt_has_xft && !xft_readall_done) { xft_readall_done = true; XftFontSet *fonts = XftListFonts(TQPaintDevice::x11AppDisplay(), @@ -1313,7 +1313,7 @@ static void load( const TQString &family = TQString::null, int script = -1 ) XftFontSetDestroy (fonts); } #ifdef QT_XFT2 - if (qt_has_xft) + if (tqt_has_xft) return; #endif #endif // QT_NO_XFTFREETYPE @@ -1330,7 +1330,7 @@ static void load( const TQString &family = TQString::null, int script = -1 ) if ( !f->fullyLoaded ) { #ifndef QT_NO_XFTFREETYPE - if (qt_has_xft) { + if (tqt_has_xft) { TQString mfamily = family; redo: XftFontSet *fonts = @@ -1419,7 +1419,7 @@ static void initializeDb() #ifdef TQFONTDATABASE_DEBUG #ifdef QT_XFT2 - if (!qt_has_xft) + if (!tqt_has_xft) #endif // load everything at startup in debug mode. loadXlfds( 0, -1 ); @@ -1451,7 +1451,7 @@ static void initializeDb() else if ( style->bitmapScalable ) FD_DEBUG("\t\t\t\tbitmap scalable" ); if ( style->pixelSizes ) { - qDebug("\t\t\t\t%d pixel sizes", style->count ); + tqDebug("\t\t\t\t%d pixel sizes", style->count ); for ( int z = 0; z < style->count; ++z ) { TQtFontSize *size = style->pixelSizes + z; for ( int e = 0; e < size->count; ++e ) { @@ -1763,7 +1763,7 @@ static void parseFontName(const TQString &name, TQString &foundry, TQString &fam static TQFontEngine *loadFontConfigFont(const TQFontPrivate *fp, const TQFontDef &request, TQFont::Script script) { - if (!qt_has_xft) + if (!tqt_has_xft) return 0; TQStringList family_list; @@ -1809,7 +1809,7 @@ static TQFontEngine *loadFontConfigFont(const TQFontPrivate *fp, const TQFontDef double scale = addPatternProps(pattern, key, FALSE, TRUE, fp, request); #ifdef FONT_MATCH_DEBUG - qDebug("original pattern contains:"); + tqDebug("original pattern contains:"); FcPatternPrint(pattern); #endif @@ -1818,7 +1818,7 @@ static TQFontEngine *loadFontConfigFont(const TQFontPrivate *fp, const TQFontDef FcConfigSubstitute(0, pattern, FcMatchPattern); XftDefaultSubstitute(TQPaintDevice::x11AppDisplay(), TQPaintDevice::x11AppScreen(), pattern); -// qDebug("1: pattern contains:"); +// tqDebug("1: pattern contains:"); // FcPatternPrint(pattern); { @@ -1951,7 +1951,7 @@ static TQFontEngine *loadFontConfigFont(const TQFontPrivate *fp, const TQFontDef if ( !xftfs ) { // Xft couldn't find a font? - qDebug("couldn't open fontconfigs chosen font with Xft!!!"); + tqDebug("couldn't open fontconfigs chosen font with Xft!!!"); } else { fe = new TQFontEngineXft( xftfs, result, 0 ); if (fp->paintdevice diff --git a/src/kernel/qfontengine_x11.cpp b/src/kernel/qfontengine_x11.cpp index 3802a13c1..d9d2f1640 100644 --- a/src/kernel/qfontengine_x11.cpp +++ b/src/kernel/qfontengine_x11.cpp @@ -139,7 +139,7 @@ static TQBitmap transform(Display *dpy, const TQBitmap &source, int xoff, int y bm = TQBitmap( w, h, dptr, TQImage::systemBitOrder() != TQImage::BigEndian ); } else { #if defined(QT_CHECK_RANGE) - qWarning( "TQFontEngineXft::tranform: xform failed"); + tqWarning( "TQFontEngineXft::tranform: xform failed"); #endif } @@ -266,7 +266,7 @@ void TQFontEngineBox::draw( TQPainter *p, int x, int y, const TQTextEngine *engi glyph_metrics_t ci = boundingBox( glyphs, offsets, numGlyphs ); p->drawRect( x + ci.x, y + ci.y, ci.width, ci.height ); p->drawRect( x + ci.x, y + 50 + ci.y, ci.width, ci.height ); - qDebug("bounding rect=%d %d (%d/%d)", ci.x, ci.y, ci.width, ci.height ); + tqDebug("bounding rect=%d %d (%d/%d)", ci.x, ci.y, ci.width, ci.height ); p->restore(); int xp = x; int yp = y; @@ -323,7 +323,7 @@ void TQFontEngineBox::draw( TQPainter *p, int x, int y, const TQTextEngine *engi x += offsets[i].x; y += offsets[i].y; p->drawRect( x + ci.x, y + 50 + ci.y, ci.width, ci.height ); - qDebug("bounding ci[%d]=%d %d (%d/%d) / %d %d offset=(%d/%d)", i, ci.x, ci.y, ci.width, ci.height, + tqDebug("bounding ci[%d]=%d %d (%d/%d) / %d %d offset=(%d/%d)", i, ci.x, ci.y, ci.width, ci.height, ci.xoff, ci.yoff, offsets[i].x, offsets[i].y ); x += ci.xoff; y += ci.yoff; @@ -558,7 +558,7 @@ void TQFontEngineXLFD::draw( TQPainter *p, int x, int y, const TQTextEngine *eng if ( !si->num_glyphs ) return; -// qDebug("TQFontEngineXLFD::draw( %d, %d, numglyphs=%d", x, y, si->num_glyphs ); +// tqDebug("TQFontEngineXLFD::draw( %d, %d, numglyphs=%d", x, y, si->num_glyphs ); Display *dpy = TQPaintDevice::x11AppDisplay(); TQt::HANDLE hd = p->device()->handle(); @@ -633,7 +633,7 @@ void TQFontEngineXLFD::draw( TQPainter *p, int x, int y, const TQTextEngine *eng matrix += ' '; } matrix += ']'; - //qDebug("m: %2.2f %2.2f %2.2f %2.2f, matrix=%s", p->m11(), p->m12(), p->m21(), p->m22(), matrix.data()); + //tqDebug("m: %2.2f %2.2f %2.2f %2.2f, matrix=%s", p->m11(), p->m12(), p->m21(), p->m22(), matrix.data()); xlfd_transformed.replace( pos, endPos-pos, matrix ); x_font_load_error = FALSE; @@ -642,7 +642,7 @@ void TQFontEngineXLFD::draw( TQPainter *p, int x, int y, const TQTextEngine *eng XSync( dpy, FALSE ); XSetErrorHandler( old_handler ); if ( x_font_load_error ) { - //qDebug( "couldn't load transformed font" ); + //tqDebug( "couldn't load transformed font" ); font_id = _fs->fid; xlfd_transformations = XlfdTrUnsupported; } else { @@ -678,7 +678,7 @@ void TQFontEngineXLFD::draw( TQPainter *p, int x, int y, const TQTextEngine *eng glyph_metrics_t ci = boundingBox( glyphs, advances, offsets, si->num_glyphs ); p->drawRect( x + ci.x, y + ci.y, ci.width, ci.height ); p->drawRect( x + ci.x, y + 100 + ci.y, ci.width, ci.height ); - qDebug("bounding rect=%d %d (%d/%d)", ci.x, ci.y, ci.width, ci.height ); + tqDebug("bounding rect=%d %d (%d/%d)", ci.x, ci.y, ci.width, ci.height ); p->restore(); int xp = x; int yp = y; @@ -705,7 +705,7 @@ void TQFontEngineXLFD::draw( TQPainter *p, int x, int y, const TQTextEngine *eng int i = si->num_glyphs; while( i-- ) { advance_t adv = advances[i]; - // qDebug("advance = %d/%d", adv.x, adv.y ); + // tqDebug("advance = %d/%d", adv.x, adv.y ); x += adv; glyph_metrics_t gi = boundingBox( glyphs[i] ); int xp = x-offsets[i].x-gi.xoff; @@ -726,7 +726,7 @@ void TQFontEngineXLFD::draw( TQPainter *p, int x, int y, const TQTextEngine *eng if (!glyphAttributes[i].zeroWidth && xp < SHRT_MAX && xp > SHRT_MIN) XDrawString16(dpy, hd, gc, xp, yp, chars+i, 1 ); advance_t adv = advances[i]; - // qDebug("advance = %d/%d", adv.x, adv.y ); + // tqDebug("advance = %d/%d", adv.x, adv.y ); x += adv; i++; } @@ -760,7 +760,7 @@ void TQFontEngineXLFD::draw( TQPainter *p, int x, int y, const TQTextEngine *eng for ( int i = 0; i < si->num_glyphs; i++ ) { glyph_metrics_t ci = boundingBox( glyphs[i] ); p->drawRect( x + ci.x + offsets[i].x, y + 100 + ci.y + offsets[i].y, ci.width, ci.height ); - qDebug("bounding ci[%d]=%d %d (%d/%d) / %d %d offs=(%d/%d) advance=(%d/%d)", i, ci.x, ci.y, ci.width, ci.height, + tqDebug("bounding ci[%d]=%d %d (%d/%d) / %d %d offs=(%d/%d) advance=(%d/%d)", i, ci.x, ci.y, ci.width, ci.height, ci.xoff, ci.yoff, offsets[i].x, offsets[i].y, advances[i].x, advances[i].y); x += advances[i].x; @@ -1505,10 +1505,10 @@ TQFontEngineXft::TQFontEngineXft( XftFont *font, XftPattern *pattern, int cmap ) // Xft maps Unicode and adobe roman for us. for (int i = 0; i < _face->num_charmaps; ++i) { FT_CharMap cm = _face->charmaps[i]; -// qDebug("font has charmap %x", cm->encoding); +// tqDebug("font has charmap %x", cm->encoding); if (cm->encoding == ft_encoding_adobe_custom || cm->encoding == ft_encoding_symbol) { -// qDebug("font has adobe custom or ms symbol charmap"); +// tqDebug("font has adobe custom or ms symbol charmap"); _cmap = i; break; } @@ -1855,13 +1855,13 @@ void TQFontEngineXft::draw( TQPainter *p, int x, int y, const TQTextEngine *engi col.color.alpha = 0xffff; col.pixel = pen.pixel(); #ifdef FONTENGINE_DEBUG - qDebug("===== drawing %d glyphs reverse=%s ======", si->num_glyphs, si->analysis.bidiLevel % 2?"TRUE":"FALSE" ); + tqDebug("===== drawing %d glyphs reverse=%s ======", si->num_glyphs, si->analysis.bidiLevel % 2?"TRUE":"FALSE" ); p->save(); p->setBrush( TQt::white ); glyph_metrics_t ci = boundingBox( glyphs, advances, offsets, si->num_glyphs ); p->drawRect( x + ci.x, y + ci.y, ci.width, ci.height ); p->drawRect( x + ci.x, y + 100 + ci.y, ci.width, ci.height ); - qDebug("bounding rect=%d %d (%d/%d)", ci.x, ci.y, ci.width, ci.height ); + tqDebug("bounding rect=%d %d (%d/%d)", ci.x, ci.y, ci.width, ci.height ); p->restore(); int yp = y; int xp = x; @@ -1895,7 +1895,7 @@ void TQFontEngineXft::draw( TQPainter *p, int x, int y, const TQTextEngine *engi p->drawRect( x+offsets[i].x+gi.x, y+offsets[i].y+100+gi.y, gi.width, gi.height ); p->drawLine( x+offsets[i].x, y + 150 + 5*i , x+offsets[i].x+advances[i], y + 150 + 5*i ); p->drawLine( x+offsets[i].x, y + 152 + 5*i , x+offsets[i].x+gi.xoff, y + 152 + 5*i ); - qDebug("bounding ci[%d]=%d %d (%d/%d) / %d %d offs=(%d/%d) advance=%d", i, gi.x, gi.y, gi.width, gi.height, + tqDebug("bounding ci[%d]=%d %d (%d/%d) / %d %d offs=(%d/%d) advance=%d", i, gi.x, gi.y, gi.width, gi.height, gi.xoff, gi.yoff, offsets[i].x, offsets[i].y, advances[i]); #endif x += advances[i]; @@ -1915,7 +1915,7 @@ void TQFontEngineXft::draw( TQPainter *p, int x, int y, const TQTextEngine *engi if (!glyphAttributes[i].zeroWidth && xp < SHRT_MAX && xp > SHRT_MIN) XftDrawString16( draw, &col, fnt, xp, yp, (XftChar16 *) (glyphs+i), 1 ); #endif // QT_XFT2 - // qDebug("advance = %d/%d", adv.x, adv.y ); + // tqDebug("advance = %d/%d", adv.x, adv.y ); x += advances[i]; i++; } @@ -1980,7 +1980,7 @@ void TQFontEngineXft::draw( TQPainter *p, int x, int y, const TQTextEngine *engi for ( int i = 0; i < si->num_glyphs; i++ ) { glyph_metrics_t ci = boundingBox( glyphs[i] ); p->drawRect( x + ci.x + offsets[i].x, y + 100 + ci.y + offsets[i].y, ci.width, ci.height ); - qDebug("bounding ci[%d]=%d %d (%d/%d) / %d %d offs=(%d/%d) advance=%d", i, ci.x, ci.y, ci.width, ci.height, + tqDebug("bounding ci[%d]=%d %d (%d/%d) / %d %d offs=(%d/%d) advance=%d", i, ci.x, ci.y, ci.width, ci.height, ci.xoff, ci.yoff, offsets[i].x, offsets[i].y, advances[i]); x += advances[i]; } @@ -2208,7 +2208,7 @@ bool TQFontEngineXft::canRender( const TQChar *string, int len ) TQOpenType *TQFontEngineXft::openType() const { -// qDebug("openTypeIface requested!"); +// tqDebug("openTypeIface requested!"); if ( _openType ) return _openType; @@ -2390,7 +2390,7 @@ TQOpenType::TQOpenType(TQFontEngineXft *fe) FT_Error error; if ((error = TT_Load_GDEF_Table(face, &gdef))) { #ifdef OT_DEBUG - qDebug("error loading gdef table: %d", error); + tqDebug("error loading gdef table: %d", error); #endif gdef = 0; } @@ -2399,9 +2399,9 @@ TQOpenType::TQOpenType(TQFontEngineXft *fe) gsub = 0; #ifdef OT_DEBUG if (error != FT_Err_Table_Missing) { - qDebug("error loading gsub table: %d", error); + tqDebug("error loading gsub table: %d", error); } else { - qDebug("face doesn't have a gsub table"); + tqDebug("face doesn't have a gsub table"); } #endif } @@ -2409,7 +2409,7 @@ TQOpenType::TQOpenType(TQFontEngineXft *fe) if ((error = TT_Load_GPOS_Table(face, &gpos, gdef))) { gpos = 0; #ifdef OT_DEBUG - qDebug("error loading gpos table: %d", error); + tqDebug("error loading gpos table: %d", error); #endif } @@ -2448,7 +2448,7 @@ bool TQOpenType::checkScript(unsigned int script) FT_Error error = TT_GSUB_Select_Script(gsub, tag, &script_index); if (error) { #ifdef OT_DEBUG - qDebug("could not select script %d in GSub table: %d", (int)script, error); + tqDebug("could not select script %d in GSub table: %d", (int)script, error); #endif return FALSE; } @@ -2462,7 +2462,7 @@ bool TQOpenType::checkScript(unsigned int script) FT_Error error = TT_GPOS_Select_Script(gpos, script, &script_index); if (error) { #ifdef OT_DEBUG - qDebug("could not select script in gpos table: %d", error); + tqDebug("could not select script in gpos table: %d", error); #endif return FALSE; } @@ -2486,10 +2486,10 @@ void TQOpenType::selectScript(unsigned int script, const Features *features) { TTO_FeatureList featurelist = gsub->FeatureList; int numfeatures = featurelist.FeatureCount; - qDebug("gsub table has %d features", numfeatures); + tqDebug("gsub table has %d features", numfeatures); for(int i = 0; i < numfeatures; i++) { TTO_FeatureRecord *r = featurelist.FeatureRecord + i; - qDebug(" feature '%s'", tag_to_string(r->FeatureTag)); + tqDebug(" feature '%s'", tag_to_string(r->FeatureTag)); } } #endif @@ -2498,14 +2498,14 @@ void TQOpenType::selectScript(unsigned int script, const Features *features) FT_Error error = TT_GSUB_Select_Script(gsub, tag, &script_index); if (!error) { #ifdef OT_DEBUG - qDebug("script %s has script index %d", tag_to_string(script), script_index); + tqDebug("script %s has script index %d", tag_to_string(script), script_index); #endif while (features->tag) { FT_UShort feature_index; error = TT_GSUB_Select_Feature(gsub, features->tag, script_index, 0xffff, &feature_index); if (!error) { #ifdef OT_DEBUG - qDebug(" adding feature %s", tag_to_string(features->tag)); + tqDebug(" adding feature %s", tag_to_string(features->tag)); #endif TT_GSUB_Add_Feature(gsub, feature_index, features->property); } @@ -2523,12 +2523,12 @@ void TQOpenType::selectScript(unsigned int script, const Features *features) { TTO_FeatureList featurelist = gpos->FeatureList; int numfeatures = featurelist.FeatureCount; - qDebug("gpos table has %d features", numfeatures); + tqDebug("gpos table has %d features", numfeatures); for(int i = 0; i < numfeatures; i++) { TTO_FeatureRecord *r = featurelist.FeatureRecord + i; FT_UShort feature_index; TT_GPOS_Select_Feature(gpos, r->FeatureTag, script_index, 0xffff, &feature_index); - qDebug(" feature '%s'", tag_to_string(r->FeatureTag)); + tqDebug(" feature '%s'", tag_to_string(r->FeatureTag)); } } #endif @@ -2553,7 +2553,7 @@ void TQOpenType::selectScript(unsigned int script, const Features *features) static void dump_string(OTL_Buffer buffer) { for (uint i = 0; i < buffer->in_length; ++i) { - qDebug(" %x: cluster=%d", buffer->in_string[i].gindex, buffer->in_string[i].cluster); + tqDebug(" %x: cluster=%d", buffer->in_string[i].gindex, buffer->in_string[i].cluster); } } #endif @@ -2575,13 +2575,13 @@ bool TQOpenType::shape(TQShaperItem *item, const unsigned int *properties) } #ifdef OT_DEBUG - qDebug("-----------------------------------------"); -// qDebug("log clusters before shaping:"); + tqDebug("-----------------------------------------"); +// tqDebug("log clusters before shaping:"); // for (int j = 0; j < length; j++) -// qDebug(" log[%d] = %d", j, item->log_clusters[j]); - qDebug("original glyphs: %p", item->glyphs); +// tqDebug(" log[%d] = %d", j, item->log_clusters[j]); + tqDebug("original glyphs: %p", item->glyphs); for (int i = 0; i < length; ++i) - qDebug(" glyph=%4x", otl_buffer->in_string[i].gindex); + tqDebug(" glyph=%4x", otl_buffer->in_string[i].gindex); // dump_string(otl_buffer); #endif @@ -2594,13 +2594,13 @@ bool TQOpenType::shape(TQShaperItem *item, const unsigned int *properties) } #ifdef OT_DEBUG -// qDebug("log clusters before shaping:"); +// tqDebug("log clusters before shaping:"); // for (int j = 0; j < length; j++) -// qDebug(" log[%d] = %d", j, item->log_clusters[j]); - qDebug("shaped glyphs:"); +// tqDebug(" log[%d] = %d", j, item->log_clusters[j]); + tqDebug("shaped glyphs:"); for (int i = 0; i < length; ++i) - qDebug(" glyph=%4x", otl_buffer->in_string[i].gindex); - qDebug("-----------------------------------------"); + tqDebug(" glyph=%4x", otl_buffer->in_string[i].gindex); + tqDebug("-----------------------------------------"); // dump_string(otl_buffer); #endif @@ -2643,7 +2643,7 @@ bool TQOpenType::positionAndAdd(TQShaperItem *item, bool doLogClusters) int oldCi = 0; for (unsigned int i = 0; i < otl_buffer->in_length; ++i) { int ci = otl_buffer->in_string[i].cluster; - // qDebug(" ci[%d] = %d mark=%d, cmb=%d, cs=%d", + // tqDebug(" ci[%d] = %d mark=%d, cmb=%d, cs=%d", // i, ci, glyphAttributes[i].mark, glyphAttributes[i].combiningClass, glyphAttributes[i].clusterStart); if (!item->attributes[i].mark && item->attributes[i].clusterStart && ci != oldCi) { for (int j = oldCi; j < ci; j++) @@ -2657,7 +2657,7 @@ bool TQOpenType::positionAndAdd(TQShaperItem *item, bool doLogClusters) } // calulate the advances for the shaped glyphs -// qDebug("unpositioned: "); +// tqDebug("unpositioned: "); static_cast<TQFontEngineXft *>(item->font)->recalcAdvances(item->num_glyphs, item->glyphs, item->advances); // positioning code: @@ -2665,9 +2665,9 @@ bool TQOpenType::positionAndAdd(TQShaperItem *item, bool doLogClusters) float scale = item->font->scale(); OTL_Position positions = otl_buffer->positions; -// qDebug("positioned glyphs:"); +// tqDebug("positioned glyphs:"); for (unsigned int i = 0; i < otl_buffer->in_length; i++) { -// qDebug(" %d:\t orig advance: (%d/%d)\tadv=(%d/%d)\tpos=(%d/%d)\tback=%d\tnew_advance=%d", i, +// tqDebug(" %d:\t orig advance: (%d/%d)\tadv=(%d/%d)\tpos=(%d/%d)\tback=%d\tnew_advance=%d", i, // glyphs[i].advance.x.toInt(), glyphs[i].advance.y.toInt(), // (int)(positions[i].x_advance >> 6), (int)(positions[i].y_advance >> 6), // (int)(positions[i].x_pos >> 6), (int)(positions[i].y_pos >> 6), @@ -2695,7 +2695,7 @@ bool TQOpenType::positionAndAdd(TQShaperItem *item, bool doLogClusters) --back; } } -// qDebug(" ->\tadv=%d\tpos=(%d/%d)", +// tqDebug(" ->\tadv=%d\tpos=(%d/%d)", // glyphs[i].advance.x.toInt(), glyphs[i].offset.x.toInt(), glyphs[i].offset.y.toInt()); } item->has_positioning = TRUE; @@ -2705,18 +2705,18 @@ bool TQOpenType::positionAndAdd(TQShaperItem *item, bool doLogClusters) #ifdef OT_DEBUG // if (doLogClusters) { -// qDebug("log clusters after shaping:"); +// tqDebug("log clusters after shaping:"); // for (int j = 0; j < length; j++) -// qDebug(" log[%d] = %d", j, item->log_clusters[j]); +// tqDebug(" log[%d] = %d", j, item->log_clusters[j]); // } - qDebug("final glyphs:"); + tqDebug("final glyphs:"); for (int i = 0; i < (int)otl_buffer->in_length; ++i) - qDebug(" glyph=%4x char_index=%d mark: %d cmp: %d, clusterStart: %d advance=%d offset=%d/%d", + tqDebug(" glyph=%4x char_index=%d mark: %d cmp: %d, clusterStart: %d advance=%d offset=%d/%d", item->glyphs[i], otl_buffer->in_string[i].cluster, item->attributes[i].mark, item->attributes[i].combiningClass, item->attributes[i].clusterStart, item->advances[i], item->offsets[i].x, item->offsets[i].y); - qDebug("-----------------------------------------"); + tqDebug("-----------------------------------------"); #endif return TRUE; } diff --git a/src/kernel/qguardedptr.cpp b/src/kernel/qguardedptr.cpp index e631b1988..803e75e18 100644 --- a/src/kernel/qguardedptr.cpp +++ b/src/kernel/qguardedptr.cpp @@ -68,7 +68,7 @@ if ( label) label->show(); else - qDebug("The label has been destroyed"); + tqDebug("The label has been destroyed"); \endcode The program will output \c{The label has been destroyed} rather diff --git a/src/kernel/qimage.cpp b/src/kernel/qimage.cpp index bb7e1da93..c67c463ab 100644 --- a/src/kernel/qimage.cpp +++ b/src/kernel/qimage.cpp @@ -427,9 +427,9 @@ TQImage::TQImage( const char * const xpm[] ) #ifndef QT_NO_IMAGEIO_XPM read_xpm_image_or_array( 0, xpm, *this ); #else - // We use a qFatal rather than disabling the whole function, as this + // We use a tqFatal rather than disabling the whole function, as this // constructor may be ambiguous. - qFatal("XPM not supported"); + tqFatal("XPM not supported"); #endif } @@ -588,7 +588,7 @@ TQImage TQImage::fromMimeSource( const TQString &abs_name ) const TQMimeSource *m = TQMimeSourceFactory::defaultFactory()->data( abs_name ); if ( !m ) { #if defined(QT_CHECK_STATE) - qWarning("TQImage::fromMimeSource: Cannot find image \"%s\" in the mime source factory", abs_name.latin1() ); + tqWarning("TQImage::fromMimeSource: Cannot find image \"%s\" in the mime source factory", abs_name.latin1() ); #endif return TQImage(); } @@ -944,7 +944,7 @@ TQImage TQImage::copy(int x, int y, int w, int h, int conversion_flags) const void TQImage::warningIndexRange( const char *func, int i ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQImage::%s: Index %d out of range", func, i ); + tqWarning( "TQImage::%s: Index %d out of range", func, i ); #else Q_UNUSED( func ) Q_UNUSED( i ) @@ -1091,7 +1091,7 @@ TQImage::Endian TQImage::systemByteOrder() if ( sbo == IgnoreEndian ) { // initialize int ws; bool be; - qSysInfo( &ws, &be ); + tqSysInfo( &ws, &be ); sbo = be ? BigEndian : LittleEndian; } return sbo; @@ -1130,7 +1130,7 @@ TQImage::Endian TQImage::systemByteOrder() TQImage::Endian TQImage::systemBitOrder() { #if defined(Q_WS_X11) - return BitmapBitOrder(qt_xdisplay()) == MSBFirst ? BigEndian :LittleEndian; + return BitmapBitOrder(tqt_xdisplay()) == MSBFirst ? BigEndian :LittleEndian; #else return BigEndian; #endif @@ -1242,7 +1242,7 @@ bool TQImage::create( int width, int height, int depth, int numColors, return FALSE; // invalid parameter(s) if ( depth == 1 && bitOrder == IgnoreEndian ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQImage::create: Bit order is required for 1 bpp images" ); + tqWarning( "TQImage::create: Bit order is required for 1 bpp images" ); #endif return FALSE; } @@ -1251,7 +1251,7 @@ bool TQImage::create( int width, int height, int depth, int numColors, #if defined(QT_CHECK_RANGE) if ( depth == 24 ) - qWarning( "TQImage::create: 24-bpp images no longer supported, " + tqWarning( "TQImage::create: 24-bpp images no longer supported, " "use 32-bpp instead" ); #endif switch ( depth ) { @@ -2162,9 +2162,9 @@ TQImage TQImage::convertDepth( int depth, int conversion_flags ) const else { #if defined(QT_CHECK_RANGE) if ( isNull() ) - qWarning( "TQImage::convertDepth: Image is a null image" ); + tqWarning( "TQImage::convertDepth: Image is a null image" ); else - qWarning( "TQImage::convertDepth: Depth %d not supported", depth ); + tqWarning( "TQImage::convertDepth: Depth %d not supported", depth ); #endif } return image; @@ -2206,7 +2206,7 @@ int TQImage::pixelIndex( int x, int y ) const { #if defined(QT_CHECK_RANGE) if ( x < 0 || x >= width() ) { - qWarning( "TQImage::pixel: x=%d out of range", x ); + tqWarning( "TQImage::pixel: x=%d out of range", x ); return -12345; } #endif @@ -2225,7 +2225,7 @@ int TQImage::pixelIndex( int x, int y ) const #endif case 32: #if defined(QT_CHECK_RANGE) - qWarning( "TQImage::pixelIndex: Not applicable for %d-bpp images " + tqWarning( "TQImage::pixelIndex: Not applicable for %d-bpp images " "(no palette)", depth() ); #endif return 0; @@ -2248,7 +2248,7 @@ TQRgb TQImage::pixel( int x, int y ) const { #if defined(QT_CHECK_RANGE) if ( x < 0 || x >= width() ) { - qWarning( "TQImage::pixel: x=%d out of range", x ); + tqWarning( "TQImage::pixel: x=%d out of range", x ); return 12345; } #endif @@ -2292,7 +2292,7 @@ void TQImage::setPixel( int x, int y, uint index_or_rgb ) { if ( x < 0 || x >= width() ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQImage::setPixel: x=%d out of range", x ); + tqWarning( "TQImage::setPixel: x=%d out of range", x ); #endif return; } @@ -2300,7 +2300,7 @@ void TQImage::setPixel( int x, int y, uint index_or_rgb ) uchar * s = scanLine( y ); if ( index_or_rgb > 1) { #if defined(QT_CHECK_RANGE) - qWarning( "TQImage::setPixel: index=%d out of range", + tqWarning( "TQImage::setPixel: index=%d out of range", index_or_rgb ); #endif } else if ( bitOrder() == TQImage::LittleEndian ) { @@ -2317,7 +2317,7 @@ void TQImage::setPixel( int x, int y, uint index_or_rgb ) } else if ( depth() == 8 ) { if (index_or_rgb > (uint)numColors()) { #if defined(QT_CHECK_RANGE) - qWarning( "TQImage::setPixel: index=%d out of range", + tqWarning( "TQImage::setPixel: index=%d out of range", index_or_rgb ); #endif return; @@ -2789,7 +2789,7 @@ TQImage TQImage::smoothScale( const TQSize& s, ScaleMode mode ) const { if ( isNull() ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQImage::smoothScale: Image is a null image" ); + tqWarning( "TQImage::smoothScale: Image is a null image" ); #endif return copy(); } @@ -2854,7 +2854,7 @@ TQImage TQImage::scale( const TQSize& s, ScaleMode mode ) const { if ( isNull() ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQImage::scale: Image is a null image" ); + tqWarning( "TQImage::scale: Image is a null image" ); #endif return copy(); } @@ -2892,7 +2892,7 @@ TQImage TQImage::scaleWidth( int w ) const { if ( isNull() ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQImage::scaleWidth: Image is a null image" ); + tqWarning( "TQImage::scaleWidth: Image is a null image" ); #endif return copy(); } @@ -2921,7 +2921,7 @@ TQImage TQImage::scaleHeight( int h ) const { if ( isNull() ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQImage::scaleHeight: Image is a null image" ); + tqWarning( "TQImage::scaleHeight: Image is a null image" ); #endif return copy(); } @@ -3336,7 +3336,7 @@ TQImage TQImage::swapRGB() const } #ifndef QT_NO_IMAGE_16_BIT } else if ( depth() == 16 ) { - qWarning( "TQImage::swapRGB not implemented for 16bpp" ); + tqWarning( "TQImage::swapRGB not implemented for 16bpp" ); #endif } else #endif //QT_NO_IMAGE_TRUECOLOR @@ -3562,7 +3562,7 @@ bool TQImage::doImageIO( TQImageIO* io, int quality ) const io->setImage( *this ); #if defined(QT_CHECK_RANGE) if ( quality > 100 || quality < -1 ) - qWarning( "TQPixmap::save: quality out of range [-1,100]" ); + tqWarning( "TQPixmap::save: quality out of range [-1,100]" ); #endif if ( quality >= 0 ) io->setQuality( TQMIN(quality,100) ); @@ -3899,7 +3899,7 @@ void qt_init_image_handlers() // initialize image handlers imageHandlers = new TQIHList; TQ_CHECK_PTR( imageHandlers ); imageHandlers->setAutoDelete( TRUE ); - qAddPostRoutine( cleanup ); + tqAddPostRoutine( cleanup ); #ifndef QT_NO_IMAGEIO_BMP TQImageIO::defineIOHandler( "BMP", "^BM", 0, read_bmp_image, write_bmp_image ); @@ -4199,7 +4199,7 @@ void TQImageIO::setParameters( const char *parameters ) { if ( d && d->parameters ) delete [] (char*)d->parameters; - d->parameters = qstrdup( parameters ); + d->parameters = tqstrdup( parameters ); } /*! @@ -4502,7 +4502,7 @@ bool TQImageIO::write() } if ( !h || !h->write_image ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQImageIO::write: No such image format handler: %s", + tqWarning( "TQImageIO::write: No such image format handler: %s", format() ); #endif return FALSE; @@ -4637,19 +4637,19 @@ bool read_dib( TQDataStream& s, int offset, int startpos, TQImage& image ) if ( d->atEnd() ) // end of stream/file return FALSE; #if 0 - qDebug( "offset...........%d", offset ); - qDebug( "startpos.........%d", startpos ); - qDebug( "biSize...........%d", bi.biSize ); - qDebug( "biWidth..........%d", bi.biWidth ); - qDebug( "biHeight.........%d", bi.biHeight ); - qDebug( "biPlanes.........%d", bi.biPlanes ); - qDebug( "biBitCount.......%d", bi.biBitCount ); - qDebug( "biCompression....%d", bi.biCompression ); - qDebug( "biSizeImage......%d", bi.biSizeImage ); - qDebug( "biXPelsPerMeter..%d", bi.biXPelsPerMeter ); - qDebug( "biYPelsPerMeter..%d", bi.biYPelsPerMeter ); - qDebug( "biClrUsed........%d", bi.biClrUsed ); - qDebug( "biClrImportant...%d", bi.biClrImportant ); + tqDebug( "offset...........%d", offset ); + tqDebug( "startpos.........%d", startpos ); + tqDebug( "biSize...........%d", bi.biSize ); + tqDebug( "biWidth..........%d", bi.biWidth ); + tqDebug( "biHeight.........%d", bi.biHeight ); + tqDebug( "biPlanes.........%d", bi.biPlanes ); + tqDebug( "biBitCount.......%d", bi.biBitCount ); + tqDebug( "biCompression....%d", bi.biCompression ); + tqDebug( "biSizeImage......%d", bi.biSizeImage ); + tqDebug( "biXPelsPerMeter..%d", bi.biXPelsPerMeter ); + tqDebug( "biYPelsPerMeter..%d", bi.biYPelsPerMeter ); + tqDebug( "biClrUsed........%d", bi.biClrUsed ); + tqDebug( "biClrImportant...%d", bi.biClrImportant ); #endif int w = bi.biWidth, h = bi.biHeight, nbits = bi.biBitCount; int t = bi.biSize, comp = bi.biCompression; @@ -5758,7 +5758,7 @@ static void read_xpm_image_or_array( TQImageIO * iio, const char * const * sourc for( currentColor=0; currentColor < ncols; ++currentColor ) { if ( !read_xpm_string( buf, d, source, index ) ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQImage: XPM color specification missing"); + tqWarning( "TQImage: XPM color specification missing"); #endif return; } @@ -5769,7 +5769,7 @@ static void read_xpm_image_or_array( TQImageIO * iio, const char * const * sourc i = nextColorSpec(buf); if ( i < 0 ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQImage: XPM color specification is missing: %s", buf.data()); + tqWarning( "TQImage: XPM color specification is missing: %s", buf.data()); #endif return; // no c/g/g4/m/s specification at all } @@ -5809,7 +5809,7 @@ static void read_xpm_image_or_array( TQImageIO * iio, const char * const * sourc for( int y=0; y<h; y++ ) { if ( !read_xpm_string( buf, d, source, index ) ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQImage: XPM pixels missing on image line %d", y); + tqWarning( "TQImage: XPM pixels missing on image line %d", y); #endif return; } @@ -6478,7 +6478,7 @@ TQGfx * TQImage::graphicsContext() int h = qt_screen->mapToDevice( TQSize(width(),height()) ).height(); ret=TQGfx::createGfx(depth(),bits(),w,h,bytesPerLine()); } else { - qDebug("Trying to create image for null depth"); + tqDebug("Trying to create image for null depth"); return 0; } if(depth()<=8) { diff --git a/src/kernel/qinputcontext.cpp b/src/kernel/qinputcontext.cpp index a59fecef1..654547f22 100644 --- a/src/kernel/qinputcontext.cpp +++ b/src/kernel/qinputcontext.cpp @@ -526,15 +526,15 @@ void TQInputContext::sendIMEventInternal( TQEvent::Type type, return; if ( type == TQEvent::IMStart ) { - qDebug( "sending IMStart with %d chars to %p", + tqDebug( "sending IMStart with %d chars to %p", text.length(), receiver ); event = new TQIMEvent( type, text, cursorPosition ); } else if ( type == TQEvent::IMEnd ) { - qDebug( "sending IMEnd with %d chars to %p, text=%s", + tqDebug( "sending IMEnd with %d chars to %p, text=%s", text.length(), receiver, (const char*)text.local8Bit() ); event = new TQIMEvent( type, text, cursorPosition ); } else if ( type == TQEvent::IMCompose ) { - qDebug( "sending IMCompose to %p with %d chars, cpos=%d, sellen=%d, text=%s", + tqDebug( "sending IMCompose to %p with %d chars, cpos=%d, sellen=%d, text=%s", receiver, text.length(), cursorPosition, selLength, (const char*)text.local8Bit() ); event = new TQIMComposeEvent( type, text, cursorPosition, selLength ); diff --git a/src/kernel/qinternal.cpp b/src/kernel/qinternal.cpp index 2a58f01d3..0b64c69cf 100644 --- a/src/kernel/qinternal.cpp +++ b/src/kernel/qinternal.cpp @@ -183,7 +183,7 @@ bool TQSharedDoubleBufferCleaner::event( TQEvent *e ) } #ifdef QT_CHECK_STATE else { - qWarning( "TQSharedDoubleBufferCleaner::event: invalid timer event received." ); + tqWarning( "TQSharedDoubleBufferCleaner::event: invalid timer event received." ); return FALSE; } #endif // QT_CHECK_STATE @@ -335,7 +335,7 @@ bool TQSharedDoubleBuffer::begin( TQPainter* painter, int x, int y, int w, int h { if ( isActive() ) { #if defined(QT_CHECK_STATE) - qWarning( "TQSharedDoubleBuffer::begin: Buffer is already active." + tqWarning( "TQSharedDoubleBuffer::begin: Buffer is already active." "\n\tYou must end() the buffer before a second begin()" ); #endif // QT_CHECK_STATE return FALSE; @@ -390,7 +390,7 @@ bool TQSharedDoubleBuffer::begin( TQWidget* widget, int x, int y, int w, int h ) { if ( isActive() ) { #if defined(QT_CHECK_STATE) - qWarning( "TQSharedDoubleBuffer::begin: Buffer is already active." + tqWarning( "TQSharedDoubleBuffer::begin: Buffer is already active." "\n\tYou must end() the buffer before a second begin()" ); #endif // QT_CHECK_STATE return FALSE; @@ -447,7 +447,7 @@ bool TQSharedDoubleBuffer::end() { if ( ! isActive() ) { #if defined(QT_CHECK_STATE) - qWarning( "TQSharedDoubleBuffer::end: Buffer is not active." + tqWarning( "TQSharedDoubleBuffer::end: Buffer is not active." "\n\tYou must call begin() before calling end()." ); #endif // QT_CHECK_STATE return FALSE; @@ -584,7 +584,7 @@ void TQSharedDoubleBuffer::releasePixmap() // sanity check #ifdef QT_CHECK_STATE - qWarning( "TQSharedDoubleBuffer::releasePixmap: internal error." + tqWarning( "TQSharedDoubleBuffer::releasePixmap: internal error." "\n\t%p does not own shared pixmap, %p does.", (void*)this, (void*)qdb_owner ); #endif // QT_CHECK_STATE diff --git a/src/kernel/qjpegio.cpp b/src/kernel/qjpegio.cpp index e7b33f8ca..cbc469fad 100644 --- a/src/kernel/qjpegio.cpp +++ b/src/kernel/qjpegio.cpp @@ -80,7 +80,7 @@ void my_error_exit (j_common_ptr cinfo) my_error_mgr* myerr = (my_error_mgr*) cinfo->err; char buffer[JMSG_LENGTH_MAX]; (*cinfo->err->format_message)(cinfo, buffer); - qWarning(buffer); + tqWarning(buffer); longjmp(myerr->setjmp_buffer, 1); } @@ -249,13 +249,13 @@ void read_jpeg_image(TQImageIO* iio) } else if ( sModeTQStr == "ScaleMax" ) { sMode = TQImage::ScaleMax; } else { - qDebug("read_jpeg_image: invalid scale mode \"%s\", see TQImage::ScaleMode documentation", sModeStr); + tqDebug("read_jpeg_image: invalid scale mode \"%s\", see TQImage::ScaleMode documentation", sModeStr); sMode = TQImage::ScaleFree; } -// qDebug( "Parameters ask to scale the image to %i x %i ScaleMode: %s", sWidth, sHeight, sModeStr ); +// tqDebug( "Parameters ask to scale the image to %i x %i ScaleMode: %s", sWidth, sHeight, sModeStr ); scaleSize( sWidth, sHeight, cinfo.output_width, cinfo.output_height, sMode ); -// qDebug( "Scaling the jpeg to %i x %i", sWidth, sHeight, sModeStr ); +// tqDebug( "Scaling the jpeg to %i x %i", sWidth, sHeight, sModeStr ); bool created = FALSE; if ( cinfo.output_components == 3 || cinfo.output_components == 4) { diff --git a/src/kernel/qkeysequence.cpp b/src/kernel/qkeysequence.cpp index c50110a16..17a49b6c6 100644 --- a/src/kernel/qkeysequence.cpp +++ b/src/kernel/qkeysequence.cpp @@ -300,7 +300,7 @@ void TQKeySequence::setKey( int key, int index ) { #ifdef QT_CHECK_STATE if ( 0 > index && 4 < index ) { - qWarning( "TQKeySequence::setKey: index %u out of range", index ); + tqWarning( "TQKeySequence::setKey: index %u out of range", index ); return; } #endif // QT_CHECK_STATE @@ -620,7 +620,7 @@ int TQKeySequence::operator[]( uint index ) const { #ifdef QT_CHECK_STATE if ( index > 4 ) { - qWarning( "TQKeySequence::operator[]: index %u out of range", index ); + tqWarning( "TQKeySequence::operator[]: index %u out of range", index ); return 0; } #endif // QT_CHECK_STATE @@ -707,7 +707,7 @@ TQDataStream &operator>>( TQDataStream &s, TQKeySequence &keysequence ) #ifdef QT_CHECK_STATE if ( 1 != list.count() && 4 != list.count() ) { - qWarning( "Invalid TQKeySequence data in the datastream." ); + tqWarning( "Invalid TQKeySequence data in the datastream." ); return s; } #endif diff --git a/src/kernel/qlayout.cpp b/src/kernel/qlayout.cpp index 11960dba1..dfcf450dd 100644 --- a/src/kernel/qlayout.cpp +++ b/src/kernel/qlayout.cpp @@ -468,9 +468,9 @@ void TQGridLayoutData::add( TQGridBox *box, int row1, int row2, int col1, { #ifdef QT_CHECK_RANGE if ( row2 >= 0 && row2 < row1 ) - qWarning( "TQGridLayout: Multi-cell fromRow greater than toRow" ); + tqWarning( "TQGridLayout: Multi-cell fromRow greater than toRow" ); if ( col2 >= 0 && col2 < col1 ) - qWarning( "TQGridLayout: Multi-cell fromCol greater than toCol" ); + tqWarning( "TQGridLayout: Multi-cell fromCol greater than toCol" ); #endif if ( row1 == row2 && col1 == col2 ) { add( box, row1, col1 ); @@ -1216,7 +1216,7 @@ static bool checkWidget( TQLayout *l, TQWidget *w ) { if ( !w ) { #if defined(QT_CHECK_STATE) - qWarning( "TQLayout: Cannot add null widget to %s/%s", l->className(), + tqWarning( "TQLayout: Cannot add null widget to %s/%s", l->className(), l->name() ); #endif return FALSE; @@ -1224,12 +1224,12 @@ static bool checkWidget( TQLayout *l, TQWidget *w ) if ( w->parentWidget() != l->mainWidget() && l->mainWidget() ) { #if defined(QT_CHECK_STATE) if ( w->parentWidget() ) - qWarning( "TQLayout: Adding %s/%s (child of %s/%s) to layout for " + tqWarning( "TQLayout: Adding %s/%s (child of %s/%s) to layout for " "%s/%s", w->className(), w->name(), w->parentWidget()->className(), w->parentWidget()->name(), l->mainWidget()->className(), l->mainWidget()->name() ); else - qWarning( "TQLayout: Adding %s/%s (top-level widget) to layout for" + tqWarning( "TQLayout: Adding %s/%s (top-level widget) to layout for" " %s/%s", w->className(), w->name(), l->mainWidget()->className(), l->mainWidget()->name() ); #endif @@ -1264,7 +1264,7 @@ void TQGridLayout::addWidget( TQWidget *w, int row, int col, int alignment ) return; if ( row < 0 || col < 0 ) { #if defined(QT_CHECK_STATE) - qWarning( "TQGridLayout: Cannot add %s/%s to %s/%s at row %d col %d", + tqWarning( "TQGridLayout: Cannot add %s/%s to %s/%s at row %d col %d", w->className(), w->name(), className(), name(), row, col ); #endif return; diff --git a/src/kernel/qlocalfs.cpp b/src/kernel/qlocalfs.cpp index 73a0c8a5b..95ba0dc61 100644 --- a/src/kernel/qlocalfs.cpp +++ b/src/kernel/qlocalfs.cpp @@ -73,7 +73,7 @@ \endcode This code will only work if the TQLocalFs class is registered; to - register the class, you must call qInitNetworkProtocols() before + register the class, you must call tqInitNetworkProtocols() before using a TQUrlOperator with TQLocalFs. If you really need to use TQLocalFs directly, don't forget @@ -122,7 +122,7 @@ static int convertPermissions(TQFileInfo *fi) void TQLocalFs::operationListChildren( TQNetworkOperation *op ) { #ifdef TQLOCALFS_DEBUG - qDebug( "TQLocalFs: operationListChildren" ); + tqDebug( "TQLocalFs: operationListChildren" ); #endif op->setState( StInProgress ); @@ -171,7 +171,7 @@ void TQLocalFs::operationListChildren( TQNetworkOperation *op ) void TQLocalFs::operationMkDir( TQNetworkOperation *op ) { #ifdef TQLOCALFS_DEBUG - qDebug( "TQLocalFs: operationMkDir" ); + tqDebug( "TQLocalFs: operationMkDir" ); #endif op->setState( StInProgress ); TQString dirname = op->arg( 0 ); @@ -202,7 +202,7 @@ void TQLocalFs::operationMkDir( TQNetworkOperation *op ) void TQLocalFs::operationRemove( TQNetworkOperation *op ) { #ifdef TQLOCALFS_DEBUG - qDebug( "TQLocalFs: operationRemove" ); + tqDebug( "TQLocalFs: operationRemove" ); #endif op->setState( StInProgress ); TQString name = TQUrl( op->arg( 0 ) ).path(); @@ -236,7 +236,7 @@ void TQLocalFs::operationRemove( TQNetworkOperation *op ) void TQLocalFs::operationRename( TQNetworkOperation *op ) { #ifdef TQLOCALFS_DEBUG - qDebug( "TQLocalFs: operationRename" ); + tqDebug( "TQLocalFs: operationRename" ); #endif op->setState( StInProgress ); TQString oldname = op->arg( 0 ); @@ -263,7 +263,7 @@ void TQLocalFs::operationRename( TQNetworkOperation *op ) void TQLocalFs::operationGet( TQNetworkOperation *op ) { #ifdef TQLOCALFS_DEBUG - qDebug( "TQLocalFs: operationGet" ); + tqDebug( "TQLocalFs: operationGet" ); #endif op->setState( StInProgress ); TQString from = TQUrl( op->arg( 0 ) ).path(); @@ -271,7 +271,7 @@ void TQLocalFs::operationGet( TQNetworkOperation *op ) TQFile f( from ); if ( !f.open( IO_ReadOnly ) ) { #ifdef TQLOCALFS_DEBUG - qDebug( "TQLocalFs: could not open %s", from.latin1() ); + tqDebug( "TQLocalFs: could not open %s", from.latin1() ); #endif TQString msg = tr( "Could not open\n%1" ).arg( from ); op->setState( StFailed ); @@ -291,7 +291,7 @@ void TQLocalFs::operationGet( TQNetworkOperation *op ) emit data( s, op ); emit dataTransferProgress( f.size(), f.size(), op ); #ifdef TQLOCALFS_DEBUG - qDebug( "TQLocalFs: got all %d bytes at once", f.size() ); + tqDebug( "TQLocalFs: got all %d bytes at once", f.size() ); #endif } else { s.resize( blockSize ); @@ -317,7 +317,7 @@ void TQLocalFs::operationGet( TQNetworkOperation *op ) if (!that) return; #ifdef TQLOCALFS_DEBUG - qDebug( "TQLocalFs: got all %d bytes step by step", f.size() ); + tqDebug( "TQLocalFs: got all %d bytes step by step", f.size() ); #endif emit dataTransferProgress( f.size(), f.size(), op ); } @@ -334,7 +334,7 @@ void TQLocalFs::operationGet( TQNetworkOperation *op ) void TQLocalFs::operationPut( TQNetworkOperation *op ) { #ifdef TQLOCALFS_DEBUG - qDebug( "TQLocalFs: operationPut" ); + tqDebug( "TQLocalFs: operationPut" ); #endif op->setState( StInProgress ); TQString to = TQUrl( op->arg( 0 ) ).path(); diff --git a/src/kernel/qlock.cpp b/src/kernel/qlock.cpp index d470c512c..49edf98ca 100644 --- a/src/kernel/qlock.cpp +++ b/src/kernel/qlock.cpp @@ -138,9 +138,9 @@ TQLock::TQLock( const TQString &filename, char id, bool create ) } #endif if ( data->id == -1 ) { - qWarning( "Cannot %s semaphore %s \'%c\'", + tqWarning( "Cannot %s semaphore %s \'%c\'", create ? "create" : "get", filename.latin1(), id ); - qDebug("Error %d %s\n",errno,strerror(errno)); + tqDebug("Error %d %s\n",errno,strerror(errno)); } #endif } @@ -211,7 +211,7 @@ void TQLock::lock( Type t ) for( int rv=1; rv; ) { rv = flock(data->id, op); if (rv == -1 && errno != EINTR) - qDebug("Semop lock failure %s",strerror(errno)); + tqDebug("Semop lock failure %s",strerror(errno)); } #else sembuf sops; @@ -230,7 +230,7 @@ void TQLock::lock( Type t ) do { rv = semop(data->id,&sops,1); if (rv == -1 && errno != EINTR) - qDebug("Semop lock failure %s",strerror(errno)); + tqDebug("Semop lock failure %s",strerror(errno)); } while ( rv == -1 && errno == EINTR ); #endif } @@ -256,7 +256,7 @@ void TQLock::unlock() for( int rv=1; rv; ) { rv = flock(data->id, LOCK_UN); if (rv == -1 && errno != EINTR) - qDebug("Semop lock failure %s",strerror(errno)); + tqDebug("Semop lock failure %s",strerror(errno)); } #else sembuf sops; @@ -270,12 +270,12 @@ void TQLock::unlock() do { rv = semop(data->id,&sops,1); if (rv == -1 && errno != EINTR) - qDebug("Semop unlock failure %s",strerror(errno)); + tqDebug("Semop unlock failure %s",strerror(errno)); } while ( rv == -1 && errno == EINTR ); #endif } } else { - qDebug("Unlock without corresponding lock"); + tqDebug("Unlock without corresponding lock"); } #endif } diff --git a/src/kernel/qmetaobject.cpp b/src/kernel/qmetaobject.cpp index 5cdb20522..6dbc044a4 100644 --- a/src/kernel/qmetaobject.cpp +++ b/src/kernel/qmetaobject.cpp @@ -283,8 +283,8 @@ TQMetaObject::~TQMetaObject() delete signalDict; delete d; #ifdef QT_THREAD_SUPPORT - TQMutexLocker( qt_global_mutexpool ? - qt_global_mutexpool->get( &qt_metaobjects ) : 0 ); + TQMutexLocker( tqt_global_mutexpool ? + tqt_global_mutexpool->get( &qt_metaobjects ) : 0 ); #endif // QT_THREAD_SUPPORT if ( qt_metaobjects ) { qt_metaobjects->remove( classname ); @@ -423,7 +423,7 @@ int TQMetaObject::findSignal( const char* n, bool super ) const if ( md ) { #if defined(QT_CHECK_RANGE) if ( offset != -1 ) { - qWarning( "TQMetaObject::findSignal:%s: Conflict with %s::%s", + tqWarning( "TQMetaObject::findSignal:%s: Conflict with %s::%s", className(), mo->className(), n ); return offset; } @@ -800,8 +800,8 @@ TQMetaObject *TQMetaObject::metaObject( const char *class_name ) if ( !qt_metaobjects ) return 0; #ifdef QT_THREAD_SUPPORT - TQMutexLocker( qt_global_mutexpool ? - qt_global_mutexpool->get( &qt_metaobjects ) : 0 ); + TQMutexLocker( tqt_global_mutexpool ? + tqt_global_mutexpool->get( &qt_metaobjects ) : 0 ); #endif // QT_THREAD_SUPPORT TQtStaticMetaObjectFunction func = (TQtStaticMetaObjectFunction)qt_metaobjects->find( class_name ); if ( func ) @@ -815,8 +815,8 @@ bool TQMetaObject::hasMetaObject( const char *class_name ) if ( !qt_metaobjects ) return FALSE; #ifdef QT_THREAD_SUPPORT - TQMutexLocker( qt_global_mutexpool ? - qt_global_mutexpool->get( &qt_metaobjects ) : 0 ); + TQMutexLocker( tqt_global_mutexpool ? + tqt_global_mutexpool->get( &qt_metaobjects ) : 0 ); #endif // QT_THREAD_SUPPORT return !!qt_metaobjects->find( class_name ); } @@ -1205,8 +1205,8 @@ TQMetaObjectCleanUp::TQMetaObjectCleanUp( const char *mo_name, TQtStaticMetaObje : metaObject( 0 ) { #ifdef QT_THREAD_SUPPORT - TQMutexLocker( qt_global_mutexpool ? - qt_global_mutexpool->get( &qt_metaobjects ) : 0 ); + TQMutexLocker( tqt_global_mutexpool ? + tqt_global_mutexpool->get( &qt_metaobjects ) : 0 ); #endif // QT_THREAD_SUPPORT if ( !qt_metaobjects ) qt_metaobjects = new TQAsciiDict<void>( 257 ); @@ -1227,8 +1227,8 @@ TQMetaObjectCleanUp::TQMetaObjectCleanUp() TQMetaObjectCleanUp::~TQMetaObjectCleanUp() { #ifdef QT_THREAD_SUPPORT - TQMutexLocker( qt_global_mutexpool ? - qt_global_mutexpool->get( &qt_metaobjects ) : 0 ); + TQMutexLocker( tqt_global_mutexpool ? + tqt_global_mutexpool->get( &qt_metaobjects ) : 0 ); #endif // QT_THREAD_SUPPORT if ( !--qt_metaobjects_count ) { delete qt_metaobjects; @@ -1245,7 +1245,7 @@ void TQMetaObjectCleanUp::setMetaObject( TQMetaObject *&mo ) { #if defined(QT_CHECK_RANGE) if ( metaObject ) - qWarning( "TQMetaObjectCleanUp::setMetaObject: Double use of TQMetaObjectCleanUp!" ); + tqWarning( "TQMetaObjectCleanUp::setMetaObject: Double use of TQMetaObjectCleanUp!" ); #endif metaObject = &mo; } diff --git a/src/kernel/qmime.cpp b/src/kernel/qmime.cpp index 34d4b2152..d36b88aea 100644 --- a/src/kernel/qmime.cpp +++ b/src/kernel/qmime.cpp @@ -139,7 +139,7 @@ bool TQMimeSource::provides(const char* mimeType) const { const char* fmt; for (int i=0; (fmt = format(i)); i++) { - if ( !qstricmp(mimeType,fmt) ) + if ( !tqstricmp(mimeType,fmt) ) return TRUE; } return FALSE; diff --git a/src/kernel/qmngio.cpp b/src/kernel/qmngio.cpp index 0bd83131a..bf4504c3c 100644 --- a/src/kernel/qmngio.cpp +++ b/src/kernel/qmngio.cpp @@ -122,7 +122,7 @@ public: mng_int32 iExtra2, mng_pchar zErrortext ) { - qWarning("MNG error %d: %s; chunk %c%c%c%c; subcode %d:%d", + tqWarning("MNG error %d: %s; chunk %c%c%c%c; subcode %d:%d", iErrorcode, zErrortext ? zErrortext : "", (iChunkname>>24)&0xff, (iChunkname>>16)&0xff, @@ -456,7 +456,7 @@ void qInitMngIO() done = TRUE; #ifndef QT_NO_ASYNC_IMAGE_IO globalMngFormatTypeObject = new TQMNGFormatType; - qAddPostRoutine( qCleanupMngIO ); + tqAddPostRoutine( qCleanupMngIO ); #endif } } diff --git a/src/kernel/qmotifdnd_x11.cpp b/src/kernel/qmotifdnd_x11.cpp index 0085b8956..fc97c3d68 100644 --- a/src/kernel/qmotifdnd_x11.cpp +++ b/src/kernel/qmotifdnd_x11.cpp @@ -597,12 +597,12 @@ static DndTargetsTable TargetsTable(Display *display) &type, &format, &size, &bytes_after, (unsigned char **) &target_prop) != Success) || type == None) { - qWarning("TQMotifDND: cannot get property on motif window"); + tqWarning("TQMotifDND: cannot get property on motif window"); return 0; } if (target_prop->protocol_version != DND_PROTOCOL_VERSION) { - qWarning("TQMotifDND: protocol mismatch"); + tqWarning("TQMotifDND: protocol mismatch"); } if (target_prop->byte_order != DndByteOrder()) { @@ -726,7 +726,7 @@ TQByteArray qt_motifdnd_obtain_data( const char *mimeType ) TQByteArray result; // try to convert the selection to the requested property - // qDebug( "trying to convert to '%s'", mimeType ); + // tqDebug( "trying to convert to '%s'", mimeType ); int n=0; const char* f; @@ -735,22 +735,22 @@ TQByteArray qt_motifdnd_obtain_data( const char *mimeType ) if ( !f ) return result; n++; - } while( qstricmp( mimeType, f ) ); + } while( tqstricmp( mimeType, f ) ); // found one Atom conversion_type; - if ( qstrnicmp( f, "text/", 5 ) == 0 ) { + if ( tqstrnicmp( f, "text/", 5 ) == 0 ) { // always convert text to XA_STRING for compatibility with // prior TQt versions conversion_type = XA_STRING; } else { conversion_type = *qt_xdnd_str_to_atom( f ); - // qDebug( "found format '%s' 0x%lx '%s'", f, conversion_type, + // tqDebug( "found format '%s' 0x%lx '%s'", f, conversion_type, // qt_xdnd_atom_to_str( conversion_type ) ); } - if ( XGetSelectionOwner( qt_xdisplay(), + if ( XGetSelectionOwner( tqt_xdisplay(), Dnd_selection ) == None ) { return result; // should never happen? } @@ -761,19 +761,19 @@ TQByteArray qt_motifdnd_obtain_data( const char *mimeType ) } // convert selection to the appropriate type - XConvertSelection (qt_xdisplay(), Dnd_selection, conversion_type, + XConvertSelection (tqt_xdisplay(), Dnd_selection, conversion_type, Dnd_selection, tw->winId(), Dnd_selection_time); - XFlush( qt_xdisplay() ); + XFlush( tqt_xdisplay() ); XEvent xevent; - bool got=qt_xclb_wait_for_event( qt_xdisplay(), + bool got=qt_xclb_wait_for_event( tqt_xdisplay(), tw->winId(), SelectionNotify, &xevent, 5000); if ( got ) { Atom type; - if ( qt_xclb_read_property( qt_xdisplay(), + if ( qt_xclb_read_property( tqt_xdisplay(), tw->winId(), Dnd_selection, TRUE, &result, 0, &type, 0, TRUE ) ) { @@ -781,11 +781,11 @@ TQByteArray qt_motifdnd_obtain_data( const char *mimeType ) } // we have to convert selection in order to indicate success to the initiator - XConvertSelection (qt_xdisplay(), Dnd_selection, Dnd_transfer_success, + XConvertSelection (tqt_xdisplay(), Dnd_selection, Dnd_transfer_success, Dnd_selection, tw->winId(), Dnd_selection_time); // wait again for SelectionNotify event - qt_xclb_wait_for_event( qt_xdisplay(), + qt_xclb_wait_for_event( tqt_xdisplay(), tw->winId(), SelectionNotify, &xevent, 5000); @@ -938,7 +938,7 @@ void qt_motifdnd_handle_msg( TQWidget * /* w */ , const XEvent * xe, bool /* pas case DND_DROP_START: if (!in_drop_site) { // we have to convert selection in order to indicate failure to the initiator - XConvertSelection (qt_xdisplay(), dnd_data.property, Dnd_transfer_failure, + XConvertSelection (tqt_xdisplay(), dnd_data.property, Dnd_transfer_failure, dnd_data.property, cur_window, dnd_data.time); TQDragLeaveEvent e; TQApplication::sendEvent( drop_widget, &e ); diff --git a/src/kernel/qnetworkprotocol.cpp b/src/kernel/qnetworkprotocol.cpp index c53649119..021636c68 100644 --- a/src/kernel/qnetworkprotocol.cpp +++ b/src/kernel/qnetworkprotocol.cpp @@ -51,9 +51,9 @@ //#define TQNETWORKPROTOCOL_DEBUG #define NETWORK_OP_DELAY 1000 -extern Q_EXPORT TQNetworkProtocolDict *qNetworkProtocolRegister; +extern Q_EXPORT TQNetworkProtocolDict *tqNetworkProtocolRegister; -TQNetworkProtocolDict *qNetworkProtocolRegister = 0; +TQNetworkProtocolDict *tqNetworkProtocolRegister = 0; class TQNetworkProtocolPrivate { @@ -542,7 +542,7 @@ int TQNetworkProtocol::supportedOperations() const void TQNetworkProtocol::addOperation( TQNetworkOperation *op ) { #ifdef TQNETWORKPROTOCOL_DEBUG - qDebug( "TQNetworkOperation: addOperation: %p %d", op, op->operation() ); + tqDebug( "TQNetworkOperation: addOperation: %p %d", op, op->operation() ); #endif d->operationQueue.enqueue( op ); if ( !d->opInProgress ) @@ -566,12 +566,12 @@ void TQNetworkProtocol::addOperation( TQNetworkOperation *op ) void TQNetworkProtocol::registerNetworkProtocol( const TQString &protocol, TQNetworkProtocolFactoryBase *protocolFactory ) { - if ( !qNetworkProtocolRegister ) { - qNetworkProtocolRegister = new TQNetworkProtocolDict; + if ( !tqNetworkProtocolRegister ) { + tqNetworkProtocolRegister = new TQNetworkProtocolDict; TQNetworkProtocol::registerNetworkProtocol( "file", new TQNetworkProtocolFactory< TQLocalFs > ); } - qNetworkProtocolRegister->insert( protocol, protocolFactory ); + tqNetworkProtocolRegister->insert( protocol, protocolFactory ); } /*! @@ -596,15 +596,15 @@ void TQNetworkProtocol::registerNetworkProtocol( const TQString &protocol, TQNetworkProtocol *TQNetworkProtocol::getNetworkProtocol( const TQString &protocol ) { - if ( !qNetworkProtocolRegister ) { - qNetworkProtocolRegister = new TQNetworkProtocolDict; + if ( !tqNetworkProtocolRegister ) { + tqNetworkProtocolRegister = new TQNetworkProtocolDict; TQNetworkProtocol::registerNetworkProtocol( "file", new TQNetworkProtocolFactory< TQLocalFs > ); } if ( protocol.isNull() ) return 0; - TQNetworkProtocolFactoryBase *factory = qNetworkProtocolRegister->find( protocol ); + TQNetworkProtocolFactoryBase *factory = tqNetworkProtocolRegister->find( protocol ); if ( factory ) return factory->createObject(); @@ -619,10 +619,10 @@ TQNetworkProtocol *TQNetworkProtocol::getNetworkProtocol( const TQString &protoc bool TQNetworkProtocol::hasOnlyLocalFileSystem() { - if ( !qNetworkProtocolRegister ) + if ( !tqNetworkProtocolRegister ) return FALSE; - TQDictIterator< TQNetworkProtocolFactoryBase > it( *qNetworkProtocolRegister ); + TQDictIterator< TQNetworkProtocolFactoryBase > it( *tqNetworkProtocolRegister ); for ( ; it.current(); ++it ) if ( it.currentKey() != "file" ) return FALSE; @@ -637,7 +637,7 @@ bool TQNetworkProtocol::hasOnlyLocalFileSystem() void TQNetworkProtocol::startOps() { #ifdef TQNETWORKPROTOCOL_DEBUG - qDebug( "TQNetworkOperation: start processing operations" ); + tqDebug( "TQNetworkOperation: start processing operations" ); #endif processNextOperation( 0 ); } @@ -826,7 +826,7 @@ void TQNetworkProtocol::operationPutChunk( TQNetworkOperation * ) void TQNetworkProtocol::processNextOperation( TQNetworkOperation *old ) { #ifdef TQNETWORKPROTOCOL_DEBUG - qDebug( "TQNetworkOperation: process next operation, old: %p", old ); + tqDebug( "TQNetworkOperation: process next operation, old: %p", old ); #endif d->removeTimer->stop(); @@ -949,7 +949,7 @@ void TQNetworkProtocol::removeMe() { if ( d->autoDelete ) { #ifdef TQNETWORKPROTOCOL_DEBUG - qDebug( "TQNetworkOperation: autodelete of TQNetworkProtocol %p", this ); + tqDebug( "TQNetworkOperation: autodelete of TQNetworkProtocol %p", this ); #endif delete d->url; // destructor deletes the network protocol } diff --git a/src/kernel/qobject.cpp b/src/kernel/qobject.cpp index d79d655ef..e958f636e 100644 --- a/src/kernel/qobject.cpp +++ b/src/kernel/qobject.cpp @@ -275,7 +275,7 @@ void *qt_find_obj_child( TQObject *parent, const char *type, const char *name ) /* Preliminary signal spy */ -Q_EXPORT TQObject* qt_preliminary_signal_spy = 0; +Q_EXPORT TQObject* tqt_preliminary_signal_spy = 0; static TQObject* qt_spy_signal_sender = 0; static void qt_spy_signal( TQObject* sender, int signal, TQUObject* o ) @@ -292,18 +292,18 @@ static void qt_spy_signal( TQObject* sender, int signal, TQUObject* o ) mo = sender->metaObject(); while ( mo ) { s.sprintf( "%s_%s", mo->className(), sigData->name ); - int slot = qt_preliminary_signal_spy->metaObject()->findSlot( s, TRUE ); + int slot = tqt_preliminary_signal_spy->metaObject()->findSlot( s, TRUE ); if ( slot >= 0 ) { #ifdef QT_THREAD_SUPPORT // protect access to qt_spy_signal_sender void * const address = &qt_spy_signal_sender; - TQMutexLocker locker( qt_global_mutexpool ? - qt_global_mutexpool->get( address ) : 0 ); + TQMutexLocker locker( tqt_global_mutexpool ? + tqt_global_mutexpool->get( address ) : 0 ); #endif // QT_THREAD_SUPPORT TQObject* old_sender = qt_spy_signal_sender; qt_spy_signal_sender = sender; - qt_preliminary_signal_spy->qt_invoke( slot, o ); + tqt_preliminary_signal_spy->qt_invoke( slot, o ); qt_spy_signal_sender = old_sender; break; } @@ -335,7 +335,7 @@ static void cleanup_object_trees() static void ensure_object_trees() { object_trees = new TQObjectList; - qAddPostRoutine( cleanup_object_trees ); + tqAddPostRoutine( cleanup_object_trees ); } static void insert_tree( TQObject* obj ) @@ -418,7 +418,7 @@ TQObject::TQObject( TQObject *parent, const char *name ) blockSig( FALSE ), // not blocking signals wasDeleted( FALSE ), // double-delete catcher isTree( FALSE ), // no tree yet - objname( name ? qstrdup(name) : 0 ), // set object name + objname( name ? tqstrdup(name) : 0 ), // set object name parentObj( 0 ), // no parent yet. It is set by insertChild() childObjects( 0 ), // no children yet connections( 0 ), // no connections yet @@ -463,7 +463,7 @@ TQObject::~TQObject() { if ( wasDeleted ) { #if defined(QT_DEBUG) - qWarning( "Double TQObject deletion detected." ); + tqWarning( "Double TQObject deletion detected." ); #endif return; } @@ -643,12 +643,12 @@ void *qt_inheritedBy( TQMetaObject *superClass, const TQObject *object ) future. If the object does not have a name, the name() function returns - "unnamed", so printf() (used in qDebug()) will not be asked to + "unnamed", so printf() (used in tqDebug()) will not be asked to output a null pointer. If you want a null pointer to be returned for unnamed objects, you can call name( 0 ). \code - qDebug( "MyClass::setPrecision(): (%s) invalid precision %f", + tqDebug( "MyClass::setPrecision(): (%s) invalid precision %f", name(), newPrecision ); \endcode @@ -668,7 +668,7 @@ void TQObject::setName( const char *name ) { if ( objname ) delete [] (char*) objname; - objname = name ? qstrdup(name) : 0; + objname = name ? tqstrdup(name) : 0; } /*! @@ -756,7 +756,7 @@ bool TQObject::event( TQEvent *e ) { #if defined(QT_CHECK_NULL) if ( e == 0 ) - qWarning( "TQObject::event: Null events are not permitted" ); + tqWarning( "TQObject::event: Null events are not permitted" ); #endif if ( eventFilters ) { // try filters if ( activate_filters(e) ) // stopped by a filter @@ -883,7 +883,7 @@ void TQObject::customEvent( TQCustomEvent * ) if ( obj == textEdit ) { if ( e->type() == TQEvent::KeyPress ) { TQKeyEvent *k = (TQKeyEvent*)ev; - qDebug( "Ate key press %d", k->key() ); + tqDebug( "Ate key press %d", k->key() ); return TRUE; } else { return FALSE; @@ -1005,7 +1005,7 @@ void TQObject::blockSignals( bool block ) void MyObject::timerEvent( TQTimerEvent *e ) { - qDebug( "timer event, id %d", e->timerId() ); + tqDebug( "timer event, id %d", e->timerId() ); } \endcode @@ -1242,7 +1242,7 @@ TQConnectionList *TQObject::receivers( const char* signal ) const TQConnectionList *TQObject::receivers( int signal ) const { #ifndef QT_NO_PRELIMINARY_SIGNAL_SPY - if ( qt_preliminary_signal_spy && signal >= 0 ) { + if ( tqt_preliminary_signal_spy && signal >= 0 ) { if ( !connections ) { TQObject* that = (TQObject*) this; that->connections = new TQSignalVec( signal+1 ); @@ -1282,7 +1282,7 @@ void TQObject::insertChild( TQObject *obj ) if ( obj->parentObj && obj->parentObj != this ) { #if defined(QT_CHECK_STATE) if ( obj->parentObj != this && obj->isWidgetType() ) - qWarning( "TQObject::insertChild: Cannot reparent a widget, " + tqWarning( "TQObject::insertChild: Cannot reparent a widget, " "use TQWidget::reparent() instead" ); #endif obj->parentObj->removeChild( obj ); @@ -1293,7 +1293,7 @@ void TQObject::insertChild( TQObject *obj ) TQ_CHECK_PTR( childObjects ); } else if ( obj->parentObj == this ) { #if defined(QT_CHECK_STATE) - qWarning( "TQObject::insertChild: Object %s::%s already in list", + tqWarning( "TQObject::insertChild: Object %s::%s already in list", obj->className(), obj->name( "unnamed" ) ); #endif return; @@ -1368,7 +1368,7 @@ void TQObject::removeChild( TQObject *obj ) if ( e->type() == TQEvent::KeyPress ) { // special processing for key press TQKeyEvent *k = (TQKeyEvent *)e; - qDebug( "Ate key press %d", k->key() ); + tqDebug( "Ate key press %d", k->key() ); return TRUE; // eat event } else { // standard event processing @@ -1453,10 +1453,10 @@ static bool check_signal_macro( const TQObject *sender, const char *signal, int sigcode = (int)(*signal) - '0'; if ( sigcode != TQSIGNAL_CODE ) { if ( sigcode == TQSLOT_CODE ) - qWarning( "TQObject::%s: Attempt to %s non-signal %s::%s", + tqWarning( "TQObject::%s: Attempt to %s non-signal %s::%s", func, op, sender->className(), signal+1 ); else - qWarning( "TQObject::%s: Use the SIGNAL macro to %s %s::%s", + tqWarning( "TQObject::%s: Use the SIGNAL macro to %s %s::%s", func, op, sender->className(), signal ); return FALSE; } @@ -1467,7 +1467,7 @@ static bool check_member_code( int code, const TQObject *object, const char *member, const char *func ) { if ( code != TQSLOT_CODE && code != TQSIGNAL_CODE ) { - qWarning( "TQObject::%s: Use the SLOT or SIGNAL macro to " + tqWarning( "TQObject::%s: Use the SLOT or SIGNAL macro to " "%s %s::%s", func, func, object->className(), member ); return FALSE; } @@ -1483,10 +1483,10 @@ static void err_member_notfound( int code, const TQObject *object, case TQSIGNAL_CODE: type = "signal"; break; } if ( strchr(member,')') == 0 ) // common typing mistake - qWarning( "TQObject::%s: Parentheses expected, %s %s::%s", + tqWarning( "TQObject::%s: Parentheses expected, %s %s::%s", func, type, object->className(), member ); else - qWarning( "TQObject::%s: No such %s %s::%s", + tqWarning( "TQObject::%s: No such %s %s::%s", func, type, object->className(), member ); } @@ -1497,9 +1497,9 @@ static void err_info_about_objects( const char * func, { const char * a = sender->name(), * b = receiver->name(); if ( a ) - qWarning( "TQObject::%s: (sender name: '%s')", func, a ); + tqWarning( "TQObject::%s: (sender name: '%s')", func, a ); if ( b ) - qWarning( "TQObject::%s: (receiver name: '%s')", func, b ); + tqWarning( "TQObject::%s: (receiver name: '%s')", func, b ); } static void err_info_about_candidates( int code, @@ -1524,7 +1524,7 @@ static void err_info_about_candidates( int code, break; } if ( rm ) { - qWarning("TQObject::%s: Candidate: %s", func, newname.data()); + tqWarning("TQObject::%s: Candidate: %s", func, newname.data()); } } } @@ -1552,12 +1552,12 @@ static void err_info_about_candidates( int code, const TQObject *TQObject::sender() { #ifndef QT_NO_PRELIMINARY_SIGNAL_SPY - if ( this == qt_preliminary_signal_spy ) { + if ( this == tqt_preliminary_signal_spy ) { # ifdef QT_THREAD_SUPPORT // protect access to qt_spy_signal_sender void * const address = &qt_spy_signal_sender; - TQMutexLocker locker( qt_global_mutexpool ? - qt_global_mutexpool->get( address ) : 0 ); + TQMutexLocker locker( tqt_global_mutexpool ? + tqt_global_mutexpool->get( address ) : 0 ); # endif // QT_THREAD_SUPPORT return qt_spy_signal_sender; } @@ -1748,7 +1748,7 @@ bool TQObject::connect( const TQObject *sender, const char *signal, { #if defined(QT_CHECK_NULL) if ( sender == 0 || receiver == 0 || signal == 0 || member == 0 ) { - qWarning( "TQObject::connect: Cannot connect %s::%s to %s::%s", + tqWarning( "TQObject::connect: Cannot connect %s::%s to %s::%s", sender ? sender->className() : "(null)", signal ? signal+1 : "(null)", receiver ? receiver->className() : "(null)", @@ -1825,7 +1825,7 @@ bool TQObject::connect( const TQObject *sender, const char *signal, } #if defined(QT_CHECK_RANGE) if ( !s->checkConnectArgs(signal,receiver,member) ) { - qWarning( "TQObject::connect: Incompatible sender/receiver arguments" + tqWarning( "TQObject::connect: Incompatible sender/receiver arguments" "\n\t%s::%s --> %s::%s", s->className(), signal, r->className(), member ); @@ -1849,7 +1849,7 @@ bool TQObject::connect( const TQObject *sender, const char *signal, || ( TQUType::isEqual( sm->method->parameters[si-1].type, &static_QUType_varptr ) && TQUType::isEqual( rm->method->parameters[ri-1].type, &static_QUType_ptr ) ) ) continue; // varptr got introduced in 3.1 and is binary compatible with ptr - qWarning( "TQObject::connect: Incompatible sender/receiver marshalling" + tqWarning( "TQObject::connect: Incompatible sender/receiver marshalling" "\n\t%s::%s --> %s::%s", s->className(), signal, r->className(), member ); @@ -1989,7 +1989,7 @@ bool TQObject::disconnect( const TQObject *sender, const char *signal, { #if defined(QT_CHECK_NULL) if ( sender == 0 || (receiver == 0 && member != 0) ) { - qWarning( "TQObject::disconnect: Unexpected null parameter" ); + tqWarning( "TQObject::disconnect: Unexpected null parameter" ); return FALSE; } #endif @@ -2061,7 +2061,7 @@ bool TQObject::disconnect( const TQObject *sender, const char *signal, } if ( signal_index < 0 ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQObject::disconnect: No such signal %s::%s", + tqWarning( "TQObject::disconnect: No such signal %s::%s", s->className(), signal ); #endif return FALSE; @@ -2333,7 +2333,7 @@ TQMetaObject* TQObject::staticTQtMetaObject() void TQObject::activate_signal( int signal ) { #ifndef QT_NO_PRELIMINARY_SIGNAL_SPY - if ( qt_preliminary_signal_spy ) { + if ( tqt_preliminary_signal_spy ) { if ( !signalsBlocked() && signal >= 0 && ( !connections || !connections->at( signal ) ) ) { TQUObject o[1]; @@ -2360,7 +2360,7 @@ void TQObject::activate_signal( TQConnectionList *clist, TQUObject *o ) return; #ifndef QT_NO_PRELIMINARY_SIGNAL_SPY - if ( qt_preliminary_signal_spy ) + if ( tqt_preliminary_signal_spy ) qt_spy_signal( this, connections->findRef( clist), o ); #endif @@ -2438,7 +2438,7 @@ void TQObject::activate_signal( TQConnectionList *clist, TQUObject *o ) #define ACTIVATE_SIGNAL_WITH_PARAM(FNAME,TYPE) \ void TQObject::FNAME( int signal, TYPE param ) \ { \ - if ( qt_preliminary_signal_spy ) { \ + if ( tqt_preliminary_signal_spy ) { \ if ( !signalsBlocked() && signal >= 0 && \ ( !connections || !connections->at( signal ) ) ) { \ TQUObject o[2]; \ @@ -2504,7 +2504,7 @@ static void dumpRecursive( int level, TQObject *object ) flags += 'I'; } } - qDebug( "%s%s::%s %s", (const char*)buf, object->className(), name, + tqDebug( "%s%s::%s %s", (const char*)buf, object->className(), name, flags.latin1() ); if ( object->children() ) { TQObjectListIt it(*object->children()); @@ -2546,41 +2546,41 @@ void TQObject::dumpObjectTree() void TQObject::dumpObjectInfo() { #if defined(QT_DEBUG) - qDebug( "OBJECT %s::%s", className(), name( "unnamed" ) ); + tqDebug( "OBJECT %s::%s", className(), name( "unnamed" ) ); int n = 0; - qDebug( " SIGNALS OUT" ); + tqDebug( " SIGNALS OUT" ); if ( connections ) { TQConnectionList *clist; for ( uint i = 0; i < connections->size(); i++ ) { if ( ( clist = connections->at( i ) ) ) { - qDebug( "\t%s", metaObject()->signal( i, TRUE )->name ); + tqDebug( "\t%s", metaObject()->signal( i, TRUE )->name ); n++; register TQConnection *c; TQConnectionListIt cit(*clist); while ( (c=cit.current()) ) { ++cit; - qDebug( "\t --> %s::%s %s", c->object()->className(), + tqDebug( "\t --> %s::%s %s", c->object()->className(), c->object()->name( "unnamed" ), c->memberName() ); } } } } if ( n == 0 ) - qDebug( "\t<None>" ); + tqDebug( "\t<None>" ); - qDebug( " SIGNALS IN" ); + tqDebug( " SIGNALS IN" ); n = 0; if ( senderObjects ) { TQObject *sender = senderObjects->first(); while ( sender ) { - qDebug( "\t%s::%s", + tqDebug( "\t%s::%s", sender->className(), sender->name( "unnamed" ) ); n++; sender = senderObjects->next(); } } if ( n == 0 ) - qDebug( "\t<None>" ); + tqDebug( "\t<None>" ); #endif } @@ -2610,7 +2610,7 @@ bool TQObject::setProperty( const char *name, const TQVariant& value ) int id = meta->findProperty( name, TRUE ); const TQMetaProperty* p = meta->property( id, TRUE ); if ( !p || !p->isValid() || !p->writable() ) { - qWarning( "%s::setProperty( \"%s\", value ) failed: property invalid, read-only or does not exist", + tqWarning( "%s::setProperty( \"%s\", value ) failed: property invalid, read-only or does not exist", className(), name ); return FALSE; } @@ -2662,7 +2662,7 @@ TQVariant TQObject::property( const char *name ) const int id = meta->findProperty( name, TRUE ); const TQMetaProperty* p = meta->property( id, TRUE ); if ( !p || !p->isValid() ) { - qWarning( "%s::property( \"%s\" ) failed: property invalid or does not exist", + tqWarning( "%s::property( \"%s\" ) failed: property invalid or does not exist", className(), name ); return v; } diff --git a/src/kernel/qpaintdevice_x11.cpp b/src/kernel/qpaintdevice_x11.cpp index 1036664e8..2521ffb1e 100644 --- a/src/kernel/qpaintdevice_x11.cpp +++ b/src/kernel/qpaintdevice_x11.cpp @@ -133,7 +133,7 @@ TQPaintDevice::TQPaintDevice( uint devflags ) { if ( !tqApp ) { // global constructor #if defined(QT_CHECK_STATE) - qFatal( "TQPaintDevice: Must construct a TQApplication before a " + tqFatal( "TQPaintDevice: Must construct a TQApplication before a " "TQPaintDevice" ); #endif return; @@ -153,7 +153,7 @@ TQPaintDevice::~TQPaintDevice() { #if defined(QT_CHECK_STATE) if ( paintingActive() ) - qWarning( "TQPaintDevice: Cannot destroy paint device that is being " + tqWarning( "TQPaintDevice: Cannot destroy paint device that is being " "painted" ); #endif if ( x11Data && x11Data->deref() ) { @@ -699,7 +699,7 @@ int TQPaintDevice::x11AppDpiY() bool TQPaintDevice::cmd( int, TQPainter *, TQPDevCmdParam * ) { #if defined(QT_CHECK_STATE) - qWarning( "TQPaintDevice::cmd: Device has no command interface" ); + tqWarning( "TQPaintDevice::cmd: Device has no command interface" ); #endif return FALSE; } @@ -715,7 +715,7 @@ bool TQPaintDevice::cmd( int, TQPainter *, TQPDevCmdParam * ) int TQPaintDevice::metric( int ) const { #if defined(QT_CHECK_STATE) - qWarning( "TQPaintDevice::metrics: Device has no metric information" ); + tqWarning( "TQPaintDevice::metrics: Device has no metric information" ); #endif return 0; } @@ -778,7 +778,7 @@ static GC cache_mask_gc( Display *dpy, Drawable hd, int mask_no, Pixmap mask ) { if ( !init_mask_gc ) { // first time initialization init_mask_gc = TRUE; - qAddPostRoutine( cleanup_mask_gc ); + tqAddPostRoutine( cleanup_mask_gc ); for ( int i=0; i<max_mask_gcs; i++ ) gc_vec[i].gc = 0; } @@ -885,7 +885,7 @@ void bitBlt( TQPaintDevice *dst, int dx, int dy, bitBlt( pm, 0, 0, src, sx, sy, sw, sh ); } else { #if defined(QT_CHECK_RANGE) - qWarning( "bitBlt: Cannot bitBlt from device" ); + tqWarning( "bitBlt: Cannot bitBlt from device" ); #endif return; } @@ -906,7 +906,7 @@ void bitBlt( TQPaintDevice *dst, int dx, int dy, break; default: #if defined(QT_CHECK_RANGE) - qWarning( "bitBlt: Cannot bitBlt from device type %x", ts ); + tqWarning( "bitBlt: Cannot bitBlt from device type %x", ts ); #endif return; } @@ -917,7 +917,7 @@ void bitBlt( TQPaintDevice *dst, int dx, int dy, break; default: #if defined(QT_CHECK_RANGE) - qWarning( "bitBlt: Cannot bitBlt to device type %x", td ); + tqWarning( "bitBlt: Cannot bitBlt to device type %x", td ); #endif return; } @@ -930,14 +930,14 @@ void bitBlt( TQPaintDevice *dst, int dx, int dy, }; if ( rop > TQt::LastROP ) { #if defined(QT_CHECK_RANGE) - qWarning( "bitBlt: Invalid ROP code" ); + tqWarning( "bitBlt: Invalid ROP code" ); #endif return; } if ( dst->handle() == 0 ) { #if defined(QT_CHECK_NULL) - qWarning( "bitBlt: Cannot bitBlt to device" ); + tqWarning( "bitBlt: Cannot bitBlt to device" ); #endif return; } @@ -975,7 +975,7 @@ void bitBlt( TQPaintDevice *dst, int dx, int dy, if ( mono_dst && !mono_src ) { // dest is 1-bit pixmap, source is not #if defined(QT_CHECK_RANGE) - qWarning( "bitBlt: Incompatible destination pixmap" ); + tqWarning( "bitBlt: Incompatible destination pixmap" ); #endif return; } @@ -1058,7 +1058,7 @@ void bitBlt( TQPaintDevice *dst, int dx, int dy, return; } - gc = qt_xget_temp_gc( dst->x11Screen(), mono_dst ); // get a reusable GC + gc = tqt_xget_temp_gc( dst->x11Screen(), mono_dst ); // get a reusable GC if ( rop != TQt::CopyROP ) // use non-default ROP code XSetFunction( dpy, gc, ropCodes[rop] ); diff --git a/src/kernel/qpainter.cpp b/src/kernel/qpainter.cpp index d21be3703..79960a4ec 100644 --- a/src/kernel/qpainter.cpp +++ b/src/kernel/qpainter.cpp @@ -601,7 +601,7 @@ bool TQPainter::begin( const TQPaintDevice *pd, const TQWidget *copyAttributes, { if ( copyAttributes == 0 ) { #if defined(QT_CHECK_NULL) - qWarning( "TQPainter::begin: The widget to copy attributes from cannot " + tqWarning( "TQPainter::begin: The widget to copy attributes from cannot " "be null" ); #endif return FALSE; @@ -684,7 +684,7 @@ void TQPainter::killPStack() { #if defined(QT_CHECK_STATE) if ( ps_stack && !((TQPStateStack *)ps_stack)->isEmpty() ) - qWarning( "TQPainter::killPStack: non-empty save/restore stack when " + tqWarning( "TQPainter::killPStack: non-empty save/restore stack when " "end() was called" ); #endif delete (TQPStateStack *)ps_stack; @@ -763,7 +763,7 @@ void TQPainter::restore() TQPStateStack *pss = (TQPStateStack *)ps_stack; if ( pss == 0 || pss->isEmpty() ) { #if defined(QT_CHECK_STATE) - qWarning( "TQPainter::restore: Empty stack error" ); + tqWarning( "TQPainter::restore: Empty stack error" ); #endif return; } @@ -842,7 +842,7 @@ void TQPainter::redirect( TQPaintDevice *pdev, TQPaintDevice *replacement ) } #if defined(QT_CHECK_NULL) if ( pdev == 0 ) - qWarning( "TQPainter::redirect: The pdev argument cannot be 0" ); + tqWarning( "TQPainter::redirect: The pdev argument cannot be 0" ); #endif if ( replacement ) { pdev_dict->insert( pdev, replacement ); @@ -920,7 +920,7 @@ void TQPainter::setPen( const TQPen &pen ) { #if defined(QT_CHECK_STATE) if ( !isActive() ) - qWarning( "TQPainter::setPen: Will be reset by begin()" ); + tqWarning( "TQPainter::setPen: Will be reset by begin()" ); #endif if ( cpen == pen ) return; @@ -941,7 +941,7 @@ void TQPainter::setPen( PenStyle style ) { #if defined(QT_CHECK_STATE) if ( !isActive() ) - qWarning( "TQPainter::setPen: Will be reset by begin()" ); + tqWarning( "TQPainter::setPen: Will be reset by begin()" ); #endif TQPen::TQPenData *d = cpen.data; // low level access if ( d->style == style && d->linest == style && !d->width && d->color == TQt::black ) @@ -970,7 +970,7 @@ void TQPainter::setPen( const TQColor &color ) { #if defined(QT_CHECK_STATE) if ( !isActive() ) - qWarning( "TQPainter::setPen: Will be reset by begin()" ); + tqWarning( "TQPainter::setPen: Will be reset by begin()" ); #endif TQPen::TQPenData *d = cpen.data; // low level access if ( d->color == color && !d->width && d->style == SolidLine && d->linest == SolidLine ) @@ -1008,7 +1008,7 @@ void TQPainter::setBrush( const TQBrush &brush ) { #if defined(QT_CHECK_STATE) if ( !isActive() ) - qWarning( "TQPainter::setBrush: Will be reset by begin()" ); + tqWarning( "TQPainter::setBrush: Will be reset by begin()" ); #endif if ( cbrush == brush ) return; @@ -1027,7 +1027,7 @@ void TQPainter::setBrush( BrushStyle style ) { #if defined(QT_CHECK_STATE) if ( !isActive() ) - qWarning( "TQPainter::setBrush: Will be reset by begin()" ); + tqWarning( "TQPainter::setBrush: Will be reset by begin()" ); #endif TQBrush::TQBrushData *d = cbrush.data; // low level access if ( d->style == style && d->color == TQt::black && !d->pixmap ) @@ -1058,7 +1058,7 @@ void TQPainter::setBrush( const TQColor &color ) { #if defined(QT_CHECK_STATE) if ( !isActive() ) - qWarning( "TQPainter::setBrush: Will be reset by begin()" ); + tqWarning( "TQPainter::setBrush: Will be reset by begin()" ); #endif TQBrush::TQBrushData *d = cbrush.data; // low level access if ( d->color == color && d->style == SolidPattern && !d->pixmap ) @@ -1136,7 +1136,7 @@ void TQPainter::setTabStops( int ts ) { #if defined(QT_CHECK_STATE) if ( !isActive() ) - qWarning( "TQPainter::setTabStops: Will be reset by begin()" ); + tqWarning( "TQPainter::setTabStops: Will be reset by begin()" ); #endif tabstops = ts; if ( isActive() && testf(ExtDev) ) { // tell extended device @@ -1167,7 +1167,7 @@ void TQPainter::setTabArray( int *ta ) { #if defined(QT_CHECK_STATE) if ( !isActive() ) - qWarning( "TQPainter::setTabArray: Will be reset by begin()" ); + tqWarning( "TQPainter::setTabArray: Will be reset by begin()" ); #endif if ( ta != tabarray ) { tabarraylen = 0; @@ -1218,7 +1218,7 @@ void TQPainter::setViewXForm( bool enable ) { #if defined(QT_CHECK_STATE) if ( !isActive() ) - qWarning( "TQPainter::setViewXForm: Will be reset by begin()" ); + tqWarning( "TQPainter::setViewXForm: Will be reset by begin()" ); #endif if ( !isActive() || enable == testf(VxF) ) return; @@ -1272,7 +1272,7 @@ void TQPainter::setWindow( int x, int y, int w, int h ) { #if defined(QT_CHECK_STATE) if ( !isActive() ) - qWarning( "TQPainter::setWindow: Will be reset by begin()" ); + tqWarning( "TQPainter::setWindow: Will be reset by begin()" ); #endif wx = x; wy = y; @@ -1322,7 +1322,7 @@ void TQPainter::setViewport( int x, int y, int w, int h ) { #if defined(QT_CHECK_STATE) if ( !isActive() ) - qWarning( "TQPainter::setViewport: Will be reset by begin()" ); + tqWarning( "TQPainter::setViewport: Will be reset by begin()" ); #endif vx = x; vy = y; @@ -1354,7 +1354,7 @@ void TQPainter::setWorldXForm( bool enable ) { #if defined(QT_CHECK_STATE) if ( !isActive() ) - qWarning( "TQPainter::setWorldXForm: Will be reset by begin()" ); + tqWarning( "TQPainter::setWorldXForm: Will be reset by begin()" ); #endif if ( !isActive() || enable == testf(WxF) ) return; @@ -1440,7 +1440,7 @@ void TQPainter::setWorldMatrix( const TQWMatrix &m, bool combine ) { if ( !isActive() ) { #if defined(QT_CHECK_STATE) - qWarning( "TQPainter::setWorldMatrix: Will be reset by begin()" ); + tqWarning( "TQPainter::setWorldMatrix: Will be reset by begin()" ); #endif return; } @@ -1493,7 +1493,7 @@ void TQPainter::restoreWorldMatrix() TQWMatrixStack *stack = (TQWMatrixStack *)wm_stack; if ( stack == 0 || stack->isEmpty() ) { #if defined(QT_CHECK_STATE) - qWarning( "TQPainter::restoreWorldMatrix: Empty stack error" ); + tqWarning( "TQPainter::restoreWorldMatrix: Empty stack error" ); #endif return; } @@ -1774,7 +1774,7 @@ void TQPainter::map( int x, int y, int w, int h, } break; default: #if defined(QT_CHECK_STATE) - qWarning( "TQPainter::map: Internal error" ); + tqWarning( "TQPainter::map: Internal error" ); #endif break; } @@ -1797,7 +1797,7 @@ void TQPainter::map( int x, int y, int w, int h, break; default: #if defined(QT_CHECK_STATE) - qWarning( "TQPainter::map: Internal error" ); + tqWarning( "TQPainter::map: Internal error" ); #endif break; } @@ -1819,7 +1819,7 @@ void TQPainter::mapInv( int x, int y, int *rx, int *ry ) const #ifndef QT_NO_TRANSFORMATIONS #if defined(QT_CHECK_STATE) if ( !txinv ) - qWarning( "TQPainter::mapInv: Internal error" ); + tqWarning( "TQPainter::mapInv: Internal error" ); #endif if ( qt_old_transformations ) { double tx = im11()*x + im21()*y+idx(); @@ -1848,7 +1848,7 @@ void TQPainter::mapInv( int x, int y, int w, int h, #ifndef QT_NO_TRANSFORMATIONS #if defined(QT_CHECK_STATE) if ( !txinv || txop == TxRotShear ) - qWarning( "TQPainter::mapInv: Internal error" ); + tqWarning( "TQPainter::mapInv: Internal error" ); #endif if ( qt_old_transformations ) { double tx = im11()*x + idx(); @@ -2939,20 +2939,20 @@ void qt_format_text( const TQFont& font, const TQRect &_r, int desc = fm.descent(); height = -leading; - //qDebug("\n\nbeginLayout: lw = %d, rectwidth=%d", lineWidth , r.width()); + //tqDebug("\n\nbeginLayout: lw = %d, rectwidth=%d", lineWidth , r.width()); while ( !textLayout.atEnd() ) { height += leading; textLayout.beginLine( lineWidth == INT_MAX ? lineWidth : lineWidth ); - //qDebug("-----beginLine( %d )-----", lineWidth ); + //tqDebug("-----beginLine( %d )-----", lineWidth ); bool linesep = FALSE; while ( 1 ) { TQTextItem ti = textLayout.currentItem(); - //qDebug("item: from=%d, ch=%x", ti.from(), text.unicode()[ti.from()].unicode() ); + //tqDebug("item: from=%d, ch=%x", ti.from(), text.unicode()[ti.from()].unicode() ); if ( expandtabs && ti.isTab() ) { int tw = 0; int x = textLayout.widthUsed(); if ( tabarraylen ) { -// qDebug("tabarraylen=%d", tabarraylen ); +// tqDebug("tabarraylen=%d", tabarraylen ); int tab = 0; while ( tab < tabarraylen ) { if ( tabarray[tab] > x ) { @@ -2964,7 +2964,7 @@ void qt_format_text( const TQFont& font, const TQRect &_r, } else { tw = tabstops - (x % tabstops); } - //qDebug("tw = %d", tw ); + //tqDebug("tw = %d", tw ); if ( tw ) ti.setWidth( tw ); } @@ -2979,7 +2979,7 @@ void qt_format_text( const TQFont& font, const TQRect &_r, textLayout.setLineWidth( r.width()-rb-lb ); textLayout.endLine( 0, height, tf, &ascent, &descent, &lineLeft, &lineRight ); - //qDebug("finalizing line: lw=%d ascent = %d, descent=%d lineleft=%d lineright=%d", lineWidth, ascent, descent,lineLeft, lineRight ); + //tqDebug("finalizing line: lw=%d ascent = %d, descent=%d lineleft=%d lineright=%d", lineWidth, ascent, descent,lineLeft, lineRight ); left = TQMIN( left, lineLeft ); right = TQMAX( right, lineRight ); height += ascent + descent + 1; @@ -2996,7 +2996,7 @@ void qt_format_text( const TQFont& font, const TQRect &_r, if ( brect ) { *brect = TQRect( r.x() + left, r.y() + yoff, right-left + lb+rb, height ); - //qDebug("br = %d %d %d/%d, left=%d, right=%d", brect->x(), brect->y(), brect->width(), brect->height(), left, right); + //tqDebug("br = %d %d %d/%d, left=%d, right=%d", brect->x(), brect->y(), brect->width(), brect->height(), left, right); } if (!(tf & TQPainter::DontPrint)) { @@ -3032,10 +3032,10 @@ void qt_format_text( const TQFont& font, const TQRect &_r, if (fnt.overline()) _tf |= TQt::Overline; if (fnt.strikeOut()) _tf |= TQt::StrikeOut; - //qDebug("have %d items",textLayout.numItems()); + //tqDebug("have %d items",textLayout.numItems()); for ( int i = 0; i < textLayout.numItems(); i++ ) { TQTextItem ti = textLayout.itemAt( i ); - //qDebug("Item %d: from=%d, length=%d, space=%d x=%d", i, ti.from(), ti.length(), ti.isSpace(), ti.x() ); + //tqDebug("Item %d: from=%d, length=%d, space=%d x=%d", i, ti.from(), ti.length(), ti.isSpace(), ti.x() ); if ( ti.isTab() || ti.isObject() ) continue; int textFlags = _tf; @@ -3803,7 +3803,7 @@ void TQBrush::setStyle( BrushStyle s ) // set brush style return; #if defined(QT_CHECK_RANGE) if ( s == CustomPattern ) - qWarning( "TQBrush::setStyle: CustomPattern is for internal use" ); + tqWarning( "TQBrush::setStyle: CustomPattern is for internal use" ); #endif detach(); data->style = s; @@ -3930,7 +3930,7 @@ TQDataStream &operator<<( TQDataStream &s, const TQBrush &b ) #ifndef QT_NO_IMAGEIO s << *b.pixmap(); #else - qWarning("No Image Brush I/O"); + tqWarning("No Image Brush I/O"); #endif return s; } @@ -3956,7 +3956,7 @@ TQDataStream &operator>>( TQDataStream &s, TQBrush &b ) s >> pm; b = TQBrush( color, pm ); #else - qWarning("No Image Brush I/O"); + tqWarning("No Image Brush I/O"); #endif } else diff --git a/src/kernel/qpainter_x11.cpp b/src/kernel/qpainter_x11.cpp index badbe9e23..a35b5b3b8 100644 --- a/src/kernel/qpainter_x11.cpp +++ b/src/kernel/qpainter_x11.cpp @@ -347,7 +347,7 @@ static GC alloc_gc( Display *dpy, int scrn, Drawable hd, bool monochrome=FALSE, p++; } #if defined(QT_CHECK_NULL) - qWarning( "TQPainter: Internal error; no available GC" ); + tqWarning( "TQPainter: Internal error; no available GC" ); #endif GC gc = XCreateGC( dpy, hd, 0, 0 ); XSetGraphicsExposures( dpy, gc, False ); @@ -449,9 +449,9 @@ static void cleanup_gc_cache() if ( !gc_cache_init ) return; #if defined(GC_CACHE_STAT) - qDebug( "Number of cache hits = %d", g_numhits ); - qDebug( "Number of cache creates = %d", g_numcreates ); - qDebug( "Number of cache faults = %d", g_numfaults ); + tqDebug( "Number of cache hits = %d", g_numhits ); + tqDebug( "Number of cache creates = %d", g_numcreates ); + tqDebug( "Number of cache faults = %d", g_numfaults ); for ( int i=0; i<gc_cache_size; i++ ) { TQCString str; TQBuffer buf( str ); @@ -464,7 +464,7 @@ static void cleanup_gc_cache() << g->count << '\t'; } s << '\0'; - qDebug( str ); + tqDebug( str ); buf.close(); } #endif @@ -640,7 +640,7 @@ void TQPainter::setFont( const TQFont &font ) { #if defined(QT_CHECK_STATE) if ( !isActive() ) - qWarning( "TQPainter::setFont: Will be reset by begin()" ); + tqWarning( "TQPainter::setFont: Will be reset by begin()" ); #endif if ( cfont.d != font.d ) { cfont = font; @@ -1013,14 +1013,14 @@ bool TQPainter::begin( const TQPaintDevice *pd, bool unclipped ) { if ( isActive() ) { // already active painting #if defined(QT_CHECK_STATE) - qWarning( "TQPainter::begin: Painter is already active." + tqWarning( "TQPainter::begin: Painter is already active." "\n\tYou must end() the painter before a second begin()" ); #endif return FALSE; } if ( pd == 0 ) { #if defined(QT_CHECK_NULL) - qWarning( "TQPainter::begin: Paint device cannot be null" ); + tqWarning( "TQPainter::begin: Paint device cannot be null" ); #endif return FALSE; } @@ -1039,7 +1039,7 @@ bool TQPainter::begin( const TQPaintDevice *pd, bool unclipped ) if ( pdev->isExtDev() && pdev->paintingActive() ) { // somebody else is already painting #if defined(QT_CHECK_STATE) - qWarning( "TQPainter::begin: Another TQPainter is already painting " + tqWarning( "TQPainter::begin: Another TQPainter is already painting " "this device;\n\tAn extended paint device can only be " "painted by one TQPainter at a time." ); #endif @@ -1129,7 +1129,7 @@ bool TQPainter::begin( const TQPaintDevice *pd, bool unclipped ) TQPixmap *pm = (TQPixmap*)pdev; if ( pm->isNull() ) { #if defined(QT_CHECK_NULL) - qWarning( "TQPainter::begin: Cannot paint null pixmap" ); + tqWarning( "TQPainter::begin: Cannot paint null pixmap" ); #endif end(); return FALSE; @@ -1189,7 +1189,7 @@ bool TQPainter::end() // end painting { if ( !isActive() ) { #if defined(QT_CHECK_STATE) - qWarning( "TQPainter::end: Missing begin() or begin() failed" ); + tqWarning( "TQPainter::end: Missing begin() or begin() failed" ); #endif return FALSE; } @@ -1290,7 +1290,7 @@ void TQPainter::setBackgroundColor( const TQColor &c ) { if ( !isActive() ) { #if defined(QT_CHECK_STATE) - qWarning( "TQPainter::setBackgroundColor: Call begin() first" ); + tqWarning( "TQPainter::setBackgroundColor: Call begin() first" ); #endif return; } @@ -1325,13 +1325,13 @@ void TQPainter::setBackgroundMode( BGMode m ) { if ( !isActive() ) { #if defined(QT_CHECK_STATE) - qWarning( "TQPainter::setBackgroundMode: Call begin() first" ); + tqWarning( "TQPainter::setBackgroundMode: Call begin() first" ); #endif return; } if ( m != TransparentMode && m != OpaqueMode ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQPainter::setBackgroundMode: Invalid mode" ); + tqWarning( "TQPainter::setBackgroundMode: Invalid mode" ); #endif return; } @@ -1379,13 +1379,13 @@ void TQPainter::setRasterOp( RasterOp r ) { if ( !isActive() ) { #if defined(QT_CHECK_STATE) - qWarning( "TQPainter::setRasterOp: Call begin() first" ); + tqWarning( "TQPainter::setRasterOp: Call begin() first" ); #endif return; } if ( (uint)r > LastROP ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQPainter::setRasterOp: Invalid ROP code" ); + tqWarning( "TQPainter::setRasterOp: Invalid ROP code" ); #endif return; } @@ -1420,7 +1420,7 @@ void TQPainter::setBrushOrigin( int x, int y ) { if ( !isActive() ) { #if defined(QT_CHECK_STATE) - qWarning( "TQPainter::setBrushOrigin: Call begin() first" ); + tqWarning( "TQPainter::setBrushOrigin: Call begin() first" ); #endif return; } @@ -1449,7 +1449,7 @@ void TQPainter::setClipping( bool enable ) { if ( !isActive() ) { #if defined(QT_CHECK_STATE) - qWarning( "TQPainter::setClipping: Will be reset by begin()" ); + tqWarning( "TQPainter::setClipping: Will be reset by begin()" ); #endif return; } @@ -1514,7 +1514,7 @@ void TQPainter::setClipRegion( const TQRegion &rgn, CoordinateMode m ) { #if defined(QT_CHECK_STATE) if ( !isActive() ) - qWarning( "TQPainter::setClipRegion: Will be reset by begin()" ); + tqWarning( "TQPainter::setClipRegion: Will be reset by begin()" ); #endif if ( m == CoordDevice ) crgn = rgn; @@ -2501,7 +2501,7 @@ void TQPainter::drawCubicBezier( const TQPointArray &a, int index ) return; if ( a.size() - index < 4 ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQPainter::drawCubicBezier: Cubic Bezier needs 4 control " + tqWarning( "TQPainter::drawCubicBezier: Cubic Bezier needs 4 control " "points" ); #endif return; @@ -2681,7 +2681,7 @@ void TQPainter::drawPixmap( int x, int y, const TQPixmap &pixmap, TQBitmap *comb = new TQBitmap( sw, sh ); comb->detach(); - GC cgc = qt_xget_temp_gc( pixmap.x11Screen(), TRUE ); // get temporary mono GC + GC cgc = tqt_xget_temp_gc( pixmap.x11Screen(), TRUE ); // get temporary mono GC XSetForeground( dpy, cgc, 0 ); XFillRectangle( dpy, comb->handle(), cgc, 0, 0, sw, sh ); XSetBackground( dpy, cgc, 0 ); diff --git a/src/kernel/qpalette.cpp b/src/kernel/qpalette.cpp index 51947caa6..7f0cabe45 100644 --- a/src/kernel/qpalette.cpp +++ b/src/kernel/qpalette.cpp @@ -1100,13 +1100,13 @@ const TQBrush &TQPalette::directBrush( ColorGroup gr, TQColorGroup::ColorRole r { if ( (uint)gr > (uint)TQPalette::NColorGroups ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQPalette::directBrush: colorGroup(%i) out of range", gr ); + tqWarning( "TQPalette::directBrush: colorGroup(%i) out of range", gr ); #endif return data->active.br[TQColorGroup::Foreground]; } if ( (uint)r >= (uint)TQColorGroup::NColorRoles ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQPalette::directBrush: colorRole(%i) out of range", r ); + tqWarning( "TQPalette::directBrush: colorRole(%i) out of range", r ); #endif return data->active.br[TQColorGroup::Foreground]; } @@ -1124,7 +1124,7 @@ const TQBrush &TQPalette::directBrush( ColorGroup gr, TQColorGroup::ColorRole r break; } #if defined(QT_CHECK_RANGE) - qWarning( "TQPalette::directBrush: colorGroup(%i) internal error", gr ); + tqWarning( "TQPalette::directBrush: colorGroup(%i) internal error", gr ); #endif return data->active.br[TQColorGroup::Foreground]; // Satisfy compiler } @@ -1133,13 +1133,13 @@ void TQPalette::directSetBrush( ColorGroup gr, TQColorGroup::ColorRole r, const { if ( (uint)gr > (uint)TQPalette::NColorGroups ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQPalette::directBrush: colorGroup(%i) out of range", gr ); + tqWarning( "TQPalette::directBrush: colorGroup(%i) out of range", gr ); #endif return; } if ( (uint)r >= (uint)TQColorGroup::NColorRoles ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQPalette::directBrush: colorRole(%i) out of range", r ); + tqWarning( "TQPalette::directBrush: colorRole(%i) out of range", r ); #endif return; } @@ -1155,7 +1155,7 @@ void TQPalette::directSetBrush( ColorGroup gr, TQColorGroup::ColorRole r, const break; default: #if defined(QT_CHECK_RANGE) - qWarning( "TQPalette::directBrush: colorGroup(%i) internal error", gr ); + tqWarning( "TQPalette::directBrush: colorGroup(%i) internal error", gr ); #endif break; } diff --git a/src/kernel/qpicture.cpp b/src/kernel/qpicture.cpp index f7c60ad3b..64245179a 100644 --- a/src/kernel/qpicture.cpp +++ b/src/kernel/qpicture.cpp @@ -138,7 +138,7 @@ TQPicture::TQPicture( int formatVersion ) #if defined(QT_CHECK_RANGE) if ( formatVersion == 0 ) - qWarning( "TQPicture: invalid format version 0" ); + tqWarning( "TQPicture: invalid format version 0" ); #endif // still accept the 0 default from before TQt 3.0. @@ -260,7 +260,7 @@ bool TQPicture::load( TQIODevice *dev, const char *format ) } #endif if ( format ) { - qWarning( "TQPicture::load: No such picture format: %s", format ); + tqWarning( "TQPicture::load: No such picture format: %s", format ); return FALSE; } @@ -291,7 +291,7 @@ bool TQPicture::save( const TQString &fileName, const char *format ) { if ( paintingActive() ) { #if defined(QT_CHECK_STATE) - qWarning( "TQPicture::save: still being painted on. " + tqWarning( "TQPicture::save: still being painted on. " "Call TQPainter::end() first" ); #endif return FALSE; @@ -300,7 +300,7 @@ bool TQPicture::save( const TQString &fileName, const char *format ) #ifndef QT_NO_SVG // identical to TQIODevice* code below but the file name // makes a difference when it comes to saving pixmaps - if ( qstricmp( format, "svg" ) == 0 ) { + if ( tqstricmp( format, "svg" ) == 0 ) { TQSvgDevice svg; TQPainter p( &svg ); if ( !play( &p ) ) @@ -326,14 +326,14 @@ bool TQPicture::save( TQIODevice *dev, const char *format ) { if ( paintingActive() ) { #if defined(QT_CHECK_STATE) - qWarning( "TQPicture::save: still being painted on. " + tqWarning( "TQPicture::save: still being painted on. " "Call TQPainter::end() first" ); #endif return FALSE; } #ifndef QT_NO_SVG - if ( qstricmp( format, "svg" ) == 0 ) { + if ( tqstricmp( format, "svg" ) == 0 ) { TQSvgDevice svg; TQPainter p( &svg ); if ( !play( &p ) ) @@ -343,7 +343,7 @@ bool TQPicture::save( TQIODevice *dev, const char *format ) } #endif if ( format ) { - qWarning( "TQPicture::save: No such picture format: %s", format ); + tqWarning( "TQPicture::save: No such picture format: %s", format ); return FALSE; } @@ -409,7 +409,7 @@ bool TQPicture::play( TQPainter *painter ) s >> nrecords; if ( !exec( painter, s, nrecords ) ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQPicture::play: Format error" ); + tqWarning( "TQPicture::play: Format error" ); #endif d->pictb.close(); return FALSE; @@ -669,13 +669,13 @@ bool TQPicture::exec( TQPainter *painter, TQDataStream &s, int nrecords ) break; default: #if defined(QT_CHECK_RANGE) - qWarning( "TQPicture::play: Invalid command %d", c ); + tqWarning( "TQPicture::play: Invalid command %d", c ); #endif if ( len ) // skip unknown command s.device()->at( s.device()->at()+len ); } #if defined(QT_DEBUG) - //qDebug( "device->at(): %i, strm_pos: %i len: %i", s.device()->at(), strm_pos, len ); + //tqDebug( "device->at(): %i, strm_pos: %i len: %i", s.device()->at(), strm_pos, len ); Q_ASSERT( Q_INT32(s.device()->at() - strm_pos) == len ); #endif } @@ -736,7 +736,7 @@ bool TQPicture::TQPicturePrivate::cmd( int c, TQPainter *pt, TQPDevCmdParam *p ) } s << (Q_UINT32)trecs; // write number of records pictb.at( cs_start ); - Q_UINT16 cs = (Q_UINT16)qChecksum( buf.data()+data_start, pos-data_start ); + Q_UINT16 cs = (Q_UINT16)tqChecksum( buf.data()+data_start, pos-data_start ); s << cs; // write checksum pictb.close(); return TRUE; @@ -899,7 +899,7 @@ bool TQPicture::TQPicturePrivate::cmd( int c, TQPainter *pt, TQPDevCmdParam *p ) break; #if defined(QT_CHECK_RANGE) default: - qWarning( "TQPicture::cmd: Command %d not recognized", c ); + tqWarning( "TQPicture::cmd: Command %d not recognized", c ); #endif } int newpos = (int)pictb.at(); // new position @@ -985,7 +985,7 @@ int TQPicture::metric( int m ) const default: val = 0; #if defined(QT_CHECK_RANGE) - qWarning( "TQPicture::metric: Invalid metric command" ); + tqWarning( "TQPicture::metric: Invalid metric command" ); #endif } return val; @@ -1120,7 +1120,7 @@ bool TQPicture::TQPicturePrivate::checkFormat() s.readRawBytes( mf_id, 4 ); // read actual tag if ( memcmp(mf_id, mfhdr_tag, 4) != 0 ) { // wrong header id #if defined(QT_CHECK_RANGE) - qWarning( "TQPicture::checkFormat: Incorrect header" ); + tqWarning( "TQPicture::checkFormat: Incorrect header" ); #endif pictb.close(); return FALSE; @@ -1131,10 +1131,10 @@ bool TQPicture::TQPicturePrivate::checkFormat() Q_UINT16 cs,ccs; TQByteArray buf = pictb.buffer(); // pointer to data s >> cs; // read checksum - ccs = qChecksum( buf.data() + data_start, buf.size() - data_start ); + ccs = tqChecksum( buf.data() + data_start, buf.size() - data_start ); if ( ccs != cs ) { #if defined(QT_CHECK_STATE) - qWarning( "TQPicture::checkFormat: Invalid checksum %x, %x expected", + tqWarning( "TQPicture::checkFormat: Invalid checksum %x, %x expected", ccs, cs ); #endif pictb.close(); @@ -1145,7 +1145,7 @@ bool TQPicture::TQPicturePrivate::checkFormat() s >> major >> minor; // read version number if ( major > mfhdr_maj ) { // new, incompatible version #if defined(QT_CHECK_RANGE) - qWarning( "TQPicture::checkFormat: Incompatible version %d.%d", + tqWarning( "TQPicture::checkFormat: Incompatible version %d.%d", major, minor); #endif pictb.close(); @@ -1163,7 +1163,7 @@ bool TQPicture::TQPicturePrivate::checkFormat() } } else { #if defined(QT_CHECK_RANGE) - qWarning( "TQPicture::checkFormat: Format error" ); + tqWarning( "TQPicture::checkFormat: Format error" ); #endif pictb.close(); return FALSE; diff --git a/src/kernel/qpixmap.cpp b/src/kernel/qpixmap.cpp index c03ac42f6..95fbed5ab 100644 --- a/src/kernel/qpixmap.cpp +++ b/src/kernel/qpixmap.cpp @@ -405,7 +405,7 @@ TQPixmap TQPixmap::fromMimeSource( const TQString &abs_name ) return TQPixmap( abs_name ); #if defined(QT_CHECK_STATE) if ( !abs_name.isEmpty() ) - qWarning( "TQPixmap::fromMimeSource: Cannot find pixmap \"%s\" in the mime source factory", + tqWarning( "TQPixmap::fromMimeSource: Cannot find pixmap \"%s\" in the mime source factory", abs_name.latin1() ); #endif return TQPixmap(); @@ -459,7 +459,7 @@ TQPixmap &TQPixmap::operator=( const TQPixmap &pixmap ) { if ( paintingActive() ) { #if defined(QT_CHECK_STATE) - qWarning("TQPixmap::operator=: Cannot assign to pixmap during painting"); + tqWarning("TQPixmap::operator=: Cannot assign to pixmap during painting"); #endif return *this; } @@ -673,7 +673,7 @@ void TQPixmap::resize( int w, int h ) } else #elif defined(Q_WS_X11) && !defined(QT_NO_XFTFREETYPE) if (data->alphapm) - qWarning("TQPixmap::resize: TODO: resize alpha data"); + tqWarning("TQPixmap::resize: TODO: resize alpha data"); else #endif // Q_WS_X11 if ( data->mask ) { // resize mask as well @@ -746,7 +746,7 @@ void TQPixmap::setMask( const TQBitmap &newmask ) if ( newmask.width() != width() || newmask.height() != height() ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQPixmap::setMask: The pixmap and the mask must have " + tqWarning( "TQPixmap::setMask: The pixmap and the mask must have " "the same size" ); #endif return; @@ -1054,7 +1054,7 @@ bool TQPixmap::doImageIO( TQImageIO* io, int quality ) const io->setImage( convertToImage() ); #if defined(QT_CHECK_RANGE) if ( quality > 100 || quality < -1 ) - qWarning( "TQPixmap::save: quality out of range [-1,100]" ); + tqWarning( "TQPixmap::save: quality out of range [-1,100]" ); #endif if ( quality >= 0 ) io->setQuality( TQMIN(quality,100) ); diff --git a/src/kernel/qpixmap_x11.cpp b/src/kernel/qpixmap_x11.cpp index cc8da0d3c..328f78175 100644 --- a/src/kernel/qpixmap_x11.cpp +++ b/src/kernel/qpixmap_x11.cpp @@ -141,7 +141,7 @@ static bool qt_create_mitshm_buffer( const TQPaintDevice* dev, int w, int h ) } else { if ( !XShmQueryVersion(dpy, &major, &minor, &pixmaps_ok) ) return FALSE; // MIT Shm not supported - qAddPostRoutine( qt_cleanup_mitshm ); + tqAddPostRoutine( qt_cleanup_mitshm ); xshminit = TRUE; } @@ -350,14 +350,14 @@ static void build_scale_table( uint **table, uint nBits ) { if ( nBits > 7 ) { #if defined(QT_CHECK_RANGE) - qWarning( "build_scale_table: internal error, nBits = %i", nBits ); + tqWarning( "build_scale_table: internal error, nBits = %i", nBits ); #endif return; } if (!*table) { static bool firstTable = TRUE; if ( firstTable ) { - qAddPostRoutine( cleanup_scale_tables ); + tqAddPostRoutine( cleanup_scale_tables ); firstTable = FALSE; } *table = new uint[256]; @@ -371,8 +371,8 @@ static void build_scale_table( uint **table, uint nBits ) static int defaultScreen = -1; -extern bool qt_use_xrender; // defined in qapplication_x11.cpp -extern bool qt_has_xft; // defined in qfont_x11.cpp +extern bool tqt_use_xrender; // defined in qapplication_x11.cpp +extern bool tqt_has_xft; // defined in qfont_x11.cpp #ifndef QT_NO_XFTFREETYPE #ifndef QT_XFT2 @@ -394,7 +394,7 @@ void TQPixmap::init( int w, int h, int d, bool bitmap, Optimization optim ) { #if defined(QT_CHECK_STATE) if ( tqApp->type() == TQApplication::Tty ) { - qWarning( "TQPixmap: Cannot create a TQPixmap when no GUI " + tqWarning( "TQPixmap: Cannot create a TQPixmap when no GUI " "is being used" ); } #endif @@ -441,7 +441,7 @@ void TQPixmap::init( int w, int h, int d, bool bitmap, Optimization optim ) rendhd = 0; #if defined(QT_CHECK_RANGE) if ( !make_null ) - qWarning( "TQPixmap: Invalid pixmap parameters" ); + tqWarning( "TQPixmap: Invalid pixmap parameters" ); #endif return; } @@ -451,7 +451,7 @@ void TQPixmap::init( int w, int h, int d, bool bitmap, Optimization optim ) w, h, data->d ); #ifndef QT_NO_XFTFREETYPE - if ( qt_has_xft ) { + if ( tqt_has_xft ) { if ( data->d == 1 ) { rendhd = (HANDLE) XftDrawCreateBitmap( x11Display(), hd ); } else { @@ -521,7 +521,7 @@ TQPixmap::TQPixmap( int w, int h, const uchar *bits, bool isXbitmap) (char *)bits, w, h ); #ifndef QT_NO_XFTFREETYPE - if ( qt_has_xft ) + if ( tqt_has_xft ) rendhd = (HANDLE) XftDrawCreateBitmap (x11Display (), hd); #endif // QT_NO_XFTFREETYPE @@ -640,7 +640,7 @@ void TQPixmap::fill( const TQColor &fillColor ) if ( isNull() ) return; detach(); // detach other references - GC gc = qt_xget_temp_gc( x11Screen(), depth()==1 ); + GC gc = tqt_xget_temp_gc( x11Screen(), depth()==1 ); XSetForeground( x11Display(), gc, fillColor.pixel(x11Screen()) ); XFillRectangle( x11Display(), hd, gc, 0, 0, width(), height() ); } @@ -690,7 +690,7 @@ int TQPixmap::metric( int m ) const default: val = 0; #if defined(QT_CHECK_RANGE) - qWarning( "TQPixmap::metric: Invalid metric command" ); + tqWarning( "TQPixmap::metric: Invalid metric command" ); #endif } } @@ -889,7 +889,7 @@ TQImage TQPixmap::convertToImage() const y = h; pixel = 0; // eliminate compiler warning #if defined(QT_CHECK_RANGE) - qWarning( "TQPixmap::convertToImage: Invalid depth %d", + tqWarning( "TQPixmap::convertToImage: Invalid depth %d", bppc ); #endif } @@ -938,7 +938,7 @@ TQImage TQPixmap::convertToImage() const } else { /* Typically 2 or 4 bits display depth */ #if defined(QT_CHECK_RANGE) - qWarning( "TQPixmap::convertToImage: Display not supported (bpp=%d)", + tqWarning( "TQPixmap::convertToImage: Display not supported (bpp=%d)", xi->bits_per_pixel ); #endif image.reset(); @@ -1098,7 +1098,7 @@ bool TQPixmap::convertFromImage( const TQImage &img, int conversion_flags ) { if ( img.isNull() ) { #if defined(QT_CHECK_NULL) - qWarning( "TQPixmap::convertFromImage: Cannot convert a null image" ); + tqWarning( "TQPixmap::convertFromImage: Cannot convert a null image" ); #endif return FALSE; } @@ -1219,7 +1219,7 @@ bool TQPixmap::convertFromImage( const TQImage &img, int conversion_flags ) bits, w, h ); #ifndef QT_NO_XFTFREETYPE - if ( qt_has_xft ) + if ( tqt_has_xft ) rendhd = (HANDLE) XftDrawCreateBitmap( x11Display(), hd ); #endif // QT_NO_XFTFREETYPE @@ -1352,7 +1352,7 @@ bool TQPixmap::convertFromImage( const TQImage &img, int conversion_flags ) int wordsize; bool bigendian; - qSysInfo( &wordsize, &bigendian ); + tqSysInfo( &wordsize, &bigendian ); bool same_msb_lsb = ( xi->byte_order == MSBFirst ) == ( bigendian ); if( bppc == 8 ) // 8 bit @@ -1375,7 +1375,7 @@ bool TQPixmap::convertFromImage( const TQImage &img, int conversion_flags ) else mode = bppc == 33 ? BPP32_LSB : BPP32_MSB; } else - qFatal("Logic error 3"); + tqFatal("Logic error 3"); #define GET_PIXEL \ int pixel; \ @@ -1494,7 +1494,7 @@ bool TQPixmap::convertFromImage( const TQImage &img, int conversion_flags ) ) break; default: - qFatal("Logic error"); + tqFatal("Logic error"); } } else { switch ( mode ) { @@ -1591,7 +1591,7 @@ bool TQPixmap::convertFromImage( const TQImage &img, int conversion_flags ) ) break; default: - qFatal("Logic error 2"); + tqFatal("Logic error 2"); } } xi->data = (char *)newbits; @@ -1756,7 +1756,7 @@ bool TQPixmap::convertFromImage( const TQImage &img, int conversion_flags ) newbits = (uchar *)newerbits; } else if ( xi->bits_per_pixel != 8 ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQPixmap::convertFromImage: Display not supported " + tqWarning( "TQPixmap::convertFromImage: Display not supported " "(bpp=%d)", xi->bits_per_pixel ); #endif } @@ -1789,7 +1789,7 @@ bool TQPixmap::convertFromImage( const TQImage &img, int conversion_flags ) w, h, dd ); #ifndef QT_NO_XFTFREETYPE - if ( qt_has_xft ) { + if ( tqt_has_xft ) { if ( data->d == 1 ) { rendhd = (HANDLE) XftDrawCreateBitmap( x11Display (), hd ); } else { @@ -1803,11 +1803,11 @@ bool TQPixmap::convertFromImage( const TQImage &img, int conversion_flags ) #ifdef QT_MITSHM_CONVERSIONS if( mitshm_ximage ) - XShmPutImage( dpy, hd, qt_xget_readonly_gc( x11Screen(), FALSE ), + XShmPutImage( dpy, hd, tqt_xget_readonly_gc( x11Screen(), FALSE ), xi, 0, 0, 0, 0, w, h, False ); else #endif - XPutImage( dpy, hd, qt_xget_readonly_gc( x11Screen(), FALSE ), + XPutImage( dpy, hd, tqt_xget_readonly_gc( x11Screen(), FALSE ), xi, 0, 0, 0, 0, w, h ); data->w = w; @@ -1838,7 +1838,7 @@ bool TQPixmap::convertFromImage( const TQImage &img, int conversion_flags ) } } - if (qt_use_xrender && qt_has_xft && alphamap) { + if (tqt_use_xrender && tqt_has_xft && alphamap) { data->alphapm = new TQPixmap; // create a null pixmap // setup pixmap data @@ -2023,7 +2023,7 @@ TQPixmap TQPixmap::grabWindow( WId window, int x, int y, int w, int h ) pm.data->uninit = FALSE; pm.x11SetScreen( scr ); - GC gc = qt_xget_temp_gc( scr, FALSE ); + GC gc = tqt_xget_temp_gc( scr, FALSE ); XSetSubwindowMode( dpy, gc, IncludeInferiors ); XCopyArea( dpy, window, pm.handle(), gc, x, y, w, h, 0, 0 ); XSetSubwindowMode( dpy, gc, ClipByChildren ); @@ -2155,17 +2155,17 @@ TQPixmap TQPixmap::xForm( const TQWMatrix &matrix ) const // #define QT_DEBUG_XIMAGE #if defined(QT_DEBUG_XIMAGE) - qDebug( "----IMAGE--INFO--------------" ); - qDebug( "width............. %d", xi->width ); - qDebug( "height............ %d", xi->height ); - qDebug( "xoffset........... %d", xi->xoffset ); - qDebug( "format............ %d", xi->format ); - qDebug( "byte order........ %d", xi->byte_order ); - qDebug( "bitmap unit....... %d", xi->bitmap_unit ); - qDebug( "bitmap bit order.. %d", xi->bitmap_bit_order ); - qDebug( "depth............. %d", xi->depth ); - qDebug( "bytes per line.... %d", xi->bytes_per_line ); - qDebug( "bits per pixel.... %d", xi->bits_per_pixel ); + tqDebug( "----IMAGE--INFO--------------" ); + tqDebug( "width............. %d", xi->width ); + tqDebug( "height............ %d", xi->height ); + tqDebug( "xoffset........... %d", xi->xoffset ); + tqDebug( "format............ %d", xi->format ); + tqDebug( "byte order........ %d", xi->byte_order ); + tqDebug( "bitmap unit....... %d", xi->bitmap_unit ); + tqDebug( "bitmap bit order.. %d", xi->bitmap_bit_order ); + tqDebug( "depth............. %d", xi->depth ); + tqDebug( "bytes per line.... %d", xi->bytes_per_line ); + tqDebug( "bits per pixel.... %d", xi->bits_per_pixel ); #endif int type; @@ -2188,7 +2188,7 @@ TQPixmap TQPixmap::xForm( const TQWMatrix &matrix ) const if ( !qt_xForm_helper( mat, xi->xoffset, type, bpp, dptr, xbpl, p_inc, h, sptr, sbpl, ws, hs ) ){ #if defined(QT_CHECK_RANGE) - qWarning( "TQPixmap::xForm: display not supported (bpp=%d)",bpp); + tqWarning( "TQPixmap::xForm: display not supported (bpp=%d)",bpp); #endif TQPixmap pm; return pm; @@ -2213,7 +2213,7 @@ TQPixmap TQPixmap::xForm( const TQWMatrix &matrix ) const } return pm; } else { // color pixmap - GC gc = qt_xget_readonly_gc( x11Screen(), FALSE ); + GC gc = tqt_xget_readonly_gc( x11Screen(), FALSE ); TQPixmap pm( w, h ); pm.data->uninit = FALSE; pm.x11SetScreen( x11Screen() ); @@ -2234,7 +2234,7 @@ TQPixmap TQPixmap::xForm( const TQWMatrix &matrix ) const pm.setMask( data->mask->xForm(matrix) ); #ifndef QT_NO_XFTFREETYPE - if ( qt_use_xrender && qt_has_xft && data->alphapm ) { // xform the alpha channel + if ( tqt_use_xrender && tqt_has_xft && data->alphapm ) { // xform the alpha channel XImage *axi = 0; if ((axi = XGetImage(x11Display(), data->alphapm->handle(), 0, 0, ws, hs, AllPlanes, ZPixmap))) { @@ -2325,7 +2325,7 @@ void TQPixmap::x11SetScreen( int screen ) return; } #if 0 - qDebug("TQPixmap::x11SetScreen for %p from %d to %d. Size is %d/%d", data, x11Screen(), screen, width(), height() ); + tqDebug("TQPixmap::x11SetScreen for %p from %d to %d. Size is %d/%d", data, x11Screen(), screen, width(), height() ); #endif TQImage img = convertToImage(); @@ -2415,8 +2415,8 @@ Q_EXPORT void copyBlt( TQPixmap *dst, int dx, int dy, #ifndef QT_NO_XFTFREETYPE // copy alpha data - extern bool qt_use_xrender; // from qapplication_x11.cpp - if ( ! qt_use_xrender || ! src->data->alphapm ) + extern bool tqt_use_xrender; // from qapplication_x11.cpp + if ( ! tqt_use_xrender || ! src->data->alphapm ) return; if ( sw < 0 ) diff --git a/src/kernel/qpixmapcache.cpp b/src/kernel/qpixmapcache.cpp index d2256bb66..6f350620a 100644 --- a/src/kernel/qpixmapcache.cpp +++ b/src/kernel/qpixmapcache.cpp @@ -307,7 +307,7 @@ void TQPixmapCache::setCacheLimit( int n ) { #ifdef Q_WS_MAC9 if(n > 256) - qWarning("TQPixmapCache::setCacheLimit: Setting cache limits high is harmfull to mac9's health"); + tqWarning("TQPixmapCache::setCacheLimit: Setting cache limits high is harmfull to mac9's health"); #endif cache_limit = n; if ( pm_cache ) diff --git a/src/kernel/qpngio.cpp b/src/kernel/qpngio.cpp index 2d12ec985..b3a634ab5 100644 --- a/src/kernel/qpngio.cpp +++ b/src/kernel/qpngio.cpp @@ -309,7 +309,7 @@ extern "C" { #endif static void CALLBACK_CALL_TYPE qt_png_warning(png_structp /*png_ptr*/, png_const_charp message) { - qWarning("libpng warning: %s", message); + tqWarning("libpng warning: %s", message); } #if defined(Q_C_CALLBACKS) @@ -502,7 +502,7 @@ static void set_text(const TQImage& image, png_structp png_ptr, png_infop info_p text_ptr[i].compression = PNG_TEXT_COMPRESSION_zTXt; text_ptr[i].key = (png_charp)(*it).key.data(); text_ptr[i].text = (png_charp)t.latin1(); - //text_ptr[i].text = qstrdup(t.latin1()); + //text_ptr[i].text = tqstrdup(t.latin1()); i++; } } @@ -555,7 +555,7 @@ bool TQPNGImageWriter::writeImage(const TQImage& image, int quality_in, int off_ if (quality >= 0) { if (quality > 9) { #if defined(QT_CHECK_RANGE) - qWarning( "PNG: Quality %d out of range", quality ); + tqWarning( "PNG: Quality %d out of range", quality ); #endif quality = 9; } @@ -1268,7 +1268,7 @@ int TQPNGFormat::user_chunk(png_structp png, png_bytep data, png_uint_32 length) { #if 0 // NOT SUPPORTED: experimental PNG animation. - // qDebug("Got %ld-byte %s chunk", length, png->chunk_name); + // tqDebug("Got %ld-byte %s chunk", length, png->chunk_name); if ( 0==qstrcmp((char*)png->chunk_name, "gIFg") && length == 4 ) { @@ -1351,7 +1351,7 @@ void qInitPngIO() #ifndef QT_NO_ASYNC_IMAGE_IO globalPngFormatTypeObject = new TQPNGFormatType; #endif - qAddPostRoutine( qCleanupPngIO ); + tqAddPostRoutine( qCleanupPngIO ); } } diff --git a/src/kernel/qpoint.cpp b/src/kernel/qpoint.cpp index 35fd3bc34..e75134a28 100644 --- a/src/kernel/qpoint.cpp +++ b/src/kernel/qpoint.cpp @@ -376,7 +376,7 @@ void TQPoint::warningDivByZero() { #if defined(QT_CHECK_MATH) - qWarning( "TQPoint: Division by zero error" ); + tqWarning( "TQPoint: Division by zero error" ); #endif } diff --git a/src/kernel/qpointarray.cpp b/src/kernel/qpointarray.cpp index 6a9d3748d..5da55e2d4 100644 --- a/src/kernel/qpointarray.cpp +++ b/src/kernel/qpointarray.cpp @@ -915,7 +915,7 @@ TQPointArray TQPointArray::cubicBezier() const #ifdef USE_SIMPLE_QBEZIER_CODE if ( size() != 4 ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQPointArray::bezier: The array must have 4 control points" ); + tqWarning( "TQPointArray::bezier: The array must have 4 control points" ); #endif TQPointArray p; return p; @@ -969,7 +969,7 @@ TQPointArray TQPointArray::cubicBezier() const if ( size() != 4 ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQPointArray::bezier: The array must have 4 control points" ); + tqWarning( "TQPointArray::bezier: The array must have 4 control points" ); #endif TQPointArray pa; return pa; diff --git a/src/kernel/qprinter.cpp b/src/kernel/qprinter.cpp index 9597010f7..4b8175d96 100644 --- a/src/kernel/qprinter.cpp +++ b/src/kernel/qprinter.cpp @@ -367,7 +367,7 @@ void TQPrinter::setOutputToFile( bool enable ) { if ( state != 0 ) { #if defined(QT_CHECK_STATE) - qWarning( "TQPrinter::setOutputToFile: Cannot do this during printing" ); + tqWarning( "TQPrinter::setOutputToFile: Cannot do this during printing" ); #endif return; } @@ -400,7 +400,7 @@ void TQPrinter::setOutputFileName( const TQString &fileName ) { if ( state != 0 ) { #if defined(QT_CHECK_STATE) - qWarning("TQPrinter::setOutputFileName: Cannot do this during printing"); + tqWarning("TQPrinter::setOutputFileName: Cannot do this during printing"); #endif return; } @@ -457,7 +457,7 @@ void TQPrinter::setDocName( const TQString &name ) { if ( state != 0 ) { #if defined(QT_CHECK_STATE) - qWarning( "TQPrinter::setDocName: Cannot do this during printing" ); + tqWarning( "TQPrinter::setDocName: Cannot do this during printing" ); #endif return; } @@ -550,7 +550,7 @@ void TQPrinter::setPageSize( PageSize newPageSize ) { if ( newPageSize > NPageSize ) { #if defined(QT_CHECK_STATE) - qWarning("TQPrinter::SetPageSize: illegal page size %d", newPageSize ); + tqWarning("TQPrinter::SetPageSize: illegal page size %d", newPageSize ); #endif return; } @@ -674,7 +674,7 @@ void TQPrinter::setFromTo( int fromPage, int toPage ) { if ( state != 0 ) { #if defined(QT_CHECK_STATE) - qWarning( "TQPrinter::setFromTo: Cannot do this during printing" ); + tqWarning( "TQPrinter::setFromTo: Cannot do this during printing" ); #endif return; } diff --git a/src/kernel/qprinter_unix.cpp b/src/kernel/qprinter_unix.cpp index bbe30a850..f2bb8820f 100644 --- a/src/kernel/qprinter_unix.cpp +++ b/src/kernel/qprinter_unix.cpp @@ -226,7 +226,7 @@ void TQPrinter::setPrinterName( const TQString &name ) { if ( state != 0 ) { #if defined(QT_CHECK_STATE) - qWarning( "TQPrinter::setPrinterName: Cannot do this during printing" ); + tqWarning( "TQPrinter::setPrinterName: Cannot do this during printing" ); #endif return; } @@ -258,7 +258,7 @@ bool TQPrinter::setup( TQWidget * parent ) if ( result ) { if ( !globalPrinterDefaults ) { globalPrinterDefaults = new PrinterDefaults; - qAddPostRoutine( deleteGlobalPrinterDefaults ); + tqAddPostRoutine( deleteGlobalPrinterDefaults ); } globalPrinterDefaults->printerName = printerName(); globalPrinterDefaults->outputToFile = outputToFile(); @@ -331,7 +331,7 @@ bool TQPrinter::cmd( int c, TQPainter *paint, TQPDevCmdParam *p ) TQApplication::flushX(); int fds[2]; if ( pipe( fds ) != 0 ) { - qWarning( "TQPSPrinter: could not open pipe to print" ); + tqWarning( "TQPSPrinter: could not open pipe to print" ); state = PST_ERROR; return FALSE; } @@ -587,7 +587,7 @@ int TQPrinter::metric( int m ) const default: val = 0; #if defined(QT_CHECK_RANGE) - qWarning( "TQPixmap::metric: Invalid metric command" ); + tqWarning( "TQPixmap::metric: Invalid metric command" ); #endif } return val; diff --git a/src/kernel/qprocess.cpp b/src/kernel/qprocess.cpp index 17786eac2..1533a66a1 100644 --- a/src/kernel/qprocess.cpp +++ b/src/kernel/qprocess.cpp @@ -748,28 +748,28 @@ void TQProcess::writeToStdin( const TQString& buf ) void TQProcess::connectNotify( const char * signal ) { #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcess::connectNotify(): signal %s has been connected", signal ); + tqDebug( "TQProcess::connectNotify(): signal %s has been connected", signal ); #endif if ( !ioRedirection ) if ( qstrcmp( signal, SIGNAL(readyReadStdout()) )==0 || qstrcmp( signal, SIGNAL(readyReadStderr()) )==0 ) { #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcess::connectNotify(): set ioRedirection to TRUE" ); + tqDebug( "TQProcess::connectNotify(): set ioRedirection to TRUE" ); #endif setIoRedirection( TRUE ); return; } if ( !notifyOnExit && qstrcmp( signal, SIGNAL(processExited()) )==0 ) { #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcess::connectNotify(): set notifyOnExit to TRUE" ); + tqDebug( "TQProcess::connectNotify(): set notifyOnExit to TRUE" ); #endif setNotifyOnExit( TRUE ); return; } if ( !wroteToStdinConnected && qstrcmp( signal, SIGNAL(wroteToStdin()) )==0 ) { #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcess::connectNotify(): set wroteToStdinConnected to TRUE" ); + tqDebug( "TQProcess::connectNotify(): set wroteToStdinConnected to TRUE" ); #endif setWroteStdinConnected( TRUE ); return; @@ -785,19 +785,19 @@ void TQProcess::disconnectNotify( const char * ) receivers( SIGNAL(readyReadStderr()) ) ==0 ) { #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcess::disconnectNotify(): set ioRedirection to FALSE" ); + tqDebug( "TQProcess::disconnectNotify(): set ioRedirection to FALSE" ); #endif setIoRedirection( FALSE ); } if ( notifyOnExit && receivers( SIGNAL(processExited()) ) == 0 ) { #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcess::disconnectNotify(): set notifyOnExit to FALSE" ); + tqDebug( "TQProcess::disconnectNotify(): set notifyOnExit to FALSE" ); #endif setNotifyOnExit( FALSE ); } if ( wroteToStdinConnected && receivers( SIGNAL(wroteToStdin()) ) == 0 ) { #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcess::disconnectNotify(): set wroteToStdinConnected to FALSE" ); + tqDebug( "TQProcess::disconnectNotify(): set wroteToStdinConnected to FALSE" ); #endif setWroteStdinConnected( FALSE ); } diff --git a/src/kernel/qprocess_unix.cpp b/src/kernel/qprocess_unix.cpp index 41260d53e..ff68a8860 100644 --- a/src/kernel/qprocess_unix.cpp +++ b/src/kernel/qprocess_unix.cpp @@ -134,7 +134,7 @@ public: TQProc( pid_t p, TQProcess *proc=0 ) : pid(p), process(proc) { #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProc: Constructor for pid %d and TQProcess %p", pid, process ); + tqDebug( "TQProc: Constructor for pid %d and TQProcess %p", pid, process ); #endif socketStdin = 0; socketStdout = 0; @@ -143,7 +143,7 @@ public: ~TQProc() { #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProc: Destructor for pid %d and TQProcess %p", pid, process ); + tqDebug( "TQProc: Destructor for pid %d and TQProcess %p", pid, process ); #endif if ( process ) { if ( process->d->notifierStdin ) @@ -273,7 +273,7 @@ TQProcessManager::TQProcessManager() : sn(0) sigchldFd[1] = 0; } else { #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcessManager: install socket notifier (%d)", sigchldFd[1] ); + tqDebug( "TQProcessManager: install socket notifier (%d)", sigchldFd[1] ); #endif sn = new TQSocketNotifier( sigchldFd[1], TQSocketNotifier::Read, this ); @@ -286,7 +286,7 @@ TQProcessManager::TQProcessManager() : sn(0) struct sigaction act; #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcessManager: install a SIGCHLD handler" ); + tqDebug( "TQProcessManager: install a SIGCHLD handler" ); #endif act.sa_handler = qt_C_sigchldHnd; sigemptyset( &(act.sa_mask) ); @@ -296,17 +296,17 @@ TQProcessManager::TQProcessManager() : sn(0) act.sa_flags |= SA_RESTART; #endif if ( sigaction( SIGCHLD, &act, &oldactChld ) != 0 ) - qWarning( "Error installing SIGCHLD handler" ); + tqWarning( "Error installing SIGCHLD handler" ); #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcessManager: install a SIGPIPE handler (SIG_IGN)" ); + tqDebug( "TQProcessManager: install a SIGPIPE handler (SIG_IGN)" ); #endif act.sa_handler = QT_SIGNAL_IGNORE; sigemptyset( &(act.sa_mask) ); sigaddset( &(act.sa_mask), SIGPIPE ); act.sa_flags = 0; if ( sigaction( SIGPIPE, &act, &oldactPipe ) != 0 ) - qWarning( "Error installing SIGPIPE handler" ); + tqWarning( "Error installing SIGPIPE handler" ); } TQProcessManager::~TQProcessManager() @@ -320,23 +320,23 @@ TQProcessManager::~TQProcessManager() // restore SIGCHLD handler #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcessManager: restore old sigchild handler" ); + tqDebug( "TQProcessManager: restore old sigchild handler" ); #endif if ( sigaction( SIGCHLD, &oldactChld, 0 ) != 0 ) - qWarning( "Error restoring SIGCHLD handler" ); + tqWarning( "Error restoring SIGCHLD handler" ); #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcessManager: restore old sigpipe handler" ); + tqDebug( "TQProcessManager: restore old sigpipe handler" ); #endif if ( sigaction( SIGPIPE, &oldactPipe, 0 ) != 0 ) - qWarning( "Error restoring SIGPIPE handler" ); + tqWarning( "Error restoring SIGPIPE handler" ); } void TQProcessManager::append( TQProc *p ) { procList->append( p ); #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcessManager: append process (procList.count(): %d)", procList->count() ); + tqDebug( "TQProcessManager: append process (procList.count(): %d)", procList->count() ); #endif } @@ -344,7 +344,7 @@ void TQProcessManager::remove( TQProc *p ) { procList->remove( p ); #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcessManager: remove process (procList.count(): %d)", procList->count() ); + tqDebug( "TQProcessManager: remove process (procList.count(): %d)", procList->count() ); #endif cleanup(); } @@ -359,7 +359,7 @@ void TQProcessManager::cleanup() void TQProcessManager::removeMe() { if ( procList->count() == 0 ) { - qRemovePostRoutine(qprocess_cleanup); + tqRemovePostRoutine(qprocess_cleanup); TQProcessPrivate::procManager = 0; delete this; } @@ -381,7 +381,7 @@ void TQProcessManager::sigchldHnd( int fd ) char tmp; ::read( fd, &tmp, sizeof(tmp) ); #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcessManager::sigchldHnd()" ); + tqDebug( "TQProcessManager::sigchldHnd()" ); #endif TQProc *proc; TQProcess *process; @@ -393,7 +393,7 @@ void TQProcessManager::sigchldHnd( int fd ) if ( process != 0 ) { if ( !process->isRunning() ) { #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcessManager::sigchldHnd() (PID: %d): process exited (TQProcess available)", proc->pid ); + tqDebug( "TQProcessManager::sigchldHnd() (PID: %d): process exited (TQProcess available)", proc->pid ); #endif /* Apparently, there is not consistency among different @@ -415,14 +415,14 @@ void TQProcessManager::sigchldHnd( int fd ) // read pending data if ( proc->socketStdout && ::ioctl(proc->socketStdout, FIONREAD, (char*)&nbytes)==0 && nbytes>0 ) { #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcessManager::sigchldHnd() (PID: %d): reading %d bytes of pending data on stdout", proc->pid, nbytes ); + tqDebug( "TQProcessManager::sigchldHnd() (PID: %d): reading %d bytes of pending data on stdout", proc->pid, nbytes ); #endif process->socketRead( proc->socketStdout ); } nbytes = 0; if ( proc->socketStderr && ::ioctl(proc->socketStderr, FIONREAD, (char*)&nbytes)==0 && nbytes>0 ) { #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcessManager::sigchldHnd() (PID: %d): reading %d bytes of pending data on stderr", proc->pid, nbytes ); + tqDebug( "TQProcessManager::sigchldHnd() (PID: %d): reading %d bytes of pending data on stderr", proc->pid, nbytes ); #endif process->socketRead( proc->socketStderr ); } @@ -450,7 +450,7 @@ void TQProcessManager::sigchldHnd( int fd ) int status; if ( ::waitpid( proc->pid, &status, WNOHANG ) == proc->pid ) { #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcessManager::sigchldHnd() (PID: %d): process exited (TQProcess not available)", proc->pid ); + tqDebug( "TQProcessManager::sigchldHnd() (PID: %d): process exited (TQProcess not available)", proc->pid ); #endif removeProc = TRUE; } @@ -480,7 +480,7 @@ TQProcessManager *TQProcessPrivate::procManager = 0; TQProcessPrivate::TQProcessPrivate() { #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcessPrivate: Constructor" ); + tqDebug( "TQProcessPrivate: Constructor" ); #endif stdinBufRead = 0; @@ -497,7 +497,7 @@ TQProcessPrivate::TQProcessPrivate() TQProcessPrivate::~TQProcessPrivate() { #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcessPrivate: Destructor" ); + tqDebug( "TQProcessPrivate: Destructor" ); #endif if ( proc != 0 ) { @@ -543,7 +543,7 @@ void TQProcessPrivate::newProc( pid_t pid, TQProcess *process ) proc = new TQProc( pid, process ); if ( procManager == 0 ) { procManager = new TQProcessManager; - qAddPostRoutine(qprocess_cleanup); + tqAddPostRoutine(qprocess_cleanup); } // the TQProcessManager takes care of deleting the TQProc instances procManager->append( proc ); @@ -700,7 +700,7 @@ TQProcess::~TQProcess() bool TQProcess::start( TQStringList *env ) { #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcess::start()" ); + tqDebug( "TQProcess::start()" ); #endif reset(); @@ -760,7 +760,7 @@ bool TQProcess::start( TQStringList *env ) arglistQ[i] = (*it).local8Bit(); arglist[i] = arglistQ[i]; #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcess::start(): arg %d = %s", i, arglist[i] ); + tqDebug( "TQProcess::start(): arg %d = %s", i, arglist[i] ); #endif i++; } @@ -788,7 +788,7 @@ bool TQProcess::start( TQStringList *env ) // in case the process exits tquickly. if ( d->procManager == 0 ) { d->procManager = new TQProcessManager; - qAddPostRoutine(qprocess_cleanup); + tqAddPostRoutine(qprocess_cleanup); } // fork and exec @@ -969,7 +969,7 @@ bool TQProcess::start( TQStringList *env ) error: #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcess::start(): error starting process" ); + tqDebug( "TQProcess::start(): error starting process" ); #endif if ( d->procManager ) d->procManager->cleanup(); @@ -1050,7 +1050,7 @@ bool TQProcess::isRunning() const { if ( d->exitValuesCalculated ) { #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcess::isRunning(): FALSE (already computed)" ); + tqDebug( "TQProcess::isRunning(): FALSE (already computed)" ); #endif return FALSE; } @@ -1080,12 +1080,12 @@ bool TQProcess::isRunning() const } #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcess::isRunning() (PID: %d): FALSE", d->proc->pid ); + tqDebug( "TQProcess::isRunning() (PID: %d): FALSE", d->proc->pid ); #endif return FALSE; } #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcess::isRunning() (PID: %d): TRUE", d->proc->pid ); + tqDebug( "TQProcess::isRunning() (PID: %d): TRUE", d->proc->pid ); #endif return TRUE; } @@ -1142,7 +1142,7 @@ bool TQProcess::canReadLineStderr() const void TQProcess::writeToStdin( const TQByteArray& buf ) { #if defined(QT_QPROCESS_DEBUG) -// qDebug( "TQProcess::writeToStdin(): write to stdin (%d)", d->socketStdin ); +// tqDebug( "TQProcess::writeToStdin(): write to stdin (%d)", d->socketStdin ); #endif d->stdinBuf.enqueue( new TQByteArray(buf) ); if ( d->notifierStdin != 0 ) @@ -1169,10 +1169,10 @@ void TQProcess::closeStdin() delete d->notifierStdin; d->notifierStdin = 0; if ( ::close( d->proc->socketStdin ) != 0 ) { - qWarning( "Could not close stdin of child process" ); + tqWarning( "Could not close stdin of child process" ); } #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcess::closeStdin(): stdin (%d) closed", d->proc->socketStdin ); + tqDebug( "TQProcess::closeStdin(): stdin (%d) closed", d->proc->socketStdin ); #endif d->proc->socketStdin = 0; } @@ -1193,7 +1193,7 @@ void TQProcess::socketRead( int fd ) } #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcess::socketRead(): %d", fd ); + tqDebug( "TQProcess::socketRead(): %d", fd ); #endif if ( fd == 0 ) return; @@ -1229,7 +1229,7 @@ void TQProcess::socketRead( int fd ) if ( n == 0 || n == -1 ) { if ( fd == d->proc->socketStdout ) { #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcess::socketRead(): stdout (%d) closed", fd ); + tqDebug( "TQProcess::socketRead(): stdout (%d) closed", fd ); #endif d->notifierStdout->setEnabled( FALSE ); delete d->notifierStdout; @@ -1239,7 +1239,7 @@ void TQProcess::socketRead( int fd ) return; } else if ( fd == d->proc->socketStderr ) { #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcess::socketRead(): stderr (%d) closed", fd ); + tqDebug( "TQProcess::socketRead(): stderr (%d) closed", fd ); #endif d->notifierStderr->setEnabled( FALSE ); delete d->notifierStderr; @@ -1279,13 +1279,13 @@ void TQProcess::socketRead( int fd ) d->socketReadCalled = TRUE; if ( fd == d->proc->socketStdout ) { #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcess::socketRead(): %d bytes read from stdout (%d)", + tqDebug( "TQProcess::socketRead(): %d bytes read from stdout (%d)", buffer->size()-oldSize, fd ); #endif emit readyReadStdout(); } else if ( fd == d->proc->socketStderr ) { #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcess::socketRead(): %d bytes read from stderr (%d)", + tqDebug( "TQProcess::socketRead(): %d bytes read from stderr (%d)", buffer->size()-oldSize, fd ); #endif emit readyReadStderr(); @@ -1309,7 +1309,7 @@ void TQProcess::socketWrite( int fd ) d->stdinBuf.head()->data() + d->stdinBufRead, d->stdinBuf.head()->size() - d->stdinBufRead ); #if defined(QT_QPROCESS_DEBUG) - qDebug( "TQProcess::socketWrite(): wrote %d bytes to stdin (%d)", ret, fd ); + tqDebug( "TQProcess::socketWrite(): wrote %d bytes to stdin (%d)", ret, fd ); #endif if ( ret == -1 ) return; diff --git a/src/kernel/qpsprinter.cpp b/src/kernel/qpsprinter.cpp index 7d660b471..c2b9aad7e 100644 --- a/src/kernel/qpsprinter.cpp +++ b/src/kernel/qpsprinter.cpp @@ -100,13 +100,13 @@ #include "qfontengine_p.h" #include "qtextlayout_p.h" #include "qtextengine_p.h" -extern bool qt_has_xft; +extern bool tqt_has_xft; #endif static bool qt_gen_epsf = FALSE; static bool embedFonts = TRUE; -Q_EXPORT void qt_generate_epsf( bool b ) +Q_EXPORT void tqt_generate_epsf( bool b ) { qt_gen_epsf = b; } @@ -1668,7 +1668,7 @@ unsigned short TQPSPrinterFontPrivate::insertIntoSubset( unsigned short u ) pageSubsetCount++; } } else { - qWarning("TQPSPrinterFont::internal error"); + tqWarning("TQPSPrinterFont::internal error"); } return retval; } @@ -1677,7 +1677,7 @@ void TQPSPrinterFontPrivate::restore() { page_subset.clear(); pageSubsetCount = 0; - //qDebug("restore for font %s\n",psname.latin1()); + //tqDebug("restore for font %s\n",psname.latin1()); } static inline const char *toHex( uchar u ) @@ -1814,7 +1814,7 @@ unsigned short TQPSPrinterFontPrivate::mapUnicode( unsigned short unicode ) if ( !found ) { return insertIntoSubset( unicode ); } - //qDebug("mapping unicode %x to %x", unicode, offset+*res); + //tqDebug("mapping unicode %x to %x", unicode, offset+*res); return offset + *res; } @@ -2289,7 +2289,7 @@ TQPSPrinterFontTTF::TQPSPrinterFontTTF(const TQFontEngine *f, TQByteArray& d) else if (TQString(environment_preference) == "3") target_type = 3; else - qWarning("The value of QT_TTFTOPS must be 42 or 3"); + tqWarning("The value of QT_TTFTOPS must be 42 or 3"); } #endif offset_table = (unsigned char*) data.data(); /* first 12 bytes */ @@ -2318,12 +2318,12 @@ TQPSPrinterFontTTF::TQPSPrinterFontTTF(const TQFontEngine *f, TQByteArray& d) ury = topost( getFWord( ptr + 42 ) ); indexToLocFormat = getSHORT( ptr + 50 ); /* size of 'loca' data */ if(indexToLocFormat != 0 && indexToLocFormat != 1) { - qWarning("TrueType font is unusable because indexToLocFormat != 0"); + tqWarning("TrueType font is unusable because indexToLocFormat != 0"); defective = TRUE; return; } if( getSHORT(ptr+52) != 0 ) { - qWarning("TrueType font is unusable because glyphDataFormat != 0"); + tqWarning("TrueType font is unusable because glyphDataFormat != 0"); defective = TRUE; return; } @@ -2340,7 +2340,7 @@ TQPSPrinterFontTTF::TQPSPrinterFontTTF(const TQFontEngine *f, TQByteArray& d) BYTE* table_ptr = getTable("name"); /* pointer to table */ if ( !table_ptr ) { defective = TRUE; - qDebug("couldn't find name table" ); + tqDebug("couldn't find name table" ); return; } int numrecords = getUSHORT( table_ptr + 2 ); /* number of names */ @@ -2392,8 +2392,8 @@ TQPSPrinterFontTTF::TQPSPrinterFontTTF(const TQFontEngine *f, TQByteArray& d) Fixed post_format = getFixed( post_table ); if( post_format.whole != 2 || post_format.fraction != 0 ) { - qWarning("TrueType font does not have a format 2.0 'post' table"); - qWarning("post format is %d.%d",post_format.whole,post_format.fraction); + tqWarning("TrueType font does not have a format 2.0 'post' table"); + tqWarning("post format is %d.%d",post_format.whole,post_format.fraction); // Sivan Feb 2001: no longer defective. // defective = TRUE; } @@ -2402,11 +2402,11 @@ TQPSPrinterFontTTF::TQPSPrinterFontTTF(const TQFontEngine *f, TQByteArray& d) BYTE *maxp = getTable("maxp"); if ( !maxp ) { defective = TRUE; - qDebug("no maxp table in font"); + tqDebug("no maxp table in font"); return; } numGlyphs = getUSHORT( maxp + 4 ); -// qDebug("number of glyphs is %d", numGlyphs); +// tqDebug("number of glyphs is %d", numGlyphs); replacementList = makePSFontNameList( f, psname ); uni2glyphSetup(); } @@ -2505,8 +2505,8 @@ void TQPSPrinterFontTTF::download(TQTextStream& s,bool global) return; } - //qDebug("downloading ttf font %s", psname.latin1() ); - //qDebug("target type=%d", target_type); + //tqDebug("downloading ttf font %s", psname.latin1() ); + //tqDebug("target type=%d", target_type); global_dict = global; TQMap<unsigned short, unsigned short> *subsetDict = ⊂ if ( !global ) @@ -2716,7 +2716,7 @@ void TQPSPrinterFontTTF::download(TQTextStream& s,bool global) } else { /* type 3 */ if (!glyphset[x]) continue; - //qDebug("emitting charproc for glyph %d, name=%s", x, glyphName(x).latin1() ); + //tqDebug("emitting charproc for glyph %d, name=%s", x, glyphName(x).latin1() ); s << "/"; s << glyphName( x, glyphset ); s << "{"; @@ -2916,7 +2916,7 @@ void TQPSPrinterFontTTF::uni2glyphSetup() } } if (map==nmaps) { - qWarning("Font does not have unicode encoding\n"); + tqWarning("Font does not have unicode encoding\n"); return; // no unicode encoding! } @@ -2928,7 +2928,7 @@ void TQPSPrinterFontTTF::uni2glyphSetup() //fprintf(stderr,"Unicode cmap format %d\n",format); if (format != 4) { - //qWarning("Unicode cmap format is not 4"); + //tqWarning("Unicode cmap format is not 4"); return; } @@ -3145,7 +3145,7 @@ void TQPSPrinterFontTTF::sfnts_glyf_table(ULONG oldoffset, ** two byte boundary. */ if( length % 2 ) { - qWarning("TrueType font contains a 'glyf' table without 2 byte padding"); + tqWarning("TrueType font contains a 'glyf' table without 2 byte padding"); defective = TRUE; return; } @@ -3168,7 +3168,7 @@ void TQPSPrinterFontTTF::sfnts_glyf_table(ULONG oldoffset, /* Look for unexplainable descrepancies between sizes */ if( total != correct_total_length ) { - qWarning("TQPSPrinterFontTTF::sfnts_glyf_table: total != correct_total_length"); + tqWarning("TQPSPrinterFontTTF::sfnts_glyf_table: total != correct_total_length"); defective = TRUE; return; } @@ -3260,7 +3260,7 @@ void TQPSPrinterFontTTF::download_sfnts(TQTextStream& s) sfnts_pputUSHORT(81,s, string_len, line_len, in_string); /* rangeShift */ } else { - qWarning("Fewer than 9 tables selected"); + tqWarning("Fewer than 9 tables selected"); } /* Now, emmit the table directory. */ @@ -3297,7 +3297,7 @@ void TQPSPrinterFontTTF::download_sfnts(TQTextStream& s) string_len, line_len, in_string); } else { // other tables should not exceed 64K (not always true; Sivan) if( tables[x].length > 65535 ) { - qWarning("TrueType font has a table which is too long"); + tqWarning("TrueType font has a table which is too long"); defective = TRUE; return; } @@ -3699,7 +3699,7 @@ void TQPSPrinterFontTTF::charprocLoad(BYTE *glyph, charproc_data* cd) ct = *(glyph++); if( (x + ct) > cd->num_pts ) { - qWarning("Fatal Error in TT flags"); + tqWarning("Fatal Error in TT flags"); return; } @@ -4053,7 +4053,7 @@ TQPSPrinterFontPFA::TQPSPrinterFontPFA(const TQFontEngine *f, TQByteArray& d) TQString fontname; if (p[ pos ] != '%' || p[ pos+1 ] != '!') { // PFA marker - qWarning("invalid pfa file"); + tqWarning("invalid pfa file"); return; } @@ -4079,7 +4079,7 @@ void TQPSPrinterFontPFA::download(TQTextStream& s, bool global) return; } - //qDebug("downloading pfa font %s", psname.latin1() ); + //tqDebug("downloading pfa font %s", psname.latin1() ); char* p = data.data(); s << "% Font resource\n"; @@ -4111,7 +4111,7 @@ TQPSPrinterFontPFB::TQPSPrinterFontPFB(const TQFontEngine *f, TQByteArray& d) TQString fontname; if (p[ pos ] != 0x80) { // PFB marker - qWarning("pfb file does not start with 0x80"); + tqWarning("pfb file does not start with 0x80"); return; } pos++; @@ -4146,7 +4146,7 @@ void TQPSPrinterFontPFB::download(TQTextStream& s, bool global) return; } - //qDebug("downloading pfb font %s", psname.latin1() ); + //tqDebug("downloading pfb font %s", psname.latin1() ); unsigned char* p = (unsigned char*) data.data(); int pos; int len; @@ -4173,7 +4173,7 @@ void TQPSPrinterFontPFB::download(TQTextStream& s, bool global) len |= (p[ pos ] << 16); pos++; len |= (p[ pos ] << 24); pos++; - //qDebug("font block type %d len %d",typ,len); + //tqDebug("font block type %d len %d",typ,len); int end = pos + len; if (typ==1) { @@ -4182,7 +4182,7 @@ void TQPSPrinterFontPFB::download(TQTextStream& s, bool global) s << "\n"; hexcol = 0; } - //qWarning(TQString::fromLatin1((char*)(p+pos),1)); + //tqWarning(TQString::fromLatin1((char*)(p+pos),1)); if (p[pos] == '\r' || p[pos] == '\n') { s << "\n"; while (pos < end && (p[pos] == '\r' || p[pos] == '\n')) @@ -4233,7 +4233,7 @@ TQPSPrinterFontNotFound::TQPSPrinterFontNotFound(const TQFontEngine* f) void TQPSPrinterFontNotFound::download(TQTextStream& s, bool) { - //qDebug("downloading not found font %s", psname.latin1() ); + //tqDebug("downloading not found font %s", psname.latin1() ); emitPSFontNameList( s, psname, replacementList ); s << "% No embeddable font for "; s << psname; @@ -4350,7 +4350,7 @@ TQString TQPSPrinterFontAsian::defineFont( TQTextStream &stream, const TQString void TQPSPrinterFontAsian::download(TQTextStream& s, bool) { - //qDebug("downloading asian font %s", psname.latin1() ); + //tqDebug("downloading asian font %s", psname.latin1() ); s << "% Asian postscript font requested. Using " << psname << endl; emitPSFontNameList( s, psname, replacementList ); @@ -4871,7 +4871,7 @@ TQPSPrinterFontSimplifiedChinese::TQPSPrinterFontSimplifiedChinese(const TQFontE psname = SongGBK2K[type].psname; appendReplacements( replacementList, SimplifiedReplacements, type ); } - //qDebug("simplified chinese: fontname is %s, psname=%s", f.family().latin1(), psname.latin1() ); + //tqDebug("simplified chinese: fontname is %s, psname=%s", f.family().latin1(), psname.latin1() ); } TQString TQPSPrinterFontSimplifiedChinese::extension() const @@ -4921,14 +4921,14 @@ TQPSPrinterFont::TQPSPrinterFont(const TQFont &f, int script, TQPSPrinterPrivate #if defined( Q_WS_X11 ) bool xlfd = FALSE; - //qDebug("engine = %p name=%s, script=%d", engine, engine ? engine->name() : "(null)", script); + //tqDebug("engine = %p name=%s, script=%d", engine, engine ? engine->name() : "(null)", script); #ifndef QT_NO_XFTFREETYPE - if ( qt_has_xft && engine && engine->type() == TQFontEngine::Xft ) { + if ( tqt_has_xft && engine && engine->type() == TQFontEngine::Xft ) { XftPattern *pattern = static_cast<TQFontEngineXft *>( engine )->pattern(); char *filename = 0; XftPatternGetString (pattern, XFT_FILE, 0, &filename); - //qDebug("filename for font is '%s'", filename); + //tqDebug("filename for font is '%s'", filename); if ( filename ) { fontfilename = TQString::fromLocal8Bit( filename ); xfontname = fontfilename; @@ -4996,7 +4996,7 @@ TQPSPrinterFont::TQPSPrinterFont(const TQFont &f, int script, TQPSPrinterPrivate xfontname += "/" + toString( script ); #endif - //qDebug("looking for font %s in dict", xfontname.latin1() ); + //tqDebug("looking for font %s in dict", xfontname.latin1() ); p = priv->fonts.find(xfontname); if ( p ) return; @@ -5014,15 +5014,15 @@ TQPSPrinterFont::TQPSPrinterFont(const TQFont &f, int script, TQPSPrinterPrivate fontmapname = (*it) + "/fonts.scale"; else fontmapname = (*it) + "/fonts.dir"; - //qWarning(fontmapname); + //tqWarning(fontmapname); TQFile fontmap(fontmapname); if (fontmap.open(IO_ReadOnly)) { while (!fontmap.atEnd()) { TQString mapping; fontmap.readLine(mapping,512); // fold to lower (since X folds to lowercase) - //qWarning(xfontname); - //qWarning(mapping); + //tqWarning(xfontname); + //tqWarning(mapping); if (mapping.lower().contains(searchname.lower())) { int index = mapping.find(' ',0); TQString ffn = mapping.mid(0,index); @@ -5031,7 +5031,7 @@ TQPSPrinterFont::TQPSPrinterFont(const TQFont &f, int script, TQPSPrinterPrivate !ffn.contains( ".spd" ) && !ffn.contains( ".phont" ) ) { fontfilename = (*it) + TQString("/") + ffn; if ( TQFile::exists(fontfilename) ) { - //qDebug("found font file %s", fontfilename.latin1()); + //tqDebug("found font file %s", fontfilename.latin1()); break; } else // unset fontfilename fontfilename = TQString(); @@ -5046,7 +5046,7 @@ TQPSPrinterFont::TQPSPrinterFont(const TQFont &f, int script, TQPSPrinterPrivate } #endif - //qDebug("font=%s, fontname=%s, file=%s, p=%p", f.family().latin1(), xfontname.latin1(), fontfilename.latin1(), p); + //tqDebug("font=%s, fontname=%s, file=%s, p=%p", f.family().latin1(), xfontname.latin1(), fontfilename.latin1(), p); // memory mapping would be better here if (fontfilename.length() > 0) { // maybe there is no file name @@ -5074,7 +5074,7 @@ TQPSPrinterFont::TQPSPrinterFont(const TQFont &f, int script, TQPSPrinterPrivate } else type = NONE; - //qDebug("font is of type %d", type ); + //tqDebug("font is of type %d", type ); switch (type) { case TTF : p = new TQPSPrinterFontTTF(engine, data); @@ -5116,7 +5116,7 @@ TQPSPrinterFont::TQPSPrinterFont(const TQFont &f, int script, TQPSPrinterPrivate } } else #endif - //qDebug("didnt find font for %s", xfontname.latin1()); + //tqDebug("didnt find font for %s", xfontname.latin1()); p = new TQPSPrinterFontNotFound( engine ); break; } @@ -5128,14 +5128,14 @@ TQPSPrinterFont::TQPSPrinterFont(const TQFont &f, int script, TQPSPrinterPrivate TQDictIterator<TQPSPrinterFontPrivate> it( priv->fonts ); for( it.toFirst(); it.current(); ++it ) { if ( *(*it) == *p ) { -// qWarning("Post script driver: font already in dict"); +// tqWarning("Post script driver: font already in dict"); delete p; p = *it; return; } } - //qDebug("inserting font %s in dict psname=%s", xfontname.latin1(), p->postScriptFontName().latin1() ); + //tqDebug("inserting font %s in dict psname=%s", xfontname.latin1(), p->postScriptFontName().latin1() ); priv->fonts.insert( xfontname, p ); } @@ -5165,7 +5165,7 @@ TQPSPrinterPrivate::TQPSPrinterPrivate( TQPrinter *prt, int filedes ) int npaths; char** font_path; - font_path = XGetFontPath( qt_xdisplay(), &npaths); + font_path = XGetFontPath( tqt_xdisplay(), &npaths); bool xfsconfig_read = FALSE; for (int i=0; i<npaths; i++) { // If we're using xfs, append font paths from /etc/X11/fs/config @@ -5235,7 +5235,7 @@ void TQPSPrinterPrivate::setFont( const TQFont & fnt, int script ) } if ( f.pointSize() == 0 ) { #if defined(CHECK_RANGE) - qWarning( "TQPrinter: Cannot set a font with zero point size." ); + tqWarning( "TQPrinter: Cannot set a font with zero point size." ); #endif f.setPointSize(TQApplication::font().pointSize()); if ( f.pointSize() == 0 ) @@ -5529,7 +5529,7 @@ static TQByteArray compress( const TQImage & image, bool gray ) { #if 0 /* this should never happen: both the start and the end pointers ran off their tracks. */ - qDebug( "oops! %06x %06x %06x %06x %5d %5d %5d %d", + tqDebug( "oops! %06x %06x %06x %06x %5d %5d %5d %d", pixel[start], pixel[end], pixel[index], pixel[index+bestLength], start, end, index, bestLength ); @@ -5716,20 +5716,20 @@ static TQByteArray compress( const TQImage & image, bool gray ) { delete [] pixel; #ifdef DEBUG_COMPRESS - qDebug( "------------- image compression statistics ----------------" ); - qDebug(" compression time %d", t.elapsed() ); - qDebug( "Size dist of uncompressed blocks:" ); - qDebug( "\t%d\t%d\t%d\t%d\t%d\t%d\n", sizeUncompressed[0], sizeUncompressed[1], + tqDebug( "------------- image compression statistics ----------------" ); + tqDebug(" compression time %d", t.elapsed() ); + tqDebug( "Size dist of uncompressed blocks:" ); + tqDebug( "\t%d\t%d\t%d\t%d\t%d\t%d\n", sizeUncompressed[0], sizeUncompressed[1], sizeUncompressed[2], sizeUncompressed[3], sizeUncompressed[4], sizeUncompressed[5]); - qDebug( "\t%d\t%d\t%d\t%d\t%d\n", sizeUncompressed[6], sizeUncompressed[7], + tqDebug( "\t%d\t%d\t%d\t%d\t%d\n", sizeUncompressed[6], sizeUncompressed[7], sizeUncompressed[8], sizeUncompressed[9], sizeUncompressed[10] ); - qDebug( "Size dist of compressed blocks:" ); - qDebug( "\t%d\t%d\t%d\t%d\t%d\t%d\n", sizeCompressed[0], sizeCompressed[1], + tqDebug( "Size dist of compressed blocks:" ); + tqDebug( "\t%d\t%d\t%d\t%d\t%d\t%d\n", sizeCompressed[0], sizeCompressed[1], sizeCompressed[2], sizeCompressed[3], sizeCompressed[4], sizeCompressed[5]); - qDebug( "\t%d\t%d\t%d\t%d\t%d\n", sizeCompressed[6], sizeCompressed[7], + tqDebug( "\t%d\t%d\t%d\t%d\t%d\n", sizeCompressed[6], sizeCompressed[7], sizeCompressed[8], sizeCompressed[9], sizeCompressed[10] ); - qDebug( "===> total compression ratio %d/%d = %f", outOffset, size, (float)outOffset/(float)size ); - qDebug( "-----------------------------------------------------------" ); + tqDebug( "===> total compression ratio %d/%d = %f", outOffset, size, (float)outOffset/(float)size ); + tqDebug( "-----------------------------------------------------------" ); #endif return outarr; @@ -6061,7 +6061,7 @@ void TQPSPrinterPrivate::resetDrawingTools( TQPainter *paint ) if ( b != defaultBrush ) { if ( b == TQt::CustomPattern ) { #if defined(CHECK_RANGE) - qWarning( "TQPrinter: Pixmap brush not supported" ); + tqWarning( "TQPrinter: Pixmap brush not supported" ); #endif } else { cbrush = b; @@ -6171,7 +6171,7 @@ void TQPSPrinterPrivate::flushPage( bool last ) (last || buffer->size() > 50000000) #endif ) { -// qDebug("emiting header at page %d", pageCount ); +// tqDebug("emiting header at page %d", pageCount ); emitHeader( last ); } outStream << "%%Page: " @@ -6180,7 +6180,7 @@ void TQPSPrinterPrivate::flushPage( bool last ) << "QI\n"; if (!dirtyNewPage) { if ( pageFonts ) { - //qDebug("page fonts for page %d", pageCount); + //tqDebug("page fonts for page %d", pageCount); // we have already downloaded the header. Maybe we have page fonts here TQDictIterator<TQPSPrinterFontPrivate> it(fonts); while (it.current()) { @@ -6243,7 +6243,7 @@ static void ignoreSigPipe(bool b) return; // not ignoring sigpipe if (sigaction(SIGPIPE, users_sigpipe_handler, 0) == -1) - qWarning("TQPSPrinter: could not restore SIGPIPE handler"); + tqWarning("TQPSPrinter: could not restore SIGPIPE handler"); delete users_sigpipe_handler; users_sigpipe_handler = 0; @@ -6513,7 +6513,7 @@ bool TQPSPrinter::cmd( int c , TQPainter *paint, TQPDevCmdParam *p ) case PdcSetROP: #if defined(CHECK_RANGE) if ( p[0].ival != TQt::CopyROP ) - qWarning( "TQPrinter: Raster operation setting not supported" ); + tqWarning( "TQPrinter: Raster operation setting not supported" ); #endif break; case PdcSetBrushOrigin: @@ -6534,7 +6534,7 @@ bool TQPSPrinter::cmd( int c , TQPainter *paint, TQPDevCmdParam *p ) case PdcSetBrush: if ( p[0].brush->style() == TQt::CustomPattern ) { #if defined(CHECK_RANGE) - qWarning( "TQPrinter: Pixmap brush not supported" ); + tqWarning( "TQPrinter: Pixmap brush not supported" ); #endif return FALSE; } diff --git a/src/kernel/qregion.cpp b/src/kernel/qregion.cpp index 6537b74ce..014f0fad0 100644 --- a/src/kernel/qregion.cpp +++ b/src/kernel/qregion.cpp @@ -174,7 +174,7 @@ void TQRegion::exec( const TQByteArray &buffer, int ver ) } #if defined(QT_CHECK_STATE) if ( test_cnt > 0 && id != TQRGN_TRANSLATE ) - qWarning( "TQRegion::exec: Internal error" ); + tqWarning( "TQRegion::exec: Internal error" ); test_cnt++; #endif if ( id == TQRGN_SETRECT || id == TQRGN_SETELLIPSE ) { diff --git a/src/kernel/qregion_x11.cpp b/src/kernel/qregion_x11.cpp index 3cd7d3436..ccf406729 100644 --- a/src/kernel/qregion_x11.cpp +++ b/src/kernel/qregion_x11.cpp @@ -2433,7 +2433,7 @@ static void cleanup_empty_region() TQRegion::TQRegion() { if ( !empty_region ) { // avoid too many allocs - qAddPostRoutine( cleanup_empty_region ); + tqAddPostRoutine( cleanup_empty_region ); empty_region = new TQRegion( TRUE ); TQ_CHECK_PTR( empty_region ); } @@ -2469,7 +2469,7 @@ TQRegion::TQRegion( const TQRect &r, RegionType t ) { if ( r.isEmpty() ) { if ( !empty_region ) { // avoid too many allocs - qAddPostRoutine( cleanup_empty_region ); + tqAddPostRoutine( cleanup_empty_region ); empty_region = new TQRegion( TRUE ); TQ_CHECK_PTR( empty_region ); } @@ -2516,7 +2516,7 @@ TQRegion::TQRegion( const TQPointArray &a, bool winding ) winding ? WindingRule : EvenOddRule ); } else { if ( !empty_region ) { - qAddPostRoutine( cleanup_empty_region ); + tqAddPostRoutine( cleanup_empty_region ); empty_region = new TQRegion( TRUE ); TQ_CHECK_PTR( empty_region ); } @@ -2551,7 +2551,7 @@ TQRegion::TQRegion( const TQBitmap & bm ) { if ( bm.isNull() ) { if ( !empty_region ) { // avoid too many allocs - qAddPostRoutine( cleanup_empty_region ); + tqAddPostRoutine( cleanup_empty_region ); empty_region = new TQRegion( TRUE ); TQ_CHECK_PTR( empty_region ); } diff --git a/src/kernel/qrichtext.cpp b/src/kernel/qrichtext.cpp index 783b89188..59f130222 100644 --- a/src/kernel/qrichtext.cpp +++ b/src/kernel/qrichtext.cpp @@ -214,7 +214,7 @@ TQTextCursor *TQTextDeleteCommand::execute( TQTextCursor *c ) { TQTextParagraph *s = doc ? doc->paragAt( id ) : parag; if ( !s ) { - qWarning( "can't locate parag at %d, last parag: %d", id, doc->lastParagraph()->paragId() ); + tqWarning( "can't locate parag at %d, last parag: %d", id, doc->lastParagraph()->paragId() ); return 0; } @@ -242,7 +242,7 @@ TQTextCursor *TQTextDeleteCommand::unexecute( TQTextCursor *c ) { TQTextParagraph *s = doc ? doc->paragAt( id ) : parag; if ( !s ) { - qWarning( "can't locate parag at %d, last parag: %d", id, doc->lastParagraph()->paragId() ); + tqWarning( "can't locate parag at %d, last parag: %d", id, doc->lastParagraph()->paragId() ); return 0; } @@ -1733,10 +1733,10 @@ void TQTextDocument::setRichTextInternal( const TQString &text, TQTextCursor* cu TQString bg = attr["background"]; const TQMimeSource* m = factory_->data( bg, contxt ); if ( !m ) { - qWarning("TQRichText: no mimesource for %s", bg.latin1() ); + tqWarning("TQRichText: no mimesource for %s", bg.latin1() ); } else { if ( !TQImageDrag::decode( m, img ) ) { - qWarning("TQTextImage: cannot decode %s", bg.latin1() ); + tqWarning("TQTextImage: cannot decode %s", bg.latin1() ); } } if ( !img.isNull() ) { @@ -2370,7 +2370,7 @@ TQString TQTextDocument::richText() const TQStyleSheetItem* item_ol = styleSheet()->item("ol"); TQStyleSheetItem* item_li = styleSheet()->item("li"); if ( !item_p || !item_div || !item_ul || !item_ol || !item_li ) { - qWarning( "TQTextEdit: cannot export HTML due to insufficient stylesheet (lack of p, div, ul, ol, or li)" ); + tqWarning( "TQTextEdit: cannot export HTML due to insufficient stylesheet (lack of p, div, ul, ol, or li)" ); return TQString::null; } int pastListDepth = 0; @@ -4415,7 +4415,7 @@ int TQTextParagraph::lineHeightOfChar( int i, int *bl, int *y ) const --it; } - qWarning( "TQTextParagraph::lineHeightOfChar: couldn't find lh for %d", i ); + tqWarning( "TQTextParagraph::lineHeightOfChar: couldn't find lh for %d", i ); return 15; } @@ -4441,7 +4441,7 @@ TQTextStringChar *TQTextParagraph::lineStartOfChar( int i, int *index, int *line --l; } - qWarning( "TQTextParagraph::lineStartOfChar: couldn't find %d", i ); + tqWarning( "TQTextParagraph::lineStartOfChar: couldn't find %d", i ); return 0; } @@ -4468,7 +4468,7 @@ TQTextStringChar *TQTextParagraph::lineStartOfLine( int line, int *index ) const return &str->at( i ); } - qWarning( "TQTextParagraph::lineStartOfLine: couldn't find %d", line ); + tqWarning( "TQTextParagraph::lineStartOfLine: couldn't find %d", line ); return 0; } @@ -5407,12 +5407,12 @@ TQTextLineStart *TQTextFormatter::bidiReorderLine( TQTextParagraph * /*parag*/, visual = (int *)malloc( length*sizeof( int ) ); } - //qDebug("bidiReorderLine: length=%d (%d-%d)", length, start, last ); + //tqDebug("bidiReorderLine: length=%d (%d-%d)", length, start, last ); TQTextStringChar *ch = startChar; unsigned char *l = levels; while ( ch <= lastChar ) { - //qDebug( " level: %d", ch->bidiLevel ); + //tqDebug( " level: %d", ch->bidiLevel ); *(l++) = (ch++)->bidiLevel; } @@ -5472,7 +5472,7 @@ TQTextLineStart *TQTextFormatter::bidiReorderLine( TQTextParagraph * /*parag*/, ch->x = x + toAdd; ch->rightToLeft = ch->bidiLevel % 2; - //qDebug("visual: %d (%x) placed at %d rightToLeft=%d", visual[i], ch->c.unicode(), x +toAdd, ch->rightToLeft ); + //tqDebug("visual: %d (%x) placed at %d rightToLeft=%d", visual[i], ch->c.unicode(), x +toAdd, ch->rightToLeft ); int ww = 0; if ( ch->c.unicode() >= 32 || ch->c == '\t' || ch->c == '\n' || ch->isCustom() ) { ww = text->width( start+visual[i] ); @@ -6178,7 +6178,7 @@ TQTextFormat *TQTextFormatCollection::format( const TQFont &f, const TQColor &c cachedFormat->collection = this; cKey.insert( cachedFormat->key(), cachedFormat ); if ( cachedFormat->key() != key ) - qWarning("ASSERT: keys for format not identical: '%s '%s'", cachedFormat->key().latin1(), key.latin1() ); + tqWarning("ASSERT: keys for format not identical: '%s '%s'", cachedFormat->key().latin1(), key.latin1() ); return cachedFormat; } @@ -6597,11 +6597,11 @@ TQTextImage::TQTextImage( TQTextDocument *p, const TQMap<TQString, TQString> &at const TQMimeSource* m = factory.data( imageName, context ); if ( !m ) { - qWarning("TQTextImage: no mimesource for %s", imageName.latin1() ); + tqWarning("TQTextImage: no mimesource for %s", imageName.latin1() ); } else { if ( !TQImageDrag::decode( m, img ) ) { - qWarning("TQTextImage: cannot decode %s", imageName.latin1() ); + tqWarning("TQTextImage: cannot decode %s", imageName.latin1() ); } } @@ -7229,7 +7229,7 @@ static TQMap<TQString, TQChar> *htmlMap() { if ( !html_map ) { html_map = new TQMap<TQString, TQChar>; - qAddPostRoutine( qt_cleanup_html_map ); + tqAddPostRoutine( qt_cleanup_html_map ); const Entity *ent = entitylist; while( ent->code ) { diff --git a/src/kernel/qrichtext_p.cpp b/src/kernel/qrichtext_p.cpp index f426fcead..7e55b6038 100644 --- a/src/kernel/qrichtext_p.cpp +++ b/src/kernel/qrichtext_p.cpp @@ -151,7 +151,7 @@ void TQTextCursor::gotoPosition( TQTextParagraph* p, int index ) para = p; if ( index < 0 || index >= para->length() ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQTextCursor::gotoParagraph Index: %d out of range", index ); + tqWarning( "TQTextCursor::gotoParagraph Index: %d out of range", index ); #endif if ( index < 0 || para->length() == 0 ) index = 0; @@ -506,7 +506,7 @@ bool TQTextParagraph::fullSelected( int id ) const int TQTextParagraph::lineY( int l ) const { if ( l > (int)lineStarts.count() - 1 ) { - qWarning( "TQTextParagraph::lineY: line %d out of range!", l ); + tqWarning( "TQTextParagraph::lineY: line %d out of range!", l ); return 0; } @@ -522,7 +522,7 @@ int TQTextParagraph::lineY( int l ) const int TQTextParagraph::lineBaseLine( int l ) const { if ( l > (int)lineStarts.count() - 1 ) { - qWarning( "TQTextParagraph::lineBaseLine: line %d out of range!", l ); + tqWarning( "TQTextParagraph::lineBaseLine: line %d out of range!", l ); return 10; } @@ -538,7 +538,7 @@ int TQTextParagraph::lineBaseLine( int l ) const int TQTextParagraph::lineHeight( int l ) const { if ( l > (int)lineStarts.count() - 1 ) { - qWarning( "TQTextParagraph::lineHeight: line %d out of range!", l ); + tqWarning( "TQTextParagraph::lineHeight: line %d out of range!", l ); return 15; } @@ -554,8 +554,8 @@ int TQTextParagraph::lineHeight( int l ) const void TQTextParagraph::lineInfo( int l, int &y, int &h, int &bl ) const { if ( l > (int)lineStarts.count() - 1 ) { - qWarning( "TQTextParagraph::lineInfo: line %d out of range!", l ); - qDebug( "%d %d", (int)lineStarts.count() - 1, l ); + tqWarning( "TQTextParagraph::lineInfo: line %d out of range!", l ); + tqDebug( "%d %d", (int)lineStarts.count() - 1, l ); y = 0; h = 15; bl = 10; diff --git a/src/kernel/qrichtext_p.h b/src/kernel/qrichtext_p.h index 8bac2e018..48c7b0a47 100644 --- a/src/kernel/qrichtext_p.h +++ b/src/kernel/qrichtext_p.h @@ -1981,7 +1981,7 @@ inline void TQTextParagraph::setParagId( int i ) inline int TQTextParagraph::paragId() const { if ( id == -1 ) - qWarning( "invalid parag id!!!!!!!! (%p)", (void*)this ); + tqWarning( "invalid parag id!!!!!!!! (%p)", (void*)this ); return id; } diff --git a/src/kernel/qscriptengine.cpp b/src/kernel/qscriptengine.cpp index ab6bd2f36..14adbcf0c 100644 --- a/src/kernel/qscriptengine.cpp +++ b/src/kernel/qscriptengine.cpp @@ -120,7 +120,7 @@ static inline void positionCluster(TQShaperItem *item, int gfrom, int glast) { int nmarks = glast - gfrom; if (nmarks <= 0) { - qWarning("positionCluster: no marks to position!"); + tqWarning("positionCluster: no marks to position!"); return; } @@ -134,12 +134,12 @@ static inline void positionCluster(TQShaperItem *item, int gfrom, int glast) TQRect baseRect(baseInfo.x, baseInfo.y, baseInfo.width, baseInfo.height); -// qDebug("---> positionCluster: cluster from %d to %d", gfrom, glast); -// qDebug("baseInfo: %f/%f (%f/%f) off=%f/%f", baseInfo.x, baseInfo.y, baseInfo.width, baseInfo.height, baseInfo.xoff, baseInfo.yoff); +// tqDebug("---> positionCluster: cluster from %d to %d", gfrom, glast); +// tqDebug("baseInfo: %f/%f (%f/%f) off=%f/%f", baseInfo.x, baseInfo.y, baseInfo.width, baseInfo.height, baseInfo.xoff, baseInfo.yoff); int size = (f->ascent()/10); int offsetBase = (size - 4) / 4 + TQMIN(size, 4) + 1; -// qDebug("offset = %f", offsetBase); +// tqDebug("offset = %f", offsetBase); bool rightToLeft = item->flags & TQTextEngine::RightToLeft; @@ -152,7 +152,7 @@ static inline void positionCluster(TQShaperItem *item, int gfrom, int glast) TQPoint p; glyph_metrics_t markInfo = f->boundingBox(mark); TQRect markRect(markInfo.x, markInfo.y, markInfo.width, markInfo.height); -// qDebug("markInfo: %f/%f (%f/%f) off=%f/%f", markInfo.x, markInfo.y, markInfo.width, markInfo.height, markInfo.xoff, markInfo.yoff); +// tqDebug("markInfo: %f/%f (%f/%f) off=%f/%f", markInfo.x, markInfo.y, markInfo.width, markInfo.height, markInfo.xoff, markInfo.yoff); int offset = offsetBase; unsigned char cmb = item->attributes[gfrom+i].combiningClass; @@ -192,7 +192,7 @@ static inline void positionCluster(TQShaperItem *item, int gfrom, int glast) // combining marks of different class don't interact. Reset the rectangle. if (cmb != lastCmb) { - //qDebug("resetting rect"); + //tqDebug("resetting rect"); attachmentRect = baseRect; } @@ -246,7 +246,7 @@ static inline void positionCluster(TQShaperItem *item, int gfrom, int glast) default: break; } -// qDebug("char=%x combiningClass = %d offset=%d/%d", mark, cmb, p.x(), p.y()); +// tqDebug("char=%x combiningClass = %d offset=%d/%d", mark, cmb, p.x(), p.y()); markRect.moveBy(p.x(), p.y()); attachmentRect |= markRect; lastCmb = cmb; @@ -287,7 +287,7 @@ static void heuristicSetGlyphAttributes(TQShaperItem *item, const TQChar *uc, in // justification is missing here!!!!! if ( item->num_glyphs != length ) - qWarning("TQScriptEngine::heuristicSetGlyphAttributes: char length and num glyphs disagree" ); + tqWarning("TQScriptEngine::heuristicSetGlyphAttributes: char length and num glyphs disagree" ); unsigned short *logClusters = item->log_clusters; @@ -899,7 +899,7 @@ struct TQArabicProperties { static void getArabicProperties(const unsigned short *chars, int len, TQArabicProperties *properties) { -// qDebug("arabicSyriacOpenTypeShape: properties:"); +// tqDebug("arabicSyriacOpenTypeShape: properties:"); int lastPos = 0; int lastGroup = ArabicNone; @@ -1005,7 +1005,7 @@ static void getArabicProperties(const unsigned short *chars, int len, TQArabicPr // for (int i = 0; i < len; ++i) -// qDebug("arabic properties(%d): uc=%x shape=%d, justification=%d", i, chars[i], properties[i].shape, properties[i].justification); +// tqDebug("arabic properties(%d): uc=%x shape=%d, justification=%d", i, chars[i], properties[i].shape, properties[i].justification); } @@ -1326,7 +1326,7 @@ static inline int getShape(uchar cell, int shape) */ static inline const TQChar prevChar(const TQString *str, int pos) { - //qDebug("leftChar: pos=%d", pos); + //tqDebug("leftChar: pos=%d", pos); pos--; const TQChar *ch = str->unicode() + pos; while(pos > -1) { @@ -1344,7 +1344,7 @@ static inline const TQChar nextChar(const TQString *str, int pos) int len = str->length(); const TQChar *ch = str->unicode() + pos; while(pos < len) { - //qDebug("rightChar: %d isLetter=%d, joining=%d", pos, ch.isLetter(), ch.joining()); + //tqDebug("rightChar: %d isLetter=%d, joining=%d", pos, ch.isLetter(), ch.joining()); if(::category(*ch) != TQChar::Mark_NonSpacing) return *ch; // assume it's a transparent char, this might not be 100% correct @@ -1402,7 +1402,7 @@ static void shapedString(const TQString *uc, int from, int len, TQChar *shapeBuf uchar c = ch->cell(); int pos = i + from; int shape = properties[i].shape; -// qDebug("mapping U+%x to shape %d glyph=0x%x", ch->unicode(), shape, getShape(c, shape)); +// tqDebug("mapping U+%x to shape %d glyph=0x%x", ch->unicode(), shape, getShape(c, shape)); // take care of lam-alef ligatures (lam right of alef) ushort map; switch (c) { @@ -1414,7 +1414,7 @@ static void shapedString(const TQString *uc, int from, int len, TQChar *shapeBuf case 0x23: case 0x25: case 0x27: -// qDebug(" lam of lam-alef ligature"); +// tqDebug(" lam of lam-alef ligature"); map = arabicUnicodeLamAlefMapping[pch.cell() - 0x22][shape]; goto next; default: @@ -1429,7 +1429,7 @@ static void shapedString(const TQString *uc, int from, int len, TQChar *shapeBuf case 0x27: // alef if (prevChar(uc, pos).unicode() == 0x0644) { // have a lam alef ligature - //qDebug(" alef of lam-alef ligature"); + //tqDebug(" alef of lam-alef ligature"); goto skip; } default: @@ -1443,7 +1443,7 @@ static void shapedString(const TQString *uc, int from, int len, TQChar *shapeBuf //attributes[gpos].zeroWidth = zeroWidth; if (::category(*ch) == TQChar::Mark_NonSpacing) { attributes[gpos].mark = TRUE; -// qDebug("glyph %d (char %d) is mark!", gpos, i); +// tqDebug("glyph %d (char %d) is mark!", gpos, i); } else { attributes[gpos].mark = FALSE; clusterStart = data - shapeBuffer; @@ -1451,7 +1451,7 @@ static void shapedString(const TQString *uc, int from, int len, TQChar *shapeBuf attributes[gpos].clusterStart = !attributes[gpos].mark; attributes[gpos].combiningClass = combiningClass(*ch); attributes[gpos].justification = properties[i].justification; -// qDebug("data[%d] = %x (from %x)", gpos, (uint)data->unicode(), ch->unicode()); +// tqDebug("data[%d] = %x (from %x)", gpos, (uint)data->unicode(), ch->unicode()); data++; skip: ch++; diff --git a/src/kernel/qscriptengine_x11.cpp b/src/kernel/qscriptengine_x11.cpp index 06523b700..fb18aa3e9 100644 --- a/src/kernel/qscriptengine_x11.cpp +++ b/src/kernel/qscriptengine_x11.cpp @@ -1124,7 +1124,7 @@ static const unsigned short split_matras[] = { static inline void splitMatra(unsigned short *reordered, int matra, int &len, int &base) { unsigned short matra_uc = reordered[matra]; - //qDebug("matra=%d, reordered[matra]=%x", matra, reordered[matra]); + //tqDebug("matra=%d, reordered[matra]=%x", matra, reordered[matra]); const unsigned short *split = split_matras; while (split[0] < matra_uc) @@ -1189,9 +1189,9 @@ static const TQOpenType::Features indic_features[] = { // #define INDIC_DEBUG #ifdef INDIC_DEBUG -#define IDEBUG qDebug +#define IDEBUG tqDebug #else -#define IDEBUG if(0) qDebug +#define IDEBUG if(0) tqDebug #endif #ifdef INDIC_DEBUG @@ -1665,7 +1665,7 @@ static bool indic_shape_syllable(TQOpenType *openType, TQShaperItem *item, bool { IDEBUG("OT properties:"); for (int i = 0; i < len; ++i) - qDebug(" i: %s", ::propertiesToString(properties[i]).toLatin1().data()); + tqDebug(" i: %s", ::propertiesToString(properties[i]).toLatin1().data()); } #endif @@ -1678,14 +1678,14 @@ static bool indic_shape_syllable(TQOpenType *openType, TQShaperItem *item, bool // move the left matra back to it's correct position in malayalam and tamil if ((script == TQFont::Malayalam || script == TQFont::Tamil) && (form(reordered[0]) == Matra)) { -// qDebug("reordering matra, len=%d", newLen); +// tqDebug("reordering matra, len=%d", newLen); // need to find the base in the shaped string and move the matra there int basePos = 0; while (basePos < newLen && (int)otl_glyphs[basePos].cluster <= base) basePos++; --basePos; if (basePos < newLen && basePos > 1) { -// qDebug("moving prebase matra to position %d in syllable newlen=%d", basePos, newLen); +// tqDebug("moving prebase matra to position %d in syllable newlen=%d", basePos, newLen); OTL_GlyphItemRec m = otl_glyphs[0]; --basePos; for (i = 0; i < basePos; ++i) @@ -2092,7 +2092,7 @@ static int tibetan_nextSyllableBoundary(const TQString &s, int start, int end, b int pos = 0; TibetanForm state = tibetan_form(*uc); -// qDebug("state[%d]=%d (uc=%4x)", pos, state, uc[pos].unicode()); +// tqDebug("state[%d]=%d (uc=%4x)", pos, state, uc[pos].unicode()); pos++; if (state != TibetanHeadConsonant) { @@ -2473,9 +2473,9 @@ static const signed char khmerStateTable[][CC_COUNT] = // #define KHMER_DEBUG #ifdef KHMER_DEBUG -#define KHDEBUG qDebug +#define KHDEBUG tqDebug #else -#define KHDEBUG if(0) qDebug +#define KHDEBUG if(0) tqDebug #endif // Given an input string of characters and a location in which to start looking @@ -2551,9 +2551,9 @@ static bool khmer_shape_syllable(TQOpenType *openType, TQShaperItem *item) memset(properties, 0, 16*sizeof(unsigned char)); #ifdef KHMER_DEBUG - qDebug("original:"); + tqDebug("original:"); for (int i = from; i < syllableEnd; i++) { - qDebug(" %d: %4x", i, string[i].unicode()); + tqDebug(" %d: %4x", i, string[i].unicode()); } #endif @@ -3001,9 +3001,9 @@ static const signed char mymrStateTable[][Mymr_CC_COUNT] = // #define MYANMAR_DEBUG #ifdef MYANMAR_DEBUG -#define MMDEBUG qDebug +#define MMDEBUG tqDebug #else -#define MMDEBUG if(0) qDebug +#define MMDEBUG if(0) tqDebug #endif // Given an input string of characters and a location in which to start looking @@ -3082,9 +3082,9 @@ static bool myanmar_shape_syllable(TQOpenType *openType, TQShaperItem *item, boo const TQChar *uc = item->string->unicode() + item->from; #ifdef MYANMAR_DEBUG - qDebug("original:"); + tqDebug("original:"); for (int i = 0; i < item->length; i++) { - qDebug(" %d: %4x", i, uc[i].unicode()); + tqDebug(" %d: %4x", i, uc[i].unicode()); } #endif int vowel_e = -1; diff --git a/src/kernel/qsize.cpp b/src/kernel/qsize.cpp index 4cd0735c3..d871aa74d 100644 --- a/src/kernel/qsize.cpp +++ b/src/kernel/qsize.cpp @@ -381,7 +381,7 @@ void TQSize::scale( const TQSize &s, ScaleMode mode ) void TQSize::warningDivByZero() { #if defined(QT_CHECK_MATH) - qWarning( "TQSize: Division by zero error" ); + tqWarning( "TQSize: Division by zero error" ); #endif } diff --git a/src/kernel/qsizegrip.cpp b/src/kernel/qsizegrip.cpp index decff43a7..ae46ca62a 100644 --- a/src/kernel/qsizegrip.cpp +++ b/src/kernel/qsizegrip.cpp @@ -123,7 +123,7 @@ TQSizeGrip::TQSizeGrip( TQWidget * parent, const char* name ) #if defined(Q_WS_X11) if ( !qt_sizegrip_workspace( this ) ) { WId id = winId(); - XChangeProperty(qt_xdisplay(), topLevelWidget()->winId(), + XChangeProperty(tqt_xdisplay(), topLevelWidget()->winId(), qt_sizegrip, XA_WINDOW, 32, PropModeReplace, (unsigned char *)&id, 1); } @@ -143,7 +143,7 @@ TQSizeGrip::~TQSizeGrip() #if defined(Q_WS_X11) if ( !TQApplication::closingDown() && parentWidget() ) { WId id = None; - XChangeProperty(qt_xdisplay(), topLevelWidget()->winId(), + XChangeProperty(tqt_xdisplay(), topLevelWidget()->winId(), qt_sizegrip, XA_WINDOW, 32, PropModeReplace, (unsigned char *)&id, 1); } diff --git a/src/kernel/qsocketnotifier.cpp b/src/kernel/qsocketnotifier.cpp index b7bceb15e..b89a512ed 100644 --- a/src/kernel/qsocketnotifier.cpp +++ b/src/kernel/qsocketnotifier.cpp @@ -146,10 +146,10 @@ TQSocketNotifier::TQSocketNotifier( int socket, Type type, TQObject *parent, { #if defined(QT_CHECK_RANGE) if ( socket < 0 ) - qWarning( "TQSocketNotifier: Invalid socket specified" ); + tqWarning( "TQSocketNotifier: Invalid socket specified" ); # if defined(Q_OS_UNIX) if ( socket >= FD_SETSIZE ) - qWarning( "TQSocketNotifier: Socket descriptor too large for select()" ); + tqWarning( "TQSocketNotifier: Socket descriptor too large for select()" ); # endif #endif sockfd = socket; diff --git a/src/kernel/qtaddons_x11.cpp b/src/kernel/qtaddons_x11.cpp index 40d7e595d..95dcef208 100644 --- a/src/kernel/qtaddons_x11.cpp +++ b/src/kernel/qtaddons_x11.cpp @@ -32,7 +32,7 @@ #include <string.h> #include <stdlib.h> -extern bool qt_use_xrender; // defined in qapplication_x11.cpp +extern bool tqt_use_xrender; // defined in qapplication_x11.cpp extern "C" { @@ -95,7 +95,7 @@ XftDraw *XftDrawCreateAlpha( Display *display, draw->render_set = True; draw->render_able = False; - if ( qt_use_xrender ) { + if ( tqt_use_xrender ) { draw->render_able = True; XRenderPictFormat *format = 0; diff --git a/src/kernel/qtextengine.cpp b/src/kernel/qtextengine.cpp index 318722c97..adeafb887 100644 --- a/src/kernel/qtextengine.cpp +++ b/src/kernel/qtextengine.cpp @@ -157,7 +157,7 @@ static void tqAppendItems(TQTextEngine *engine, int &start, int &stop, BidiContr if ( start > stop ) { // #### the algorithm is currently not really safe against this. Still needs fixing. -// qWarning( "Bidi: appendItems() internal error" ); +// tqWarning( "Bidi: appendItems() internal error" ); return; } @@ -177,7 +177,7 @@ static void tqAppendItems(TQTextEngine *engine, int &start, int &stop, BidiContr } #if (BIDI_DEBUG >= 1) - qDebug("new run: dir=%s from %d, to %d level = %d\n", directions[dir], start, stop, level); + tqDebug("new run: dir=%s from %d, to %d level = %d\n", directions[dir], start, stop, level); #endif TQFont::Script script = TQFont::NoScript; TQScriptItem item; @@ -279,8 +279,8 @@ static void bidiItemize( TQTextEngine *engine, bool rightToLeft, int mode ) status.last = status.lastStrong; status.dir = sdir; #if (BIDI_DEBUG >= 2) - qDebug("---- bidiReorder --- '%s'", engine->string.utf8().data()); - qDebug("rightToLeft = %d", rightToLeft); + tqDebug("---- bidiReorder --- '%s'", engine->string.utf8().data()); + tqDebug("rightToLeft = %d", rightToLeft); #endif @@ -861,7 +861,7 @@ static void calcLineBreaks(const TQString &str, TQCharAttributes *charAttributes softBreak = (cls == TQUnicodeTables::LineBreak_SP); else softBreak = (brk == Dbk); -// qDebug("char = %c %04x, cls=%d, ncls=%d, brk=%d soft=%d", uc[i].cell(), uc[i].unicode(), cls, ncls, brk, charAttributes[i].softBreak); +// tqDebug("char = %c %04x, cls=%d, ncls=%d, brk=%d soft=%d", uc[i].cell(), uc[i].unicode(), cls, ncls, brk, charAttributes[i].softBreak); charAttributes[i].softBreak = softBreak; charAttributes[i].whiteSpace = FALSE; charAttributes[i].charStop = TRUE; @@ -1044,7 +1044,7 @@ void TQTextEngine::splitItem( int item, int pos ) oldItem.width = w; } -// qDebug("split at position %d itempos=%d", pos, item ); +// tqDebug("split at position %d itempos=%d", pos, item ); } @@ -1052,12 +1052,12 @@ int TQTextEngine::width( int from, int len ) const { int w = 0; -// qDebug("TQTextEngine::width( from = %d, len = %d ), numItems=%d, strleng=%d", from, len, items.size(), string.length() ); +// tqDebug("TQTextEngine::width( from = %d, len = %d ), numItems=%d, strleng=%d", from, len, items.size(), string.length() ); for ( int i = 0; i < items.size(); i++ ) { TQScriptItem *si = &items[i]; int pos = si->position; int ilen = length( i ); -// qDebug("item %d: from %d len %d", i, pos, ilen ); +// tqDebug("item %d: from %d len %d", i, pos, ilen ); if ( pos >= from + len ) break; if ( pos + ilen > from ) { @@ -1089,13 +1089,13 @@ int TQTextEngine::width( int from, int len ) const charEnd++; glyphEnd = (charEnd == ilen) ? si->num_glyphs : logClusters[charEnd]; -// qDebug("char: start=%d end=%d / glyph: start = %d, end = %d", charFrom, charEnd, glyphStart, glyphEnd ); +// tqDebug("char: start=%d end=%d / glyph: start = %d, end = %d", charFrom, charEnd, glyphStart, glyphEnd ); for ( int i = glyphStart; i < glyphEnd; i++ ) w += advances[i]; } } } -// qDebug(" --> w= %d ", w ); +// tqDebug(" --> w= %d ", w ); return w; } diff --git a/src/kernel/qtextengine_unix.cpp b/src/kernel/qtextengine_unix.cpp index 0e76f33fb..0d5e3b920 100644 --- a/src/kernel/qtextengine_unix.cpp +++ b/src/kernel/qtextengine_unix.cpp @@ -96,10 +96,10 @@ void TQTextEngine::shape( int item ) const shaper_item.has_positioning = FALSE; while (1) { -// qDebug(" . num_glyphs=%d, used=%d, item.num_glyphs=%d", num_glyphs, used, shaper_item.num_glyphs); +// tqDebug(" . num_glyphs=%d, used=%d, item.num_glyphs=%d", num_glyphs, used, shaper_item.num_glyphs); ensureSpace(shaper_item.num_glyphs); shaper_item.num_glyphs = num_glyphs - used; -// qDebug(" .. num_glyphs=%d, used=%d, item.num_glyphs=%d", num_glyphs, used, shaper_item.num_glyphs); +// tqDebug(" .. num_glyphs=%d, used=%d, item.num_glyphs=%d", num_glyphs, used, shaper_item.num_glyphs); shaper_item.glyphs = glyphs(&si); shaper_item.advances = advances(&si); shaper_item.offsets = offsets(&si); @@ -118,7 +118,7 @@ void TQTextEngine::shape( int item ) const advance_t *advances = this->advances( &si ); advance_t *end = advances + si.num_glyphs; while ( advances < end ) { -// qDebug("advances[%d] = %d", advances - this->advances(&si), *advances); +// tqDebug("advances[%d] = %d", advances - this->advances(&si), *advances); si.width += *(advances++); } diff --git a/src/kernel/qtextlayout.cpp b/src/kernel/qtextlayout.cpp index edbd910ed..ed5641a7b 100644 --- a/src/kernel/qtextlayout.cpp +++ b/src/kernel/qtextlayout.cpp @@ -134,7 +134,7 @@ int TQTextItem::cursorToX( int *cPos, Edge edge ) const for ( int i = 0; i < glyph_pos; i++ ) x += advances[i]; } -// qDebug("cursorToX: pos=%d, gpos=%d x=%d", pos, glyph_pos, x ); +// tqDebug("cursorToX: pos=%d, gpos=%d x=%d", pos, glyph_pos, x ); *cPos = pos; return x; } @@ -174,7 +174,7 @@ int TQTextItem::xToCursor( int x, CursorPosition cpos ) const cp_after = i; for ( int j = lastCluster; j < newCluster; j++ ) x_after += advances[j]; - // qDebug("cluster boundary: lastCluster=%d, newCluster=%d, x_before=%d, x_after=%d", + // tqDebug("cluster boundary: lastCluster=%d, newCluster=%d, x_before=%d, x_after=%d", // lastCluster, newCluster, x_before, x_after ); if ( x_after > x ) break; @@ -184,7 +184,7 @@ int TQTextItem::xToCursor( int x, CursorPosition cpos ) const bool before = ( cpos == OnCharacters || (x - x_before) < (x_after - x) ); -// qDebug("got cursor position for %d: %d/%d, x_ba=%d/%d using %d", +// tqDebug("got cursor position for %d: %d/%d, x_ba=%d/%d using %d", // x, cp_before,cp_after, x_before, x_after, before ? cp_before : cp_after ); return before ? cp_before : cp_after; @@ -355,7 +355,7 @@ TQTextLayout::Result TQTextLayout::addCurrentItem() TQScriptItem ¤t = d->items[d->currentItem]; d->shape( d->currentItem ); d->widthUsed += current.width; -// qDebug("trying to add item %d with width %d, remaining %d", d->currentItem, current.width, d->lineWidth-d->widthUsed ); +// tqDebug("trying to add item %d with width %d, remaining %d", d->currentItem, current.width, d->lineWidth-d->widthUsed ); d->currentItem++; @@ -376,7 +376,7 @@ TQTextLayout::Result TQTextLayout::endLine( int x, int y, int alignment, int i; TQTextLayout::Result result = LineEmpty; -// qDebug("endLine x=%d, y=%d, first=%d, current=%d lw=%d wu=%d", x, y, d->firstItemInLine, d->currentItem, d->lineWidth, d->widthUsed ); +// tqDebug("endLine x=%d, y=%d, first=%d, current=%d lw=%d wu=%d", x, y, d->firstItemInLine, d->currentItem, d->lineWidth, d->widthUsed ); int width_nobreak_found = d->widthUsed; if ( d->firstItemInLine == -1 ) goto end; @@ -428,21 +428,21 @@ TQTextLayout::Result TQTextLayout::endLine( int x, int y, int alignment, int lastGlyph = 0; int tmpItemWidth = 0; -// qDebug("looking for break in item %d, isSpace=%d", i, si->isSpace ); +// tqDebug("looking for break in item %d, isSpace=%d", i, si->isSpace ); if(si->isSpace && !(alignment & (TQt::SingleLine|TQt::IncludeTrailingSpaces))) { swidth += si->width; } else { tmpWidth += swidth; swidth = 0; for ( int pos = 0; pos < length; pos++ ) { -// qDebug("advance=%d, w=%d, tmpWidth=%d, softbreak=%d, whitespace=%d", +// tqDebug("advance=%d, w=%d, tmpWidth=%d, softbreak=%d, whitespace=%d", // *advances, w, tmpWidth, itemAttrs->softBreak, itemAttrs->whiteSpace ); int glyph = logClusters[pos]; if ( lastGlyph != glyph ) { while ( lastGlyph < glyph ) tmpItemWidth += advances[lastGlyph++]; if ( breakPosition != -1 && w + tmpWidth + tmpItemWidth > d->lineWidth ) { -// qDebug("found break at w=%d, tmpWidth=%d, tmpItemWidth=%d", w, tmpWidth, tmpItemWidth); +// tqDebug("found break at w=%d, tmpWidth=%d, tmpItemWidth=%d", w, tmpWidth, tmpItemWidth); d->widthUsed = w; goto found; } @@ -456,7 +456,7 @@ TQTextLayout::Result TQTextLayout::endLine( int x, int y, int alignment, breakany = FALSE; breakItem = i; breakPosition = pos; -// qDebug("found possible break at item %d, position %d (absolute=%d), w=%d, tmpWidth=%d, tmpItemWidth=%d", breakItem, breakPosition, d->items[breakItem].position+breakPosition, w, tmpWidth, tmpItemWidth); +// tqDebug("found possible break at item %d, position %d (absolute=%d), w=%d, tmpWidth=%d, tmpItemWidth=%d", breakItem, breakPosition, d->items[breakItem].position+breakPosition, w, tmpWidth, tmpItemWidth); w += tmpWidth + tmpItemWidth; itemWidth += tmpItemWidth; tmpWidth = 0; @@ -482,12 +482,12 @@ TQTextLayout::Result TQTextLayout::endLine( int x, int y, int alignment, goto nobreak; } -// qDebug("linebreak at item %d, position %d, wu=%d", breakItem, breakPosition, d->widthUsed ); +// tqDebug("linebreak at item %d, position %d, wu=%d", breakItem, breakPosition, d->widthUsed ); // split the line if ( breakPosition > 0 ) { // int length = d->length( breakItem ); -// qDebug("splitting item, itemWidth=%d", itemWidth); +// tqDebug("splitting item, itemWidth=%d", itemWidth); // not a full item, need to break d->splitItem( breakItem, breakPosition ); d->currentItem = breakItem+1; @@ -508,10 +508,10 @@ TQTextLayout::Result TQTextLayout::endLine( int x, int y, int alignment, visual = new int[numRuns]; } -// qDebug("reordering %d runs, numSpaceItems=%d", numRuns, numSpaceItems ); +// tqDebug("reordering %d runs, numSpaceItems=%d", numRuns, numSpaceItems ); for ( i = 0; i < numRuns; i++ ) { levels[i] = d->items[i+d->firstItemInLine].analysis.bidiLevel; -// qDebug(" level = %d", d->items[i+d->firstItemInLine].analysis.bidiLevel ); +// tqDebug(" level = %d", d->items[i+d->firstItemInLine].analysis.bidiLevel ); } d->bidiReorder( numRuns, levels, visual ); @@ -541,7 +541,7 @@ TQTextLayout::Result TQTextLayout::endLine( int x, int y, int alignment, int left = x; for ( i = 0; i < numRuns; i++ ) { TQScriptItem &si = d->items[d->firstItemInLine+visual[i]]; -// qDebug("positioning item %d with width %d (from=%d/length=%d) at %d", d->firstItemInLine+visual[i], si.width, si.position, +// tqDebug("positioning item %d with width %d (from=%d/length=%d) at %d", d->firstItemInLine+visual[i], si.width, si.position, // d->length(d->firstItemInLine+visual[i]), x ); si.x = x; si.y = y + asc; @@ -593,7 +593,7 @@ void TQTextLayout::endLayout() int TQTextLayout::nextCursorPosition( int oldPos, CursorMode mode ) const { -// qDebug("looking for next cursor pos for %d", oldPos ); +// tqDebug("looking for next cursor pos for %d", oldPos ); const TQCharAttributes *attributes = d->attributes(); int len = d->string.length(); if ( oldPos >= len ) @@ -606,13 +606,13 @@ int TQTextLayout::nextCursorPosition( int oldPos, CursorMode mode ) const while ( oldPos < len && !attributes[oldPos].wordStop && !attributes[oldPos-1].whiteSpace ) oldPos++; } -// qDebug(" -> %d", oldPos ); +// tqDebug(" -> %d", oldPos ); return oldPos; } int TQTextLayout::previousCursorPosition( int oldPos, CursorMode mode ) const { -// qDebug("looking for previous cursor pos for %d", oldPos ); +// tqDebug("looking for previous cursor pos for %d", oldPos ); const TQCharAttributes *attributes = d->attributes(); if ( oldPos <= 0 ) return 0; @@ -624,7 +624,7 @@ int TQTextLayout::previousCursorPosition( int oldPos, CursorMode mode ) const while ( oldPos && !attributes[oldPos].wordStop && !attributes[oldPos-1].whiteSpace ) oldPos--; } -// qDebug(" -> %d", oldPos ); +// tqDebug(" -> %d", oldPos ); return oldPos; } diff --git a/src/kernel/qthread.cpp b/src/kernel/qthread.cpp index f9c45d92c..a1719313d 100644 --- a/src/kernel/qthread.cpp +++ b/src/kernel/qthread.cpp @@ -80,7 +80,7 @@ { for( int count = 0; count < 20; count++ ) { sleep( 1 ); - qDebug( "Ping!" ); + tqDebug( "Ping!" ); } } @@ -166,7 +166,7 @@ TQThread::~TQThread() TQMutexLocker locker( d->mutex() ); if ( d->running && !d->finished ) { #ifdef QT_CHECK_STATE - qWarning("TQThread object destroyed while thread is still running."); + tqWarning("TQThread object destroyed while thread is still running."); #endif d->orphan = TRUE; diff --git a/src/kernel/qthread_unix.cpp b/src/kernel/qthread_unix.cpp index 35de76021..73319b64a 100644 --- a/src/kernel/qthread_unix.cpp +++ b/src/kernel/qthread_unix.cpp @@ -131,7 +131,7 @@ void TQThreadInstance::finish( void * ) if ( ! d ) { #ifdef QT_CHECK_STATE - qWarning( "TQThread: internal error: zero data for running thread." ); + tqWarning( "TQThread: internal error: zero data for running thread." ); #endif // QT_CHECK_STATE return; } @@ -188,8 +188,8 @@ TQt::HANDLE TQThread::currentThread() */ void TQThread::initialize() { - if ( ! qt_global_mutexpool ) - qt_global_mutexpool = new TQMutexPool( TRUE, 73 ); + if ( ! tqt_global_mutexpool ) + tqt_global_mutexpool = new TQMutexPool( TRUE, 73 ); if ( ! qt_thread_mutexpool ) qt_thread_mutexpool = new TQMutexPool( FALSE, 127 ); @@ -202,9 +202,9 @@ void TQThread::initialize() */ void TQThread::cleanup() { - delete qt_global_mutexpool; + delete tqt_global_mutexpool; delete qt_thread_mutexpool; - qt_global_mutexpool = 0; + tqt_global_mutexpool = 0; qt_thread_mutexpool = 0; TQThreadInstance::finish(&main_instance); @@ -328,7 +328,7 @@ void TQThread::start(Priority priority) if (pthread_attr_getschedpolicy(&attr, &sched_policy) != 0) { // failed to get the scheduling policy, don't bother // setting the priority - qWarning("TQThread: cannot determine default scheduler policy"); + tqWarning("TQThread: cannot determine default scheduler policy"); break; } @@ -337,7 +337,7 @@ void TQThread::start(Priority priority) if (prio_min == -1 || prio_max == -1) { // failed to get the scheduling parameters, don't // bother setting the priority - qWarning("TQThread: cannot determine scheduler priority range"); + tqWarning("TQThread: cannot determine scheduler priority range"); break; } @@ -378,7 +378,7 @@ void TQThread::start(Priority priority) if ( ret ) { #ifdef QT_CHECK_STATE - qWarning( "TQThread::start: thread stack size error: %s", strerror( ret ) ) ; + tqWarning( "TQThread::start: thread stack size error: %s", strerror( ret ) ) ; #endif // QT_CHECK_STATE // we failed to set the stacksize, and as the documentation states, @@ -402,7 +402,7 @@ void TQThread::start(Priority priority) if ( ret ) { #ifdef QT_CHECK_STATE - qWarning( "TQThread::start: thread creation error: %s", strerror( ret ) ); + tqWarning( "TQThread::start: thread creation error: %s", strerror( ret ) ); #endif // QT_CHECK_STATE d->running = FALSE; @@ -439,7 +439,7 @@ bool TQThread::wait( unsigned long time ) if ( d->thread_id == pthread_self() ) { #ifdef QT_CHECK_STATE - qWarning( "TQThread::wait: thread tried to wait on itself" ); + tqWarning( "TQThread::wait: thread tried to wait on itself" ); #endif // QT_CHECK_STATE return FALSE; @@ -464,7 +464,7 @@ bool TQThread::wait( unsigned long time ) #ifdef QT_CHECK_RANGE if (ret && ret != ETIMEDOUT) - qWarning("Wait condition wait failure: %s",strerror(ret)); + tqWarning("Wait condition wait failure: %s",strerror(ret)); #endif return (ret == 0); diff --git a/src/kernel/qtimer.cpp b/src/kernel/qtimer.cpp index ed8098999..a99a49c1b 100644 --- a/src/kernel/qtimer.cpp +++ b/src/kernel/qtimer.cpp @@ -246,7 +246,7 @@ static void sst_init() if ( !sst_list ) { sst_list = new TQObjectList; TQ_CHECK_PTR( sst_list ); - qAddPostRoutine( sst_cleanup ); + tqAddPostRoutine( sst_cleanup ); } } diff --git a/src/kernel/qtranslator.cpp b/src/kernel/qtranslator.cpp index 7758d31be..6a66947b3 100644 --- a/src/kernel/qtranslator.cpp +++ b/src/kernel/qtranslator.cpp @@ -492,13 +492,13 @@ bool TQTranslator::load( const TQString & filename, const TQString & directory, f = qt_open( TQFile::encodeName(realname), O_RDONLY, 0666 ); if ( f < 0 ) { - // qDebug( "can't open %s: %s", realname.ascii(), strerror( errno ) ); + // tqDebug( "can't open %s: %s", realname.ascii(), strerror( errno ) ); return FALSE; } struct stat st; if ( fstat( f, &st ) ) { - // qDebug( "can't stat %s: %s", realname.ascii(), strerror( errno ) ); + // tqDebug( "can't stat %s: %s", realname.ascii(), strerror( errno ) ); return FALSE; } char * tmp; @@ -507,7 +507,7 @@ bool TQTranslator::load( const TQString & filename, const TQString & directory, MAP_FILE | MAP_PRIVATE, // swap-backed map from file f, 0 ); // from offset 0 of f if ( !tmp || tmp == (char*)MAP_FAILED ) { - // qDebug( "can't mmap %s: %s", filename.ascii(), strerror( errno ) ); + // tqDebug( "can't mmap %s: %s", filename.ascii(), strerror( errno ) ); return FALSE; } @@ -845,7 +845,7 @@ void TQTranslator::squeeze( SaveMode mode ) delete [] hTable; if ( upto > 131072 ) { - qWarning( "TQTranslator::squeeze: Too many contexts" ); + tqWarning( "TQTranslator::squeeze: Too many contexts" ); delete d->contextArray; d->contextArray = 0; } @@ -1029,7 +1029,7 @@ TQTranslatorMessage TQTranslator::findMessage( const char* context, return TQTranslatorMessage(); if ( systemWordSize == 0 ) - qSysInfo( &systemWordSize, &systemBigEndian ); + tqSysInfo( &systemWordSize, &systemBigEndian ); for ( ;; ) { Q_UINT32 h = elfHash( TQCString(sourceText) + comment ); diff --git a/src/kernel/qurl.cpp b/src/kernel/qurl.cpp index 0a680e0d9..bf960f336 100644 --- a/src/kernel/qurl.cpp +++ b/src/kernel/qurl.cpp @@ -849,15 +849,15 @@ bool TQUrl::parse( const TQString& url ) d->cleanPathDirty = TRUE; #if 0 - qDebug( "URL: %s", url.latin1() ); - qDebug( "protocol: %s", d->protocol.latin1() ); - qDebug( "user: %s", d->user.latin1() ); - qDebug( "pass: %s", d->pass.latin1() ); - qDebug( "host: %s", d->host.latin1() ); - qDebug( "path: %s", path().latin1() ); - qDebug( "ref: %s", d->refEncoded.latin1() ); - qDebug( "query: %s", d->queryEncoded.latin1() ); - qDebug( "port: %d\n\n----------------------------\n\n", d->port ); + tqDebug( "URL: %s", url.latin1() ); + tqDebug( "protocol: %s", d->protocol.latin1() ); + tqDebug( "user: %s", d->user.latin1() ); + tqDebug( "pass: %s", d->pass.latin1() ); + tqDebug( "host: %s", d->host.latin1() ); + tqDebug( "path: %s", path().latin1() ); + tqDebug( "ref: %s", d->refEncoded.latin1() ); + tqDebug( "query: %s", d->queryEncoded.latin1() ); + tqDebug( "port: %d\n\n----------------------------\n\n", d->port ); #endif return TRUE; @@ -1010,7 +1010,7 @@ void TQUrl::setEncodedPathAndQuery( const TQString& pathAndQuery ) d->cleanPathDirty = TRUE; } -extern bool qt_resolve_symlinks; // defined in qapplication.cpp +extern bool tqt_resolve_symlinks; // defined in qapplication.cpp /*! Returns the path of the URL. If \a correct is TRUE, the path is @@ -1053,7 +1053,7 @@ TQString TQUrl::path( bool correct ) const else if ( fi.isDir() ) { TQString canPath = TQDir( d->path ).canonicalPath(); TQString dir; - if ( qt_resolve_symlinks && !canPath.isNull() ) + if ( tqt_resolve_symlinks && !canPath.isNull() ) dir = TQDir::cleanDirPath( canPath ); else dir = TQDir::cleanDirPath( TQDir( d->path ).absPath() ); @@ -1064,7 +1064,7 @@ TQString TQUrl::path( bool correct ) const d->cleanPath = dir; } else { TQString p = - TQDir::cleanDirPath( (qt_resolve_symlinks ? + TQDir::cleanDirPath( (tqt_resolve_symlinks ? fi.dir().canonicalPath() : fi.dir().absPath()) ); d->cleanPath = p + "/" + fi.fileName(); diff --git a/src/kernel/qurloperator.cpp b/src/kernel/qurloperator.cpp index e4cb185f4..93235a84c 100644 --- a/src/kernel/qurloperator.cpp +++ b/src/kernel/qurloperator.cpp @@ -122,7 +122,7 @@ public: A TQUrlOperator can be used like this, for example to download a file (and assuming that the FTP protocol is \link - qInitNetworkProtocols() registered\endlink): + tqInitNetworkProtocols() registered\endlink): \code TQUrlOperator *op = new TQUrlOperator(); op->copy( TQString("ftp://ftp.trolltech.com/qt/source/qt-2.1.0.tar.gz"), @@ -148,7 +148,7 @@ public: handling deals with this problem. To register the available network protocols, use the - qInitNetworkProtocols() function. The protocols currently + tqInitNetworkProtocols() function. The protocols currently supported are: \list \i \link TQFtp FTP\endlink, @@ -293,7 +293,7 @@ TQUrlOperator::TQUrlOperator() : TQUrl() { #ifdef TQURLOPERATOR_DEBUG - qDebug( "TQUrlOperator: cstr 1" ); + tqDebug( "TQUrlOperator: cstr 1" ); #endif d = new TQUrlOperatorPrivate; } @@ -309,7 +309,7 @@ TQUrlOperator::TQUrlOperator( const TQString &url ) : TQUrl( url ) { #ifdef TQURLOPERATOR_DEBUG - qDebug( "TQUrlOperator: cstr 2" ); + tqDebug( "TQUrlOperator: cstr 2" ); #endif d = new TQUrlOperatorPrivate; getNetworkProtocol(); @@ -323,7 +323,7 @@ TQUrlOperator::TQUrlOperator( const TQUrlOperator& url ) : TQObject(), TQUrl( url ) { #ifdef TQURLOPERATOR_DEBUG - qDebug( "TQUrlOperator: cstr 3" ); + tqDebug( "TQUrlOperator: cstr 3" ); #endif d = new TQUrlOperatorPrivate; *d = *url.d; @@ -345,7 +345,7 @@ TQUrlOperator::TQUrlOperator( const TQUrlOperator& url, const TQString& relUrl, : TQUrl( url, relUrl, checkSlash ) { #ifdef TQURLOPERATOR_DEBUG - qDebug( "TQUrlOperator: cstr 4" ); + tqDebug( "TQUrlOperator: cstr 4" ); #endif d = new TQUrlOperatorPrivate; if ( relUrl == "." ) @@ -363,7 +363,7 @@ TQUrlOperator::TQUrlOperator( const TQUrlOperator& url, const TQString& relUrl, TQUrlOperator::~TQUrlOperator() { #ifdef TQURLOPERATOR_DEBUG - qDebug( "TQUrlOperator: dstr" ); + tqDebug( "TQUrlOperator: dstr" ); #endif delete d; } @@ -570,7 +570,7 @@ const TQNetworkOperation *TQUrlOperator::rename( const TQString &oldname, const TQPtrList<TQNetworkOperation> TQUrlOperator::copy( const TQString &from, const TQString &to, bool move, bool toPath ) { #ifdef TQURLOPERATOR_DEBUG - qDebug( "TQUrlOperator: copy %s %s %d", from.latin1(), to.latin1(), move ); + tqDebug( "TQUrlOperator: copy %s %s %d", from.latin1(), to.latin1(), move ); #endif TQPtrList<TQNetworkOperation> ops; @@ -644,7 +644,7 @@ TQPtrList<TQNetworkOperation> TQUrlOperator::copy( const TQString &from, const T gProt->setAutoDelete( TRUE ); } #ifdef TQURLOPERATOR_DEBUG - qDebug( "TQUrlOperator: copy operation should start now..." ); + tqDebug( "TQUrlOperator: copy operation should start now..." ); #endif return ops; } else { @@ -1063,7 +1063,7 @@ bool TQUrlOperator::checkValid() void TQUrlOperator::copyGotData( const TQByteArray &data_, TQNetworkOperation *op ) { #ifdef TQURLOPERATOR_DEBUG - qDebug( "TQUrlOperator: copyGotData: %d new bytes", data_.size() ); + tqDebug( "TQUrlOperator: copyGotData: %d new bytes", data_.size() ); #endif TQNetworkOperation *put = d->getOpPutOpMap[ (void*)op ]; if ( put ) { @@ -1089,7 +1089,7 @@ void TQUrlOperator::continueCopy( TQNetworkOperation *op ) #ifdef TQURLOPERATOR_DEBUG if ( op->state() != TQNetworkProtocol::StFailed ) { - qDebug( "TQUrlOperator: continue copy (get finished, put will start)" ); + tqDebug( "TQUrlOperator: continue copy (get finished, put will start)" ); } #endif @@ -1134,7 +1134,7 @@ void TQUrlOperator::continueCopy( TQNetworkOperation *op ) void TQUrlOperator::finishedCopy() { #ifdef TQURLOPERATOR_DEBUG - qDebug( "TQUrlOperator: finished copy (finished putting)" ); + tqDebug( "TQUrlOperator: finished copy (finished putting)" ); #endif if ( d->waitingCopies.isEmpty() ) diff --git a/src/kernel/qvariant.cpp b/src/kernel/qvariant.cpp index 6d4b5d1d1..3f4fe430a 100644 --- a/src/kernel/qvariant.cpp +++ b/src/kernel/qvariant.cpp @@ -408,7 +408,7 @@ void TQVariant::Private::clear() TQDataStream in(...); // (opening the previously written stream) in >> v; // Reads an Int variant int z = v.toInt(); // z = 123 - qDebug("Type is %s", // prints "Type is int" + tqDebug("Type is %s", // prints "Type is int" v.typeName()); v.asInt() += 100; // The variant now hold the value 223. v = TQVariant( TQStringList() ); diff --git a/src/kernel/qwidget.cpp b/src/kernel/qwidget.cpp index 82b31d430..5a27310f2 100644 --- a/src/kernel/qwidget.cpp +++ b/src/kernel/qwidget.cpp @@ -882,7 +882,7 @@ TQWidget::TQWidget( TQWidget *parent, const char *name, WFlags f, NFlags n ) { #if defined(QT_CHECK_STATE) && !defined(Q_WS_WIN) if ( tqApp->type() == TQApplication::Tty ) { - qWarning( "TQWidget: Cannot create a TQWidget when no GUI " + tqWarning( "TQWidget: Cannot create a TQWidget when no GUI " "is being used" ); } #endif @@ -954,7 +954,7 @@ TQWidget::~TQWidget() { #if defined (QT_CHECK_STATE) if ( paintingActive() ) - qWarning( "%s (%s): deleted while being painted", className(), name() ); + tqWarning( "%s (%s): deleted while being painted", className(), name() ); #endif // Remove myself and all children from the can-take-focus list @@ -2671,7 +2671,7 @@ void TQWidget::setBackgroundMode( BackgroundMode m, BackgroundMode visual ) setBackgroundEmpty(); } else if ( m == FixedColor || m == FixedPixmap ) { #if defined(QT_DEBUG) - qWarning( "TQWidget::setBackgroundMode: FixedColor or FixedPixmap makes" + tqWarning( "TQWidget::setBackgroundMode: FixedColor or FixedPixmap makes" " no sense" ); #endif return; @@ -3181,7 +3181,7 @@ void TQWidget::setFocusProxy( TQWidget * w ) for ( TQWidget* fp = w; fp; fp = fp->focusProxy() ) { if ( fp == this ) { #if defined (QT_CHECK_STATE) - qWarning( "%s (%s): already in focus proxy chain", className(), name() ); + tqWarning( "%s (%s): already in focus proxy chain", className(), name() ); #endif return; } @@ -3443,8 +3443,8 @@ bool TQWidget::focusNextPrevChild( bool next ) TQWidget *startingPoint = f->it.current(); TQWidget *candidate = 0; TQWidget *w = next ? f->focusWidgets.last() : f->focusWidgets.first(); - extern bool qt_tab_all_widgets; - uint focus_flag = qt_tab_all_widgets ? TabFocus : StrongFocus; + extern bool tqt_tab_all_widgets; + uint focus_flag = tqt_tab_all_widgets ? TabFocus : StrongFocus; do { if ( w && w != startingPoint && ( ( w->focusPolicy() & focus_flag ) == focus_flag ) diff --git a/src/kernel/qwidget_x11.cpp b/src/kernel/qwidget_x11.cpp index 41b048b67..52adb5397 100644 --- a/src/kernel/qwidget_x11.cpp +++ b/src/kernel/qwidget_x11.cpp @@ -85,8 +85,8 @@ static TQWidget *mouseGrb = 0; static TQWidget *keyboardGrb = 0; // defined in qapplication_x11.cpp -extern Time qt_x_time; -extern Time qt_x_user_time; +extern Time tqt_x_time; +extern Time tqt_x_user_time; #ifndef QT_NO_XSYNC extern Atom qt_net_wm_sync_request_counter; @@ -95,7 +95,7 @@ extern bool qt_use_xsync; #endif // defined in qfont_x11.cpp -extern bool qt_has_xft; +extern bool tqt_has_xft; int qt_x11_create_desktop_on_screen = -1; @@ -104,13 +104,13 @@ int qt_x11_create_desktop_on_screen = -1; *****************************************************************************/ // defined in qapplication_x11.cpp -extern Atom qt_wm_state; +extern Atom tqt_wm_state; extern Atom qt_wm_change_state; -extern Atom qt_wm_delete_window; -extern Atom qt_wm_take_focus; +extern Atom tqt_wm_delete_window; +extern Atom tqt_wm_take_focus; extern Atom qt_wm_client_leader; -extern Atom qt_window_role; -extern Atom qt_sm_client_id; +extern Atom tqt_window_role; +extern Atom tqt_sm_client_id; extern Atom qt_utf8_string; extern Atom qt_net_wm_context_help; extern Atom qt_net_wm_ping; @@ -468,7 +468,7 @@ void TQWidget::create( WId window, bool initializeWindow, bool destroyOldWindow) rendhd = 0; } - if ( qt_has_xft ) + if ( tqt_has_xft ) rendhd = (HANDLE) XftDrawCreate( dpy, id, (Visual *) x11Visual(), x11Colormap() ); #endif // QT_NO_XFTFREETYPE @@ -676,8 +676,8 @@ void TQWidget::create( WId window, bool initializeWindow, bool destroyOldWindow) XStoreName( dpy, id, tqAppName() ); Atom protocols[5]; int n = 0; - protocols[n++] = qt_wm_delete_window; // support del window protocol - protocols[n++] = qt_wm_take_focus; // support take focus window protocol + protocols[n++] = tqt_wm_delete_window; // support del window protocol + protocols[n++] = tqt_wm_take_focus; // support take focus window protocol protocols[n++] = qt_net_wm_ping; // support _NET_WM_PING protocol #ifndef QT_NO_XSYNC protocols[n++] = qt_net_wm_sync_request;// support the _NET_WM_SYNC_RETQUEST protocol @@ -727,7 +727,7 @@ void TQWidget::create( WId window, bool initializeWindow, bool destroyOldWindow) // declare the widget's object name as window role XChangeProperty( dpy, id, - qt_window_role, XA_STRING, 8, PropModeReplace, + tqt_window_role, XA_STRING, 8, PropModeReplace, (unsigned char *)name(), tqstrlen( name() ) ); // set client leader property @@ -1250,7 +1250,7 @@ qstring_to_xtp( const TQString& s ) tl, 1, XStdICCTextStyle, &tp ); #if defined(QT_DEBUG) if ( errCode < 0 ) - qDebug( "qstring_to_xtp result code %d", errCode ); + tqDebug( "qstring_to_xtp result code %d", errCode ); #endif } if ( !mapper || errCode < 0 ) { @@ -1413,7 +1413,7 @@ void TQWidget::grabMouse() PointerMotionMask | EnterWindowMask | LeaveWindowMask ), GrabModeAsync, GrabModeAsync, - None, None, qt_x_time ); + None, None, tqt_x_time ); #if defined(QT_CHECK_STATE) if ( status ) { const char *s = @@ -1422,7 +1422,7 @@ void TQWidget::grabMouse() status == GrabFrozen ? "\"GrabFrozen\"" : status == GrabInvalidTime ? "\"GrabInvalidTime\"" : "<?>"; - qWarning( "Grabbing the mouse failed with %s", s ); + tqWarning( "Grabbing the mouse failed with %s", s ); } #endif mouseGrb = this; @@ -1455,7 +1455,7 @@ void TQWidget::grabMouse( const TQCursor &cursor ) (uint)(ButtonPressMask | ButtonReleaseMask | PointerMotionMask | EnterWindowMask | LeaveWindowMask), GrabModeAsync, GrabModeAsync, - None, cursor.handle(), qt_x_time ); + None, cursor.handle(), tqt_x_time ); #if defined(QT_CHECK_STATE) if ( status ) { const char *s = @@ -1464,7 +1464,7 @@ void TQWidget::grabMouse( const TQCursor &cursor ) status == GrabFrozen ? "\"GrabFrozen\"" : status == GrabInvalidTime ? "\"GrabInvalidTime\"" : "<?>"; - qWarning( "Grabbing the mouse failed with %s", s ); + tqWarning( "Grabbing the mouse failed with %s", s ); } #endif mouseGrb = this; @@ -1480,7 +1480,7 @@ void TQWidget::grabMouse( const TQCursor &cursor ) void TQWidget::releaseMouse() { if ( !qt_nograb() && mouseGrb == this ) { - XUngrabPointer( x11Display(), qt_x_time ); + XUngrabPointer( x11Display(), tqt_x_time ); XFlush( x11Display() ); mouseGrb = 0; } @@ -1510,7 +1510,7 @@ void TQWidget::grabKeyboard() if ( keyboardGrb ) keyboardGrb->releaseKeyboard(); XGrabKeyboard( x11Display(), winid, False, GrabModeAsync, GrabModeAsync, - qt_x_time ); + tqt_x_time ); keyboardGrb = this; } } @@ -1524,7 +1524,7 @@ void TQWidget::grabKeyboard() void TQWidget::releaseKeyboard() { if ( !qt_nograb() && keyboardGrb == this ) { - XUngrabKeyboard( x11Display(), qt_x_time ); + XUngrabKeyboard( x11Display(), tqt_x_time ); keyboardGrb = 0; } } @@ -1585,7 +1585,7 @@ void TQWidget::setActiveWindow() { TQWidget *tlw = topLevelWidget(); if ( tlw->isVisible() && !tlw->topData()->embedded && !qt_deferred_map_contains(tlw) ) { - XSetInputFocus( x11Display(), tlw->winId(), RevertToNone, qt_x_time); + XSetInputFocus( x11Display(), tlw->winId(), RevertToNone, tqt_x_time); focusInputContext(); } } @@ -1915,7 +1915,7 @@ void TQWidget::showWindow() if ( got_hints ) XFree( (char *)h ); - if (qt_x_user_time != CurrentTime) { + if (tqt_x_user_time != CurrentTime) { XChangeProperty(x11Display(), winId(), qt_net_wm_user_time, XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &qt_x_user_time, 1); } @@ -2215,7 +2215,7 @@ void TQWidget::setMinimumSize( int minw, int minh ) { #if defined(QT_CHECK_RANGE) if ( minw < 0 || minh < 0 ) - qWarning("TQWidget::setMinimumSize: The smallest allowed size is (0,0)"); + tqWarning("TQWidget::setMinimumSize: The smallest allowed size is (0,0)"); #endif createExtra(); if ( extra->minw == minw && extra->minh == minh ) @@ -2244,7 +2244,7 @@ void TQWidget::setMaximumSize( int maxw, int maxh ) { #if defined(QT_CHECK_RANGE) if ( maxw > TQWIDGETSIZE_MAX || maxh > TQWIDGETSIZE_MAX ) { - qWarning("TQWidget::setMaximumSize: (%s/%s) " + tqWarning("TQWidget::setMaximumSize: (%s/%s) " "The largest allowed size is (%d,%d)", name( "unnamed" ), className(), TQWIDGETSIZE_MAX, TQWIDGETSIZE_MAX ); @@ -2252,7 +2252,7 @@ void TQWidget::setMaximumSize( int maxw, int maxh ) maxh = TQMIN( maxh, TQWIDGETSIZE_MAX ); } if ( maxw < 0 || maxh < 0 ) { - qWarning("TQWidget::setMaximumSize: (%s/%s) Negative sizes (%d,%d) " + tqWarning("TQWidget::setMaximumSize: (%s/%s) Negative sizes (%d,%d) " "are not possible", name( "unnamed" ), className(), maxw, maxh ); maxw = TQMAX( maxw, 0 ); @@ -2424,7 +2424,7 @@ void TQWidget::scroll( int dx, int dy, const TQRect& r ) return; Display *dpy = x11Display(); - GC gc = qt_xget_readonly_gc( x11Screen(), FALSE ); + GC gc = tqt_xget_readonly_gc( x11Screen(), FALSE ); // Want expose events if ( w > 0 && h > 0 && !just_update ) { XSetGraphicsExposures( dpy, gc, True ); @@ -2546,7 +2546,7 @@ int TQWidget::metric( int m ) const default: val = 0; #if defined(QT_CHECK_RANGE) - qWarning( "TQWidget::metric: Invalid metric command" ); + tqWarning( "TQWidget::metric: Invalid metric command" ); #endif } } @@ -2765,7 +2765,7 @@ void TQWidget::setName( const char *name ) TQObject::setName( name ); if ( isTopLevel() ) { XChangeProperty( x11Display(), winId(), - qt_window_role, XA_STRING, 8, PropModeReplace, + tqt_window_role, XA_STRING, 8, PropModeReplace, (unsigned char *)name, tqstrlen( name ) ); } } @@ -2800,7 +2800,7 @@ void TQWidget::updateFrameStrut() const XFree(c); if (! p) { - qWarning("TQWidget::updateFrameStrut(): ERROR - no parent"); + tqWarning("TQWidget::updateFrameStrut(): ERROR - no parent"); return; } diff --git a/src/kernel/qwmatrix.cpp b/src/kernel/qwmatrix.cpp index 10a7c93fa..06a1068f2 100644 --- a/src/kernel/qwmatrix.cpp +++ b/src/kernel/qwmatrix.cpp @@ -702,8 +702,8 @@ TQPointArray TQWMatrix::mapToPolygon( const TQRect &rect ) const #if 0 int i; for( i = 0; i< 4; i++ ) - qDebug("coords(%d) = (%f/%f) (%d/%d)", i, x[i], y[i], tqRound(x[i]), tqRound(y[i]) ); - qDebug( "width=%f, height=%f", sqrt( (x[1]-x[0])*(x[1]-x[0]) + (y[1]-y[0])*(y[1]-y[0]) ), + tqDebug("coords(%d) = (%f/%f) (%d/%d)", i, x[i], y[i], tqRound(x[i]), tqRound(y[i]) ); + tqDebug( "width=%f, height=%f", sqrt( (x[1]-x[0])*(x[1]-x[0]) + (y[1]-y[0])*(y[1]-y[0]) ), sqrt( (x[0]-x[3])*(x[0]-x[3]) + (y[0]-y[3])*(y[0]-y[3]) ) ); #endif // all coordinates are correctly, tranform to a pointarray |