From 21b5bfab4d2467a0f644d653e12f169ea4afcaaf Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 1 Mar 2012 13:26:11 -0600 Subject: [PATCH] Rename additional global TQt functions --- ChangeLog | 16 ++--- kipi-plugins/ChangeLog | 16 ++--- kipi-plugins/jpeglossless/actionthread.cpp | 4 +- kipi-plugins/jpeglossless/actionthread.h | 2 +- .../jpeglossless/convert2grayscale.cpp | 10 +-- kipi-plugins/jpeglossless/imageflip.cpp | 10 +-- kipi-plugins/jpeglossless/imagerotate.cpp | 10 +-- kipi-plugins/jpeglossless/jpegtransform.cpp | 20 +++--- kipi-plugins/jpeglossless/utils.cpp | 12 ++-- kipi-plugins/kameraklient/gpcamera.cpp | 2 +- kipi-plugins/kameraklient/gpcontroller.cpp | 2 +- kipi-plugins/kameraklient/gpeventfilter.cpp | 2 +- kipi-plugins/kameraklient/gpiface.cpp | 2 +- kipi-plugins/rawconverter/actionthread.cpp | 4 +- .../rawconverter/rawdecodingiface.cpp | 18 +++--- kipi-plugins/sendimages/sendimages.cpp | 62 +++++++++---------- kipi-plugins/slideshow/screenproperties.cpp | 4 +- kipi-plugins/slideshow/slideshowgl.cpp | 2 +- kipi-plugins/slideshow/slideshowkb.cpp | 2 +- 19 files changed, 100 insertions(+), 100 deletions(-) diff --git a/ChangeLog b/ChangeLog index 74fe200..72fce20 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3415,27 +3415,27 @@ V 0.1.5-beta1 - 2007-10-07 kipi-plugins/jpeglossless/plugin_jpeglossless.h, kipi-plugins/jpeglossless/utils.cpp, kipi-plugins/jpeglossless/utils.h: - kDebug => qDebug + kDebug => tqDebug 2007-09-25 10:23 cgilles * [r716825] kipi-plugins/jpeglossless/imageflip.cpp, kipi-plugins/jpeglossless/imageflip.h, kipi-plugins/jpeglossless/imagerotate.h: - kDegug => qDebug + kDegug => tqDebug 2007-09-25 10:20 cgilles * [r716824] kipi-plugins/jpeglossless/actions.h, kipi-plugins/jpeglossless/actionthread.cpp, kipi-plugins/jpeglossless/actionthread.h: - kDebug => qDebug + kDebug => tqDebug 2007-09-25 10:17 cgilles * [r716823] kipi-plugins/jpeglossless/imagerotate.cpp, kipi-plugins/jpeglossless/imagerotate.h: - kDebug => qDebug + kDebug => tqDebug 2007-09-24 11:47 cgilles @@ -6428,7 +6428,7 @@ V 0.1.4-beta1 - 2007-06-04 kipi-plugins/sendimages/listimageserrordialog.h, kipi-plugins/sendimages/sendimages.cpp, kipi-plugins/sendimages/sendimages.h: - qDebug Translation to english + tqDebug Translation to english Adding comments 2007-01-25 15:55 lure @@ -6444,7 +6444,7 @@ V 0.1.4-beta1 - 2007-06-04 * [r626934] kipi-plugins/sendimages/sendimages.cpp: BUG: 139074; - Changed the qDebug messages to an int-cast + Changed the tqDebug messages to an int-cast 2007-01-24 23:15 anaselli @@ -7008,7 +7008,7 @@ v 0.1.3-beta1 - 2006-11-29 * [r607391] sendimages/sendimages.cpp: kipi-plugins from trunk : SendImages : patch from Michael - Höchstetter to fix kdDebug() statements to qDebug() in + Höchstetter to fix kdDebug() statements to tqDebug() in multithreaded section. Important nocice to kipi developpers : never use kdDebug() in @@ -14467,7 +14467,7 @@ v0.1.0-beta1 2004-09-06 sendimages/plugin_sendimages.cpp, sendimages/sendimagesdialog.cpp: Fixed namespace name in JPEGLosLess plugin in according with other plugins namespaces. - Used kdDebug instead qDebug. Fixed tmp folder name. + Used kdDebug instead tqDebug. Fixed tmp folder name. 2004-06-28 08:53 cgilles diff --git a/kipi-plugins/ChangeLog b/kipi-plugins/ChangeLog index 5dc5f7e..c3fcc63 100644 --- a/kipi-plugins/ChangeLog +++ b/kipi-plugins/ChangeLog @@ -3541,27 +3541,27 @@ V 0.1.5-beta1 - 2007-10-07 kipi-plugins/jpeglossless/plugin_jpeglossless.h, kipi-plugins/jpeglossless/utils.cpp, kipi-plugins/jpeglossless/utils.h: - kDebug => qDebug + kDebug => tqDebug 2007-09-25 10:23 cgilles * [r716825] kipi-plugins/jpeglossless/imageflip.cpp, kipi-plugins/jpeglossless/imageflip.h, kipi-plugins/jpeglossless/imagerotate.h: - kDegug => qDebug + kDegug => tqDebug 2007-09-25 10:20 cgilles * [r716824] kipi-plugins/jpeglossless/actions.h, kipi-plugins/jpeglossless/actionthread.cpp, kipi-plugins/jpeglossless/actionthread.h: - kDebug => qDebug + kDebug => tqDebug 2007-09-25 10:17 cgilles * [r716823] kipi-plugins/jpeglossless/imagerotate.cpp, kipi-plugins/jpeglossless/imagerotate.h: - kDebug => qDebug + kDebug => tqDebug 2007-09-24 11:47 cgilles @@ -6554,7 +6554,7 @@ V 0.1.4-beta1 - 2007-06-04 kipi-plugins/sendimages/listimageserrordialog.h, kipi-plugins/sendimages/sendimages.cpp, kipi-plugins/sendimages/sendimages.h: - qDebug Translation to english + tqDebug Translation to english Adding comments 2007-01-25 15:55 lure @@ -6570,7 +6570,7 @@ V 0.1.4-beta1 - 2007-06-04 * [r626934] kipi-plugins/sendimages/sendimages.cpp: BUG: 139074; - Changed the qDebug messages to an int-cast + Changed the tqDebug messages to an int-cast 2007-01-24 23:15 anaselli @@ -7134,7 +7134,7 @@ v 0.1.3-beta1 - 2006-11-29 * [r607391] sendimages/sendimages.cpp: kipi-plugins from trunk : SendImages : patch from Michael - Höchstetter to fix kdDebug() statements to qDebug() in + Höchstetter to fix kdDebug() statements to tqDebug() in multithreaded section. Important nocice to kipi developpers : never use kdDebug() in @@ -14593,7 +14593,7 @@ v0.1.0-beta1 2004-09-06 sendimages/plugin_sendimages.cpp, sendimages/sendimagesdialog.cpp: Fixed namespace name in JPEGLosLess plugin in according with other plugins namespaces. - Used kdDebug instead qDebug. Fixed tmp folder name. + Used kdDebug instead tqDebug. Fixed tmp folder name. 2004-06-28 08:53 cgilles diff --git a/kipi-plugins/jpeglossless/actionthread.cpp b/kipi-plugins/jpeglossless/actionthread.cpp index 60dd745..f21f410 100644 --- a/kipi-plugins/jpeglossless/actionthread.cpp +++ b/kipi-plugins/jpeglossless/actionthread.cpp @@ -12,7 +12,7 @@ * Copyright (C) 2006-2007 by Gilles Caulier * * NOTE: Do not use kdDebug() in this implementation because - * it will be multithreaded. Use qDebug() instead. + * it will be multithreaded. Use tqDebug() instead. * See B.K.O #133026 for details. * * This program is free software; you can redistribute it @@ -224,7 +224,7 @@ void ActionThread::run() } default: { - qDebug("KIPIJPEGLossLessPlugin:ActionThread: " + tqDebug("KIPIJPEGLossLessPlugin:ActionThread: " "Unknown action specified"); delete d; } diff --git a/kipi-plugins/jpeglossless/actionthread.h b/kipi-plugins/jpeglossless/actionthread.h index a642e07..afc8e97 100644 --- a/kipi-plugins/jpeglossless/actionthread.h +++ b/kipi-plugins/jpeglossless/actionthread.h @@ -12,7 +12,7 @@ * Copyright (C) 2006-2007 by Gilles Caulier * * NOTE: Do not use kdDebug() in this implementation because - * it will be multithreaded. Use qDebug() instead. + * it will be multithreaded. Use tqDebug() instead. * See B.K.O #133026 for details. * * This program is free software; you can redistribute it diff --git a/kipi-plugins/jpeglossless/convert2grayscale.cpp b/kipi-plugins/jpeglossless/convert2grayscale.cpp index 7c154f7..fb8692d 100644 --- a/kipi-plugins/jpeglossless/convert2grayscale.cpp +++ b/kipi-plugins/jpeglossless/convert2grayscale.cpp @@ -10,7 +10,7 @@ * Copyright (C) 2003-2007 by Gilles Caulier * * NOTE: Do not use kdDebug() in this implementation because - * it will be multithreaded. Use qDebug() instead. + * it will be multithreaded. Use tqDebug() instead. * See B.K.O #133026 for details. * * This program is free software; you can redistribute it @@ -158,7 +158,7 @@ bool ImageGrayScale::image2GrayScaleJPEG(const TQString& src, const TQString& de input_file = fopen(TQFile::encodeName(src), "rb"); if (!input_file) { - qDebug("Image2GrayScale: Error in opening input file"); + tqDebug("Image2GrayScale: Error in opening input file"); err = i18n("Error in opening input file"); return false; } @@ -167,7 +167,7 @@ bool ImageGrayScale::image2GrayScaleJPEG(const TQString& src, const TQString& de if (!output_file) { fclose(input_file); - qDebug("Image2GrayScale: Error in opening output file"); + tqDebug("Image2GrayScale: Error in opening output file"); err = i18n("Error in opening output file"); return false; } @@ -229,10 +229,10 @@ bool ImageGrayScale::image2GrayScaleImageMagick(const TQString& src, const TQStr process << "-type" << "Grayscale"; process << src + TQString("[0]") << dest; - qDebug("ImageMagick Command line args:"); + tqDebug("ImageMagick Command line args:"); TQValueList args = process.args(); for (TQValueList::iterator it = args.begin(); it != args.end(); ++it) - qDebug("%s", (const char*)(*it)); + tqDebug("%s", (const char*)(*it)); connect(&process, TQT_SIGNAL(receivedStderr(KProcess *, char*, int)), this, TQT_SLOT(slotReadStderr(KProcess*, char*, int))); diff --git a/kipi-plugins/jpeglossless/imageflip.cpp b/kipi-plugins/jpeglossless/imageflip.cpp index 55e3c97..c6e9c1c 100644 --- a/kipi-plugins/jpeglossless/imageflip.cpp +++ b/kipi-plugins/jpeglossless/imageflip.cpp @@ -10,7 +10,7 @@ * Copyright (C) 2006-2007 by Gilles Caulier * * NOTE: Do not use kdDebug() in this implementation because - * it will be multithreaded. Use qDebug() instead. + * it will be multithreaded. Use tqDebug() instead. * See B.K.O #133026 for details. * * This program is free software; you can redistribute it @@ -146,7 +146,7 @@ bool ImageFlip::flipJPEG(const TQString& src, const TQString& dest, FlipAction a } default: { - qDebug("ImageFlip: Nonstandard flip action"); + tqDebug("ImageFlip: Nonstandard flip action"); err = i18n("Nonstandard flip action"); return false; } @@ -176,7 +176,7 @@ bool ImageFlip::flipImageMagick(const TQString& src, const TQString& dest, FlipA } default: { - qDebug("ImageFlip: Nonstandard flip action"); + tqDebug("ImageFlip: Nonstandard flip action"); err = i18n("Nonstandard flip action"); return false; } @@ -184,10 +184,10 @@ bool ImageFlip::flipImageMagick(const TQString& src, const TQString& dest, FlipA process << src + TQString("[0]") << dest; - qDebug("ImageMagick Command line args:"); + tqDebug("ImageMagick Command line args:"); TQValueList args = process.args(); for (TQValueList::iterator it = args.begin(); it != args.end(); ++it) - qDebug("%s", (const char*)(*it)); + tqDebug("%s", (const char*)(*it)); connect(&process, TQT_SIGNAL(receivedStderr(KProcess *, char*, int)), this, TQT_SLOT(slotReadStderr(KProcess*, char*, int))); diff --git a/kipi-plugins/jpeglossless/imagerotate.cpp b/kipi-plugins/jpeglossless/imagerotate.cpp index 6b030f6..56dd8a8 100644 --- a/kipi-plugins/jpeglossless/imagerotate.cpp +++ b/kipi-plugins/jpeglossless/imagerotate.cpp @@ -11,7 +11,7 @@ * Copyright (C) 2006-2007 by Gilles Caulier * * NOTE: Do not use kdDebug() in this implementation because - * it will be multithreaded. Use qDebug() instead. + * it will be multithreaded. Use tqDebug() instead. * See B.K.O #133026 for details. * * This program is free software; you can redistribute it @@ -159,7 +159,7 @@ bool ImageRotate::rotateJPEG(const TQString& src, const TQString& dest, RotateAc } default: { - qDebug("ImageRotate: Nonstandard rotation angle"); + tqDebug("ImageRotate: Nonstandard rotation angle"); err = i18n("Nonstandard rotation angle"); return false; } @@ -200,7 +200,7 @@ bool ImageRotate::rotateImageMagick(const TQString& src, const TQString& dest, } default: { - qDebug("ImageRotate: Nonstandard rotation angle"); + tqDebug("ImageRotate: Nonstandard rotation angle"); err = i18n("Nonstandard rotation angle"); return false; } @@ -208,10 +208,10 @@ bool ImageRotate::rotateImageMagick(const TQString& src, const TQString& dest, process << src + TQString("[0]") << dest; - qDebug("ImageMagick Command line args:"); + tqDebug("ImageMagick Command line args:"); TQValueList args = process.args(); for (TQValueList::iterator it = args.begin(); it != args.end(); ++it) - qDebug("%s", (const char*)(*it)); + tqDebug("%s", (const char*)(*it)); connect(&process, TQT_SIGNAL(receivedStderr(KProcess *, char*, int)), this, TQT_SLOT(slotReadStderr(KProcess*, char*, int))); diff --git a/kipi-plugins/jpeglossless/jpegtransform.cpp b/kipi-plugins/jpeglossless/jpegtransform.cpp index 4f883d4..427240e 100644 --- a/kipi-plugins/jpeglossless/jpegtransform.cpp +++ b/kipi-plugins/jpeglossless/jpegtransform.cpp @@ -11,7 +11,7 @@ * Copyright (C) 2006-2007 by Gilles Caulier * * NOTE: Do not use kdDebug() in this implementation because - * it will be multithreaded. Use qDebug() instead. + * it will be multithreaded. Use tqDebug() instead. * See B.K.O #133026 for details. * * This program is free software; you can redistribute it @@ -92,7 +92,7 @@ static void jpegtransform_jpeg_error_exit(j_common_ptr cinfo) (*cinfo->err->format_message)(cinfo, buffer); #ifdef ENABLE_DEBUG_MESSAGES - qDebug("%s", buffer) + tqDebug("%s", buffer) #endif longjmp(myerr->setjmp_buffer, 1); @@ -105,7 +105,7 @@ static void jpegtransform_jpeg_emit_message(j_common_ptr cinfo, int msg_level) (*cinfo->err->format_message)(cinfo, buffer); #ifdef ENABLE_DEBUG_MESSAGES - qDebug("%s (%i)", buffer, msg_level); + tqDebug("%s (%i)", buffer, msg_level); #endif } @@ -115,7 +115,7 @@ static void jpegtransform_jpeg_output_message(j_common_ptr cinfo) (*cinfo->err->format_message)(cinfo, buffer); #ifdef ENABLE_DEBUG_MESSAGES - qDebug("%s", buffer) + tqDebug("%s", buffer) #endif } @@ -158,7 +158,7 @@ bool transformJPEG(const TQString& src, const TQString& destGiven, input_file = fopen(TQFile::encodeName(src), "rb"); if (!input_file) { - qDebug("ImageRotate/ImageFlip: Error in opening input file"); + tqDebug("ImageRotate/ImageFlip: Error in opening input file"); err = i18n("Error in opening input file"); return false; } @@ -167,7 +167,7 @@ bool transformJPEG(const TQString& src, const TQString& destGiven, if (!output_file) { fclose(input_file); - qDebug("ImageRotate/ImageFlip: Error in opening output file"); + tqDebug("ImageRotate/ImageFlip: Error in opening output file"); err = i18n("Error in opening output file"); return false; } @@ -200,7 +200,7 @@ bool transformJPEG(const TQString& src, const TQString& destGiven, // Convert action into flip+rotate action convertTransform(action, flip, rotate); - qDebug("Transforming with option %i %i", flip, rotate); + tqDebug("Transforming with option %i %i", flip, rotate); if (flip == JXFORM_NONE && rotate == JXFORM_NONE) { err = "nothing to do"; // magic string @@ -223,7 +223,7 @@ bool transformJPEG(const TQString& src, const TQString& destGiven, if (!output_file) { fclose(input_file); - qDebug("ImageRotate/ImageFlip: Error in opening output file"); + tqDebug("ImageRotate/ImageFlip: Error in opening output file"); err = i18n("Error in opening output file"); return false; } @@ -280,7 +280,7 @@ bool transformJPEG(const TQString& src, const TQString& destGiven, input_file = fopen(TQFile::encodeName(dest), "rb"); if (!input_file) { - qDebug("ImageRotate/ImageFlip: Error in opening input file"); + tqDebug("ImageRotate/ImageFlip: Error in opening input file"); err = i18n("Error in opening input file"); return false; } @@ -289,7 +289,7 @@ bool transformJPEG(const TQString& src, const TQString& destGiven, if (!output_file) { fclose(input_file); - qDebug("ImageRotate/ImageFlip: Error in opening output file"); + tqDebug("ImageRotate/ImageFlip: Error in opening output file"); err = i18n("Error in opening output file"); return false; } diff --git a/kipi-plugins/jpeglossless/utils.cpp b/kipi-plugins/jpeglossless/utils.cpp index 4347c8c..db605b7 100644 --- a/kipi-plugins/jpeglossless/utils.cpp +++ b/kipi-plugins/jpeglossless/utils.cpp @@ -11,7 +11,7 @@ * Copyright (C) 2006-2007 by Gilles Caulier * * NOTE: Do not use kdDebug() in this implementation because - * it will be multithreaded. Use qDebug() instead. + * it will be multithreaded. Use tqDebug() instead. * See B.K.O #133026 for details. * * This program is free software; you can redistribute it @@ -146,10 +146,10 @@ bool Utils::updateMetadataImageMagick(const TQString& src, TQString& err) process << src + TQString("[0]"); - qDebug("ImageMagick Command line args:"); + tqDebug("ImageMagick Command line args:"); TQValueList args = process.args(); for (TQValueList::iterator it = args.begin(); it != args.end(); ++it) - qDebug("%s", (const char*)(*it)); + tqDebug("%s", (const char*)(*it)); connect(&process, TQT_SIGNAL(receivedStderr(KProcess *, char*, int)), this, TQT_SLOT(slotReadStderr(KProcess*, char*, int))); @@ -244,7 +244,7 @@ bool Utils::MoveFile(const TQString& src, const TQString& dst) struct stat stbuf; if (::stat(TQFile::encodeName(dst), &stbuf) != 0) { - qDebug("KIPIJPEGLossLessPlugin:MoveFile: failed to stat src"); + tqDebug("KIPIJPEGLossLessPlugin:MoveFile: failed to stat src"); return false; } @@ -256,12 +256,12 @@ bool Utils::MoveFile(const TQString& src, const TQString& dst) timbuf.modtime = stbuf.st_mtime; if (::utime(TQFile::encodeName(dst), &timbuf) != 0) { - qDebug("KIPIJPEGLossLessPlugin:MoveFile: failed to update dst time"); + tqDebug("KIPIJPEGLossLessPlugin:MoveFile: failed to update dst time"); } if (::unlink(TQFile::encodeName(src).data()) != 0) { - qDebug("KIPIJPEGLossLessPlugin:MoveFile: failed to unlink src"); + tqDebug("KIPIJPEGLossLessPlugin:MoveFile: failed to unlink src"); } return true; } diff --git a/kipi-plugins/kameraklient/gpcamera.cpp b/kipi-plugins/kameraklient/gpcamera.cpp index 6c5aabb..351c222 100644 --- a/kipi-plugins/kameraklient/gpcamera.cpp +++ b/kipi-plugins/kameraklient/gpcamera.cpp @@ -504,7 +504,7 @@ void GPCamera::getSupportedCameras(int& count, TQStringList& clist) { count = gp_abilities_list_count( abilList ); if ( count < 0) { gp_context_unref( context ); - qWarning("failed to get list of cameras"); + tqWarning("failed to get list of cameras"); return; } else { for (int i=0; i * * NOTE: Do not use kdDebug() in this implementation because - * it will be multithreaded. Use qDebug() instead. + * it will be multithreaded. Use tqDebug() instead. * See B.K.O #133026 for details. * * This program is free software; you can redistribute it @@ -255,7 +255,7 @@ void ActionThread::run() default: { - qWarning("KIPIRawConverterPlugin:ActionThread: Unknown action specified"); + tqWarning("KIPIRawConverterPlugin:ActionThread: Unknown action specified"); delete d; } } diff --git a/kipi-plugins/rawconverter/rawdecodingiface.cpp b/kipi-plugins/rawconverter/rawdecodingiface.cpp index d9d8e5f..c2653ee 100644 --- a/kipi-plugins/rawconverter/rawdecodingiface.cpp +++ b/kipi-plugins/rawconverter/rawdecodingiface.cpp @@ -10,7 +10,7 @@ * Copyright (C) 2006-2008 by Gilles Caulier * * NOTE: Do not use kdDebug() in this implementation because - * it will be multithreaded. Use qDebug() instead. + * it will be multithreaded. Use tqDebug() instead. * See B.K.O #133026 for details. * * This program is free software; you can redistribute it @@ -215,7 +215,7 @@ bool RawDecodingIface::loadedFromDcraw(const TQString& filePath, if (!f) { - qDebug("Failed to open JPEG file for writing"); + tqDebug("Failed to open JPEG file for writing"); return false; } @@ -276,7 +276,7 @@ bool RawDecodingIface::loadedFromDcraw(const TQString& filePath, if (!f) { - qDebug("Failed to open PNG file for writing"); + tqDebug("Failed to open PNG file for writing"); return false; } @@ -353,7 +353,7 @@ bool RawDecodingIface::loadedFromDcraw(const TQString& filePath, if (!tif) { - qDebug("Failed to open TIFF file for writing"); + tqDebug("Failed to open TIFF file for writing"); return false; } @@ -430,7 +430,7 @@ bool RawDecodingIface::loadedFromDcraw(const TQString& filePath, if (!bufThumb) { - qDebug("Cannot allocate memory buffer for TIFF thumbnail."); + tqDebug("Cannot allocate memory buffer for TIFF thumbnail."); TIFFClose(tif); return false; } @@ -451,7 +451,7 @@ bool RawDecodingIface::loadedFromDcraw(const TQString& filePath, if (!TIFFWriteScanline(tif, bufThumb, y, 0)) { - qDebug("Cannot write TIFF thumbnail to target file."); + tqDebug("Cannot write TIFF thumbnail to target file."); _TIFFfree(bufThumb); TIFFClose(tif); return false; @@ -473,7 +473,7 @@ bool RawDecodingIface::loadedFromDcraw(const TQString& filePath, FILE* f = fopen(TQFile::encodeName(destPath), "wb"); if (!f) { - qDebug("Failed to open ppm file for writing"); + tqDebug("Failed to open ppm file for writing"); return false; } @@ -484,7 +484,7 @@ bool RawDecodingIface::loadedFromDcraw(const TQString& filePath, } default: { - qDebug("Invalid output file format"); + tqDebug("Invalid output file format"); return false; } } @@ -515,7 +515,7 @@ void RawDecodingIface::writeRawProfile(png_struct *ping, png_info *ping_info, ch const uchar hex[16] = {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'}; - qDebug("Writing Raw profile: type=%s, length=%i", profile_type, (int)length); + tqDebug("Writing Raw profile: type=%s, length=%i", profile_type, (int)length); text = (png_textp) png_malloc(ping, (png_uint_32) sizeof(png_text)); description_length = strlen((const char *) profile_type); diff --git a/kipi-plugins/sendimages/sendimages.cpp b/kipi-plugins/sendimages/sendimages.cpp index ce22104..994e31a 100644 --- a/kipi-plugins/sendimages/sendimages.cpp +++ b/kipi-plugins/sendimages/sendimages.cpp @@ -168,18 +168,18 @@ void SendImages::run() if ((m_sendImagesDialog->m_comment2ImageName->isChecked() == true ) && !commentItem.isEmpty() ) { - qDebug("commentItem: %s",commentItem.ascii()); + tqDebug("commentItem: %s",commentItem.ascii()); } else { commentItem = ItemName.left(ItemName.findRev('.')); - qDebug("commentItem is empty"); + tqDebug("commentItem is empty"); } //TQString TempFileName = (*it).directory().section('/', -1); TQString TempFileName=(*it).path().section('/', -2,-2)+"/"+commentItem+ +"."+(*it).path().section('.', -1,-1); - qDebug("TempFileName: %s",TempFileName.ascii()); + tqDebug("TempFileName: %s",TempFileName.ascii()); // Thunderbird does not like (). Replace them, BUG:131343 @@ -192,11 +192,11 @@ void SendImages::run() //If TempFileName already exists, add a number oder increase number if (entry_already_exists(m_filesSendList,m_tmp + TempFileName)) { - qDebug ("I entered"); + tqDebug ("I entered"); TQString secondpart=(m_tmp+TempFileName).section(".",-1,-1); TQString firstpart= (m_tmp+TempFileName).left((m_tmp+TempFileName).length()-secondpart.length()-1); - qDebug("Firstpart: %s \n Secondpart: %s",firstpart.ascii(), secondpart.ascii()); + tqDebug("Firstpart: %s \n Secondpart: %s",firstpart.ascii(), secondpart.ascii()); //Add _integer value in the end and prove again int int_index=2; TQString index=TQString::number(int_index,10); @@ -204,7 +204,7 @@ void SendImages::run() { int_index++; index=TQString::number(int_index,10); - qDebug("Index: %s",index.ascii()); + tqDebug("Index: %s",index.ascii()); } TQString temp=firstpart + "_"+index+"."+secondpart; TempFileName=temp.right(temp.length()-m_tmp.length()); @@ -219,7 +219,7 @@ void SendImages::run() //TQString imageNameFormat = TempFileName.replace(TQChar('.'), "_") + // extension(m_imageFormat); - qDebug( "Resizing %s-> '%s %s ' (%s ; %d )",imageName.ascii(), + tqDebug( "Resizing %s-> '%s %s ' (%s ; %d )",imageName.ascii(), m_tmp.ascii(),TempFileName.ascii(),m_imageFormat.ascii(),m_sizeFactor); // Return value for resizeImageProcess-function, in order to avoid reopening @@ -260,7 +260,7 @@ void SendImages::run() } else { - qWarning( "createThumb::No Exif Data Found") ; + tqWarning( "createThumb::No Exif Data Found") ; } d = new KIPISendimagesPlugin::EventData; @@ -418,21 +418,21 @@ KURL::List SendImages::divideEmails(void) for ( KURL::List::Iterator it = m_filesSendList.begin() ; it != m_filesSendList.end() ; ++it ) { - qDebug("m_attachmentlimit: %lu ", m_attachmentlimit); + tqDebug("m_attachmentlimit: %lu ", m_attachmentlimit); TQString imageName = (*it).path(); - qDebug("Imagename: %s", imageName.ascii()); + tqDebug("Imagename: %s", imageName.ascii()); TQFile file(imageName); - qDebug("filesize: %lu", file.size()); + tqDebug("filesize: %lu", file.size()); if ((mylistsize + file.size()) <= m_attachmentlimit) { mylistsize+=file.size(); sendnow.append(*it); - qDebug("mylistsize: %lu; attachmentlimit: %lu",mylistsize, m_attachmentlimit); + tqDebug("mylistsize: %lu; attachmentlimit: %lu",mylistsize, m_attachmentlimit); } else { - qDebug("file %s is out of %lu",imageName.ascii(),m_attachmentlimit); + tqDebug("file %s is out of %lu",imageName.ascii(),m_attachmentlimit); filesSendList.append(*it); } } @@ -450,13 +450,13 @@ bool SendImages::invokeMailAgent(void) KURL::List filelist; kurllistdeepcopy(m_filesSendList_copy,m_filesSendList); - qDebug("invokeMailagent1: Number of elements in m_filesSendList=%d, and in m_filesSendList_copy=%d)",(int)m_filesSendList.size(),(int)m_filesSendList_copy.size()); + tqDebug("invokeMailagent1: Number of elements in m_filesSendList=%d, and in m_filesSendList_copy=%d)",(int)m_filesSendList.size(),(int)m_filesSendList_copy.size()); while (!((filelist=divideEmails()).empty())) { - qDebug("invokeMailagent2: Number of elements in m_filesSendList=%d, and in m_filesSendList_copy=%d)",(int) m_filesSendList.size(),(int)m_filesSendList_copy.size()); - qDebug("number of elements in filelist %d",(int)filelist.size()); - qDebug("number of elements in m_filelist %d", (int)m_filesSendList.size()); + tqDebug("invokeMailagent2: Number of elements in m_filesSendList=%d, and in m_filesSendList_copy=%d)",(int) m_filesSendList.size(),(int)m_filesSendList_copy.size()); + tqDebug("number of elements in filelist %d",(int)filelist.size()); + tqDebug("number of elements in m_filelist %d", (int)m_filesSendList.size()); if ( m_sendImagesDialog->m_mailAgentName->currentText() == "Default" ) { KApplication::kApplication()->invokeMailer( @@ -587,7 +587,7 @@ bool SendImages::invokeMailAgent(void) else if ( m_sendImagesDialog->m_mailAgentName->currentText() == "Thunderbird" ) { *m_mailAgentProc << m_thunderbirdUrl << "-remote"; - qDebug("URL: %s", m_thunderbirdUrl.ascii()); + tqDebug("URL: %s", m_thunderbirdUrl.ascii()); } else if ( m_sendImagesDialog->m_mailAgentName->currentText() == "GmailAgent" ) { @@ -621,7 +621,7 @@ bool SendImages::invokeMailAgent(void) connect(m_mailAgentProc, TQT_SIGNAL(receivedStderr(KProcess *, char*, int)), this, TQT_SLOT(slotMozillaReadStderr(KProcess*, char*, int))); } - qDebug ("%s", Temp.ascii()); + tqDebug ("%s", Temp.ascii()); if ( m_mailAgentProc->start(KProcess::NotifyOnExit , KProcess::All) == false ) KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), @@ -756,8 +756,8 @@ bool SendImages::copyImageProcess(const TQString &oldFilePath, const TQString &D const TQString &ImageName) { //same file, no need to copy - qDebug("DestPath: %s",(DestPath).ascii()); - qDebug("ImageName: %s",(ImageName).ascii()); + tqDebug("DestPath: %s",(DestPath).ascii()); + tqDebug("ImageName: %s",(ImageName).ascii()); if(oldFilePath.compare(DestPath+ImageName) == 0) return true; @@ -834,7 +834,7 @@ bool SendImages::resizeImageProcess(const TQString &SourcePath, const TQString & if ( scaleImg.width() != w || scaleImg.height() != h ) { - qDebug ("Resizing failed. Aborting."); + tqDebug ("Resizing failed. Aborting."); return false; } @@ -844,7 +844,7 @@ bool SendImages::resizeImageProcess(const TQString &SourcePath, const TQString & if ( !img.save(DestPath + ImageName, ImageFormat.latin1(), ImageCompression) ) { - qDebug("Saving failed with specific compression value. Aborting."); + tqDebug("Saving failed with specific compression value. Aborting."); return false; } @@ -858,13 +858,13 @@ bool SendImages::resizeImageProcess(const TQString &SourcePath, const TQString & wait 5 seconds and start SlotMozillaTimeout() */ void SendImages::slotMozillaExited(KProcess*) { - qDebug("slotMozillaExited"); + tqDebug("slotMozillaExited"); ///Here would be the right point to clear the sendlist in order to avoid infinite resendings!! m_filesSendList.clear(); ///Also disconnect SLOT m_mailAgentProc->disconnect(TQT_SIGNAL(processExited(KProcess *)), this, TQT_SLOT(slotMozillaExited(KProcess*))); - qDebug("Number of elements in m_filesSendList=%d, and in m_filesSendList_copy=%d)",(int)m_filesSendList.size(),(int)m_filesSendList_copy.size()); + tqDebug("Number of elements in m_filesSendList=%d, and in m_filesSendList_copy=%d)",(int)m_filesSendList.size(),(int)m_filesSendList_copy.size()); if ( m_mozillaStdErr.find("No running window found") != -1 ) // No remote Mozilla | Netscape | { // Thunderbird env. loaded ! m_mailAgentProc2 = new KProcess; // Init a new env. @@ -902,7 +902,7 @@ void SendImages::slotMozillaTimeout(void) { m_mozillaTimer->disconnect(TQT_SIGNAL(timeout()), this, TQT_SLOT(slotMozillaTimeout())); - qDebug("slotMozillaTimeout: Number of elements in m_filesSendList=%d, and in m_filesSendList_copy=%d)",(int)m_filesSendList.size(),(int)m_filesSendList_copy.size()); + tqDebug("slotMozillaTimeout: Number of elements in m_filesSendList=%d, and in m_filesSendList_copy=%d)",(int)m_filesSendList.size(),(int)m_filesSendList_copy.size()); kurllistdeepcopy(m_filesSendList,m_filesSendList_copy); invokeMailAgent(); @@ -918,26 +918,26 @@ void SendImages::slotMozillaReadStderr(KProcess*, char *buffer, int buflen) bool SendImages::kurllistdeepcopy(KURL::List &Destination, KURL::List Source) { Destination.clear(); - qDebug("kurllistdeepcopy started"); + tqDebug("kurllistdeepcopy started"); for ( KURL::List::Iterator it = Source.begin() ; it != Source.end() ; ++it ) { //TQString Tempstring; TQString Getstring=(*it).path(); TQString Tempstring=Getstring.copy(); Destination.append(Tempstring); - qDebug("%s",Tempstring.ascii()); + tqDebug("%s",Tempstring.ascii()); } /* - qDebug("deepcopytest"); + tqDebug("deepcopytest"); Source.clear(); for ( KURL::List::Iterator it = Destination.begin() ; it != Destination.end() ; ++it ) { - qDebug("%s",(*it).path().ascii()); + tqDebug("%s",(*it).path().ascii()); } */ - qDebug("kurllistdeepcopy ended\n"); + tqDebug("kurllistdeepcopy ended\n"); return true; } diff --git a/kipi-plugins/slideshow/screenproperties.cpp b/kipi-plugins/slideshow/screenproperties.cpp index c46d4df..aa6e92d 100644 --- a/kipi-plugins/slideshow/screenproperties.cpp +++ b/kipi-plugins/slideshow/screenproperties.cpp @@ -60,7 +60,7 @@ namespace KIPISlideShowPlugin activeScreen)); screenRate = XRRConfigCurrentRate(config); XRRFreeScreenConfigInfo(config); - //qDebug("monitor refresh rate %d Hz", screenRate); + //tqDebug("monitor refresh rate %d Hz", screenRate); // Find the frame rate, that matches the monitor's refresh rate best. // We will choose between 25, 28 and 30 Hz, to get smooth animations. @@ -88,7 +88,7 @@ namespace KIPISlideShowPlugin } } while (++i < 3); - //qDebug("using %d Hz as framerate for effects", bestRate); + //tqDebug("using %d Hz as framerate for effects", bestRate); return bestRate; } diff --git a/kipi-plugins/slideshow/slideshowgl.cpp b/kipi-plugins/slideshow/slideshowgl.cpp index 4e22a65..cc31b96 100644 --- a/kipi-plugins/slideshow/slideshowgl.cpp +++ b/kipi-plugins/slideshow/slideshowgl.cpp @@ -544,7 +544,7 @@ void SlideShowGL::montage(TQImage& top, TQImage& bot) int bw = bot.width(); int bh = bot.height(); if (tw > bw || th > bh) - qFatal("Top Image should be smaller or same size as Bottom Image"); + tqFatal("Top Image should be smaller or same size as Bottom Image"); if (top.depth() != 32) top = top.convertDepth(32); if (bot.depth() != 32) bot = bot.convertDepth(32); diff --git a/kipi-plugins/slideshow/slideshowkb.cpp b/kipi-plugins/slideshow/slideshowkb.cpp index 8e89d64..c8b1ddf 100644 --- a/kipi-plugins/slideshow/slideshowkb.cpp +++ b/kipi-plugins/slideshow/slideshowkb.cpp @@ -258,7 +258,7 @@ namespace KIPISlideShowPlugin m_effect = new BlendKBEffect(this, needFadeIn); break; default: - qDebug("Unknown transition effect, falling back to crossfade"); + tqDebug("Unknown transition effect, falling back to crossfade"); m_effect = new BlendKBEffect(this, needFadeIn); } }