View | Details | Raw Unified
Collapse All | Expand All

(-) widgets/qheader.cpp (-30 / +36 lines)
 Lines 1043-1050   bool QDataTable::insertCurrent() Link Here 
	return FALSE;
	return FALSE;
    if ( !sqlCursor()->canInsert() ) {
    if ( !sqlCursor()->canInsert() ) {
#ifdef QT_CHECK_RANGE
#ifdef QT_CHECK_RANGE
	qWarning("QDataTable::insertCurrent: insert not allowed for " +
	qWarning("QDataTable::insertCurrent: insert not allowed for %s",
		 sqlCursor()->name() );
		 sqlCursor()->name().latin1() );
#endif
#endif
	endInsert();
	endInsert();
	return FALSE;
	return FALSE;
 Lines 1117-1132   bool QDataTable::updateCurrent() Link Here 
	return FALSE;
	return FALSE;
    if ( sqlCursor()->primaryIndex().count() == 0 ) {
    if ( sqlCursor()->primaryIndex().count() == 0 ) {
#ifdef QT_CHECK_RANGE
#ifdef QT_CHECK_RANGE
	qWarning("QDataTable::updateCurrent: no primary index for " +
	qWarning("QDataTable::updateCurrent: no primary index for %s",
		 sqlCursor()->name() );
		 sqlCursor()->name().latin1() );
#endif
#endif
	endUpdate();
	endUpdate();
	return FALSE;
	return FALSE;
    }
    }
    if ( !sqlCursor()->canUpdate() ) {
    if ( !sqlCursor()->canUpdate() ) {
#ifdef QT_CHECK_RANGE
#ifdef QT_CHECK_RANGE
	qWarning("QDataTable::updateCurrent: updates not allowed for " +
	qWarning("QDataTable::updateCurrent: updates not allowed for %s",
		 sqlCursor()->name() );
		 sqlCursor()->name().latin1() );
#endif
#endif
	endUpdate();
	endUpdate();
	return FALSE;
	return FALSE;
 Lines 1191-1198   bool QDataTable::deleteCurrent() Link Here 
	return FALSE;
	return FALSE;
    if ( sqlCursor()->primaryIndex().count() == 0 ) {
    if ( sqlCursor()->primaryIndex().count() == 0 ) {
#ifdef QT_CHECK_RANGE
#ifdef QT_CHECK_RANGE
	qWarning("QDataTable::deleteCurrent: no primary index " +
	qWarning("QDataTable::deleteCurrent: no primary index %s",
		 sqlCursor()->name() );
		 sqlCursor()->name().latin1() );
#endif
#endif
	return FALSE;
	return FALSE;
    }
    }
 Lines 234-240   QSqlDatabase* QSqlDatabaseManager::datab Link Here 
	db->open();
	db->open();
#ifdef QT_CHECK_RANGE
#ifdef QT_CHECK_RANGE
	if ( !db->isOpen() )
	if ( !db->isOpen() )
	    qWarning("QSqlDatabaseManager::database: unable to open database: " + db->lastError().databaseText() + ": " + db->lastError().driverText() );
	    qWarning("QSqlDatabaseManager::database: unable to open database: %s: %s",
                    db->lastError().databaseText().latin1(), db->lastError().driverText().latin1() );
#endif
#endif
    }
    }
    return db;
    return db;
 Lines 686-692   void QSqlDatabase::init( const QString& Link Here 
    if ( !d->driver ) {
    if ( !d->driver ) {
#ifdef QT_CHECK_RANGE
#ifdef QT_CHECK_RANGE
	qWarning( "QSqlDatabase: %s driver not loaded", type.latin1() );
	qWarning( "QSqlDatabase: %s driver not loaded", type.latin1() );
	qWarning( "QSqlDatabase: available drivers: " + drivers().join(" ") );
	qWarning( "QSqlDatabase: available drivers: %s", drivers().join(" ").latin1() );
#endif
#endif
	d->driver = new QNullDriver();
	d->driver = new QNullDriver();
	d->driver->setLastError( QSqlError( "Driver not loaded", "Driver not loaded" ) );
	d->driver->setLastError( QSqlError( "Driver not loaded", "Driver not loaded" ) );
 Lines 273-279   QSqlIndex QSqlIndex::fromStringList( con Link Here 
	if ( field )
	if ( field )
	    newSort.append( *field, desc );
	    newSort.append( *field, desc );
	else
	else
	    qWarning( "QSqlIndex::fromStringList: unknown field: '" + f + "'" );
	    qWarning( "QSqlIndex::fromStringList: unknown field: '%s'", f.latin1());
    }
    }
    return newSort;
    return newSort;
}
}
 Lines 298-304   int QSqlRecord::position( const QString& Link Here 
	    return i;
	    return i;
    }
    }
#ifdef QT_CHECK_RANGE
#ifdef QT_CHECK_RANGE
    qWarning( "QSqlRecord::position: unable to find field " + name );
    qWarning( "QSqlRecord::position: unable to find field %s", name.latin1() );
#endif
#endif
    return -1;
    return -1;
}
}
 Lines 313-319   QSqlField* QSqlRecord::field( int i ) Link Here 
    checkDetach();
    checkDetach();
    if ( !sh->d->contains( i ) ) {
    if ( !sh->d->contains( i ) ) {
#ifdef QT_CHECK_RANGE
#ifdef QT_CHECK_RANGE
	qWarning( "QSqlRecord::field: index out of range: " + QString::number( i ) );
	qWarning( "QSqlRecord::field: index out of range: %d", i );
#endif
#endif
	return 0;
	return 0;
    }
    }
 Lines 344-350   const QSqlField* QSqlRecord::field( int Link Here 
{
{
    if ( !sh->d->contains( i ) ) {
    if ( !sh->d->contains( i ) ) {
#ifdef QT_CHECK_RANGE
#ifdef QT_CHECK_RANGE
	qWarning( "QSqlRecord::field: index out of range: " + QString::number( i ) );
	qWarning( "QSqlRecord::field: index out of range: %d", i  );
#endif // QT_CHECK_RANGE
#endif // QT_CHECK_RANGE
	return 0;
	return 0;
    }
    }
 Lines 843-853   void QGDict::statistics() const Link Here 
    QString line;
    QString line;
    line.fill( '-', 60 );
    line.fill( '-', 60 );
    double real, ideal;
    double real, ideal;
    qDebug( line.ascii() );
    qDebug( "%s", line.ascii() );
    qDebug( "DICTIONARY STATISTICS:" );
    qDebug( "DICTIONARY STATISTICS:" );
    if ( count() == 0 ) {
    if ( count() == 0 ) {
	qDebug( "Empty!" );
	qDebug( "Empty!" );
	qDebug( line.ascii() );
	qDebug( "%s", line.ascii() );
	return;
	return;
    }
    }
    real = 0.0;
    real = 0.0;
 Lines 868-874   void QGDict::statistics() const Link Here 
	while ( b-- )
	while ( b-- )
	    *pbuf++ = '*';
	    *pbuf++ = '*';
	*pbuf = '\0';
	*pbuf = '\0';
	qDebug( buf );
	qDebug( "%s", buf );
	i++;
	i++;
    }
    }
    qDebug( "Array size = %d", size() );
    qDebug( "Array size = %d", size() );
 Lines 876-882   void QGDict::statistics() const Link Here 
    qDebug( "Real dist  = %g", real );
    qDebug( "Real dist  = %g", real );
    qDebug( "Rand dist  = %g", ideal );
    qDebug( "Rand dist  = %g", ideal );
    qDebug( "Real/Rand  = %g", real/ideal );
    qDebug( "Real/Rand  = %g", real/ideal );
    qDebug( line.ascii() );
    qDebug( "%s", line.ascii() );
#endif // QT_DEBUG
#endif // QT_DEBUG
}
}
 Lines 680-686   void qSystemWarning( const char* msg, in Link Here 
    if ( code != -1 )
    if ( code != -1 )
	qWarning( "%s\n\tError code %d - %s", msg, code, strerror( code ) );
	qWarning( "%s\n\tError code %d - %s", msg, code, strerror( code ) );
    else
    else
	qWarning( msg );
	qWarning( "%s", msg );
#endif
#endif
#else
#else
    Q_UNUSED( msg );
    Q_UNUSED( msg );
 Lines 161-167   public: Link Here 
    QCString	copy()	const;
    QCString	copy()	const;
    QCString    &sprintf( const char *format, ... );
    QCString    &sprintf( const char *format, ... )
#if defined(Q_CC_GNU) && !defined(__INSURE__)
    __attribute__ ((format (printf, 2, 3)))
#endif
        ;
    int		find( char c, int index=0, bool cs=TRUE ) const;
    int		find( char c, int index=0, bool cs=TRUE ) const;
    int		find( const char *str, int index=0, bool cs=TRUE ) const;
    int		find( const char *str, int index=0, bool cs=TRUE ) const;
 Lines 638-644   void QGCache::statistics() const Link Here 
#if defined(QT_DEBUG)
#if defined(QT_DEBUG)
    QString line;
    QString line;
    line.fill( '*', 80 );
    line.fill( '*', 80 );
    qDebug( line.ascii() );
    qDebug( "%s", line.ascii() );
    qDebug( "CACHE STATISTICS:" );
    qDebug( "CACHE STATISTICS:" );
    qDebug( "cache contains %d item%s, with a total cost of %d",
    qDebug( "cache contains %d item%s, with a total cost of %d",
	   count(), count() != 1 ? "s" : "", tCost );
	   count(), count() != 1 ? "s" : "", tCost );
 Lines 659-665   void QGCache::statistics() const Link Here 
	   lruList->dumps != 1 ? "have" : "has", lruList->dumpCosts );
	   lruList->dumps != 1 ? "have" : "has", lruList->dumpCosts );
    qDebug( "Statistics from internal dictionary class:" );
    qDebug( "Statistics from internal dictionary class:" );
    dict->statistics();
    dict->statistics();
    qDebug( line.ascii() );
    qDebug( "%s", line.ascii() );
