Rename additional global TQt functions

pull/21/head
Timothy Pearson 11 years ago
parent a684ecdece
commit 17e2ed52db

@ -207,7 +207,7 @@ void CertificateInfoWidgetImpl::startCertificateChainListing() {
return;
}
const char * fpr = mChain.front().primaryFingerprint();
if ( qstricmp( fpr, chainID ) == 0 ) {
if ( tqstricmp( fpr, chainID ) == 0 ) {
kdDebug() << "CertificateInfoWidgetImpl::startCertificateChainListing(): chain_id equals fingerprint -> found root" << endl;
return;
}

@ -182,7 +182,7 @@ CertificateWizardImpl::~CertificateWizardImpl()
static const char * oidForAttributeName( const TQString & attr ) {
TQCString attrUtf8 = attr.utf8();
for ( unsigned int i = 0 ; i < numOidMaps ; ++i )
if ( qstricmp( attrUtf8, oidmap[i].name ) == 0 )
if ( tqstricmp( attrUtf8, oidmap[i].name ) == 0 )
return oidmap[i].oid;
return 0;
}

@ -641,7 +641,7 @@ void CertManager::newCertificate()
*/
void CertManager::revokeCertificate()
{
qDebug("Not Yet Implemented");
tqDebug("Not Yet Implemented");
}
/**
@ -650,7 +650,7 @@ void CertManager::revokeCertificate()
*/
void CertManager::extendCertificate()
{
qDebug("Not Yet Implemented");
tqDebug("Not Yet Implemented");
}
@ -971,7 +971,7 @@ void CertManager::slotStderr( KProcess*, char* buf, int len ) {
*/
void CertManager::importCRLFromLDAP()
{
qDebug("Not Yet Implemented");
tqDebug("Not Yet Implemented");
}
void CertManager::slotViewCRLs() {
@ -1008,11 +1008,11 @@ static void showDeleteError( TQWidget * parent, const GpgME::Error & err ) {
}
static bool ByFingerprint( const GpgME::Key & left, const GpgME::Key & right ) {
return qstricmp( left.primaryFingerprint(), right.primaryFingerprint() ) < 0 ;
return tqstricmp( left.primaryFingerprint(), right.primaryFingerprint() ) < 0 ;
}
static bool WithRespectToFingerprints( const GpgME::Key & left, const GpgME::Key & right ) {
return qstricmp( left.primaryFingerprint(), right.primaryFingerprint() ) == 0;
return tqstricmp( left.primaryFingerprint(), right.primaryFingerprint() ) == 0;
}
void CertManager::slotDeleteCertificate() {

@ -378,11 +378,11 @@ public:
RefreshKeysJob * refreshKeysJob() const { return 0; }
SpecialJob * specialJob( const char * type, const TQMap<TQString,TQVariant> & args ) const {
if ( qstricmp( type, "x-obtain-keys" ) == 0 && args.size() == 0 )
if ( tqstricmp( type, "x-obtain-keys" ) == 0 && args.size() == 0 )
return new ObtainKeysJob();
if ( qstricmp( type, "x-encrypt" ) == 0 && args.size() == 0 )
if ( tqstricmp( type, "x-encrypt" ) == 0 && args.size() == 0 )
return new ChiasmusJob( ChiasmusJob::Encrypt );
if ( qstricmp( type, "x-decrypt" ) == 0 && args.size() == 0 )
if ( tqstricmp( type, "x-decrypt" ) == 0 && args.size() == 0 )
return new ChiasmusJob( ChiasmusJob::Decrypt );
kdDebug(5150) << "ChiasmusBackend::Protocol: tried to instantiate unknown job type \""
<< type << "\"" << endl;
@ -422,7 +422,7 @@ Kleo::CryptoConfig * Kleo::ChiasmusBackend::config() const {
}
Kleo::CryptoBackend::Protocol * Kleo::ChiasmusBackend::protocol( const char * name ) const {
if ( qstricmp( name, "Chiasmus" ) != 0 )
if ( tqstricmp( name, "Chiasmus" ) != 0 )
return 0;
if ( !mProtocol )
if ( checkForChiasmus() )
@ -464,7 +464,7 @@ bool Kleo::ChiasmusBackend::checkForChiasmus( TQString * reason ) const {
}
bool Kleo::ChiasmusBackend::checkForProtocol( const char * name, TQString * reason ) const {
if ( qstricmp( name, "Chiasmus" ) == 0 )
if ( tqstricmp( name, "Chiasmus" ) == 0 )
return checkForChiasmus( reason );
if ( reason )
*reason = i18n( "Unsupported protocol \"%1\"" ).arg( name );
@ -472,7 +472,7 @@ bool Kleo::ChiasmusBackend::checkForProtocol( const char * name, TQString * reas
}
bool Kleo::ChiasmusBackend::supportsProtocol( const char * name ) const {
return qstricmp( name, "Chiasmus" ) == 0;
return tqstricmp( name, "Chiasmus" ) == 0;
}
const char * Kleo::ChiasmusBackend::enumerateProtocols( int i ) const {

@ -109,9 +109,9 @@ bool Kleo::QGpgMEBackend::checkForSMIME( TQString * reason ) const {
}
bool Kleo::QGpgMEBackend::checkForProtocol( const char * name, TQString * reason ) const {
if ( qstricmp( name, OpenPGP ) == 0 )
if ( tqstricmp( name, OpenPGP ) == 0 )
return check( GpgME::Context::OpenPGP, reason );
if ( qstricmp( name, SMIME ) == 0 )
if ( tqstricmp( name, SMIME ) == 0 )
return check( GpgME::Context::CMS, reason );
if ( reason )
*reason = i18n( "Unsupported protocol \"%1\"" ).arg( name );
@ -133,15 +133,15 @@ Kleo::CryptoBackend::Protocol * Kleo::QGpgMEBackend::smime() const {
}
Kleo::CryptoBackend::Protocol * Kleo::QGpgMEBackend::protocol( const char * name ) const {
if ( qstricmp( name, OpenPGP ) == 0 )
if ( tqstricmp( name, OpenPGP ) == 0 )
return openpgp();
if ( qstricmp( name, SMIME ) == 0 )
if ( tqstricmp( name, SMIME ) == 0 )
return smime();
return 0;
}
bool Kleo::QGpgMEBackend::supportsProtocol( const char * name ) const {
return qstricmp( name, OpenPGP ) == 0 || qstricmp( name, SMIME ) == 0;
return tqstricmp( name, OpenPGP ) == 0 || tqstricmp( name, SMIME ) == 0;
}
const char * Kleo::QGpgMEBackend::enumerateProtocols( int i ) const {

@ -211,7 +211,7 @@ static const char * defaultBackend( const char * proto ) {
{ "Chiasmus", "chiasmus" },
};
for ( unsigned int i = 0 ; i < sizeof defaults / sizeof *defaults ; ++i )
if ( qstricmp( proto, defaults[i].proto ) == 0 )
if ( tqstricmp( proto, defaults[i].proto ) == 0 )
return defaults[i].backend;
return 0;
}
@ -238,10 +238,10 @@ namespace {
CaseInsensitiveString( const char * s ) : m( s ) {}
#define make_operator( op ) \
bool operator op( const CaseInsensitiveString & other ) const { \
return qstricmp( m, other.m ) op 0; \
return tqstricmp( m, other.m ) op 0; \
} \
bool operator op( const char * other ) const { \
return qstricmp( m, other ) op 0; \
return tqstricmp( m, other ) op 0; \
}
make_operator( == )
make_operator( != )

@ -52,7 +52,7 @@ namespace Kleo {
struct lt_i_str {
bool operator()( const char * one, const char * two ) const {
return qstricmp( one, two ) < 0;
return tqstricmp( one, two ) < 0;
}
};

@ -124,7 +124,7 @@ static int inquire( void * void_ctx, const char * keyword ) {
return gpg_error( GPG_ERR_NOT_IMPLEMENTED );
if ( const gpg_error_t err = assuan_send_data( ctx, it->second.c_str(), it->second.size() ) ) {
qDebug( "assuan_write_data: %s", gpg_strerror( err ) );
tqDebug( "assuan_write_data: %s", gpg_strerror( err ) );
return err;
}
@ -196,7 +196,7 @@ int main( int argc, char * argv[] ) {
assuan_context_t ctx = 0;
if ( const gpg_error_t err = assuan_socket_connect_ext( &ctx, socket, -1, 1 ) ) {
qDebug( "%s", assuan_exception( err, "assuan_socket_connect_ext" ).what() );
tqDebug( "%s", assuan_exception( err, "assuan_socket_connect_ext" ).what() );
return 1;
}
@ -204,12 +204,12 @@ int main( int argc, char * argv[] ) {
for ( std::vector<int>::const_iterator it = inFDs.begin(), end = inFDs.end() ; it != end ; ++it ) {
if ( const gpg_error_t err = assuan_sendfd( ctx, *it ) ) {
qDebug( "%s", assuan_exception( err, "assuan_sendfd( inFD )" ).what() );
tqDebug( "%s", assuan_exception( err, "assuan_sendfd( inFD )" ).what() );
return 1;
}
if ( const gpg_error_t err = assuan_transact( ctx, "INPUT FD", 0, 0, 0, 0, 0, 0 ) ) {
qDebug( "%s", assuan_exception( err, "INPUT FD" ).what() );
tqDebug( "%s", assuan_exception( err, "INPUT FD" ).what() );
return 1;
}
}
@ -220,7 +220,7 @@ int main( int argc, char * argv[] ) {
sprintf( buffer, "INPUT FILE=%s", hexencode( *it ).c_str() );
if ( const gpg_error_t err = assuan_transact( ctx, buffer, 0, 0, 0, 0, 0, 0 ) ) {
qDebug( "%s", assuan_exception( err, buffer ).what() );
tqDebug( "%s", assuan_exception( err, buffer ).what() );
return 1;
}
}
@ -228,12 +228,12 @@ int main( int argc, char * argv[] ) {
for ( std::vector<int>::const_iterator it = msgFDs.begin(), end = msgFDs.end() ; it != end ; ++it ) {
if ( const gpg_error_t err = assuan_sendfd( ctx, *it ) ) {
qDebug( "%s", assuan_exception( err, "assuan_sendfd( msgFD )" ).what() );
tqDebug( "%s", assuan_exception( err, "assuan_sendfd( msgFD )" ).what() );
return 1;
}
if ( const gpg_error_t err = assuan_transact( ctx, "MESSAGE FD", 0, 0, 0, 0, 0, 0 ) ) {
qDebug( "%s", assuan_exception( err, "MESSAGE FD" ).what() );
tqDebug( "%s", assuan_exception( err, "MESSAGE FD" ).what() );
return 1;
}
}
@ -244,7 +244,7 @@ int main( int argc, char * argv[] ) {
sprintf( buffer, "MESSAGE FILE=%s", hexencode( *it ).c_str() );
if ( const gpg_error_t err = assuan_transact( ctx, buffer, 0, 0, 0, 0, 0, 0 ) ) {
qDebug( "%s", assuan_exception( err, buffer ).what() );
tqDebug( "%s", assuan_exception( err, buffer ).what() );
return 1;
}
}
@ -252,12 +252,12 @@ int main( int argc, char * argv[] ) {
for ( std::vector<int>::const_iterator it = outFDs.begin(), end = outFDs.end() ; it != end ; ++it ) {
if ( const gpg_error_t err = assuan_sendfd( ctx, *it ) ) {
qDebug( "%s", assuan_exception( err, "assuan_sendfd( outFD )" ).what() );
tqDebug( "%s", assuan_exception( err, "assuan_sendfd( outFD )" ).what() );
return 1;
}
if ( const gpg_error_t err = assuan_transact( ctx, "OUTPUT FD", 0, 0, 0, 0, 0, 0 ) ) {
qDebug( "%s", assuan_exception( err, "OUTPUT FD" ).what() );
tqDebug( "%s", assuan_exception( err, "OUTPUT FD" ).what() );
return 1;
}
}
@ -268,7 +268,7 @@ int main( int argc, char * argv[] ) {
sprintf( buffer, "OUTPUT FILE=%s", hexencode( *it ).c_str() );
if ( const gpg_error_t err = assuan_transact( ctx, buffer, 0, 0, 0, 0, 0, 0 ) ) {
qDebug( "%s", assuan_exception( err, buffer ).what() );
tqDebug( "%s", assuan_exception( err, buffer ).what() );
return 1;
}
}
@ -279,13 +279,13 @@ int main( int argc, char * argv[] ) {
std::string line = "OPTION ";
line += opt;
if ( const gpg_error_t err = assuan_transact( ctx, line.c_str(), 0, 0, 0, 0, 0, 0 ) ) {
qDebug( "%s", assuan_exception( err, line ).what() );
tqDebug( "%s", assuan_exception( err, line ).what() );
return 1;
}
}
if ( const gpg_error_t err = assuan_transact( ctx, command.c_str(), data, ctx, inquire, ctx, status, ctx ) ) {
qDebug( "%s", assuan_exception( err, command ).what() );
tqDebug( "%s", assuan_exception( err, command ).what() );
return 1;
}

@ -142,8 +142,8 @@ private:
// Helper for the constructor.
static TQString itemText( const char * protocolName, const CryptoBackend::Protocol* protocol ) {
// First one is the generic name (find a nice one for OpenPGP, SMIME)
const TQString protoName = qstricmp( protocolName, "openpgp" ) != 0
? qstricmp( protocolName, "smime" ) != 0
const TQString protoName = tqstricmp( protocolName, "openpgp" ) != 0
? tqstricmp( protocolName, "smime" ) != 0
? TQString::fromLatin1( protocolName )
: i18n( "S/MIME" )
: i18n( "OpenPGP" );
@ -174,7 +174,7 @@ const Kleo::CryptoBackend* Kleo::BackendListView::chosenBackend( const char * pr
for ( TQListViewItemIterator it( this /*, TQListViewItemIterator::Checked doesn't work*/ ) ;
it.current() ; ++it )
if ( ProtocolCheckListItem * p = lvi_cast<ProtocolCheckListItem>( it.current() ) )
if ( p->isOn() && qstricmp( p->protocolName(), protocolName ) == 0 ) {
if ( p->isOn() && tqstricmp( p->protocolName(), protocolName ) == 0 ) {
// OK that's the one. Now go up to the parent backend
// (need to do that in the listview since Protocol doesn't know it)
if ( const BackendListViewItem * parItem = lvi_cast<BackendListViewItem>( it.current()->parent() ) )
@ -189,7 +189,7 @@ void Kleo::BackendListView::deselectAll( const char * protocolName, TQCheckListI
it.current() ; ++it ) {
if ( it.current() == except ) continue;
if ( ProtocolCheckListItem * p = lvi_cast<ProtocolCheckListItem>( it.current() ) )
if ( p->isOn() && qstricmp( p->protocolName(), protocolName ) == 0 )
if ( p->isOn() && tqstricmp( p->protocolName(), protocolName ) == 0 )
p->setOn( false );
}
}

@ -94,7 +94,7 @@ void KDHorizontalLine::calculateFrame() {
break;
mLenVisible--;
}
qDebug( "mLenVisible = %d (of %d)", mLenVisible, mTitle.length() );
tqDebug( "mLenVisible = %d (of %d)", mLenVisible, mTitle.length() );
if ( mLenVisible ) { // but do we also have a visible label?
TQRect r = rect();
const int va = style().styleHint( TQStyle::SH_GroupBox_TextLabelVerticalAlignment, this );

@ -862,10 +862,10 @@ static TQString businit(void)
data.imei = imei;
TQCString unknown(GN_TO(i18n("Unknown")));
qstrncpy(manufacturer, unknown, sizeof(manufacturer)-1);
qstrncpy(model, unknown, sizeof(model)-1);
qstrncpy(revision, unknown, sizeof(revision)-1);
qstrncpy(imei, unknown, sizeof(imei)-1);
tqstrncpy(manufacturer, unknown, sizeof(manufacturer)-1);
tqstrncpy(model, unknown, sizeof(model)-1);
tqstrncpy(revision, unknown, sizeof(revision)-1);
tqstrncpy(imei, unknown, sizeof(imei)-1);
if (m_progressDlg->wasCancelled())
return TQString();

@ -1193,7 +1193,7 @@ void KDGanttMinimizeSplitter::setHidden( TQWidget *w, bool hide )
w2show = !hide;
} else {
#ifdef TQT_CHECK_RANGE
qWarning( "KDGanttMinimizeSplitter::setHidden(), unknown widget" );
tqWarning( "KDGanttMinimizeSplitter::setHidden(), unknown widget" );
#endif
return;
}
@ -1217,7 +1217,7 @@ bool KDGanttMinimizeSplitter::isHidden( TQWidget *w ) const
return !w2show;
#ifdef TQT_CHECK_RANGE
else
qWarning( "KDGanttMinimizeSplitter::isHidden(), unknown widget" );
tqWarning( "KDGanttMinimizeSplitter::isHidden(), unknown widget" );
#endif
return FALSE;
}
@ -1377,7 +1377,7 @@ void kdganttGeomCalc( TQMemArray<TQLayoutStruct> &chain, int start, int count, i
if ( spacerCount )
spacerCount--; // only spacers between things
if ( space < cMin + spacerCount * spacer ) {
// qDebug("not enough space");
// tqDebug("not enough space");
for ( i = start; i < start+count; i++ ) {
chain[i].size = chain[i].minimumSize;
chain[i].done = TRUE;

@ -303,7 +303,7 @@ void KDGanttView::show()
bool KDGanttView::close ( bool alsoDelete )
{
//qDebug("close ");
//tqDebug("close ");
if ( closingBlocked )
return false;
return TQWidget::close ( alsoDelete );
@ -346,7 +346,7 @@ TQSize KDGanttView::sizeHint() const
//hintWid += myTimeHeader->mySizeHint+myCanvasView->verticalScrollBar()->width();
hintWid += myCanvasView->sizeHint().width();
// add 10 for the splitter-bars
// qDebug("sizehint %d %d ",hintWid+10, hintHeight );
// tqDebug("sizehint %d %d ",hintWid+10, hintHeight );
myTimeTable->setBlockUpdating( block );
return TQSize( hintWid+10, hintHeight );
}
@ -574,7 +574,7 @@ void KDGanttView::forceRepaint( int )
{
if ( myTimeTable->blockUpdating() )
return;
// qDebug("forceRepaint( int ) ");
// tqDebug("forceRepaint( int ) ");
myTimeTable->setAllChanged();
myTimeTable->update();
}
@ -814,8 +814,8 @@ bool KDGanttView::loadProject( TQIODevice* device )
TQString err;
int errline, errcol;
if ( !doc.setContent( device, &err, &errline, &errcol ) ) {
qDebug("KDGantt::Error parsing XML data at line %d. Message is:", errline );
qDebug("%s ", err.latin1());
tqDebug("KDGantt::Error parsing XML data at line %d. Message is:", errline );
tqDebug("%s ", err.latin1());
device->close();
return false;
}
@ -2671,7 +2671,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if( KDGanttXML::readColorNode( element, value ) )
color = value;
} else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() );
tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@ -2736,7 +2736,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if ( value == "Undefined" )
undefinedShape = true;
} else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() );
tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@ -2775,7 +2775,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if ( value == "Undefined" )
undefinedShape = true;
} else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() );
tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@ -2813,7 +2813,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if ( value == "Undefined" )
undefinedShape = true;
} else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() );
tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@ -2824,7 +2824,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
middleShape, endShape, false );
undefinedShape = false;
} else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() );
tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@ -2856,7 +2856,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if( KDGanttXML::readColorNode( element, value ) )
endColor = value;
} else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() );
tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@ -2884,7 +2884,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if( KDGanttXML::readColorNode( element, value ) )
endColor = value;
} else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() );
tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@ -2912,7 +2912,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if( KDGanttXML::readColorNode( element, value ) )
endColor = value;
} else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() );
tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@ -2921,7 +2921,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
setColors( KDGanttViewItem::Summary, startColor,
middleColor, endColor , false);
} else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() );
tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@ -2949,7 +2949,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
setDefaultColor( KDGanttViewItem::Summary,
value , false);
} else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() );
tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@ -2982,7 +2982,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if( KDGanttXML::readColorNode( element, value ) )
endColor = value;
} else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() );
tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@ -3011,7 +3011,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if( KDGanttXML::readColorNode( element, value ) )
endColor = value;
} else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() );
tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@ -3040,7 +3040,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if( KDGanttXML::readColorNode( element, value ) )
endColor = value;
} else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() );
tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@ -3050,7 +3050,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
startColor,
middleColor, endColor, false );
} else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() );
tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@ -3078,7 +3078,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
setDefaultHighlightColor( KDGanttViewItem::Summary,
value, false );
} else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() );
tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@ -3105,7 +3105,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
element );
previous = newItem;
} else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() );
tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@ -3121,7 +3121,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if( tagName == "TaskLink" )
KDGanttViewTaskLink::createFromDomElement( element );
else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() );
tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@ -3137,7 +3137,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if( tagName == "TaskLink" )
KDGanttViewTaskLinkGroup::createFromDomElement( element );
} else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() );
tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
@ -3168,7 +3168,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if( KDGanttXML::readColorNode( element, value ) )
color = value;
} else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() );
tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@ -3177,7 +3177,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
}
setColumnBackgroundColor( dateTime, color );
} else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() );
tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@ -3220,7 +3220,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
else
ok = false;
} else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() );
tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@ -3230,17 +3230,17 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
addLegendItem( tempLegendShape,
tempLegendColor,
tempLegendString );
qDebug( "Adding legend item %s", tempLegendString.latin1() );
tqDebug( "Adding legend item %s", tempLegendString.latin1() );
}
} else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() );
tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
node = node.nextSibling();
}
} else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() );
tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@ -4607,7 +4607,7 @@ void KDGanttView::setLvVScrollBarMode( TQScrollView::ScrollBarMode m )
void KDGanttView::setGvVScrollBarMode( TQScrollView::ScrollBarMode m )
{
if ( m == TQScrollView::Auto )
qDebug("KDGanttView::setListViewVScrollBarMode: TQScrollView::Auto not supported. Nothing changed. ");
tqDebug("KDGanttView::setListViewVScrollBarMode: TQScrollView::Auto not supported. Nothing changed. ");
else
{
myCanvasView->setVScrollBarMode ( m );

@ -139,7 +139,7 @@ KDGanttViewEventItem::~KDGanttViewEventItem()
void KDGanttViewEventItem::setStartTime( const TQDateTime& start )
{
if (! start.isValid() ) {
qDebug("KDGanttViewEventItem::setStartTime():Invalid parameter-no time set");
tqDebug("KDGanttViewEventItem::setStartTime():Invalid parameter-no time set");
return;
}
myStartTime = start;

@ -563,16 +563,16 @@ void KDGanttViewItem::setEndTime( const TQDateTime& end )
{
switch( type() ) {
case Event:
qDebug( "KDGantt:Event Item has no end time" );
tqDebug( "KDGantt:Event Item has no end time" );
break;
case Summary:
((KDGanttViewSummaryItem*)this)->setEndTime( end );
break;
case Task:
qDebug( "KDGantt:Task Item has no end time" );
tqDebug( "KDGantt:Task Item has no end time" );
break;
default:
qDebug( "Unknown type in KDGanttViewItem::typeToString()" );
tqDebug( "Unknown type in KDGanttViewItem::typeToString()" );
}
}
@ -1325,7 +1325,7 @@ void KDGanttViewItem::updateCanvasItems()
} else {
b.setStyle(Qt::SolidPattern);
b.setColor(myStartColor);
// qDebug("update color %s %s", listViewText().latin1(),myStartColor.name().latin1() );
// tqDebug("update color %s %s", listViewText().latin1(),myStartColor.name().latin1() );
startShape->setBrush(b);
b.setColor(myMiddleColor);
midShape->setBrush(b);
@ -1472,12 +1472,12 @@ void KDGanttViewItem::initColorAndShapes(Type t)
// set shapes
if (!( shapeDefined = (myGanttView->shapes(myType,myStartShape,myMiddleShape,myEndShape)))) {
//qDebug("KDGantt::KDGanttViewItem created with not user defined shapes");
//tqDebug("KDGantt::KDGanttViewItem created with not user defined shapes");
};
setShapes(myStartShape,myMiddleShape,myEndShape);
if ( type() == Task ) {
//qDebug("new task %s ", listViewText().latin1());
//tqDebug("new task %s ", listViewText().latin1());
if ( startShape )
delete startShape;
startShape = (KDCanvasPolygonItem*)new KDCanvasRectangle(myGanttView->myTimeTable,this,Type_is_KDGanttViewItem);
@ -1627,7 +1627,7 @@ KDGanttViewItem* KDGanttViewItem::createFromDomElement( KDGanttView* view,
else if( typeString == "Event" )
item = new KDGanttViewEventItem( view );
else {
qDebug( "Unknown item type %s in KDGanttViewItem::createFromDomElement()", typeString.latin1() );
tqDebug( "Unknown item type %s in KDGanttViewItem::createFromDomElement()", typeString.latin1() );
return 0;
}
@ -1659,7 +1659,7 @@ KDGanttViewItem* KDGanttViewItem::createFromDomElement( KDGanttView* view,
else if( typeString == "Event" )
item = new KDGanttViewEventItem( view, previous );
else {
qDebug( "Unknown item type in KDGanttViewItem::createFromDomElement()" );
tqDebug( "Unknown item type in KDGanttViewItem::createFromDomElement()" );
return 0;
}
@ -1691,7 +1691,7 @@ KDGanttViewItem* KDGanttViewItem::createFromDomElement( KDGanttViewItem* parent,
else if( typeString == "Event" )
item = new KDGanttViewEventItem( parent );
else {
qDebug( "Unknown item type in KDGanttViewItem::createFromDomElement()" );
tqDebug( "Unknown item type in KDGanttViewItem::createFromDomElement()" );
return 0;
}
@ -1723,7 +1723,7 @@ KDGanttViewItem* KDGanttViewItem::createFromDomElement( KDGanttViewItem* parent,
else if( typeString == "Event" )
item = new KDGanttViewEventItem( parent, previous );
else {
qDebug( "Unknown item type in KDGanttViewItem::createFromDomElement()" );
tqDebug( "Unknown item type in KDGanttViewItem::createFromDomElement()" );
return 0;
}
@ -1859,7 +1859,7 @@ void KDGanttViewItem::loadFromDomElement( TQDomElement& element )
element );
previous = newItem;
} else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() );
tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@ -1867,7 +1867,7 @@ void KDGanttViewItem::loadFromDomElement( TQDomElement& element )
node = node.nextSibling();
}
} else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() );
tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@ -1893,7 +1893,7 @@ TQString KDGanttViewItem::typeToString( Type type )
case Task:
return "Task";
default:
qDebug( "Unknown type in KDGanttViewItem::typeToString()" );
tqDebug( "Unknown type in KDGanttViewItem::typeToString()" );
return "Summary";
}
return "";
@ -2105,7 +2105,7 @@ int KDGanttViewItem::computeHeight()
showItem( false );
if ( firstChild() )
firstChild()->hideSubtree();
// qDebug("KDGanttViewItem::computeHeight() %s returns 0 ", TQListViewItem::text(0).latin1());
// tqDebug("KDGanttViewItem::computeHeight() %s returns 0 ", TQListViewItem::text(0).latin1());
return 0;
}
@ -2146,7 +2146,7 @@ int KDGanttViewItem::computeHeight()
// display closed item as usual
//
if ( isOpen() ) {
//qDebug("KDGanttViewItem::computeHeight() %s is open ", TQListViewItem::text(0).latin1());
//tqDebug("KDGanttViewItem::computeHeight() %s is open ", TQListViewItem::text(0).latin1());
temp = firstChild();
// if item opened, iterate over all subitems
int tempHeight;
@ -2157,19 +2157,19 @@ int KDGanttViewItem::computeHeight()
if ( special ) {
if ( temp->displaySubitemsAsGroup() ) {
hei += tempHeight;
//qDebug(" hei added ");
//tqDebug(" hei added ");
} else {
temp->showSubitemTree( getCoordY() );
}
} else {
hei += tempHeight;
//qDebug(" hei added ");
//tqDebug(" hei added ");
}
temp = temp->nextSibling();
}
} else { // closed!
//qDebug("KDGanttViewItem::computeHeight() %s is closed ", TQListViewItem::text(0).latin1());
//tqDebug("KDGanttViewItem::computeHeight() %s is closed ", TQListViewItem::text(0).latin1());
if ( !displaySubitemsAsGroup() ) {
if ( firstChild() ) {
@ -2187,7 +2187,7 @@ int KDGanttViewItem::computeHeight()
showItem( true );
hei += height();
//qDebug("KDGanttViewItem::computeHeight() %s returns: %d ", TQListViewItem::text(0).latin1(), hei);
//tqDebug("KDGanttViewItem::computeHeight() %s returns: %d ", TQListViewItem::text(0).latin1(), hei);
return hei;
}
@ -2219,11 +2219,11 @@ void KDGanttViewItem::paintBranches ( TQPainter* p, const TQColorGroup& cg,
KDGanttViewItem * temp = firstChild();
while ( temp ) {
if ( temp->showNoCross() ) {
//qDebug("paintNoCross %s ", temp->listViewText(0).latin1());
//tqDebug("paintNoCross %s ", temp->listViewText(0).latin1());
int y_coord = temp->itemPos() -height ()- itemPos();
int hei = temp->height();
//qDebug(" y %d w %d h %d ", y,w,h);
//qDebug("yc %d hei %d",y_coord,hei );
//tqDebug(" y %d w %d h %d ", y,w,h);
//tqDebug("yc %d hei %d",y_coord,hei );
myGanttView->myListView->paintemptyarea( p, TQRect( 0,y+y_coord,w,hei));
int x_c = w/2;
int y_c = y+y_coord+ temp->height ()/2;
@ -2487,7 +2487,7 @@ void KDGanttViewItem::moveTextCanvas(int x, int y)
mx -= 2*myItemSize; // keep old behaviour
textCanvas->move(mx+2*myItemSize,my-myItemSize/2);
//qDebug("%s: moveTextCanvas(%d,%d) offset: %d,%d moved to %d,%d",listViewText(0).latin1(),x,y,myTextOffset.x(),myTextOffset.y(),mx+2*myItemSize,my-myItemSize/2);
//tqDebug("%s: moveTextCanvas(%d,%d) offset: %d,%d moved to %d,%d",listViewText(0).latin1(),x,y,myTextOffset.x(),myTextOffset.y(),mx+2*myItemSize,my-myItemSize/2);
}
/*!
@ -2505,7 +2505,7 @@ void KDGanttViewItem::moveTextCanvas()
*/
void KDGanttViewItem::setTextOffset(TQPoint p)
{
//qDebug("%s: setTextOffset() offset: %d,%d",listViewText(0).latin1(),p.x(),p.y());
//tqDebug("%s: setTextOffset() offset: %d,%d",listViewText(0).latin1(),p.x(),p.y());
myTextOffset.setX(p.x());
myTextOffset.setY(p.y());
}

@ -179,7 +179,7 @@ int KDTimeTableWidget::computeHeight()
if (hei == 0) {
hei = 1;
}
//qDebug("COMPUTED HEI %d ", hei);
//tqDebug("COMPUTED HEI %d ", hei);
emit heightComputed( hei );
return hei;
}
@ -188,7 +188,7 @@ void KDTimeTableWidget::computeVerticalGrid()
// recompute the vertical grid
// compute the vertical grid
// if we have too much lines, hide them
//qDebug("computeVerticalGrid() ");
//tqDebug("computeVerticalGrid() ");
int cw = myGanttView->myTimeHeader->myGridMinorWidth;
int i = 0;
int h ;
@ -434,7 +434,7 @@ void KDTimeTableWidget::computeVerticalGrid()
void KDTimeTableWidget::computeHorizontalGrid()
{
// compute horizontal grid
//qDebug("computeHorizontalGrid() ");
//tqDebug("computeHorizontalGrid() ");
KDGanttViewItem* temp = myGanttView->firstChild();
int wid;
if ( pendingWidth )
@ -474,7 +474,7 @@ void KDTimeTableWidget::computeHorizontalGrid()
//TQString ts = "asGroup";
//if (!temp->displaySubitemsAsGroup() )
// ts = " NOT asGroup";
//qDebug("temp name %s %s", temp->listViewText(0).latin1(), ts.latin1());
//tqDebug("temp name %s %s", temp->listViewText(0).latin1(), ts.latin1());
temp = temp->itemBelow ();
}
@ -586,10 +586,10 @@ void KDTimeTableWidget::computeTaskLinks()
void KDTimeTableWidget::updateMyContent()
{
if ( flag_blockUpdating || int_blockUpdating ) {
// qDebug("KDTimeTableWidget::updateMyContent() blocked! ");
// tqDebug("KDTimeTableWidget::updateMyContent() blocked! ");
return;
}
//qDebug("KDTimeTableWidget::updateMyContent() ********************************* ");
//tqDebug("KDTimeTableWidget::updateMyContent() ********************************* ");
/*
// debug output
KDGanttViewItem* temp = myGanttView->firstChild();
@ -638,7 +638,7 @@ void KDTimeTableWidget::updateMyContent()
}
pendingWidth = 0;
pendingHeight = 0;
//qDebug("KDTimeTableWidget::updateMyContent() -------------------------");
//tqDebug("KDTimeTableWidget::updateMyContent() -------------------------");
}
// used for blocking recursive methods
// e.g. KDGanttViewItem::setHighlight() and displaySubitemsAsGroup() == true
@ -1111,12 +1111,12 @@ void KDTimeHeaderWidget::zoomToSelection( TQDateTime start, TQDateTime end)
if (start < myHorizonStart) {
myHorizonStart = start;
flagStartTimeSet = true;
//qDebug("myHorizonStart reset");
//tqDebug("myHorizonStart reset");
}
if (end > myHorizonEnd) {
myHorizonEnd = end;
flagEndTimeSet = true;
//qDebug("myHorizonEnd reset ");
//tqDebug("myHorizonEnd reset ");
}
flagDoNotRepaintAfterChange = true;//avoid flicker
zoom(1.0); // set to 100%
@ -1134,7 +1134,7 @@ void KDTimeHeaderWidget::zoomToSelection( TQDateTime start, TQDateTime end)
zoom (fac);
timeWid = getCoordX(end)-getCoordX(start);
if ( count++ > 10 ) {
//qDebug("Exiting while loop in zoomToSelection ");
//tqDebug("Exiting while loop in zoomToSelection ");
break;
}
}
@ -1156,7 +1156,7 @@ void KDTimeHeaderWidget::zoom(double factor, bool absolute)
{
flagZoomToFit = false;
if ( factor < 0.000001 ) {
qDebug("KDGanttView::zoom() : Zoom factor to low. Nothing zoomed. ");
tqDebug("KDGanttView::zoom() : Zoom factor to low. Nothing zoomed. ");
return;
}
double newZoom;
@ -1167,12 +1167,12 @@ void KDTimeHeaderWidget::zoom(double factor, bool absolute)
double relativeZoom;
relativeZoom = newZoom / myZoomFactor;
//qDebug("zooming relative %f ", relativeZoom);
//qDebug("zooming absolute %f ", newZoom);
//tqDebug("zooming relative %f ", relativeZoom);
//tqDebug("zooming absolute %f ", newZoom);
int viewWid = myGanttView->myCanvasView->viewport()->width();
if ( width() * relativeZoom < viewWid && ( newZoom > 1.01 || newZoom < 0.99 ) ) {
qDebug("KDGanttView::zoom() : Zoom factor to low for current horizon. ");
// qDebug("zooming relative %f, zooming absolute %f, viewWidth %d width %d ", relativeZoom, newZoom, viewWid, width() );
tqDebug("KDGanttView::zoom() : Zoom factor to low for current horizon. ");
// tqDebug("zooming relative %f, zooming absolute %f, viewWidth %d width %d ", relativeZoom, newZoom, viewWid, width() );
return;
}
myZoomFactor = newZoom;
@ -1819,14 +1819,14 @@ int KDTimeHeaderWidget::minorScaleCount() const
void KDTimeHeaderWidget::resizeEvent ( TQResizeEvent * )
{
// qDebug("KDTimeHeaderWidget:: resizeEvent ");
// tqDebug("KDTimeHeaderWidget:: resizeEvent ");
paintPix.resize( 800, height () );
}
void KDTimeHeaderWidget::updateTimeTable()
{
//qDebug("KDTimeHeaderWidget::updateTimeTable() ");
//tqDebug("KDTimeHeaderWidget::updateTimeTable() ");
if (flagDoNotRecomputeAfterChange) return;
// setting the scrolling steps
int scrollLineStep = myGridMinorWidth;
@ -1969,7 +1969,7 @@ TQDateTime KDTimeHeaderWidget::getEvenTimeDate(TQDateTime tempdatetime ,Scale sc
min = tempdatetime.time().minute();
while (60%tempMinorScaleCount > 0 && 60%tempMinorScaleCount < 60)
++tempMinorScaleCount;
// qDebug("myMinorScaleCount %d %d %d",myMinorScaleCount, myRealMinorScaleCount, tempMinorScaleCount);
// tqDebug("myMinorScaleCount %d %d %d",myMinorScaleCount, myRealMinorScaleCount, tempMinorScaleCount);
min = (min /tempMinorScaleCount)*tempMinorScaleCount;
tempdatetime = TQDateTime (tempdatetime.date(), TQTime (tempdatetime.time().hour(),min ));
@ -1985,7 +1985,7 @@ void KDTimeHeaderWidget::computeRealScale(TQDateTime start)
{
if (myScale ==KDGanttView::Auto) {
//qDebug("Autoscale ");
//tqDebug("Autoscale ");
//double secsPerMinor = (((double)start.daysTo(myHorizonEnd))* 86400.00)/((double)myAutoScaleMinorTickcount);
double secsPerMinor = (((double)start.secsTo(myHorizonEnd)))/((double)myAutoScaleMinorTickcount);
secsPerMinor /= myZoomFactor;
@ -2017,7 +2017,7 @@ void KDTimeHeaderWidget::computeRealScale(TQDateTime start)
myRealMajorScaleCount = 1;
}
else {
//qDebug("Fixed scale ");
//tqDebug("Fixed scale ");
myRealScale = myScale;
if (myRealScale > myMaxScale)
myRealScale = myMaxScale;
@ -2067,7 +2067,7 @@ void KDTimeHeaderWidget::computeTicks(bool doNotComputeRealScale)
if (flagDoNotRecomputeAfterChange) return;
bool block = myGanttView->myTimeTable->blockUpdating();
myGanttView->myTimeTable->setBlockUpdating( true );
//qDebug("computeticks ");
//tqDebug("computeticks ");
majorTicks.clear();
minorText.clear();
majorText.clear();
@ -2082,7 +2082,7 @@ void KDTimeHeaderWidget::computeTicks(bool doNotComputeRealScale)
tempMajorScaleCount = myRealMajorScaleCount;
int minorItems,minorPerMajor = 1;
minorItems = (int) (secsFromTo( myRealStart, myHorizonEnd)/60.0);
//qDebug("tempMinorScaleCount %d ", tempMinorScaleCount);
//tqDebug("tempMinorScaleCount %d ", tempMinorScaleCount);
TQPainter p(this);
int Width, Height;
TQString testTextMinor,testTextMajor, tempStr;
@ -2131,14 +2131,14 @@ void KDTimeHeaderWidget::computeTicks(bool doNotComputeRealScale)
minorPerMajor = 1200;
break;
case KDGanttView::Auto:
qDebug("KDGanttView::Internal Error in KDTimeHeaderWidget::computeTicks() ");
qDebug(" RealScale == Auto : This may not be! ");
tqDebug("KDGanttView::Internal Error in KDTimeHeaderWidget::computeTicks() ");
tqDebug(" RealScale == Auto : This may not be! ");
break;
}
itemRectMinor = p.boundingRect ( 10, 10, 2, 2, TQt::AlignLeft,testTextMinor);
itemRectMajor = p.boundingRect ( 10, 10, 2, 2, TQt::AlignLeft,testTextMajor);
p.end();
//qDebug(" tempMinorScaleCount %d ", tempMinorScaleCount);
//tqDebug(" tempMinorScaleCount %d ", tempMinorScaleCount);
Height = itemRectMinor.height()+itemRectMajor.height()+11;
Width = (itemRectMinor.width()+5);
if (Width < minimumColumnWidth()) Width = minimumColumnWidth();
@ -2149,7 +2149,7 @@ void KDTimeHeaderWidget::computeTicks(bool doNotComputeRealScale)
maxWid = maximumWidth();
while((minorItems/tempMinorScaleCount+1)*Width > maxWid)
++tempMinorScaleCount;
//qDebug(" tempMinorScaleCount %d ", tempMinorScaleCount);
//tqDebug(" tempMinorScaleCount %d ", tempMinorScaleCount);
mySizeHint = (minorItems/tempMinorScaleCount+1)*Width;
switch (myRealScale)
{
@ -2162,7 +2162,7 @@ void KDTimeHeaderWidget::computeTicks(bool doNotComputeRealScale)
myRealMinorScaleCount = tempMinorScaleCount/ 60;
// myRealMinorScaleCount = 1;
myRealMajorScaleCount = 1;
qDebug("KDGantt::Overzoom:Rescaling from Minute to Hour");
tqDebug("KDGantt::Overzoom:Rescaling from Minute to Hour");
myGanttView->myTimeTable->setBlockUpdating( block );
emit myGanttView->rescaling( KDGanttView::Hour );
computeTicks(true);
@ -2177,7 +2177,7 @@ void KDTimeHeaderWidget::computeTicks(bool doNotComputeRealScale)
myRealMinorScaleCount = tempMinorScaleCount/ 24;
//myRealMinorScaleCount = 1;
myRealMajorScaleCount = 1;
qDebug("KDGantt::Overzoom:Rescaling from Hour to Day");
tqDebug("KDGantt::Overzoom:Rescaling from Hour to Day");
myGanttView->myTimeTable->setBlockUpdating( block );
emit myGanttView->rescaling( KDGanttView::Day );
computeTicks(true);
@ -2339,7 +2339,7 @@ void KDTimeHeaderWidget::computeTicks(bool doNotComputeRealScale)
myGanttView->myTimeTable->setBlockUpdating( block );
return;
}
//qDebug("KDTimeHeaderWidget width %d, viewport width %d ",width (), myGanttView->myCanvasView->viewport()->width());
//tqDebug("KDTimeHeaderWidget width %d, viewport width %d ",width (), myGanttView->myCanvasView->viewport()->width());
myGanttView->myTimeTable->setBlockUpdating( block );
updateTimeTable();
centerDateTime(myCenterDateTime);
@ -2364,7 +2364,7 @@ void KDTimeHeaderWidget::saveCenterDateTime()
void KDTimeHeaderWidget::centerDateTime( const TQDateTime& center )
{
moveTimeLineTo(getCoordX( center )-(myGanttView->myCanvasView->viewport()->width() /2));
// qDebug("centerDateTime %s %d %d", center.toString().latin1(),getCoordX( center ),(myGanttView->myCanvasView->viewport()->width() /2) );
// tqDebug("centerDateTime %s %d %d", center.toString().latin1(),getCoordX( center ),(myGanttView->myCanvasView->viewport()->width() /2) );
}
@ -2482,8 +2482,8 @@ void KDTimeHeaderWidget::mouseReleaseEvent ( TQMouseEvent * )
start = 0;
if ( end > width() )
end = width();
//qDebug("start %s ",getDateTimeForIndex(start).toString().latin1() );
//qDebug("end %s ",getDateTimeForIndex(end).toString().latin1() );
//tqDebug("start %s ",getDateTimeForIndex(start).toString().latin1() );
//tqDebug("end %s ",getDateTimeForIndex(end).toString().latin1() );
emit myGanttView->timeIntervalSelected( getDateTimeForIndex(start),getDateTimeForIndex(end) );
emit myGanttView->timeIntervallSelected( getDateTimeForIndex(start),getDateTimeForIndex(end) );
//zoomToSelection( getDateTimeForIndex(start),getDateTimeForIndex(end) );
@ -2529,7 +2529,7 @@ void KDTimeHeaderWidget::mouseMoveEvent ( TQMouseEvent * e )
}
myGanttView->myCanvasView->horizontalScrollBar()->setValue( val );
}
//qDebug("mousemove %d %d %d %d",endMouseDown, -x(),parentWidget()->width() , e->pos().y());
//tqDebug("mousemove %d %d %d %d",endMouseDown, -x(),parentWidget()->width() , e->pos().y());
}
}
@ -2708,7 +2708,7 @@ KDListView::KDListView(TQWidget* parent, KDGanttView* gantView):TQListView (pare
void KDListView::dragItem( TQListViewItem * )
{
// qDebug("drag ");
// tqDebug("drag ");
// startDrag();
}
TQString KDListView::getWhatsThisText(TQPoint p)
@ -2746,7 +2746,7 @@ void KDListView::setOpen(TQListViewItem * item, bool open )
}
else {
temp->setVisible( false );
//qDebug(" temp->setVisible( false );");
//tqDebug(" temp->setVisible( false );");
}
temp = temp->nextSibling();
}
@ -3009,7 +3009,7 @@ void KDListView::dragMoveEvent ( TQDragMoveEvent * e)
void KDListView::dragLeaveEvent ( TQDragLeaveEvent * )
{
//qDebug("contentsDragLeaveEvent ");
//tqDebug("contentsDragLeaveEvent ");
}
void KDListView::dropEvent ( TQDropEvent *e )
{
@ -3028,7 +3028,7 @@ void KDListView::dropEvent ( TQDropEvent *e )
KDGanttViewItem* newItem = 0;
if ( gItem == myGanttView->myCanvasView->lastClickedItem && gItem != 0 ) {
qDebug("KDGanttView::Possible bug in drag&drop code ");
tqDebug("KDGanttView::Possible bug in drag&drop code ");
return;
}
@ -3056,16 +3056,16 @@ void KDListView::dropEvent ( TQDropEvent *e )
newItem = KDGanttViewItem::createFromDomElement( myGanttView,
element );
} else {
qDebug( "Unrecognized tag name: %s", tagName.latin1() );
tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
//qDebug("next node1 ");
//tqDebug("next node1 ");
node = node.nextSibling();
}
}
}
//qDebug("next node2 ");
//tqDebug("next node2 ");
node = node.nextSibling();
}
newItem->setDisplaySubitemsAsGroup(myGanttView->displaySubitemsAsGroup());
@ -3273,7 +3273,7 @@ void KDGanttCanvasView::myUpdateScrollBars()
}
void KDGanttCanvasView::setMyContentsHeight( int hei )
{