summaryrefslogtreecommitdiffstats
path: root/libkscan
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-03-01 13:32:17 -0600
committerTimothy Pearson <[email protected]>2012-03-01 13:32:17 -0600
commitc509088a31cffd8e6d25c00a00414025426fc737 (patch)
tree06242637d2244aa79ad8812f39e64005ffc5ea91 /libkscan
parent913e257dbbebe29c4f356ebb9fc6e888d0d1ac75 (diff)
downloadtdegraphics-c509088a31cffd8e6d25c00a00414025426fc737.tar.gz
tdegraphics-c509088a31cffd8e6d25c00a00414025426fc737.zip
Rename additional global TQt functions
Diffstat (limited to 'libkscan')
-rw-r--r--libkscan/kscandevice.cpp16
-rw-r--r--libkscan/kscanoption.cpp12
2 files changed, 14 insertions, 14 deletions
diff --git a/libkscan/kscandevice.cpp b/libkscan/kscandevice.cpp
index c42d9bf7..ad6a9f9f 100644
--- a/libkscan/kscandevice.cpp
+++ b/libkscan/kscandevice.cpp
@@ -387,13 +387,13 @@ KScanStat KScanDevice::find_options()
#if 0
KScanOption *newOpt = new KScanOption( d->name );
const TQString qq = newOpt->get();
- qDebug( "INIT: <%s> = <%s>", d->name, qq );
+ tqDebug( "INIT: <%s> = <%s>", d->name, qq );
allOptionSet->insert( d->name, newOpt );
#endif
}
else if( d->type == SANE_TYPE_GROUP )
{
- // qDebug( "######### Group found: %s ########", d->title );
+ // tqDebug( "######### Group found: %s ########", d->title );
}
else
kdDebug(29000) << "Unable to detect option " << endl;
@@ -510,7 +510,7 @@ KScanStat KScanDevice::apply( KScanOption *opt, bool isGammaTable )
kdDebug(29000) << "* Setting status to reload options" << endl;
stat = KSCAN_RELOAD;
#if 0
- qDebug( "Emitting sigOptionChanged()" );
+ tqDebug( "Emitting sigOptionChanged()" );
emit( sigOptionsChanged() );
#endif
}
@@ -867,7 +867,7 @@ void KScanDevice::prepareScan( void )
while ( it.current() )
{
- // qDebug( "%s -> %d", it.currentKey().latin1(), *it.current() );
+ // tqDebug( "%s -> %d", it.currentKey().latin1(), *it.current() );
int descriptor = *it.current();
const SANE_Option_Descriptor *d = sane_get_option_descriptor( scanner_handle, descriptor );
@@ -1274,14 +1274,14 @@ void KScanDevice::doProcessABlock( void )
if( goOn && bytes_written < 1 )
{
- // qDebug( "No bytes written -> leaving out !" );
+ // tqDebug( "No bytes written -> leaving out !" );
goOn = false; /** No more data -> leave ! **/
}
if( goOn )
{
overall_bytes += bytes_written;
- // qDebug( "Bytes read: %d, bytes written: %d", bytes_written, rest_bytes );
+ // tqDebug( "Bytes read: %d, bytes written: %d", bytes_written, rest_bytes );
rptr = data; // + rest_bytes;
@@ -1333,7 +1333,7 @@ void KScanDevice::doProcessABlock( void )
{
chan = (eight_pix & 0x80)> 0 ? 0:1;
eight_pix = eight_pix << 1;
- //qDebug( "Setting on %d, %d: %d", pixel_x, pixel_y, chan );
+ //tqDebug( "Setting on %d, %d: %d", pixel_x, pixel_y, chan );
img->setPixel( pixel_x, pixel_y, chan );
pixel_x++;
if( pixel_x >= sane_scan_param.pixels_per_line )
@@ -1417,7 +1417,7 @@ void KScanDevice::doProcessABlock( void )
/* This is also hit after the normal finish of the scan. Most probably,
* the TQSocketnotifier fires for a few times after the scan has been
- * cancelled. Does it matter ? To see it, just uncomment the qDebug msg.
+ * cancelled. Does it matter ? To see it, just uncomment the tqDebug msg.
*/
kdDebug(29000) << "Stopping the scan progress !" << endl;
goOn = false;
diff --git a/libkscan/kscanoption.cpp b/libkscan/kscanoption.cpp
index 43b35d0b..4a820ee9 100644
--- a/libkscan/kscanoption.cpp
+++ b/libkscan/kscanoption.cpp
@@ -290,7 +290,7 @@ void KScanOption::slWidgetChange( int i )
*/
void KScanOption::slRedrawWidget( KScanOption *so )
{
- // qDebug( "Checking widget %s", (const char*) so->getName());
+ // tqDebug( "Checking widget %s", (const char*) so->getName());
int help = 0;
TQString string;
@@ -413,7 +413,7 @@ void KScanOption::slReload( void )
KScanOption::~KScanOption()
{
#ifdef MEM_DEBUG
- qDebug( "M: FREEing %d byte of option <%s>", buffer_size, (const char*) getName());
+ tqDebug( "M: FREEing %d byte of option <%s>", buffer_size, (const char*) getName());
#endif
}
@@ -757,7 +757,7 @@ bool KScanOption::set( const TQCString& c_string )
if( buffer_size >= c_string.length() )
{
memset( buffer, 0, buffer_size );
- qstrncpy( (char*) buffer, (const char*) c_string, buffer_size );
+ tqstrncpy( (char*) buffer, (const char*) c_string, buffer_size );
ret = true;
}
else
@@ -892,7 +892,7 @@ bool KScanOption::get( int *val ) const
return( false );
}
- // qDebug( "option::get returns %d", *val );
+ // tqDebug( "option::get returns %d", *val );
return( true );
}
@@ -971,7 +971,7 @@ TQStrList KScanOption::getList( ) const
while( *sstring )
{
- // qDebug( "This is in the stringlist: %s", *sstring );
+ // tqDebug( "This is in the stringlist: %s", *sstring );
strList.append( *sstring );
sstring++;
}
@@ -1181,7 +1181,7 @@ void *KScanOption::allocBuffer( long size )
if( size < 1 ) return( 0 );
#ifdef MEM_DEBUG
- qDebug( "M: Reserving %ld bytes of mem for <%s>", size, (const char*) getName() );
+ tqDebug( "M: Reserving %ld bytes of mem for <%s>", size, (const char*) getName() );
#endif
void *r = new char[ size ];