#endif
#endif
}
}
 Lines 1-3    Link Here 
#ifndef XML_QSVGDEVICE.CPP
#define XML_QSVGDEVICE.CPP
/****************************************************************************
/****************************************************************************
** $Id: qt/qsvgdevice.cpp   3.3.8   edited Jan 11 14:46 $
** $Id: qt/qsvgdevice.cpp   3.3.8   edited Jan 11 14:46 $
**
**
 Lines 978-984   bool QSvgDevice::play( const QDomNode &n Link Here 
		// ### catch references to embedded .svg files
		// ### catch references to embedded .svg files
		QPixmap pix;
		QPixmap pix;
		if ( !pix.load( href ) ) {
		if ( !pix.load( href ) ) {
		    qWarning( "QSvgDevice::play: Couldn't load image "+href );
		    qWarning( "QSvgDevice::play: Couldn't load image %s", href.latin1() );
		    break;
		    break;
		}
		}
		pt->drawPixmap( QRect( x1, y1, w, h ), pix );
		pt->drawPixmap( QRect( x1, y1, w, h ), pix );
 Lines 1024-1031   bool QSvgDevice::play( const QDomNode &n Link Here 
                break;
                break;
	    }
	    }
	case InvalidElement:
	case InvalidElement:
	    qWarning( "QSvgDevice::play: unknown element type " +
	    qWarning( "QSvgDevice::play: unknown element type %s",
		      node.nodeName() );
		      node.nodeName().latin1() );
	    break;
	    break;
	};
	};
 Lines 1111-1117   double QSvgDevice::parseLen( const QStri Link Here 
{
{
    QRegExp reg( QString::fromLatin1("([+-]?\\d*\\.*\\d*[Ee]?[+-]?\\d*)(em|ex|px|%|pt|pc|cm|mm|in|)$") );
    QRegExp reg( QString::fromLatin1("([+-]?\\d*\\.*\\d*[Ee]?[+-]?\\d*)(em|ex|px|%|pt|pc|cm|mm|in|)$") );
    if ( reg.search( str ) == -1 ) {
    if ( reg.search( str ) == -1 ) {
	qWarning( "QSvgDevice::parseLen: couldn't parse " + str );
	qWarning( "QSvgDevice::parseLen: couldn't parse %s ", str.latin1() );
	if ( ok )
	if ( ok )
	    *ok = FALSE;
	    *ok = FALSE;
	return 0.0;
	return 0.0;
 Lines 1140-1146   double QSvgDevice::parseLen( const QStri Link Here 
	else if ( u == "pc" )
	else if ( u == "pc" )
	    dbl *= m.logicalDpiX() / 6.0;
	    dbl *= m.logicalDpiX() / 6.0;
	else
	else
	    qWarning( "QSvgDevice::parseLen: Unknown unit " + u );
	    qWarning( "QSvgDevice::parseLen: Unknown unit %s",  u.latin1() );
    }
    }
    if ( ok )
    if ( ok )
	*ok = TRUE;
	*ok = TRUE;
 Lines 1586-1588   void QSvgDevice::applyTransform( QDomEle Link Here 
}
}
#endif // QT_NO_SVG
#endif // QT_NO_SVG
#endif // XML_QSVGDEVICE.CPP
 Lines 1873-1882   void QHeader::setUpdatesEnabled( bool en Link Here 
bool QHeader::reverse () const
bool QHeader::reverse () const
{
{
#if 0
#if 1
    return ( orient == Qt::Horizontal && QApplication::reverseLayout() );
    return ( orient == Qt::Horizontal && QApplication::reverseLayout() );
#else
    return FALSE;
#endif
#endif
}
}