Allow kdelibs to function correctly with TQt for Qt4

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1220926 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent f9279733bf
commit 374d939d8a

@ -262,7 +262,7 @@ int callFunction( const char* app, const char* obj, const char* func, const QCSt
} }
if ( s == static_cast<int>(partl.count())-1) if ( s == static_cast<int>(partl.count())-1)
{ {
partl.remove(partl.at(s)); partl.remove(partl.tqat(s));
} }
lt = partl.join(" "); lt = partl.join(" ");

@ -98,7 +98,7 @@ bool findObject( const char* app, const char* obj, const char* func, QCStringLis
} }
if (s==(int)partl.count()-1) if (s==(int)partl.count()-1)
{ {
partl.remove(partl.at(s)); partl.remove(partl.tqat(s));
} }
lt = partl.join(" "); lt = partl.join(" ");

@ -483,7 +483,7 @@ void DCOPProcessInternal( DCOPClientPrivate *d, int opcode, CARD32 key, const TQ
int datalen = reply.size(); int datalen = reply.size();
pMsg->key = key; pMsg->key = key;
pMsg->length += datalen; pMsg->length += datalen;
IceSendData( iceConn, datalen, const_cast<char *>(reply.data())); IceSendData( iceConn, datalen, reply.data());
return; return;
} }
@ -1617,7 +1617,8 @@ bool DCOPClient::receive(const TQCString &/*app*/, const TQCString &objId,
// fall through and send to object proxies // fall through and send to object proxies
} }
if (!objId.isEmpty() && objId[objId.length()-1] == '*') { // if (!objId.isEmpty() && objId[objId.length()-1] == '*') {
if (!objId.isEmpty() && ((objId.length()>0)?(objId[objId.length()-1] == '*'):0)) {
// handle a multicast to several objects. // handle a multicast to several objects.
// doesn't handle proxies currently. should it? // doesn't handle proxies currently. should it?
TQPtrList<DCOPObject> matchList = TQPtrList<DCOPObject> matchList =

@ -127,7 +127,7 @@ static TQCString readQCString(TQDataStream &ds)
TQ_UINT32 len; TQ_UINT32 len;
ds >> len; ds >> len;
TQIODevice *device = ds.tqdevice(); TQIODevice *device = ds.tqdevice();
int bytesLeft = device->size()-device->at(); int bytesLeft = device->size()-device->tqat();
if ((bytesLeft < 0 ) || (len > (uint) bytesLeft)) if ((bytesLeft < 0 ) || (len > (uint) bytesLeft))
{ {
qWarning("Corrupt data!\n"); qWarning("Corrupt data!\n");
@ -146,7 +146,7 @@ static TQByteArray readQByteArray(TQDataStream &ds)
TQ_UINT32 len; TQ_UINT32 len;
ds >> len; ds >> len;
TQIODevice *device = ds.tqdevice(); TQIODevice *device = ds.tqdevice();
int bytesLeft = device->size()-device->at(); int bytesLeft = device->size()-device->tqat();
if ((bytesLeft < 0 ) || (len > (uint) bytesLeft)) if ((bytesLeft < 0 ) || (len > (uint) bytesLeft))
{ {
qWarning("Corrupt data!\n"); qWarning("Corrupt data!\n");

@ -95,7 +95,7 @@ void EditorChooser::writeAppSetting(const TQString& postfix){
cfg->setGroup("KTEXTEDITOR:"+postfix); cfg->setGroup("KTEXTEDITOR:"+postfix);
cfg->writeEntry("DEVELOPER_INFO","NEVER TRY TO USE VALUES FROM THAT GROUP, THEY ARE SUBJECT TO CHANGES"); cfg->writeEntry("DEVELOPER_INFO","NEVER TRY TO USE VALUES FROM THAT GROUP, THEY ARE SUBJECT TO CHANGES");
cfg->writePathEntry("editor", (d->chooser->editorCombo->currentItem()==0) ? cfg->writePathEntry("editor", (d->chooser->editorCombo->currentItem()==0) ?
TQString::null : (*d->elements.at(d->chooser->editorCombo->currentItem()-1))); TQString::null : (*d->elements.tqat(d->chooser->editorCombo->currentItem()-1)));
cfg->sync(); cfg->sync();
cfg->setGroup(previousGroup); cfg->setGroup(previousGroup);

@ -1188,7 +1188,7 @@ KeyValueMap::insert(const TQCString& key, const TQStrList& values, bool force)
// ----- create coded string list: // ----- create coded string list:
for(count=0; count<values.count(); ++count) for(count=0; count<values.count(); ++count)
{ // create strings like "abc\efgh\eijk": { // create strings like "abc\efgh\eijk":
temp=makeComplexString(((TQStrList)values).at(count)); temp=makeComplexString(((TQStrList)values).tqat(count));
temp.remove(0, 1); // remove the leading "\"" temp.remove(0, 1); // remove the leading "\""
temp.remove(temp.length()-1, 1); // the trailing "\"" temp.remove(temp.length()-1, 1); // the trailing "\""
value+=temp; value+=temp;
@ -1231,7 +1231,7 @@ KeyValueMap::get(const TQCString& key, TQStringList& values) const
// ----- do the conversion: // ----- do the conversion:
for(count=0; count<temp.count(); ++count) for(count=0; count<temp.count(); ++count)
{ {
values.append(TQString::fromUtf8(temp.at(count))); values.append(TQString::fromUtf8(temp.tqat(count)));
} }
// ----- // -----
kdDebug(GUARD, KAB_KDEBUG_AREA) << "KeyValueMap::get[QStringList]: done." << endl; kdDebug(GUARD, KAB_KDEBUG_AREA) << "KeyValueMap::get[QStringList]: done." << endl;
@ -1252,7 +1252,7 @@ KeyValueMap::insert(const TQCString& key, const TQStringList& values, bool force
// ----- create TQCString list: // ----- create TQCString list:
for(count=0; count<values.count(); ++count) for(count=0; count<values.count(); ++count)
{ {
utf8strings.append((*values.at(count)).utf8()); utf8strings.append((*values.tqat(count)).utf8());
} }
kdDebug(GUARD, KAB_KDEBUG_AREA) << "KeyValueMap::insert[QStringList]: done." << endl; kdDebug(GUARD, KAB_KDEBUG_AREA) << "KeyValueMap::insert[QStringList]: done." << endl;
return insert(key, utf8strings, force); return insert(key, utf8strings, force);

@ -113,7 +113,7 @@ void BinaryFormat::saveAll( AddressBook*, Resource *resource, TQFile *file )
} }
// set real number of entries // set real number of entries
stream.tqdevice()->at( 2 * sizeof( TQ_UINT32 ) ); stream.tqdevice()->tqat( 2 * sizeof( TQ_UINT32 ) );
stream << counter; stream << counter;
} }

@ -57,12 +57,12 @@ void readKMailEntry( const TQString &kmailEntry, KABC::AddressBook *ab )
TQString name; TQString name;
TQString comment; TQString comment;
if ( entry.at( entry.length() -1 ) == ')' ) { if ( entry.tqat( entry.length() -1 ) == ')' ) {
int br = entry.tqfindRev( '(' ); int br = entry.tqfindRev( '(' );
if ( br >= 0 ) { if ( br >= 0 ) {
comment = entry.mid( br + 1, entry.length() - br - 2 ); comment = entry.mid( br + 1, entry.length() - br - 2 );
entry.truncate( br ); entry.truncate( br );
if ( entry.at( entry.length() - 1 ).isSpace() ) { if ( entry.tqat( entry.length() - 1 ).isSpace() ) {
entry.truncate( br - 1 ); entry.truncate( br - 1 );
} }
} }
@ -80,22 +80,22 @@ void readKMailEntry( const TQString &kmailEntry, KABC::AddressBook *ab )
name = entry.left( posSpace ); name = entry.left( posSpace );
} }
if ( email.at( 0 ) == '<' && email.at( email.length() - 1) == '>' ) { if ( email.tqat( 0 ) == '<' && email.tqat( email.length() - 1) == '>' ) {
email = email.mid( 1, email.length() - 2 ); email = email.mid( 1, email.length() - 2 );
} }
if ( name.at( 0 ) == '"' && name.at( name.length() - 1) == '"' ) { if ( name.tqat( 0 ) == '"' && name.tqat( name.length() - 1) == '"' ) {
name = name.mid( 1, name.length() - 2 ); name = name.mid( 1, name.length() - 2 );
} }
if ( name.at( 0 ) == '\'' && name.at( name.length() - 1) == '\'' ) { if ( name.tqat( 0 ) == '\'' && name.tqat( name.length() - 1) == '\'' ) {
name = name.mid( 1, name.length() - 2 ); name = name.mid( 1, name.length() - 2 );
} }
if ( name.at( name.length() -1 ) == ')' ) { if ( name.tqat( name.length() -1 ) == ')' ) {
int br = name.tqfindRev( '(' ); int br = name.tqfindRev( '(' );
if ( br >= 0 ) { if ( br >= 0 ) {
comment = name.mid( br + 1, name.length() - br - 2 ) + " " + comment; comment = name.mid( br + 1, name.length() - br - 2 ) + " " + comment;
name.truncate( br ); name.truncate( br );
if ( name.at( name.length() - 1 ).isSpace() ) { if ( name.tqat( name.length() - 1 ).isSpace() ) {
name.truncate( br - 1 ); name.truncate( br - 1 );
} }
} }
@ -148,16 +148,16 @@ void importKMailAddressBook( KABC::AddressBook *ab )
TQStringList::ConstIterator it; TQStringList::ConstIterator it;
for ( it = kmailEntries.begin(); it != kmailEntries.end(); ++it ) { for ( it = kmailEntries.begin(); it != kmailEntries.end(); ++it ) {
if ( (*it).at( 0 ) == '#' ) continue; if ( (*it).tqat( 0 ) == '#' ) continue;
bool insideQuote = false; bool insideQuote = false;
int end = (*it).length() - 1; int end = (*it).length() - 1;
for ( int i = end; i; i-- ) { for ( int i = end; i; i-- ) {
if ( (*it).at( i ) == '"' ) { if ( (*it).tqat( i ) == '"' ) {
if ( insideQuote ) if ( insideQuote )
insideQuote = false; insideQuote = false;
else else
insideQuote = true; insideQuote = true;
} else if ( (*it).at( i ) == ',' && !insideQuote ) { } else if ( (*it).tqat( i ) == ',' && !insideQuote ) {
readKMailEntry( (*it).mid( i + 1, end - i ), ab ); readKMailEntry( (*it).mid( i + 1, end - i ), ab );
end = i - 1; end = i - 1;
} }

@ -64,7 +64,7 @@ ResourceSelectDialog::ResourceSelectDialog( AddressBook *ab, TQWidget *parent, c
uint counter = 0; uint counter = 0;
TQPtrList<Resource> list = ab->resources(); TQPtrList<Resource> list = ab->resources();
for ( uint i = 0; i < list.count(); ++i ) { for ( uint i = 0; i < list.count(); ++i ) {
Resource *resource = list.at( i ); Resource *resource = list.tqat( i );
if ( resource && !resource->readOnly() ) { if ( resource && !resource->readOnly() ) {
mResourceMap.insert( counter, resource ); mResourceMap.insert( counter, resource );
mResourceId->insertItem( resource->resourceName() ); mResourceId->insertItem( resource->resourceName() );

@ -64,12 +64,12 @@ int main(int /*argc*/,char /* **argv*/)
list.append(f); list.append(f);
list.sortBy(FamilyName); list.sortBy(FamilyName);
if ( !( (*list.at(0)).uid()=="78ze" if ( !( (*list.tqat(0)).uid()=="78ze"
&& (*list.at(1)).uid()=="Rsdf" && (*list.tqat(1)).uid()=="Rsdf"
&& (*list.at(2)).uid()=="Fhwn" && (*list.tqat(2)).uid()=="Fhwn"
&& (*list.at(3)).uid()=="kk45" && (*list.tqat(3)).uid()=="kk45"
&& (*list.at(4)).uid()=="Asdf" && (*list.tqat(4)).uid()=="Asdf"
&& (*list.at(5)).uid()=="Z2hk" && (*list.tqat(5)).uid()=="Z2hk"
) ) { ) ) {
kdError() << "SORTING BY FAMILY NAME NOT CORRECT!" << endl; kdError() << "SORTING BY FAMILY NAME NOT CORRECT!" << endl;
kdDebug() << "list sorted by family name:" << endl; kdDebug() << "list sorted by family name:" << endl;
@ -79,12 +79,12 @@ int main(int /*argc*/,char /* **argv*/)
} }
list.setReverseSorting(true); list.setReverseSorting(true);
list.sort(); list.sort();
if ( !( (*list.at(5)).uid()=="78ze" if ( !( (*list.tqat(5)).uid()=="78ze"
&& (*list.at(4)).uid()=="Rsdf" && (*list.tqat(4)).uid()=="Rsdf"
&& (*list.at(3)).uid()=="Fhwn" && (*list.tqat(3)).uid()=="Fhwn"
&& (*list.at(2)).uid()=="kk45" && (*list.tqat(2)).uid()=="kk45"
&& (*list.at(1)).uid()=="Asdf" && (*list.tqat(1)).uid()=="Asdf"
&& (*list.at(0)).uid()=="Z2hk" && (*list.tqat(0)).uid()=="Z2hk"
) ) { ) ) {
kdError() << "REVERSE SORTING BY FAMILY NAME NOT CORRECT!" << endl; kdError() << "REVERSE SORTING BY FAMILY NAME NOT CORRECT!" << endl;
kdDebug() << "list reverse sorted by family name:" << endl; kdDebug() << "list reverse sorted by family name:" << endl;
@ -95,12 +95,12 @@ int main(int /*argc*/,char /* **argv*/)
list.setReverseSorting(false); list.setReverseSorting(false);
list.sortBy(FormattedName); list.sortBy(FormattedName);
if ( !( (*list.at(0)).uid()=="78ze" if ( !( (*list.tqat(0)).uid()=="78ze"
&& (*list.at(1)).uid()=="Rsdf" && (*list.tqat(1)).uid()=="Rsdf"
&& (*list.at(2)).uid()=="Fhwn" && (*list.tqat(2)).uid()=="Fhwn"
&& (*list.at(3)).uid()=="kk45" && (*list.tqat(3)).uid()=="kk45"
&& (*list.at(4)).uid()=="Z2hk" && (*list.tqat(4)).uid()=="Z2hk"
&& (*list.at(5)).uid()=="Asdf" && (*list.tqat(5)).uid()=="Asdf"
) ) { ) ) {
kdError() << "SORTING BY FORMATTED NAME NOT CORRECT!" << endl; kdError() << "SORTING BY FORMATTED NAME NOT CORRECT!" << endl;
kdDebug() << "list sorted by formatted name:" << endl; kdDebug() << "list sorted by formatted name:" << endl;
@ -110,12 +110,12 @@ int main(int /*argc*/,char /* **argv*/)
} }
list.setReverseSorting(true); list.setReverseSorting(true);
list.sort(); list.sort();
if ( !( (*list.at(5)).uid()=="78ze" if ( !( (*list.tqat(5)).uid()=="78ze"
&& (*list.at(4)).uid()=="Rsdf" && (*list.tqat(4)).uid()=="Rsdf"
&& (*list.at(3)).uid()=="Fhwn" && (*list.tqat(3)).uid()=="Fhwn"
&& (*list.at(2)).uid()=="kk45" && (*list.tqat(2)).uid()=="kk45"
&& (*list.at(1)).uid()=="Z2hk" && (*list.tqat(1)).uid()=="Z2hk"
&& (*list.at(0)).uid()=="Asdf" && (*list.tqat(0)).uid()=="Asdf"
) ) { ) ) {
kdError() << "REVERSE SORTING BY FORMATTED NAME NOT CORRECT!" << endl; kdError() << "REVERSE SORTING BY FORMATTED NAME NOT CORRECT!" << endl;
kdDebug() << "list reverse sorted by formatted name:" << endl; kdDebug() << "list reverse sorted by formatted name:" << endl;
@ -127,12 +127,12 @@ int main(int /*argc*/,char /* **argv*/)
list.setReverseSorting(false); list.setReverseSorting(false);
list.sortBy(Uid); list.sortBy(Uid);
if ( !( (*list.at(0)).uid()=="78ze" if ( !( (*list.tqat(0)).uid()=="78ze"
&& (*list.at(1)).uid()=="Asdf" && (*list.tqat(1)).uid()=="Asdf"
&& (*list.at(2)).uid()=="Fhwn" && (*list.tqat(2)).uid()=="Fhwn"
&& (*list.at(3)).uid()=="Rsdf" && (*list.tqat(3)).uid()=="Rsdf"
&& (*list.at(4)).uid()=="Z2hk" && (*list.tqat(4)).uid()=="Z2hk"
&& (*list.at(5)).uid()=="kk45" && (*list.tqat(5)).uid()=="kk45"
) ) { ) ) {
kdError() << "SORTING BY UID NOT CORRECT!" << endl; kdError() << "SORTING BY UID NOT CORRECT!" << endl;
kdDebug() << "list sorted by Uid:" << endl; kdDebug() << "list sorted by Uid:" << endl;
@ -142,12 +142,12 @@ int main(int /*argc*/,char /* **argv*/)
} }
list.setReverseSorting(true); list.setReverseSorting(true);
list.sortBy(Uid); list.sortBy(Uid);
if ( !( (*list.at(5)).uid()=="78ze" if ( !( (*list.tqat(5)).uid()=="78ze"
&& (*list.at(4)).uid()=="Asdf" && (*list.tqat(4)).uid()=="Asdf"
&& (*list.at(3)).uid()=="Fhwn" && (*list.tqat(3)).uid()=="Fhwn"
&& (*list.at(2)).uid()=="Rsdf" && (*list.tqat(2)).uid()=="Rsdf"
&& (*list.at(1)).uid()=="Z2hk" && (*list.tqat(1)).uid()=="Z2hk"
&& (*list.at(0)).uid()=="kk45" && (*list.tqat(0)).uid()=="kk45"
) ) { ) ) {
kdError() << "REVERSE SORTING BY UID NOT CORRECT!" << endl; kdError() << "REVERSE SORTING BY UID NOT CORRECT!" << endl;
kdDebug() << "list sorted by Uid:" << endl; kdDebug() << "list sorted by Uid:" << endl;
@ -170,8 +170,8 @@ int main(int /*argc*/,char /* **argv*/)
list2.append(f); list2.append(f);
list2.setReverseSorting(false); list2.setReverseSorting(false);
list2.sort(); list2.sort();
if ( !( (*list2.at(0)).uid()=="78ze" if ( !( (*list2.tqat(0)).uid()=="78ze"
&& (*list2.at(1)).uid()=="Asdf" && (*list2.tqat(1)).uid()=="Asdf"
) ) { ) ) {
kdError() << "SORTING BY FORMATTED NAME IN A TWO ENTRY LIST NOT CORRECT!" << endl; kdError() << "SORTING BY FORMATTED NAME IN A TWO ENTRY LIST NOT CORRECT!" << endl;
kdDebug() << "list sorted by formatted name, two entries:" << endl; kdDebug() << "list sorted by formatted name, two entries:" << endl;
@ -181,8 +181,8 @@ int main(int /*argc*/,char /* **argv*/)
} }
list2.setReverseSorting(true); list2.setReverseSorting(true);
list2.sort(); list2.sort();
if ( !( (*list2.at(1)).uid()=="78ze" if ( !( (*list2.tqat(1)).uid()=="78ze"
&& (*list2.at(0)).uid()=="Asdf" && (*list2.tqat(0)).uid()=="Asdf"
) ) { ) ) {
kdError() << "REVERSE SORTING BY FORMATTED NAME IN A TWO ENTRY LIST NOT CORRECT!" << endl; kdError() << "REVERSE SORTING BY FORMATTED NAME IN A TWO ENTRY LIST NOT CORRECT!" << endl;
kdDebug() << "list reverse sorted by formatted name, two entries:" << endl; kdDebug() << "list reverse sorted by formatted name, two entries:" << endl;

@ -112,13 +112,13 @@ AdrValue::_parse()
switch (i) { switch (i) {
case 0: poBox_ = l.at(0); break; case 0: poBox_ = l.tqat(0); break;
case 1: extAddress_ = l.at(1); break; case 1: extAddress_ = l.tqat(1); break;
case 2: street_ = l.at(2); break; case 2: street_ = l.tqat(2); break;
case 3: locality_ = l.at(3); break; case 3: locality_ = l.tqat(3); break;
case 4: region_ = l.at(4); break; case 4: region_ = l.tqat(4); break;
case 5: postCode_ = l.at(5); break; case 5: postCode_ = l.tqat(5); break;
case 6: countryName_ = l.at(6); break; case 6: countryName_ = l.tqat(6); break;
default: break; default: break;
} }
} }

@ -174,7 +174,7 @@ ContentLine::_parse()
return; return;
} }
name_ = l.at(0); name_ = l.tqat(0);
// Now we have the name, so the rest of 'l' is the params. // Now we have the name, so the rest of 'l' is the params.
// Remove the name part. // Remove the name part.

@ -79,7 +79,7 @@ LangValue::_parse()
if (l.count() == 0) return; if (l.count() == 0) return;
primary_ = l.at(0); primary_ = l.tqat(0);
l.remove(0u); l.remove(0u);

@ -106,11 +106,11 @@ NValue::_parse()
for (unsigned int i = 0; i < l.count(); i++) { for (unsigned int i = 0; i < l.count(); i++) {
switch (i) { switch (i) {
case 0: family_ = l.at(0); break; case 0: family_ = l.tqat(0); break;
case 1: given_ = l.at(1); break; case 1: given_ = l.tqat(1); break;
case 2: middle_ = l.at(2); break; case 2: middle_ = l.tqat(2); break;
case 3: prefix_ = l.at(3); break; case 3: prefix_ = l.tqat(3); break;
case 4: suffix_ = l.at(4); break; case 4: suffix_ = l.tqat(4); break;
default: break; default: break;
} }
} }

@ -102,6 +102,6 @@ OrgValue::numValues()
OrgValue::value(unsigned int i) OrgValue::value(unsigned int i)
{ {
parse(); parse();
return valueList_.at(i); return valueList_.tqat(i);
} }

@ -102,6 +102,6 @@ TextListValue::numValues()
TextListValue::value(unsigned int i) TextListValue::value(unsigned int i)
{ {
parse(); parse();
return valueList_.at(i); return valueList_.tqat(i);
} }

@ -95,7 +95,7 @@ VCard::_parse()
} }
// Get the first line // Get the first line
TQCString beginLine = TQCString(l.at(0)).stripWhiteSpace(); TQCString beginLine = TQCString(l.tqat(0)).stripWhiteSpace();
vDebug("Begin line == \"" + beginLine + "\""); vDebug("Begin line == \"" + beginLine + "\"");

@ -144,7 +144,7 @@ VCard::List VCardParser::parseVCards( const TQString& text )
} }
else if ( vCardLine.parameter( "encoding" ).lower() == "quoted-printable" ) { else if ( vCardLine.parameter( "encoding" ).lower() == "quoted-printable" ) {
// join any qp-folded lines // join any qp-folded lines
while ( value.at( value.length() - 1 ) == '=' && it != linesEnd ) { while ( value.tqat( value.length() - 1 ) == '=' && it != linesEnd ) {
value = value.remove( value.length() - 1, 1 ) + (*it); value = value.remove( value.length() - 1, 1 ) + (*it);
++it; ++it;
} }

@ -113,6 +113,7 @@
<item> Q_INVOKABLE </item> <item> Q_INVOKABLE </item>
<item> Q_NOREPLY </item> <item> Q_NOREPLY </item>
<item> Q_OBJECT </item> <item> Q_OBJECT </item>
<item> TQ_OBJECT </item>
<item> Q_OVERRIDE </item> <item> Q_OVERRIDE </item>
<item> Q_PRIVATE_SLOT </item> <item> Q_PRIVATE_SLOT </item>
<item> Q_PROPERTY </item> <item> Q_PROPERTY </item>
@ -134,6 +135,7 @@
<item> slots </item> <item> slots </item>
<item> foreach </item> <item> foreach </item>
<item> forever </item> <item> forever </item>
<item> tqt_dynamic_cast</item>
<item> qint8 </item> <item> qint8 </item>
<item> qint16 </item> <item> qint16 </item>

@ -223,7 +223,7 @@ void KateNormalIndent::updateConfig ()
for (uint i=0; i<items.count(); i++) for (uint i=0; i<items.count(); i++)
{ {
TQString name = items.at(i)->name; TQString name = items.tqat(i)->name;
if (name.tqfind("Comment") != -1 && commentAttrib == 255) if (name.tqfind("Comment") != -1 && commentAttrib == 255)
{ {
commentAttrib = i; commentAttrib = i;
@ -2384,7 +2384,7 @@ void KateVarIndent::slotVariableChanged( const TQString &var, const TQString &va
for (uint i=0; i<items.count(); i++) for (uint i=0; i<items.count(); i++)
{ {
if ( items.at(i)->name.section( ':', 1 ) == val ) if ( items.tqat(i)->name.section( ':', 1 ) == val )
{ {
d->coupleAttrib = i; d->coupleAttrib = i;
break; break;

@ -128,7 +128,7 @@ void KateBookmarks::clearBookmarks ()
TQPtrList<KTextEditor::Mark> m = m_view->getDoc()->marks(); TQPtrList<KTextEditor::Mark> m = m_view->getDoc()->marks();
for (uint i=0; i < m.count(); i++) for (uint i=0; i < m.count(); i++)
m_view->getDoc()->removeMark( m.at(i)->line, KTextEditor::MarkInterface::markType01 ); m_view->getDoc()->removeMark( m.tqat(i)->line, KTextEditor::MarkInterface::markType01 );
// just to be sure ;) // just to be sure ;)
marksChanged (); marksChanged ();
@ -255,8 +255,8 @@ void KateBookmarks::goNext()
int found = -1; int found = -1;
for (uint z=0; z < m.count(); z++) for (uint z=0; z < m.count(); z++)
if ( (m.at(z)->line > line) && ((found == -1) || (uint(found) > m.at(z)->line)) ) if ( (m.tqat(z)->line > line) && ((found == -1) || (uint(found) > m.tqat(z)->line)) )
found = m.at(z)->line; found = m.tqat(z)->line;
if (found != -1) if (found != -1)
m_view->gotoLineNumber ( found ); m_view->gotoLineNumber ( found );
@ -272,8 +272,8 @@ void KateBookmarks::goPrevious()
int found = -1; int found = -1;
for (uint z=0; z < m.count(); z++) for (uint z=0; z < m.count(); z++)
if ((m.at(z)->line < line) && ((found == -1) || (uint(found) < m.at(z)->line))) if ((m.tqat(z)->line < line) && ((found == -1) || (uint(found) < m.tqat(z)->line)))
found = m.at(z)->line; found = m.tqat(z)->line;
if (found != -1) if (found != -1)
m_view->gotoLineNumber ( found ); m_view->gotoLineNumber ( found );

@ -1259,7 +1259,7 @@ void KateCodeFoldingTree::cleanupUnneededNodes(unsigned int line)
for (int i=0; i<(int)markedForDeleting.count(); i++) for (int i=0; i<(int)markedForDeleting.count(); i++)
{ {
KateCodeFoldingNode *node = markedForDeleting.at(i); KateCodeFoldingNode *node = markedForDeleting.tqat(i);
if (node->deleteOpening) if (node->deleteOpening)
kdDebug(13000)<<"DELETE OPENING SET"<<endl; kdDebug(13000)<<"DELETE OPENING SET"<<endl;
if (node->deleteEnding) if (node->deleteEnding)
@ -1335,7 +1335,7 @@ void KateCodeFoldingTree::toggleRegionVisibility(unsigned int line)
findAllNodesOpenedOrClosedAt(line); findAllNodesOpenedOrClosedAt(line);
for (int i=0; i<(int)nodesForLine.count(); i++) for (int i=0; i<(int)nodesForLine.count(); i++)
{ {
KateCodeFoldingNode *node=nodesForLine.at(i); KateCodeFoldingNode *node=nodesForLine.tqat(i);
if ( (!node->startLineValid) || (getStartLine(node) != line) ) if ( (!node->startLineValid) || (getStartLine(node) != line) )
{ {
nodesForLine.remove(i); nodesForLine.remove(i);
@ -1346,10 +1346,10 @@ void KateCodeFoldingTree::toggleRegionVisibility(unsigned int line)
if (nodesForLine.isEmpty()) if (nodesForLine.isEmpty())
return; return;
nodesForLine.at(0)->visible = !nodesForLine.at(0)->visible; nodesForLine.tqat(0)->visible = !nodesForLine.tqat(0)->visible;
if (!nodesForLine.at(0)->visible) if (!nodesForLine.tqat(0)->visible)
addHiddenLineBlock(nodesForLine.at(0),line); addHiddenLineBlock(nodesForLine.tqat(0),line);
else else
{ {
for (TQValueList<KateHiddenLineBlock>::Iterator it=hiddenLines.begin(); it!=hiddenLines.end();++it) for (TQValueList<KateHiddenLineBlock>::Iterator it=hiddenLines.begin(); it!=hiddenLines.end();++it)
@ -1359,7 +1359,7 @@ void KateCodeFoldingTree::toggleRegionVisibility(unsigned int line)
break; break;
} }
updateHiddenSubNodes(nodesForLine.at(0)); updateHiddenSubNodes(nodesForLine.tqat(0));
} }
emit regionVisibilityChangedAt(line); emit regionVisibilityChangedAt(line);

@ -237,7 +237,7 @@ void KateDocumentConfig::updateConfig ()
{ {
for (uint z=0; z < KateFactory::self()->documents()->count(); z++) for (uint z=0; z < KateFactory::self()->documents()->count(); z++)
{ {
KateFactory::self()->documents()->at(z)->updateConfig (); KateFactory::self()->documents()->tqat(z)->updateConfig ();
} }
} }
} }
@ -570,8 +570,8 @@ bool KateDocumentConfig::plugin (uint index) const
if (index >= m_plugins.size()) if (index >= m_plugins.size())
return false; return false;
if (m_pluginsSet.at(index) || isGlobal()) if (m_pluginsSet.tqat(index) || isGlobal())
return m_plugins.at(index); return m_plugins.tqat(index);
return s_global->plugin (index); return s_global->plugin (index);
} }
@ -734,7 +734,7 @@ void KateViewConfig::updateConfig ()
{ {
for (uint z=0; z < KateFactory::self()->views()->count(); z++) for (uint z=0; z < KateFactory::self()->views()->count(); z++)
{ {
KateFactory::self()->views()->at(z)->updateConfig (); KateFactory::self()->views()->tqat(z)->updateConfig ();
} }
} }
} }
@ -1088,7 +1088,7 @@ void KateRendererConfig::updateConfig ()
{ {
for (uint z=0; z < KateFactory::self()->renderers()->count(); z++) for (uint z=0; z < KateFactory::self()->renderers()->count(); z++)
{ {
KateFactory::self()->renderers()->at(z)->updateConfig (); KateFactory::self()->renderers()->tqat(z)->updateConfig ();
} }
} }
} }
@ -1114,7 +1114,7 @@ void KateRendererConfig::reloadSchema()
{ {
if ( isGlobal() ) if ( isGlobal() )
for ( uint z=0; z < KateFactory::self()->renderers()->count(); z++ ) for ( uint z=0; z < KateFactory::self()->renderers()->count(); z++ )
KateFactory::self()->renderers()->at(z)->config()->reloadSchema(); KateFactory::self()->renderers()->tqat(z)->config()->reloadSchema();
else if ( m_renderer && m_schemaSet ) else if ( m_renderer && m_schemaSet )
setSchemaInternal( m_schema ); setSchemaInternal( m_schema );

@ -819,7 +819,7 @@ void KateEditKeyConfiguration::showEvent ( TQShowEvent * )
if (!m_ready) if (!m_ready)
{ {
(new TQVBoxLayout(this))->setAutoAdd(true); (new TQVBoxLayout(this))->setAutoAdd(true);
KateView* view = (KateView*)m_doc->views().at(0); KateView* view = (KateView*)m_doc->views().tqat(0);
m_ac = view->editActionCollection(); m_ac = view->editActionCollection();
m_keyChooser = new KKeyChooser( m_ac, this, false ); m_keyChooser = new KKeyChooser( m_ac, this, false );
connect( m_keyChooser, TQT_SIGNAL( keyChange() ), this, TQT_SLOT( slotChanged() ) ); connect( m_keyChooser, TQT_SIGNAL( keyChange() ), this, TQT_SLOT( slotChanged() ) );
@ -1154,7 +1154,7 @@ void KatePartPluginConfigPage::apply ()
KateDocumentConfig::global()->configStart (); KateDocumentConfig::global()->configStart ();
for (uint i=0; i < m_items.count(); i++) for (uint i=0; i < m_items.count(); i++)
KateDocumentConfig::global()->setPlugin (m_items.at(i)->pluginIndex(), m_items.at(i)->isOn()); KateDocumentConfig::global()->setPlugin (m_items.tqat(i)->pluginIndex(), m_items.tqat(i)->isOn());
KateDocumentConfig::global()->configEnd (); KateDocumentConfig::global()->configEnd ();
} }
@ -1243,7 +1243,7 @@ void KatePartPluginConfigPage::slotConfigure()
for( uint i=0; i<editorPages.count(); i++ ) for( uint i=0; i<editorPages.count(); i++ )
{ {
editorPages.at( i )->apply(); editorPages.tqat( i )->apply();
} }
} }

@ -323,7 +323,7 @@ void KateDocument::enablePluginGUI (KTextEditor::Plugin *plugin)
if (!KTextEditor::pluginViewInterface(plugin)) return; if (!KTextEditor::pluginViewInterface(plugin)) return;
for (uint i=0; i< m_views.count(); i++) for (uint i=0; i< m_views.count(); i++)
enablePluginGUI (plugin, m_views.at(i)); enablePluginGUI (plugin, m_views.tqat(i));
} }
void KateDocument::disablePluginGUI (KTextEditor::Plugin *plugin, KateView *view) void KateDocument::disablePluginGUI (KTextEditor::Plugin *plugin, KateView *view)
@ -347,7 +347,7 @@ void KateDocument::disablePluginGUI (KTextEditor::Plugin *plugin)
if (!KTextEditor::pluginViewInterface(plugin)) return; if (!KTextEditor::pluginViewInterface(plugin)) return;
for (uint i=0; i< m_views.count(); i++) for (uint i=0; i< m_views.count(); i++)
disablePluginGUI (plugin, m_views.at(i)); disablePluginGUI (plugin, m_views.tqat(i));
} }
//END //END
@ -641,7 +641,7 @@ bool KateDocument::setText(const TQString &s)
TQValueList<KTextEditor::Mark> msave; TQValueList<KTextEditor::Mark> msave;
for (uint i=0; i < m.count(); i++) for (uint i=0; i < m.count(); i++)
msave.append (*m.at(i)); msave.append (*m.tqat(i));
editStart (); editStart ();
@ -924,7 +924,7 @@ void KateDocument::editStart (bool withUndo)
for (uint z = 0; z < m_views.count(); z++) for (uint z = 0; z < m_views.count(); z++)
{ {
m_views.at(z)->editStart (); m_views.tqat(z)->editStart ();
} }
m_buffer->editStart (); m_buffer->editStart ();
@ -1029,7 +1029,7 @@ void KateDocument::editEnd ()
// edit end for all views !!!!!!!!! // edit end for all views !!!!!!!!!
for (uint z = 0; z < m_views.count(); z++) for (uint z = 0; z < m_views.count(); z++)
m_views.at(z)->editEnd (m_buffer->editTagStart(), m_buffer->editTagEnd(), m_buffer->editTagFrom()); m_views.tqat(z)->editEnd (m_buffer->editTagStart(), m_buffer->editTagEnd(), m_buffer->editTagFrom());
if (m_buffer->editChanged()) if (m_buffer->editChanged())
{ {
@ -2011,7 +2011,7 @@ void KateDocument::configDialog()
for (uint i=0; i<editorPages.count(); i++) for (uint i=0; i<editorPages.count(); i++)
{ {
editorPages.at(i)->apply(); editorPages.tqat(i)->apply();
} }
KateDocumentConfig::global()->configEnd (); KateDocumentConfig::global()->configEnd ();
@ -2869,7 +2869,7 @@ void KateDocument::setModified(bool m) {
void KateDocument::makeAttribs(bool needInvalidate) void KateDocument::makeAttribs(bool needInvalidate)
{ {
for (uint z = 0; z < m_views.count(); z++) for (uint z = 0; z < m_views.count(); z++)
m_views.at(z)->renderer()->updateAttributes (); m_views.tqat(z)->renderer()->updateAttributes ();
if (needInvalidate) if (needInvalidate)
m_buffer->tqinvalidateHighlighting(); m_buffer->tqinvalidateHighlighting();
@ -3227,7 +3227,7 @@ void KateDocument::del( KateView *view, const KateTextCursor& c )
void KateDocument::paste ( KateView* view ) void KateDocument::paste ( KateView* view )
{ {
TQString s = TQApplication::clipboard()->text(); TQString s = TQApplication::tqclipboard()->text();
if (s.isEmpty()) if (s.isEmpty())
return; return;
@ -3981,7 +3981,7 @@ void KateDocument::transform( KateView *v, const KateTextCursor &c,
if ( ( ! start && ! p ) || if ( ( ! start && ! p ) ||
( ( ln == selstart.line() || v->blockSelectionMode() ) && ( ( ln == selstart.line() || v->blockSelectionMode() ) &&
! p && ! highlight()->isInWord( l->getChar( start - 1 )) ) || ! p && ! highlight()->isInWord( l->getChar( start - 1 )) ) ||
( p && ! highlight()->isInWord( s.at( p-1 ) ) ) ( p && ! highlight()->isInWord( s.tqat( p-1 ) ) )
) )
s[p] = s.tqat(p).upper(); s[p] = s.tqat(p).upper();
p++; p++;
@ -4096,7 +4096,7 @@ TQString KateDocument::getWord( const KateTextCursor& cursor ) {
void KateDocument::tagLines(int start, int end) void KateDocument::tagLines(int start, int end)
{ {
for (uint z = 0; z < m_views.count(); z++) for (uint z = 0; z < m_views.count(); z++)
m_views.at(z)->tagLines (start, end, true); m_views.tqat(z)->tagLines (start, end, true);
} }
void KateDocument::tagLines(KateTextCursor start, KateTextCursor end) void KateDocument::tagLines(KateTextCursor start, KateTextCursor end)
@ -4109,21 +4109,21 @@ void KateDocument::tagLines(KateTextCursor start, KateTextCursor end)
} }
for (uint z = 0; z < m_views.count(); z++) for (uint z = 0; z < m_views.count(); z++)
m_views.at(z)->tagLines(start, end, true); m_views.tqat(z)->tagLines(start, end, true);
} }
void KateDocument::tqrepaintViews(bool paintOnlyDirty) void KateDocument::tqrepaintViews(bool paintOnlyDirty)
{ {
for (uint z = 0; z < m_views.count(); z++) for (uint z = 0; z < m_views.count(); z++)
m_views.at(z)->tqrepaintText(paintOnlyDirty); m_views.tqat(z)->tqrepaintText(paintOnlyDirty);
} }
void KateDocument::tagAll() void KateDocument::tagAll()
{ {
for (uint z = 0; z < m_views.count(); z++) for (uint z = 0; z < m_views.count(); z++)
{ {
m_views.at(z)->tagAll(); m_views.tqat(z)->tagAll();
m_views.at(z)->updateView (true); m_views.tqat(z)->updateView (true);
} }
} }
@ -4287,9 +4287,9 @@ void KateDocument::setDocName (TQString name )
for (uint z=0; z < KateFactory::self()->documents()->count(); z++) for (uint z=0; z < KateFactory::self()->documents()->count(); z++)
{ {
if ( (KateFactory::self()->documents()->at(z) != this) && (KateFactory::self()->documents()->at(z)->url().filename() == url().filename()) ) if ( (KateFactory::self()->documents()->tqat(z) != this) && (KateFactory::self()->documents()->tqat(z)->url().filename() == url().filename()) )
if ( KateFactory::self()->documents()->at(z)->m_docNameNumber > count ) if ( KateFactory::self()->documents()->tqat(z)->m_docNameNumber > count )
count = KateFactory::self()->documents()->at(z)->m_docNameNumber; count = KateFactory::self()->documents()->tqat(z)->m_docNameNumber;
} }
m_docNameNumber = count + 1; m_docNameNumber = count + 1;
@ -4437,14 +4437,14 @@ void KateDocument::reloadFile()
TQValueList<int> lines, cols; TQValueList<int> lines, cols;
for ( uint i=0; i < m_views.count(); i++ ) for ( uint i=0; i < m_views.count(); i++ )
{ {
lines.append( m_views.at( i )->cursorLine() ); lines.append( m_views.tqat( i )->cursorLine() );
cols.append( m_views.at( i )->cursorColumn() ); cols.append( m_views.tqat( i )->cursorColumn() );
} }
KateDocument::openURL( url() ); KateDocument::openURL( url() );
for ( uint i=0; i < m_views.count(); i++ ) for ( uint i=0; i < m_views.count(); i++ )
m_views.at( i )->setCursorPositionInternal( lines[ i ], cols[ i ], m_config->tabWidth(), false ); m_views.tqat( i )->setCursorPositionInternal( lines[ i ], cols[ i ], m_config->tabWidth(), false );
m_reloading = false; m_reloading = false;

@ -267,7 +267,7 @@ KateIndentScript KateFactory::indentScript (const TQString &scriptname)
KateIndentScript result; KateIndentScript result;
for(uint i=0;i<m_indentScriptManagers.count();i++) for(uint i=0;i<m_indentScriptManagers.count();i++)
{ {
result=m_indentScriptManagers.at(i)->script(scriptname); result=m_indentScriptManagers.tqat(i)->script(scriptname);
if (!result.isNull()) return result; if (!result.isNull()) return result;
} }
return result; return result;

@ -106,20 +106,20 @@ void KateFileTypeManager::save (TQPtrList<KateFileType> *v)
TQStringList newg; TQStringList newg;
for (uint z=0; z < v->count(); z++) for (uint z=0; z < v->count(); z++)
{ {
config.setGroup (v->at(z)->name); config.setGroup (v->tqat(z)->name);
config.writeEntry ("Section", v->at(z)->section); config.writeEntry ("Section", v->tqat(z)->section);
config.writeEntry ("Wildcards", v->at(z)->wildcards, ';'); config.writeEntry ("Wildcards", v->tqat(z)->wildcards, ';');
config.writeEntry ("Mimetypes", v->at(z)->mimetypes, ';'); config.writeEntry ("Mimetypes", v->tqat(z)->mimetypes, ';');
config.writeEntry ("Priority", v->at(z)->priority); config.writeEntry ("Priority", v->tqat(z)->priority);
TQString varLine = v->at(z)->varLine; TQString varLine = v->tqat(z)->varLine;
if (TQRegExp("kate:(.*)").search(varLine) < 0) if (TQRegExp("kate:(.*)").search(varLine) < 0)
varLine.prepend ("kate: "); varLine.prepend ("kate: ");
config.writeEntry ("Variables", varLine); config.writeEntry ("Variables", varLine);
newg << v->at(z)->name; newg << v->tqat(z)->name;
} }
TQStringList g (config.groupList()); TQStringList g (config.groupList());
@ -187,8 +187,8 @@ int KateFileTypeManager::fileType (KateDocument *doc)
for (uint z=0; z < m_types.count(); z++) for (uint z=0; z < m_types.count(); z++)
{ {
if (m_types.at(z)->mimetypes.tqfindIndex (mt->name()) > -1) if (m_types.tqat(z)->mimetypes.tqfindIndex (mt->name()) > -1)
types.append (m_types.at(z)); types.append (m_types.tqat(z));
} }
if ( !types.isEmpty() ) if ( !types.isEmpty() )
@ -218,13 +218,13 @@ int KateFileTypeManager::wildcardsFind (const TQString &fileName)
for (uint z=0; z < m_types.count(); z++) for (uint z=0; z < m_types.count(); z++)
{ {
for( TQStringList::Iterator it = m_types.at(z)->wildcards.begin(); it != m_types.at(z)->wildcards.end(); ++it ) for( TQStringList::Iterator it = m_types.tqat(z)->wildcards.begin(); it != m_types.tqat(z)->wildcards.end(); ++it )
{ {
// anders: we need to be sure to match the end of string, as eg a css file // anders: we need to be sure to match the end of string, as eg a css file
// would otherwise end up with the c hl // would otherwise end up with the c hl
TQRegExp re(*it, true, true); TQRegExp re(*it, true, true);
if ( ( re.search( fileName ) > -1 ) && ( re.matchedLength() == (int)fileName.length() ) ) if ( ( re.search( fileName ) > -1 ) && ( re.matchedLength() == (int)fileName.length() ) )
types.append (m_types.at(z)); types.append (m_types.tqat(z));
} }
} }
@ -251,7 +251,7 @@ int KateFileTypeManager::wildcardsFind (const TQString &fileName)
const KateFileType *KateFileTypeManager::fileType (uint number) const KateFileType *KateFileTypeManager::fileType (uint number)
{ {
if (number < m_types.count()) if (number < m_types.count())
return m_types.at(number); return m_types.tqat(number);
return 0; return 0;
} }
@ -373,7 +373,7 @@ void KateFileTypeConfigTab::reload()
{ {
KateFileType *type = new KateFileType (); KateFileType *type = new KateFileType ();
*type = *KateFactory::self()->fileTypeManager()->list()->at(z); *type = *KateFactory::self()->fileTypeManager()->list()->tqat(z);
m_types.append (type); m_types.append (type);
} }
@ -398,10 +398,10 @@ void KateFileTypeConfigTab::update ()
typeCombo->clear (); typeCombo->clear ();
for( uint i = 0; i < m_types.count(); i++) { for( uint i = 0; i < m_types.count(); i++) {
if (m_types.at(i)->section.length() > 0) if (m_types.tqat(i)->section.length() > 0)
typeCombo->insertItem(m_types.at(i)->section + TQString ("/") + m_types.at(i)->name); typeCombo->insertItem(m_types.tqat(i)->section + TQString ("/") + m_types.tqat(i)->name);
else else
typeCombo->insertItem(m_types.at(i)->name); typeCombo->insertItem(m_types.tqat(i)->name);
} }
typeCombo->setCurrentItem (0); typeCombo->setCurrentItem (0);
@ -427,7 +427,7 @@ void KateFileTypeConfigTab::newType ()
TQString newN = i18n("New Filetype"); TQString newN = i18n("New Filetype");
for( uint i = 0; i < m_types.count(); i++) { for( uint i = 0; i < m_types.count(); i++) {
if (m_types.at(i)->name == newN) if (m_types.tqat(i)->name == newN)
{ {
typeCombo->setCurrentItem (i); typeCombo->setCurrentItem (i);
typeChanged (i); typeChanged (i);
@ -464,7 +464,7 @@ void KateFileTypeConfigTab::typeChanged (int type)
KateFileType *t = 0; KateFileType *t = 0;
if ((type > -1) && ((uint)type < m_types.count())) if ((type > -1) && ((uint)type < m_types.count()))
t = m_types.at(type); t = m_types.tqat(type);
if (t) if (t)
{ {
@ -536,8 +536,8 @@ void KateViewFileTypeAction::slotAboutToShow()
for (int z=0; z<count; z++) for (int z=0; z<count; z++)
{ {
TQString hlName = KateFactory::self()->fileTypeManager()->list()->at(z)->name; TQString hlName = KateFactory::self()->fileTypeManager()->list()->tqat(z)->name;
TQString hlSection = KateFactory::self()->fileTypeManager()->list()->at(z)->section; TQString hlSection = KateFactory::self()->fileTypeManager()->list()->tqat(z)->section;
if ( !hlSection.isEmpty() && (names.tqcontains(hlName) < 1) ) if ( !hlSection.isEmpty() && (names.tqcontains(hlName) < 1) )
{ {
@ -551,7 +551,7 @@ void KateViewFileTypeAction::slotAboutToShow()
int m = subMenusName.tqfindIndex (hlSection); int m = subMenusName.tqfindIndex (hlSection);
names << hlName; names << hlName;
subMenus.at(m)->insertItem ( hlName, this, TQT_SLOT(setType(int)), 0, z+1); subMenus.tqat(m)->insertItem ( hlName, this, TQT_SLOT(setType(int)), 0, z+1);
} }
else if (names.tqcontains(hlName) < 1) else if (names.tqcontains(hlName) < 1)
{ {
@ -564,8 +564,8 @@ void KateViewFileTypeAction::slotAboutToShow()
for (uint i=0;i<subMenus.count();i++) for (uint i=0;i<subMenus.count();i++)
{ {
for (uint i2=0;i2<subMenus.at(i)->count();i2++) for (uint i2=0;i2<subMenus.tqat(i)->count();i2++)
subMenus.at(i)->setItemChecked(subMenus.at(i)->idAt(i2),false); subMenus.tqat(i)->setItemChecked(subMenus.tqat(i)->idAt(i2),false);
} }
popupMenu()->setItemChecked (0, false); popupMenu()->setItemChecked (0, false);
@ -577,8 +577,8 @@ void KateViewFileTypeAction::slotAboutToShow()
if ((t = KateFactory::self()->fileTypeManager()->fileType (doc->fileType()))) if ((t = KateFactory::self()->fileTypeManager()->fileType (doc->fileType())))
{ {
int i = subMenusName.tqfindIndex (t->section); int i = subMenusName.tqfindIndex (t->section);
if (i >= 0 && subMenus.at(i)) if (i >= 0 && subMenus.tqat(i))
subMenus.at(i)->setItemChecked (doc->fileType()+1, true); subMenus.tqat(i)->setItemChecked (doc->fileType()+1, true);
else else
popupMenu()->setItemChecked (0, true); popupMenu()->setItemChecked (0, true);
} }

@ -815,7 +815,7 @@ int KateHlCOct::checkHgl(const TQString& text, int offset, int len)
int offset2 = offset; int offset2 = offset;
while ((len > 0) && (text.at(offset2) >= '0' && text.at(offset2) <= '7')) while ((len > 0) && (text.tqat(offset2) >= TQChar('0') && text.tqat(offset2) <= TQChar('7')))
{ {
offset2++; offset2++;
len--; len--;
@ -1038,7 +1038,7 @@ static int checkEscapedChar(const TQString& text, int offset, int& len)
// replaced with something else but // replaced with something else but
// for right now they work // for right now they work
// check for hexdigits // check for hexdigits
for (i = 0; (len > 0) && (i < 2) && (text.at(offset) >= '0' && text.at(offset) <= '9' || (text[offset] & 0xdf) >= 'A' && (text[offset] & 0xdf) <= 'F'); i++) for (i = 0; (len > 0) && (i < 2) && (static_cast<const char>(text.tqat(offset)) >= '0' && static_cast<const char>(text.tqat(offset)) <= '9' || (text[offset] & 0xdf) >= 'A' && (text[offset] & 0xdf) <= 'F'); i++)
{ {
offset++; offset++;
len--; len--;
@ -1051,7 +1051,7 @@ static int checkEscapedChar(const TQString& text, int offset, int& len)
case '0': case '1': case '2': case '3' : case '0': case '1': case '2': case '3' :
case '4': case '5': case '6': case '7' : case '4': case '5': case '6': case '7' :
for (i = 0; (len > 0) && (i < 3) && (text.at(offset) >='0'&& text.at(offset) <='7'); i++) for (i = 0; (len > 0) && (i < 3) && (static_cast<const char>(text.tqat(offset)) >= '0' && static_cast<const char>(text.tqat(offset)) <= '7'); i++)
{ {
offset++; offset++;
len--; len--;
@ -1890,7 +1890,7 @@ void KateHighlighting::addToKateHlItemDataList()
int KateHighlighting::lookupAttrName(const TQString& name, KateHlItemDataList &iDl) int KateHighlighting::lookupAttrName(const TQString& name, KateHlItemDataList &iDl)
{ {
for (uint i = 0; i < iDl.count(); i++) for (uint i = 0; i < iDl.count(); i++)
if (iDl.at(i)->name == buildPrefix+name) if (iDl.tqat(i)->name == buildPrefix+name)
return i; return i;
kdDebug(13010)<<"Couldn't resolve itemDataName:"<<name<<endl; kdDebug(13010)<<"Couldn't resolve itemDataName:"<<name<<endl;
@ -2885,13 +2885,13 @@ void KateHighlighting::clearAttributeArrays ()
for (uint z = 0; z < nAttribs; z++) for (uint z = 0; z < nAttribs; z++)
{ {
KateHlItemData *itemData = itemDataList.at(z); KateHlItemData *itemData = itemDataList.tqat(z);
KateAttribute n = *defaultStyleList.at(itemData->defStyleNum); KateAttribute n = *defaultStyleList.tqat(itemData->defStyleNum);
if (itemData && itemData->isSomethingSet()) if (itemData && itemData->isSomethingSet())
n += *itemData; n += *itemData;
array->at(z) = n; array->tqat(z) = n;
} }
} }
} }
@ -2924,13 +2924,13 @@ TQMemArray<KateAttribute> *KateHighlighting::attributes (uint schema)
for (uint z = 0; z < nAttribs; z++) for (uint z = 0; z < nAttribs; z++)
{ {
KateHlItemData *itemData = itemDataList.at(z); KateHlItemData *itemData = itemDataList.tqat(z);
KateAttribute n = *defaultStyleList.at(itemData->defStyleNum); KateAttribute n = *defaultStyleList.tqat(itemData->defStyleNum);
if (itemData && itemData->isSomethingSet()) if (itemData && itemData->isSomethingSet())
n += *itemData; n += *itemData;
array->at(z) = n; array->tqat(z) = n;
} }
m_attributeArrays.insert(schema, array); m_attributeArrays.insert(schema, array);
@ -2946,7 +2946,7 @@ void KateHighlighting::getKateHlItemDataListCopy (uint schema, KateHlItemDataLis
outlist.clear (); outlist.clear ();
outlist.setAutoDelete (true); outlist.setAutoDelete (true);
for (uint z=0; z < itemDataList.count(); z++) for (uint z=0; z < itemDataList.count(); z++)
outlist.append (new KateHlItemData (*itemDataList.at(z))); outlist.append (new KateHlItemData (*itemDataList.tqat(z)));
} }
//END //END
@ -2974,7 +2974,7 @@ KateHlManager::KateHlManager()
if (insert == hlList.count()) if (insert == hlList.count())
break; break;
if ( TQString(hlList.at(insert)->section() + hlList.at(insert)->nameTranslated()).lower() if ( TQString(hlList.tqat(insert)->section() + hlList.tqat(insert)->nameTranslated()).lower()
> TQString(hl->section() + hl->nameTranslated()).lower() ) > TQString(hl->section() + hl->nameTranslated()).lower() )
break; break;
} }
@ -3011,14 +3011,14 @@ KateHighlighting *KateHlManager::getHl(int n)
if (n < 0 || n >= (int) hlList.count()) if (n < 0 || n >= (int) hlList.count())
n = 0; n = 0;
return hlList.at(n); return hlList.tqat(n);
} }
int KateHlManager::nameFind(const TQString &name) int KateHlManager::nameFind(const TQString &name)
{ {
int z (hlList.count() - 1); int z (hlList.count() - 1);
for (; z > 0; z--) for (; z > 0; z--)
if (hlList.at(z)->name() == name) if (hlList.tqat(z)->name() == name)
return z; return z;
return z; return z;
@ -3269,7 +3269,7 @@ void KateHlManager::getDefaults(uint schema, KateAttributeList &list)
for (uint z = 0; z < defaultStyles(); z++) for (uint z = 0; z < defaultStyles(); z++)
{ {
KateAttribute *i = list.at(z); KateAttribute *i = list.tqat(z);
TQStringList s = config->readListEntry(defaultStyleName(z)); TQStringList s = config->readListEntry(defaultStyleName(z));
if (!s.isEmpty()) if (!s.isEmpty())
{ {
@ -3323,7 +3323,7 @@ void KateHlManager::setDefaults(uint schema, KateAttributeList &list)
for (uint z = 0; z < defaultStyles(); z++) for (uint z = 0; z < defaultStyles(); z++)
{ {
TQStringList settings; TQStringList settings;
KateAttribute *i = list.at(z); KateAttribute *i = list.tqat(z);
settings<<(i->itemSet(KateAttribute::TextColor)?TQString::number(i->textColor().rgb(),16):""); settings<<(i->itemSet(KateAttribute::TextColor)?TQString::number(i->textColor().rgb(),16):"");
settings<<(i->itemSet(KateAttribute::SelectedTextColor)?TQString::number(i->selectedTextColor().rgb(),16):""); settings<<(i->itemSet(KateAttribute::SelectedTextColor)?TQString::number(i->selectedTextColor().rgb(),16):"");
@ -3348,22 +3348,22 @@ int KateHlManager::highlights()
TQString KateHlManager::hlName(int n) TQString KateHlManager::hlName(int n)
{ {
return hlList.at(n)->name(); return hlList.tqat(n)->name();
} }
TQString KateHlManager::hlNameTranslated(int n) TQString KateHlManager::hlNameTranslated(int n)
{ {
return hlList.at(n)->nameTranslated(); return hlList.tqat(n)->nameTranslated();
} }
TQString KateHlManager::hlSection(int n) TQString KateHlManager::hlSection(int n)
{ {
return hlList.at(n)->section(); return hlList.tqat(n)->section();
} }
bool KateHlManager::hlHidden(int n) bool KateHlManager::hlHidden(int n)
{ {
return hlList.at(n)->hidden(); return hlList.tqat(n)->hidden();
} }
TQString KateHlManager::identifierForName(const TQString& name) TQString KateHlManager::identifierForName(const TQString& name)
@ -3433,7 +3433,7 @@ void KateViewHighlightAction::slotAboutToShow()
int m = subMenusName.tqfindIndex (hlSection); int m = subMenusName.tqfindIndex (hlSection);
names << hlName; names << hlName;
subMenus.at(m)->insertItem ( '&' + hlName, this, TQT_SLOT(setHl(int)), 0, z); subMenus.tqat(m)->insertItem ( '&' + hlName, this, TQT_SLOT(setHl(int)), 0, z);
} }
else if (names.tqcontains(hlName) < 1) else if (names.tqcontains(hlName) < 1)
{ {
@ -3447,16 +3447,16 @@ void KateViewHighlightAction::slotAboutToShow()
for (uint i=0;i<subMenus.count();i++) for (uint i=0;i<subMenus.count();i++)
{ {
for (uint i2=0;i2<subMenus.at(i)->count();i2++) for (uint i2=0;i2<subMenus.tqat(i)->count();i2++)
{ {
subMenus.at(i)->setItemChecked(subMenus.at(i)->idAt(i2),false); subMenus.tqat(i)->setItemChecked(subMenus.tqat(i)->idAt(i2),false);
} }
} }
popupMenu()->setItemChecked (0, false); popupMenu()->setItemChecked (0, false);
int i = subMenusName.tqfindIndex (KateHlManager::self()->hlSection(doc->hlMode())); int i = subMenusName.tqfindIndex (KateHlManager::self()->hlSection(doc->hlMode()));
if (i >= 0 && subMenus.at(i)) if (i >= 0 && subMenus.tqat(i))
subMenus.at(i)->setItemChecked (doc->hlMode(), true); subMenus.tqat(i)->setItemChecked (doc->hlMode(), true);
else else
popupMenu()->setItemChecked (0, true); popupMenu()->setItemChecked (0, true);
} }

@ -416,10 +416,10 @@ KJS::Value KJS::KateJSDocumentProtoFunc::call(KJS::ExecState *exec, KJS::Object
return KJS::Null (); return KJS::Null ();
case KateJSDocument::IsInWord: case KateJSDocument::IsInWord:
return KJS::Boolean( doc->highlight()->isInWord( args[0].toString(exec).qstring().at(0), args[1].toUInt32(exec) ) ); return KJS::Boolean( doc->highlight()->isInWord( args[0].toString(exec).qstring().tqat(0), args[1].toUInt32(exec) ) );
case KateJSDocument::CanBreakAt: case KateJSDocument::CanBreakAt:
return KJS::Boolean( doc->highlight()->canBreakAt( args[0].toString(exec).qstring().at(0), args[1].toUInt32(exec) ) ); return KJS::Boolean( doc->highlight()->canBreakAt( args[0].toString(exec).qstring().tqat(0), args[1].toUInt32(exec) ) );
case KateJSDocument::CanComment: case KateJSDocument::CanComment:
return KJS::Boolean( doc->highlight()->canComment( args[0].toUInt32(exec), args[1].toUInt32(exec) ) ); return KJS::Boolean( doc->highlight()->canComment( args[0].toUInt32(exec), args[1].toUInt32(exec) ) );

@ -505,7 +505,7 @@ bool KatePrinter::print (KateDocument *doc)
// use color of dsNormal for the title string and the hline // use color of dsNormal for the title string and the hline
KateAttributeList _dsList; KateAttributeList _dsList;
KateHlManager::self()->getDefaults ( renderer.config()->schema(), _dsList ); KateHlManager::self()->getDefaults ( renderer.config()->schema(), _dsList );
paint.setPen( _dsList.at(0)->textColor() ); paint.setPen( _dsList.tqat(0)->textColor() );
int _marg = 0; // this could be available globally!?? int _marg = 0; // this could be available globally!??
if ( useBox ) if ( useBox )
{ {

@ -69,9 +69,9 @@ void KateRenderer::updateAttributes ()
KateAttribute* KateRenderer::attribute(uint pos) KateAttribute* KateRenderer::attribute(uint pos)
{ {
if (pos < m_attributes->size()) if (pos < m_attributes->size())
return &m_attributes->at(pos); return &m_attributes->tqat(pos);
return &m_attributes->at(0); return &m_attributes->tqat(0);
} }
void KateRenderer::setDrawCaret(bool drawCaret) void KateRenderer::setDrawCaret(bool drawCaret)

@ -643,14 +643,14 @@ void KateSchemaConfigFontColorTab::schemaChanged (uint schema)
p.setColor( TQColorGroup::Highlight, p.setColor( TQColorGroup::Highlight,
KateFactory::self()->schemaManager()->schema(schema)-> KateFactory::self()->schemaManager()->schema(schema)->
readColorEntry( "Color Selection", &_c ) ); readColorEntry( "Color Selection", &_c ) );
_c = l->at(0)->textColor(); // not quite as much of an assumption ;) _c = l->tqat(0)->textColor(); // not quite as much of an assumption ;)
p.setColor( TQColorGroup::Text, _c ); p.setColor( TQColorGroup::Text, _c );
m_defaultStyles->viewport()->setPalette( p ); m_defaultStyles->viewport()->setPalette( p );
// insert the default styles backwards to get them in the right order // insert the default styles backwards to get them in the right order
for ( int i = KateHlManager::self()->defaultStyles() - 1; i >= 0; i-- ) for ( int i = KateHlManager::self()->defaultStyles() - 1; i >= 0; i-- )
{ {
new KateStyleListItem( m_defaultStyles, KateHlManager::self()->defaultStyleName(i, true), l->at( i ) ); new KateStyleListItem( m_defaultStyles, KateHlManager::self()->defaultStyleName(i, true), l->tqat( i ) );
} }
} }
@ -770,7 +770,7 @@ void KateSchemaConfigHighlightTab::schemaChanged (uint schema)
p.setColor( TQColorGroup::Highlight, p.setColor( TQColorGroup::Highlight,
KateFactory::self()->schemaManager()->schema(m_schema)-> KateFactory::self()->schemaManager()->schema(m_schema)->
readColorEntry( "Color Selection", &_c ) ); readColorEntry( "Color Selection", &_c ) );
_c = l->at(0)->textColor(); // not quite as much of an assumption ;) _c = l->tqat(0)->textColor(); // not quite as much of an assumption ;)
p.setColor( TQColorGroup::Text, _c ); p.setColor( TQColorGroup::Text, _c );
m_styles->viewport()->setPalette( p ); m_styles->viewport()->setPalette( p );
@ -795,9 +795,9 @@ void KateSchemaConfigHighlightTab::schemaChanged (uint schema)
parent->setOpen(true); parent->setOpen(true);
prefixes.insert( prefix, parent ); prefixes.insert( prefix, parent );
} }
new KateStyleListItem( parent, name, l->at(itemData->defStyleNum), itemData ); new KateStyleListItem( parent, name, l->tqat(itemData->defStyleNum), itemData );
} else { } else {
new KateStyleListItem( m_styles, itemData->name, l->at(itemData->defStyleNum), itemData ); new KateStyleListItem( m_styles, itemData->name, l->tqat(itemData->defStyleNum), itemData );
} }
} }
} }

@ -386,7 +386,7 @@ void KateSearch::replaceOne()
int ncaps = m_re.numCaptures(); int ncaps = m_re.numCaptures();
while ( pos >= 0 ) { while ( pos >= 0 ) {
TQString substitute; TQString substitute;
TQChar argument = br.cap(1).at(0); TQChar argument = TQString(br.cap(1)).tqat(0);
if ( argument.isDigit() ) { if ( argument.isDigit() ) {
// the second character is a digit, this is a backreference // the second character is a digit, this is a backreference
int ccap = argument.digitValue(); int ccap = argument.digitValue();
@ -639,9 +639,9 @@ bool KateSearch::doSearch( const TQString& text )
{ {
found = ( found = (
( foundCol == 0 || ( foundCol == 0 ||
! doc()->highlight()->isInWord( doc()->textLine( foundLine ).at( foundCol - 1 ) ) ) && ! doc()->highlight()->isInWord( doc()->textLine( foundLine ).tqat( foundCol - 1 ) ) ) &&
( foundCol + matchLen == doc()->lineLength( foundLine ) || ( foundCol + matchLen == doc()->lineLength( foundLine ) ||
! doc()->highlight()->isInWord( doc()->textLine( foundLine ).at( foundCol + matchLen ) ) ) ! doc()->highlight()->isInWord( doc()->textLine( foundLine ).tqat( foundCol + matchLen ) ) )
); );
if ( found ) if ( found )
{ {

@ -173,7 +173,7 @@ void KateTemplateHandler::generateRangeTable( uint insertLine, uint insertCol, c
{ {
++col; ++col;
if ( insertString.at( colInText ) == '\n' ) if ( insertString.tqat( colInText ) == '\n' )
{ {
col = 0; col = 0;
line++; line++;
@ -216,7 +216,7 @@ void KateTemplateHandler::slotTextInserted( int line, int col )
if ( !m_currentRange ) return ; if ( !m_currentRange ) return ;
KateTemplatePlaceHolder *ph = m_tabOrder.at( m_currentTabStop ); KateTemplatePlaceHolder *ph = m_tabOrder.tqat( m_currentTabStop );
TQString sourceText = m_doc->text ( m_currentRange->start().line(), m_currentRange->start().col(), TQString sourceText = m_doc->text ( m_currentRange->start().line(), m_currentRange->start().col(),
m_currentRange->end().line(), m_currentRange->end().col(), false ); m_currentRange->end().line(), m_currentRange->end().col(), false );
@ -257,7 +257,7 @@ void KateTemplateHandler::locateRange( const KateTextCursor& cursor )
for ( uint i = 0;i < m_tabOrder.count();i++ ) for ( uint i = 0;i < m_tabOrder.count();i++ )
{ {
KateTemplatePlaceHolder *ph = m_tabOrder.at( i ); KateTemplatePlaceHolder *ph = m_tabOrder.tqat( i );
for ( KateSuperRangeList::const_iterator it = ph->ranges.begin();it != ph->ranges.end();++it ) for ( KateSuperRangeList::const_iterator it = ph->ranges.begin();it != ph->ranges.end();++it )
{ {
@ -297,9 +297,9 @@ bool KateTemplateHandler::operator() ( KKey key )
if ( m_currentTabStop < 0 ) m_currentTabStop = m_tabOrder.count() - 1; if ( m_currentTabStop < 0 ) m_currentTabStop = m_tabOrder.count() - 1;
} }
m_currentRange = m_tabOrder.at( m_currentTabStop ) ->ranges.at( 0 ); m_currentRange = m_tabOrder.tqat( m_currentTabStop ) ->ranges.tqat( 0 );
if ( m_tabOrder.at( m_currentTabStop ) ->isInitialValue ) if ( m_tabOrder.tqat( m_currentTabStop ) ->isInitialValue )
{ {
m_doc->activeView()->setSelection( m_currentRange->start(), m_currentRange->end() ); m_doc->activeView()->setSelection( m_currentRange->start(), m_currentRange->end() );
} }

@ -296,9 +296,9 @@ void KateUndoGroup::undo ()
if (m_doc->activeView()) if (m_doc->activeView())
{ {
for (uint z=0; z < m_items.count(); z++) for (uint z=0; z < m_items.count(); z++)
if (m_items.at(z)->type() != KateUndoGroup::editMarkLineAutoWrapped) if (m_items.tqat(z)->type() != KateUndoGroup::editMarkLineAutoWrapped)
{ {
m_doc->activeView()->editSetCursor (m_items.at(z)->cursorBefore()); m_doc->activeView()->editSetCursor (m_items.tqat(z)->cursorBefore());
break; break;
} }
} }
@ -319,9 +319,9 @@ void KateUndoGroup::redo ()
if (m_doc->activeView()) if (m_doc->activeView())
{ {
for (uint z=0; z < m_items.count(); z++) for (uint z=0; z < m_items.count(); z++)
if (m_items.at(z)->type() != KateUndoGroup::editMarkLineAutoWrapped) if (m_items.tqat(z)->type() != KateUndoGroup::editMarkLineAutoWrapped)
{ {
m_doc->activeView()->editSetCursor (m_items.at(z)->cursorAfter()); m_doc->activeView()->editSetCursor (m_items.tqat(z)->cursorAfter());
break; break;
} }
} }

@ -235,7 +235,7 @@ void ABGlobal::writeConfig()
// fill in the current list // fill in the current list
for ( uint i = 0; i < m_ents->count(); i++ ) for ( uint i = 0; i < m_ents->count(); i++ )
{ {
AutoBookmarkEnt *e = m_ents->at( i ); AutoBookmarkEnt *e = m_ents->tqat( i );
config->setGroup( TQString("autobookmark%1").arg( i ) ); config->setGroup( TQString("autobookmark%1").arg( i ) );
config->writeEntry( "pattern", e->pattern ); config->writeEntry( "pattern", e->pattern );
config->writeEntry( "filemask", e->filemask, ';' ); config->writeEntry( "filemask", e->filemask, ';' );

@ -59,9 +59,9 @@ void InsertFilePlugin::addView(KTextEditor::View *view)
void InsertFilePlugin::removeView(KTextEditor::View *view) void InsertFilePlugin::removeView(KTextEditor::View *view)
{ {
for (uint z=0; z < m_views.count(); z++) for (uint z=0; z < m_views.count(); z++)
if (m_views.at(z)->parentClient() == view) if (m_views.tqat(z)->parentClient() == view)
{ {
InsertFilePluginView *nview = m_views.at(z); InsertFilePluginView *nview = m_views.tqat(z);
m_views.remove (nview); m_views.remove (nview);
delete nview; delete nview;
} }

@ -485,9 +485,9 @@ void ISearchPlugin::removeView(KTextEditor::View *view)
{ {
for (uint z=0; z < m_views.count(); z++) for (uint z=0; z < m_views.count(); z++)
{ {
if (m_views.at(z)->parentClient() == view) if (m_views.tqat(z)->parentClient() == view)
{ {
ISearchPluginView *nview = m_views.at(z); ISearchPluginView *nview = m_views.tqat(z);
m_views.remove (nview); m_views.remove (nview);
delete nview; delete nview;
} }

@ -58,9 +58,9 @@ void KDataToolPlugin::removeView(KTextEditor::View *view)
{ {
for (uint z=0; z < m_views.count(); z++) for (uint z=0; z < m_views.count(); z++)
{ {
if (m_views.at(z)->parentClient() == view) if (m_views.tqat(z)->parentClient() == view)
{ {
KDataToolPluginView *nview = m_views.at(z); KDataToolPluginView *nview = m_views.tqat(z);
m_views.remove (nview); m_views.remove (nview);
delete nview; delete nview;
} }
@ -126,7 +126,7 @@ void KDataToolPluginView::aboutToShow()
// find begin of word: // find begin of word:
m_singleWord_start = 0; m_singleWord_start = 0;
for(int i = col; i >= 0; i--) { for(int i = col; i >= 0; i--) {
TQChar ch = tmp_line.at(i); TQChar ch = tmp_line.tqat(i);
if( ! (ch.isLetter() || ch == '-' || ch == '\'') ) if( ! (ch.isLetter() || ch == '-' || ch == '\'') )
{ {
m_singleWord_start = i+1; m_singleWord_start = i+1;
@ -137,7 +137,7 @@ void KDataToolPluginView::aboutToShow()
// find end of word: // find end of word:
m_singleWord_end = tmp_line.length(); m_singleWord_end = tmp_line.length();
for(uint i = col+1; i < tmp_line.length(); i++) { for(uint i = col+1; i < tmp_line.length(); i++) {
TQChar ch = tmp_line.at(i); TQChar ch = tmp_line.tqat(i);
if( ! (ch.isLetter() || ch == '-' || ch == '\'') ) if( ! (ch.isLetter() || ch == '-' || ch == '\'') )
{ {
m_singleWord_end = i; m_singleWord_end = i;

@ -91,9 +91,9 @@ void DocWordCompletionPlugin::addView(KTextEditor::View *view)
void DocWordCompletionPlugin::removeView(KTextEditor::View *view) void DocWordCompletionPlugin::removeView(KTextEditor::View *view)
{ {
for (uint z=0; z < m_views.count(); z++) for (uint z=0; z < m_views.count(); z++)
if (m_views.at(z)->parentClient() == view) if (m_views.tqat(z)->parentClient() == view)
{ {
DocWordCompletionPluginView *nview = m_views.at(z); DocWordCompletionPluginView *nview = m_views.tqat(z);
m_views.remove (nview); m_views.remove (nview);
delete nview; delete nview;
} }

@ -716,7 +716,7 @@ void KCertPart::slotChain(int c) {
displayPKCS12Cert(_p12->getCertificate()); displayPKCS12Cert(_p12->getCertificate());
_p12_certState->setText(KSSLCertificate::verifyText(_p12->validate())); _p12_certState->setText(KSSLCertificate::verifyText(_p12->validate()));
} else { } else {
displayPKCS12Cert(_p12->getCertificate()->chain().getChain().at(c-1)); displayPKCS12Cert(_p12->getCertificate()->chain().getChain().tqat(c-1));
} }
} }

@ -850,7 +850,7 @@ void KApplication::init(bool GUIenabled)
// kdialog itself. // kdialog itself.
// * Don't warn if we run with a read-only $HOME // * Don't warn if we run with a read-only $HOME
TQCString readOnly = getenv("KDE_HOME_READONLY"); TQCString readOnly = getenv("KDE_HOME_READONLY");
if (readOnly.isEmpty() && (qstrcmp(name(), "kdialog") != 0)) if (readOnly.isEmpty() && (tqstrcmp(name(), "kdialog") != 0))
{ {
KConfigGroupSaver saver(config, "KDE Action Restrictions"); KConfigGroupSaver saver(config, "KDE Action Restrictions");
if (config->readBoolEntry("warn_unwritable_config",true)) if (config->readBoolEntry("warn_unwritable_config",true))

@ -90,10 +90,10 @@ static int stringToInteger(const TQString & sNum, int & iLength)
unsigned int iPos = 0; unsigned int iPos = 0;
int result = 0; int result = 0;
for (; sNum.length() > iPos && sNum.at(iPos).isDigit(); iPos++) for (; sNum.length() > iPos && sNum.tqat(iPos).isDigit(); iPos++)
{ {
result *= 10; result *= 10;
result += sNum.at(iPos).digitValue(); result += sNum.tqat(iPos).digitValue();
} }
iLength = iPos; iLength = iPos;

@ -67,7 +67,7 @@ public:
virtual const char *format( int i ) const { virtual const char *format( int i ) const {
if ( i < (int) m_formats.count() ) if ( i < (int) m_formats.count() )
return m_formats.at( i ); return m_formats.tqat( i );
else else
return 0L; return 0L;
} }
@ -78,7 +78,7 @@ public:
{ {
int index = m_formats.tqfind( format ); int index = m_formats.tqfind( format );
if ( index > -1 ) if ( index > -1 )
return *(m_data.at( index )); return *(m_data.tqat( index ));
return TQByteArray(); return TQByteArray();
} }

@ -103,7 +103,7 @@ private:
KClipboardSynchronizer( TQObject *parent = 0, const char *name = 0L ); KClipboardSynchronizer( TQObject *parent = 0, const char *name = 0L );
void setupSignals(); void setupSignals();
static void setClipboard( TQMimeSource* data, QClipboard::Mode mode ); static void setClipboard( TQMimeSource* data, TQClipboard::Mode mode );
static KClipboardSynchronizer *s_self; static KClipboardSynchronizer *s_self;
static bool s_sync; static bool s_sync;

@ -1239,7 +1239,7 @@ KCmdLineArgs::arg(int n) const
exit(255); exit(255);
} }
return parsedArgList->at(n); return parsedArgList->tqat(n);
} }
KURL KURL

@ -127,7 +127,7 @@ void KCompletion::addItem( const TQString& item, uint weight )
// nodes. // nodes.
for ( uint i = 0; i < len; i++ ) { for ( uint i = 0; i < len; i++ ) {
node = node->insert( item.at(i), sorted ); node = node->insert( item.tqat(i), sorted );
if ( weighted ) if ( weighted )
node->confirm( weight -1 ); // node->insert() sets weighting to 1 node->confirm( weight -1 ); // node->insert() sets weighting to 1
} }
@ -419,7 +419,7 @@ TQString KCompletion::findCompletion( const TQString& string )
// start at the tree-root and try to find the search-string // start at the tree-root and try to find the search-string
for( uint i = 0; i < string.length(); i++ ) { for( uint i = 0; i < string.length(); i++ ) {
ch = string.at( i ); ch = string.tqat( i );
node = node->find( ch ); node = node->find( ch );
if ( node ) if ( node )
@ -508,7 +508,7 @@ void KCompletion::findAllCompletions(const TQString& string,
// start at the tree-root and try to find the search-string // start at the tree-root and try to find the search-string
for( uint i = 0; i < string.length(); i++ ) { for( uint i = 0; i < string.length(); i++ ) {
ch = string.at( i ); ch = string.tqat( i );
node = node->find( ch ); node = node->find( ch );
if ( node ) if ( node )
@ -595,7 +595,7 @@ void KCompletion::extractStringsFromNodeCI( const KCompTreeNode *node,
return; return;
} }
TQChar ch1 = restString.at(0); TQChar ch1 = restString.tqat(0);
TQString newRest = restString.mid(1); TQString newRest = restString.mid(1);
KCompTreeNode *child1, *child2; KCompTreeNode *child1, *child2;
@ -725,7 +725,7 @@ void KCompTreeNode::remove( const TQString& str )
uint i = 0; uint i = 0;
for ( ; i < string.length(); i++ ) for ( ; i < string.length(); i++ )
{ {
child = parent->find( string.at( i ) ); child = parent->find( string.tqat( i ) );
if ( child ) if ( child )
deletables.insert( i + 1, child ); deletables.insert( i + 1, child );
else else
@ -736,8 +736,8 @@ void KCompTreeNode::remove( const TQString& str )
for ( ; i >= 1; i-- ) for ( ; i >= 1; i-- )
{ {
parent = deletables.at( i - 1 ); parent = deletables.tqat( i - 1 );
child = deletables.at( i ); child = deletables.tqat( i );
if ( child->myChildren.count() == 0 ) if ( child->myChildren.count() == 0 )
delete parent->myChildren.remove( child ); delete parent->myChildren.remove( child );
} }
@ -874,7 +874,7 @@ KCompTreeNode *KCompTreeNodeList::remove(KCompTreeNode *item)
return item; return item;
} }
KCompTreeNode *KCompTreeNodeList::at(uint index) const KCompTreeNode *KCompTreeNodeList::tqat(uint index) const
{ {
KCompTreeNode *cur = first; KCompTreeNode *cur = first;
while (index-- && cur) cur = cur->next; while (index-- && cur) cur = cur->next;

@ -38,7 +38,7 @@ public:
KCompTreeNode *begin() const { return first; } KCompTreeNode *begin() const { return first; }
KCompTreeNode *end() const { return last; } KCompTreeNode *end() const { return last; }
KCompTreeNode *at(uint index) const; KCompTreeNode *tqat(uint index) const;
void append(KCompTreeNode *item); void append(KCompTreeNode *item);
void prepend(KCompTreeNode *item); void prepend(KCompTreeNode *item);
void insert(KCompTreeNode *after, KCompTreeNode *item); void insert(KCompTreeNode *after, KCompTreeNode *item);
@ -119,7 +119,7 @@ public:
return &myChildren; return &myChildren;
} }
inline const KCompTreeNode * tqchildAt(int index) const { inline const KCompTreeNode * tqchildAt(int index) const {
return myChildren.at(index); return myChildren.tqat(index);
} }
inline const KCompTreeNode * firstChild() const { inline const KCompTreeNode * firstChild() const {
return myChildren.begin(); return myChildren.begin();

@ -496,7 +496,7 @@ qWarning("SIGBUS while reading %s", rFile.name().latin1());
else else
#endif #endif
{ {
rFile.at(0); rFile.tqat(0);
data = rFile.readAll(); data = rFile.readAll();
s = data.data(); s = data.data();
eof = s + data.size(); eof = s + data.size();

@ -969,7 +969,7 @@ TQColor KConfigBase::readColorEntry( const char *pKey,
TQString aValue = readEntry( pKey ); TQString aValue = readEntry( pKey );
if( !aValue.isEmpty() ) if( !aValue.isEmpty() )
{ {
if ( aValue.at(0) == (QChar)'#' ) if ( aValue.tqat(0) == (QChar)'#' )
{ {
aRetColor.setNamedColor(aValue); aRetColor.setNamedColor(aValue);
} }
@ -1040,10 +1040,10 @@ TQDateTime KConfigBase::readDateTimeEntry( const char *pKey,
TQStrList list; TQStrList list;
int count = readListEntry( pKey, list, ',' ); int count = readListEntry( pKey, list, ',' );
if( count == 6 ) { if( count == 6 ) {
TQDate date( atoi( list.at( 0 ) ), atoi( list.at( 1 ) ), TQDate date( atoi( list.tqat( 0 ) ), atoi( list.tqat( 1 ) ),
atoi( list.at( 2 ) ) ); atoi( list.tqat( 2 ) ) );
TQTime time( atoi( list.at( 3 ) ), atoi( list.at( 4 ) ), TQTime time( atoi( list.tqat( 3 ) ), atoi( list.tqat( 4 ) ),
atoi( list.at( 5 ) ) ); atoi( list.tqat( 5 ) ) );
return TQDateTime( date, time ); return TQDateTime( date, time );
} }
@ -1424,7 +1424,7 @@ void KConfigBase::writeEntry ( const char *pKey, const TQStrList &list,
} }
str_list += sep; str_list += sep;
} }
if( str_list.at(str_list.length() - 1) == (QChar)sep ) if( str_list.tqat(str_list.length() - 1) == (QChar)sep )
str_list.truncate( str_list.length() -1 ); str_list.truncate( str_list.length() -1 );
writeEntry( pKey, str_list, bPersistent, bGlobal, bNLS ); writeEntry( pKey, str_list, bPersistent, bGlobal, bNLS );
} }
@ -1468,7 +1468,7 @@ void KConfigBase::writeEntry ( const char *pKey, const TQStringList &list,
} }
str_list += sep; str_list += sep;
} }
if( str_list.at(str_list.length() - 1) == (QChar)sep ) if( str_list.tqat(str_list.length() - 1) == (QChar)sep )
str_list.truncate( str_list.length() -1 ); str_list.truncate( str_list.length() -1 );
writeEntry( pKey, str_list, bPersistent, bGlobal, bNLS, bExpand ); writeEntry( pKey, str_list, bPersistent, bGlobal, bNLS, bExpand );
} }

@ -415,7 +415,7 @@ kdbgstream& kdbgstream::operator << (const TQWidget* widget)
return *this; return *this;
} }
output += string; output += string;
if (output.at(output.length() -1 ) == (QChar)'\n') if (output.tqat(output.length() -1 ) == (QChar)'\n')
{ {
flush(); flush();
} }

@ -216,7 +216,7 @@ class KDECORE_EXPORT kdbgstream {
kdbgstream &operator<<(const TQString& string) { kdbgstream &operator<<(const TQString& string) {
if (!print) return *this; if (!print) return *this;
output += string; output += string;
if (output.at(output.length() -1 ) == (QChar)'\n') if (output.tqat(output.length() -1 ) == (QChar)'\n')
flush(); flush();
return *this; return *this;
} }
@ -228,7 +228,7 @@ class KDECORE_EXPORT kdbgstream {
kdbgstream &operator<<(const char *string) { kdbgstream &operator<<(const char *string) {
if (!print) return *this; if (!print) return *this;
output += TQString::fromUtf8(string); output += TQString::fromUtf8(string);
if (output.at(output.length() - 1) == (QChar)'\n') if (output.tqat(output.length() - 1) == (QChar)'\n')
flush(); flush();
return *this; return *this;
} }

@ -671,7 +671,7 @@ bool modXToModQt( uint modX, int& modQt )
return modToModQt( modX, modQt ); return modToModQt( modX, modQt );
} }
KDECORE_EXPORT int qtButtonStateToMod( Qt::ButtonState s ) KDECORE_EXPORT int qtButtonStateToMod( TQt::ButtonState s )
{ {
int modQt = 0; int modQt = 0;
if (s & Qt::ShiftButton) modQt |= KKey::SHIFT; if (s & Qt::ShiftButton) modQt |= KKey::SHIFT;

@ -549,17 +549,17 @@ void KLibLoader::close_pending(KLibWrapPrivate *wrap)
We need to make sure to clear the clipboard before unloading a DSO We need to make sure to clear the clipboard before unloading a DSO
because the DSO could have defined an object derived from QMimeSource because the DSO could have defined an object derived from QMimeSource
and placed that on the clipboard. */ and placed that on the clipboard. */
/*kapp->clipboard()->clear();*/ /*kapp->tqclipboard()->clear();*/
/* Well.. let's do something more subtle... convert the clipboard context /* Well.. let's do something more subtle... convert the clipboard context
to text. That should be safe as it only uses objects defined by Qt. */ to text. That should be safe as it only uses objects defined by Qt. */
if( kapp->clipboard()->ownsSelection()) { if( kapp->tqclipboard()->ownsSelection()) {
kapp->clipboard()->setText( kapp->tqclipboard()->setText(
kapp->clipboard()->text( QClipboard::Selection ), QClipboard::Selection ); kapp->tqclipboard()->text( TQClipboard::Selection ), TQClipboard::Selection );
} }
if( kapp->clipboard()->ownsClipboard()) { if( kapp->tqclipboard()->ownsClipboard()) {
kapp->clipboard()->setText( kapp->tqclipboard()->setText(
kapp->clipboard()->text( QClipboard::Clipboard ), QClipboard::Clipboard ); kapp->tqclipboard()->text( TQClipboard::Clipboard ), TQClipboard::Clipboard );
} }
} }

@ -1103,7 +1103,7 @@ KLocale::SignPosition KLocale::negativeMonetarySignPosition() const
static inline void put_it_in( TQChar *buffer, uint& index, const TQString &s ) static inline void put_it_in( TQChar *buffer, uint& index, const TQString &s )
{ {
for ( uint l = 0; l < s.length(); l++ ) for ( uint l = 0; l < s.length(); l++ )
buffer[index++] = s.at( l ); buffer[index++] = s.tqat( l );
} }
static inline void put_it_in( TQChar *buffer, uint& index, int number ) static inline void put_it_in( TQChar *buffer, uint& index, int number )
@ -1352,14 +1352,14 @@ TQString KLocale::formatDate(const TQDate &pDate, bool shortFormat) const
{ {
if ( !escape ) if ( !escape )
{ {
if ( (TQChar(rst.at( format_index )).tqunicode()) == '%' ) if ( (TQChar(rst.tqat( format_index )).tqunicode()) == '%' )
escape = true; escape = true;
else else
buffer.append(rst.at(format_index)); buffer.append(rst.tqat(format_index));
} }
else else
{ {
switch ( TQChar(rst.at( format_index )).tqunicode() ) switch ( TQChar(rst.tqat( format_index )).tqunicode() )
{ {
case '%': case '%':
buffer.append('%'); buffer.append('%');
@ -1401,7 +1401,7 @@ TQString KLocale::formatDate(const TQDate &pDate, bool shortFormat) const
buffer.append(calendar()->weekDayName(pDate, false)); buffer.append(calendar()->weekDayName(pDate, false));
break; break;
default: default:
buffer.append(rst.at(format_index)); buffer.append(rst.tqat(format_index));
break; break;
} }
escape = false; escape = false;
@ -1583,12 +1583,12 @@ double KLocale::readMoney(const TQString &_str, bool * ok) const
*/ */
static int readInt(const TQString &str, uint &pos) static int readInt(const TQString &str, uint &pos)
{ {
if (!str.at(pos).isDigit()) return -1; if (!str.tqat(pos).isDigit()) return -1;
int result = 0; int result = 0;
for (; str.length() > pos && str.at(pos).isDigit(); pos++) for (; str.length() > pos && str.tqat(pos).isDigit(); pos++)
{ {
result *= 10; result *= 10;
result += str.at(pos).digitValue(); result += str.tqat(pos).digitValue();
} }
return result; return result;
@ -1625,22 +1625,22 @@ TQDate KLocale::readDate(const TQString &intstr, const TQString &fmt, bool* ok)
while (fmt.length() > fmtpos && str.length() > strpos && !error) while (fmt.length() > fmtpos && str.length() > strpos && !error)
{ {
TQChar c = fmt.at(fmtpos++); TQChar c = fmt.tqat(fmtpos++);
if (c != (QChar)'%') { if (c != (QChar)'%') {
if (c.isSpace() && str.at(strpos).isSpace()) if (c.isSpace() && str.tqat(strpos).isSpace())
strpos++; strpos++;
else if (c != str.at(strpos++)) else if (c != str.tqat(strpos++))
error = true; error = true;
} }
else else
{ {
int j; int j;
// remove space at the beginning // remove space at the beginning
if (str.length() > strpos && str.at(strpos).isSpace()) if (str.length() > strpos && str.tqat(strpos).isSpace())
strpos++; strpos++;
c = fmt.at(fmtpos++); c = fmt.tqat(fmtpos++);
switch (c) switch (c)
{ {
case 'a': case 'a':
@ -1765,22 +1765,22 @@ TQTime KLocale::readTime(const TQString &intstr, ReadTimeFlags flags, bool *ok)
{ {
if ( !(Format.length() > Formatpos && str.length() > strpos) ) goto error; if ( !(Format.length() > Formatpos && str.length() > strpos) ) goto error;
TQChar c = Format.at(Formatpos++); TQChar c = Format.tqat(Formatpos++);
if (c != (QChar)'%') if (c != (QChar)'%')
{ {
if (c.isSpace()) if (c.isSpace())
strpos++; strpos++;
else if (c != str.at(strpos++)) else if (c != str.tqat(strpos++))
goto error; goto error;
continue; continue;
} }
// remove space at the beginning // remove space at the beginning
if (str.length() > strpos && str.at(strpos).isSpace()) if (str.length() > strpos && str.tqat(strpos).isSpace())
strpos++; strpos++;
c = Format.at(Formatpos++); c = Format.tqat(Formatpos++);
switch (c) switch (c)
{ {
case 'p': case 'p':
@ -1876,14 +1876,14 @@ TQString KLocale::formatTime(const TQTime &pTime, bool includeSecs, bool isDurat
{ {
if ( !escape ) if ( !escape )
{ {
if ( (TQChar(rst.at( format_index )).tqunicode()) == '%' ) if ( (TQChar(rst.tqat( format_index )).tqunicode()) == '%' )
escape = true; escape = true;
else else
buffer[index++] = rst.at( format_index ); buffer[index++] = rst.tqat( format_index );
} }
else else
{ {
switch ( TQChar(rst.at( format_index )).tqunicode() ) switch ( TQChar(rst.tqat( format_index )).tqunicode() )
{ {
case '%': case '%':
buffer[index++] = (QChar)'%'; buffer[index++] = (QChar)'%';
@ -1915,7 +1915,7 @@ TQString KLocale::formatTime(const TQTime &pTime, bool includeSecs, bool isDurat
number = pTime.hour(); number = pTime.hour();
case 'l': case 'l':
// to share the code // to share the code
if ( (TQChar(rst.at( format_index )).tqunicode()) == 'l' ) if ( (TQChar(rst.tqat( format_index )).tqunicode()) == 'l' )
number = isDuration ? pTime.hour() : (pTime.hour() + 11) % 12 + 1; number = isDuration ? pTime.hour() : (pTime.hour() + 11) % 12 + 1;
if ( number / 10 ) if ( number / 10 )
buffer[index++] = number / 10 + '0'; buffer[index++] = number / 10 + '0';
@ -1932,7 +1932,7 @@ TQString KLocale::formatTime(const TQTime &pTime, bool includeSecs, bool isDurat
} }
break; break;
default: default:
buffer[index++] = rst.at( format_index ); buffer[index++] = rst.tqat( format_index );
break; break;
} }
escape = false; escape = false;

@ -176,7 +176,7 @@ KPalette::color(int index)
if ((index < 0) || (index >= nrColors())) if ((index < 0) || (index >= nrColors()))
return TQColor(); return TQColor();
kolor *node = mKolorList.at(index); kolor *node = mKolorList.tqat(index);
if (!node) if (!node)
return TQColor(); return TQColor();
@ -202,7 +202,7 @@ KPalette::colorName(int index)
if ((index < 0) || (index >= nrColors())) if ((index < 0) || (index >= nrColors()))
return TQString::null; return TQString::null;
kolor *node = mKolorList.at(index); kolor *node = mKolorList.tqat(index);
if (!node) if (!node)
return TQString::null; return TQString::null;
@ -227,7 +227,7 @@ KPalette::changeColor(int index,
if ((index < 0) || (index >= nrColors())) if ((index < 0) || (index >= nrColors()))
return -1; return -1;
kolor *node = mKolorList.at(index); kolor *node = mKolorList.tqat(index);
if (!node) if (!node)
return -1; return -1;

@ -394,7 +394,7 @@ KRFCDate::parseDateISO8601( const TQString& input_ )
mday = l[2].toUInt(); mday = l[2].toUInt();
// Z suffix means UTC. // Z suffix means UTC.
if ((QChar)'Z' == timeString.at(timeString.length() - 1)) { if ((QChar)'Z' == timeString.tqat(timeString.length() - 1)) {
timeString.remove(timeString.length() - 1, 1); timeString.remove(timeString.length() - 1, 1);
} }

@ -189,7 +189,7 @@ void KStandardDirs::addPrefix( const TQString& _dir, bool priority )
return; return;
TQString dir = _dir; TQString dir = _dir;
if (dir.at(dir.length() - 1) != QChar('/')) if (dir.tqat(dir.length() - 1) != QChar('/'))
dir += QChar('/'); dir += QChar('/');
if (!prefixes.tqcontains(dir)) { if (!prefixes.tqcontains(dir)) {
@ -209,7 +209,7 @@ void KStandardDirs::addXdgConfigPrefix( const TQString& _dir, bool priority )
return; return;
TQString dir = _dir; TQString dir = _dir;
if (dir.at(dir.length() - 1) != QChar('/')) if (dir.tqat(dir.length() - 1) != QChar('/'))
dir += QChar('/'); dir += QChar('/');
if (!d->xdgconf_prefixes.tqcontains(dir)) { if (!d->xdgconf_prefixes.tqcontains(dir)) {
@ -229,7 +229,7 @@ void KStandardDirs::addXdgDataPrefix( const TQString& _dir, bool priority )
return; return;
TQString dir = _dir; TQString dir = _dir;
if (dir.at(dir.length() - 1) != QChar('/')) if (dir.tqat(dir.length() - 1) != QChar('/'))
dir += QChar('/'); dir += QChar('/');
if (!d->xdgdata_prefixes.tqcontains(dir)) { if (!d->xdgdata_prefixes.tqcontains(dir)) {
@ -271,7 +271,7 @@ bool KStandardDirs::addResourceType( const char *type,
relatives.insert(type, rels); relatives.insert(type, rels);
} }
TQString copy = relativename; TQString copy = relativename;
if (copy.at(copy.length() - 1) != QChar('/')) if (copy.tqat(copy.length() - 1) != QChar('/'))
copy += QChar('/'); copy += QChar('/');
if (!rels->tqcontains(copy)) { if (!rels->tqcontains(copy)) {
if (priority) if (priority)
@ -301,7 +301,7 @@ bool KStandardDirs::addResourceDir( const char *type,
absolutes.insert(type, paths); absolutes.insert(type, paths);
} }
TQString copy = absdir; TQString copy = absdir;
if (copy.at(copy.length() - 1) != QChar('/')) if (copy.tqat(copy.length() - 1) != QChar('/'))
copy += QChar('/'); copy += QChar('/');
if (!paths->tqcontains(copy)) { if (!paths->tqcontains(copy)) {
@ -452,7 +452,7 @@ bool KStandardDirs::exists(const TQString &fullPath)
{ {
KDE_struct_stat buff; KDE_struct_stat buff;
if (access(TQFile::encodeName(fullPath), R_OK) == 0 && KDE_stat( TQFile::encodeName(fullPath), &buff ) == 0) if (access(TQFile::encodeName(fullPath), R_OK) == 0 && KDE_stat( TQFile::encodeName(fullPath), &buff ) == 0)
if (fullPath.at(fullPath.length() - 1) != QChar('/')) { if (fullPath.tqat(fullPath.length() - 1) != QChar('/')) {
if (S_ISREG( buff.st_mode )) if (S_ISREG( buff.st_mode ))
return true; return true;
} else } else
@ -478,9 +478,9 @@ static void lookupDirectory(const TQString& path, const TQString &relPart,
return; return;
#ifdef Q_WS_WIN #ifdef Q_WS_WIN
assert(path.at(path.length() - 1) == QChar('/') || path.at(path.length() - 1) == QChar('\\')); assert(path.tqat(path.length() - 1) == QChar('/') || path.tqat(path.length() - 1) == QChar('\\'));
#else #else
assert(path.at(path.length() - 1) == QChar('/')); assert(path.tqat(path.length() - 1) == QChar('/'));
#endif #endif
struct dirent *ep; struct dirent *ep;
@ -492,7 +492,7 @@ static void lookupDirectory(const TQString& path, const TQString &relPart,
while( ( ep = readdir( dp ) ) != 0L ) while( ( ep = readdir( dp ) ) != 0L )
{ {
TQString fn( TQFile::decodeName(ep->d_name)); TQString fn( TQFile::decodeName(ep->d_name));
if (fn == _dot || fn == _dotdot || TQChar(fn.at(fn.length() - 1)).latin1() == TQChar('~').latin1()) if (fn == _dot || fn == _dotdot || TQChar(fn.tqat(fn.length() - 1)).latin1() == TQChar('~').latin1())
continue; continue;
if (!recursive && !regexp.exactMatch(fn)) if (!recursive && !regexp.exactMatch(fn))
@ -569,9 +569,9 @@ static void lookupPrefix(const TQString& prefix, const TQString& relpath,
if (prefix.isEmpty()) //for sanity if (prefix.isEmpty()) //for sanity
return; return;
#ifdef Q_WS_WIN #ifdef Q_WS_WIN
assert(prefix.at(prefix.length() - 1) == QChar('/') || prefix.at(prefix.length() - 1) == QChar('\\')); assert(prefix.tqat(prefix.length() - 1) == QChar('/') || prefix.tqat(prefix.length() - 1) == QChar('\\'));
#else #else
assert(prefix.at(prefix.length() - 1) == QChar('/')); assert(prefix.tqat(prefix.length() - 1) == QChar('/'));
#endif #endif
KDE_struct_stat buff; KDE_struct_stat buff;
@ -591,7 +591,7 @@ static void lookupPrefix(const TQString& prefix, const TQString& relpath,
while( ( ep = readdir( dp ) ) != 0L ) while( ( ep = readdir( dp ) ) != 0L )
{ {
TQString fn( TQFile::decodeName(ep->d_name)); TQString fn( TQFile::decodeName(ep->d_name));
if (fn == _dot || fn == _dotdot || fn.at(fn.length() - 1) == QChar('~')) if (fn == _dot || fn == _dotdot || fn.tqat(fn.length() - 1) == QChar('~'))
continue; continue;
if ( !pathExp.exactMatch(fn) ) if ( !pathExp.exactMatch(fn) )
@ -1176,7 +1176,7 @@ bool KStandardDirs::makeDir(const TQString& dir, int mode)
uint len = target.length(); uint len = target.length();
// append trailing slash if missing // append trailing slash if missing
if (dir.at(len - 1) != QChar('/')) if (dir.tqat(len - 1) != QChar('/'))
target += QChar('/'); target += QChar('/');
TQString base(""); TQString base("");

@ -62,7 +62,7 @@ TQString KStringHandler::word( const TQString &text , const char *range )
// Extract words // Extract words
// //
int wordsToExtract = cnt-pos+1; int wordsToExtract = cnt-pos+1;
TQStringList::Iterator it = list.at( pos); TQStringList::Iterator it = list.tqat( pos);
while ( (it != list.end()) && (wordsToExtract-- > 0)) while ( (it != list.end()) && (wordsToExtract-- > 0))
{ {
@ -91,7 +91,7 @@ TQString KStringHandler::insword( const TQString &text , const TQString &word ,
if ( pos >= list.count() ) if ( pos >= list.count() )
list.append( word ); list.append( word );
else else
list.insert( list.at(pos) , word ); list.insert( list.tqat(pos) , word );
// Rejoin // Rejoin
return list.join( " " ); return list.join( " " );
@ -112,7 +112,7 @@ TQString KStringHandler::setword( const TQString &text , const TQString &word ,
list.append( word ); list.append( word );
else else
{ {
list.insert( list.remove( list.at(pos) ) , word ); list.insert( list.remove( list.tqat(pos) ) , word );
} }
// Rejoin // Rejoin
@ -140,7 +140,7 @@ TQString KStringHandler::remrange( const TQString &text , const char *range )
// Remove that range of words // Remove that range of words
// //
int wordsToDelete = cnt-pos+1; int wordsToDelete = cnt-pos+1;
TQStringList::Iterator it = list.at( pos); TQStringList::Iterator it = list.tqat( pos);
while ( (it != list.end()) && (wordsToDelete-- > 0)) while ( (it != list.end()) && (wordsToDelete-- > 0))
it = list.remove( it ); it = list.remove( it );
@ -159,7 +159,7 @@ TQString KStringHandler::remword( const TQString &text , uint pos )
TQStringList list = TQStringList::split( " ", text, true ); TQStringList list = TQStringList::split( " ", text, true );
if ( pos < list.count() ) if ( pos < list.count() )
list.remove( list.at( pos ) ); list.remove( list.tqat( pos ) );
// Rejoin // Rejoin
return list.join( " " ); return list.join( " " );

@ -177,7 +177,8 @@ bool KSycoca::openDatabase( bool openDummyIfNotFound )
{ {
// We open a dummy database instead. // We open a dummy database instead.
//kdDebug(7011) << "No database, opening a dummy one." << endl; //kdDebug(7011) << "No database, opening a dummy one." << endl;
TQBuffer *buffer = new TQBuffer( TQByteArray() ); TQBuffer *buffer = new TQBuffer();
buffer->tqsetBufferFromCopy(TQByteArray());
buffer->open(IO_ReadWrite); buffer->open(IO_ReadWrite);
m_str = new TQDataStream( buffer); m_str = new TQDataStream( buffer);
(*m_str) << (TQ_INT32) KSYCOCA_VERSION; (*m_str) << (TQ_INT32) KSYCOCA_VERSION;
@ -229,7 +230,7 @@ void KSycoca::closeDatabase()
{ {
QIODevice *device = 0; QIODevice *device = 0;
if (m_str) if (m_str)
device = m_str->device(); device = m_str->tqdevice();
#ifdef HAVE_MMAP #ifdef HAVE_MMAP
if (device && m_sycoca_mmap) if (device && m_sycoca_mmap)
{ {
@ -248,6 +249,7 @@ void KSycoca::closeDatabase()
if (TQT_TQIODEVICE(d->database) != device) if (TQT_TQIODEVICE(d->database) != device)
delete d->database; delete d->database;
if (m_barray) delete m_barray; if (m_barray) delete m_barray;
m_barray = 0;
device = 0; device = 0;
d->database = 0; d->database = 0;
// It is very important to delete all factories here // It is very important to delete all factories here
@ -286,7 +288,7 @@ TQDataStream * KSycoca::findEntry(int offset, KSycocaType &type)
if ( !m_str ) if ( !m_str )
openDatabase(); openDatabase();
//kdDebug(7011) << TQString("KSycoca::_findEntry(offset=%1)").arg(offset,8,16) << endl; //kdDebug(7011) << TQString("KSycoca::_findEntry(offset=%1)").arg(offset,8,16) << endl;
m_str->tqdevice()->at(offset); m_str->tqdevice()->tqat(offset);
TQ_INT32 aType; TQ_INT32 aType;
(*m_str) >> aType; (*m_str) >> aType;
type = (KSycocaType) aType; type = (KSycocaType) aType;
@ -304,7 +306,7 @@ bool KSycoca::checkVersion(bool abortOnError)
// We should never get here... if a database was found then m_str shouldn't be 0L. // We should never get here... if a database was found then m_str shouldn't be 0L.
assert(m_str); assert(m_str);
} }
m_str->tqdevice()->at(0); m_str->tqdevice()->tqat(0);
TQ_INT32 aVersion; TQ_INT32 aVersion;
(*m_str) >> aVersion; (*m_str) >> aVersion;
if ( aVersion < KSYCOCA_VERSION ) if ( aVersion < KSYCOCA_VERSION )
@ -359,7 +361,7 @@ TQDataStream * KSycoca::findFactory(KSycocaFactoryId id)
if (aId == id) if (aId == id)
{ {
//kdDebug(7011) << TQString("KSycoca::findFactory(%1) offset %2").arg((int)id).arg(aOffset) << endl; //kdDebug(7011) << TQString("KSycoca::findFactory(%1) offset %2").arg((int)id).arg(aOffset) << endl;
m_str->tqdevice()->at(aOffset); m_str->tqdevice()->tqat(aOffset);
return m_str; return m_str;
} }
} }

@ -60,7 +60,7 @@ KSycocaDict::KSycocaDict(TQDataStream *str, int offset)
: d(0), mStr(str), mOffset(offset) : d(0), mStr(str), mOffset(offset)
{ {
TQ_UINT32 test1, test2; TQ_UINT32 test1, test2;
str->tqdevice()->at(offset); str->tqdevice()->tqat(offset);
(*str) >> test1 >> test2; (*str) >> test1 >> test2;
if ((test1 > 0x000fffff) || (test2 > 1024)) if ((test1 > 0x000fffff) || (test2 > 1024))
{ {
@ -70,10 +70,10 @@ KSycocaDict::KSycocaDict(TQDataStream *str, int offset)
return; return;
} }
str->tqdevice()->at(offset); str->tqdevice()->tqat(offset);
(*str) >> mHashTableSize; (*str) >> mHashTableSize;
(*str) >> mHashList; (*str) >> mHashList;
mOffset = str->tqdevice()->at(); // Start of hashtable mOffset = str->tqdevice()->tqat(); // Start of hashtable
} }
KSycocaDict::~KSycocaDict() KSycocaDict::~KSycocaDict()
@ -131,7 +131,7 @@ KSycocaDict::find_string(const TQString &key )
uint off = mOffset+sizeof(TQ_INT32)*hash; uint off = mOffset+sizeof(TQ_INT32)*hash;
//kdDebug(7011) << TQString("off is %1").arg(off,8,16) << endl; //kdDebug(7011) << TQString("off is %1").arg(off,8,16) << endl;
mStr->tqdevice()->at( off ); mStr->tqdevice()->tqat( off );
TQ_INT32 offset; TQ_INT32 offset;
(*mStr) >> offset; (*mStr) >> offset;
@ -146,7 +146,7 @@ KSycocaDict::find_string(const TQString &key )
// Lookup duplicate list. // Lookup duplicate list.
offset = -offset; offset = -offset;
mStr->tqdevice()->at(offset); mStr->tqdevice()->tqat(offset);
//kdDebug(7011) << TQString("Looking up duplicate list at %1").arg(offset,8,16) << endl; //kdDebug(7011) << TQString("Looking up duplicate list at %1").arg(offset,8,16) << endl;
while(true) while(true)
@ -286,7 +286,7 @@ KSycocaDict::save(TQDataStream &str)
return; return;
} }
mOffset = str.tqdevice()->at(); mOffset = str.tqdevice()->tqat();
//kdDebug(7011) << TQString("KSycocaDict: %1 entries.").arg(count()) << endl; //kdDebug(7011) << TQString("KSycocaDict: %1 entries.").arg(count()) << endl;
@ -402,12 +402,12 @@ KSycocaDict::save(TQDataStream &str)
str << mHashTableSize; str << mHashTableSize;
str << mHashList; str << mHashList;
mOffset = str.tqdevice()->at(); // mOffset points to start of hashTable mOffset = str.tqdevice()->tqat(); // mOffset points to start of hashTable
//kdDebug(7011) << TQString("Start of Hash Table, offset = %1").arg(mOffset,8,16) << endl; //kdDebug(7011) << TQString("Start of Hash Table, offset = %1").arg(mOffset,8,16) << endl;
for(int pass = 1; pass <= 2; pass++) for(int pass = 1; pass <= 2; pass++)
{ {
str.tqdevice()->at(mOffset); str.tqdevice()->tqat(mOffset);
//kdDebug(7011) << TQString("Writing hash table (pass #%1)").arg(pass) << endl; //kdDebug(7011) << TQString("Writing hash table (pass #%1)").arg(pass) << endl;
for(uint i=0; i < mHashTableSize; i++) for(uint i=0; i < mHashTableSize; i++)
{ {
@ -421,7 +421,7 @@ KSycocaDict::save(TQDataStream &str)
str << tmpid; str << tmpid;
//kdDebug(7011) << TQString("Hash table : %1").arg(tmpid,8,16) << endl; //kdDebug(7011) << TQString("Hash table : %1").arg(tmpid,8,16) << endl;
} }
//kdDebug(7011) << TQString("End of Hash Table, offset = %1").arg(str.tqdevice()->at(),8,16) << endl; //kdDebug(7011) << TQString("End of Hash Table, offset = %1").arg(str.tqdevice()->tqat(),8,16) << endl;
//kdDebug(7011) << TQString("Writing duplicate lists (pass #%1)").arg(pass) << endl; //kdDebug(7011) << TQString("Writing duplicate lists (pass #%1)").arg(pass) << endl;
for(uint i=0; i < mHashTableSize; i++) for(uint i=0; i < mHashTableSize; i++)
@ -429,7 +429,7 @@ KSycocaDict::save(TQDataStream &str)
if (hashTable[i].duplicates) if (hashTable[i].duplicates)
{ {
TQPtrList<string_entry> *dups = hashTable[i].duplicates; TQPtrList<string_entry> *dups = hashTable[i].duplicates;
hashTable[i].duplicate_offset = str.tqdevice()->at(); hashTable[i].duplicate_offset = str.tqdevice()->tqat();
/*kdDebug(7011) << TQString("Duplicate lists: Offset = %1 list_size = %2") .arg(hashTable[i].duplicate_offset,8,16).arg(dups->count()) << endl; /*kdDebug(7011) << TQString("Duplicate lists: Offset = %1 list_size = %2") .arg(hashTable[i].duplicate_offset,8,16).arg(dups->count()) << endl;
*/ */
@ -441,7 +441,7 @@ KSycocaDict::save(TQDataStream &str)
str << (TQ_INT32) 0; // End of list marker (0) str << (TQ_INT32) 0; // End of list marker (0)
} }
} }
//kdDebug(7011) << TQString("End of Dict, offset = %1").arg(str.tqdevice()->at(),8,16) << endl; //kdDebug(7011) << TQString("End of Dict, offset = %1").arg(str.tqdevice()->tqat(),8,16) << endl;
} }
//kdDebug(7011) << "Cleaning up hash table." << endl; //kdDebug(7011) << "Cleaning up hash table." << endl;

@ -101,7 +101,7 @@ public: // KDoc seems to barf on those typedefs and generates no docs after them
*/ */
virtual void save(TQDataStream &s) virtual void save(TQDataStream &s)
{ {
mOffset = s.tqdevice()->at(); // store position in member variable mOffset = s.tqdevice()->tqat(); // store position in member variable
s << (TQ_INT32) sycocaType() << mPath; s << (TQ_INT32) sycocaType() << mPath;
} }

@ -46,10 +46,10 @@ KSycocaFactory::KSycocaFactory(KSycocaFactoryId factory_id)
(*m_str) >> i; (*m_str) >> i;
m_endEntryOffset = i; m_endEntryOffset = i;
int saveOffset = m_str->tqdevice()->at(); int saveOffset = m_str->tqdevice()->tqat();
// Init index tables // Init index tables
m_sycocaDict = new KSycocaDict(m_str, m_sycocaDictOffset); m_sycocaDict = new KSycocaDict(m_str, m_sycocaDictOffset);
saveOffset = m_str->tqdevice()->at(saveOffset); saveOffset = m_str->tqdevice()->tqat(saveOffset);
} }
} }
else else
@ -78,7 +78,7 @@ void
KSycocaFactory::saveHeader(TQDataStream &str) KSycocaFactory::saveHeader(TQDataStream &str)
{ {
// Write header // Write header
str.tqdevice()->at(mOffset); str.tqdevice()->tqat(mOffset);
str << (TQ_INT32) m_sycocaDictOffset; str << (TQ_INT32) m_sycocaDictOffset;
str << (TQ_INT32) m_beginEntryOffset; str << (TQ_INT32) m_beginEntryOffset;
str << (TQ_INT32) m_endEntryOffset; str << (TQ_INT32) m_endEntryOffset;
@ -91,13 +91,13 @@ KSycocaFactory::save(TQDataStream &str)
// building database // building database
if (!m_sycocaDict) return; // Error! if (!m_sycocaDict) return; // Error!
mOffset = str.tqdevice()->at(); // store position in member variable mOffset = str.tqdevice()->tqat(); // store position in member variable
m_sycocaDictOffset = 0; m_sycocaDictOffset = 0;
// Write header (pass #1) // Write header (pass #1)
saveHeader(str); saveHeader(str);
m_beginEntryOffset = str.tqdevice()->at(); m_beginEntryOffset = str.tqdevice()->tqat();
// Write all entries. // Write all entries.
int entryCount = 0; int entryCount = 0;
@ -110,7 +110,7 @@ KSycocaFactory::save(TQDataStream &str)
entryCount++; entryCount++;
} }
m_endEntryOffset = str.tqdevice()->at(); m_endEntryOffset = str.tqdevice()->tqat();
// Write indices... // Write indices...
// Linear index // Linear index
@ -124,16 +124,16 @@ KSycocaFactory::save(TQDataStream &str)
} }
// Dictionary index // Dictionary index
m_sycocaDictOffset = str.tqdevice()->at(); m_sycocaDictOffset = str.tqdevice()->tqat();
m_sycocaDict->save(str); m_sycocaDict->save(str);
int endOfFactoryData = str.tqdevice()->at(); int endOfFactoryData = str.tqdevice()->tqat();
// Update header (pass #2) // Update header (pass #2)
saveHeader(str); saveHeader(str);
// Seek to end. // Seek to end.
str.tqdevice()->at(endOfFactoryData); str.tqdevice()->tqat(endOfFactoryData);
} }
void void
@ -169,7 +169,7 @@ KSycocaEntry::List KSycocaFactory::allEntries()
// Assume we're NOT building a database // Assume we're NOT building a database
m_str->tqdevice()->at(m_endEntryOffset); m_str->tqdevice()->tqat(m_endEntryOffset);
TQ_INT32 entryCount; TQ_INT32 entryCount;
(*m_str) >> entryCount; (*m_str) >> entryCount;

@ -1687,14 +1687,14 @@ TQString KURL::fileName( bool _strip_trailing_slash ) const
if ( _strip_trailing_slash ) if ( _strip_trailing_slash )
{ {
while ( len >= 1 && path[ len - 1 ] == (QChar)'/' ) while ( len >= 1 && path[ len - 1 ] == TQChar('/') )
len--; len--;
} }
else if ( path[ len - 1 ] == (QChar)'/' ) else if ( path[ len - 1 ] == TQChar('/') )
return fname; return fname;
// Does the path only consist of '/' characters ? // Does the path only consist of '/' characters ?
if ( len == 1 && path[ 0 ] == (QChar)'/' ) if ( len == 1 && path[ 0 ] == TQChar('/') )
return fname; return fname;
// Skip last n slashes // Skip last n slashes
@ -1704,13 +1704,13 @@ TQString KURL::fileName( bool _strip_trailing_slash ) const
// This is hairy, we need the last unencoded slash. // This is hairy, we need the last unencoded slash.
// Count in the encoded string how many encoded slashes follow the last // Count in the encoded string how many encoded slashes follow the last
// unencoded one. // unencoded one.
int i = m_strPath_encoded.tqfindRev( (QChar)'/', len - 1 ); int i = m_strPath_encoded.tqfindRev( TQChar('/'), len - 1 );
TQString fileName_encoded = m_strPath_encoded.mid(i+1); TQString fileName_encoded = m_strPath_encoded.mid(i+1);
n += fileName_encoded.tqcontains("%2f", false); n += fileName_encoded.tqcontains("%2f", false);
} }
int i = len; int i = len;
do { do {
i = path.tqfindRev( (QChar)'/', i - 1 ); i = path.tqfindRev( TQChar('/'), i - 1 );
} }
while (--n && (i > 0)); while (--n && (i > 0));

@ -85,7 +85,7 @@ bool KSrvResolverWorker::preprocess()
return false; return false;
protoname = "_"; protoname = "_";
protoname += names.at(0); protoname += names.tqat(0);
} }
else if (sockettype == SOCK_STREAM || sockettype == 0) else if (sockettype == SOCK_STREAM || sockettype == 0)
protoname = "_tcp"; protoname = "_tcp";

@ -202,7 +202,11 @@ public:
TQWMatrix matrix = m_engine->painter()->parseTransform(transform); TQWMatrix matrix = m_engine->painter()->parseTransform(transform);
TQWMatrix *current = m_engine->painter()->tqworldMatrix(); TQWMatrix *current = m_engine->painter()->tqworldMatrix();
#ifdef USE_QT4
printf("[FIXME] *current = matrix * *current locks up under Qt4; bypassing for now\n\r");
#else // USE_QT4
*current = matrix * *current; *current = matrix * *current;
#endif // USE_QT4
} }
void parseCommonAttributes(TQDomNode &node) void parseCommonAttributes(TQDomNode &node)

@ -384,7 +384,7 @@ int main(int argc, char *argv[])
check("KURL::setFileName()", u2.url(), "file:///home/dfaure/myotherfile.txt"); check("KURL::setFileName()", u2.url(), "file:///home/dfaure/myotherfile.txt");
// more tricky, renaming a directory (kpropsdlg.cc, line ~ 238) // more tricky, renaming a directory (kpropsdlg.cc, line ~ 238)
TQString tmpurl = "file:/home/dfaure/myolddir/"; TQString tmpurl = "file:/home/dfaure/myolddir/";
if ( tmpurl.at(tmpurl.length() - 1) == '/') if ( tmpurl.tqat(tmpurl.length() - 1) == '/')
// It's a directory, so strip the trailing slash first // It's a directory, so strip the trailing slash first
tmpurl.truncate( tmpurl.length() - 1); tmpurl.truncate( tmpurl.length() - 1);
KURL newUrl = tmpurl; KURL newUrl = tmpurl;

@ -113,32 +113,32 @@ KBuildServiceFactory::save(TQDataStream &str)
{ {
KSycocaFactory::save(str); KSycocaFactory::save(str);
m_nameDictOffset = str.tqdevice()->at(); m_nameDictOffset = str.tqdevice()->tqat();
m_nameDict->save(str); m_nameDict->save(str);
m_relNameDictOffset = str.tqdevice()->at(); m_relNameDictOffset = str.tqdevice()->tqat();
m_relNameDict->save(str); m_relNameDict->save(str);
saveOfferList(str); saveOfferList(str);
saveInitList(str); saveInitList(str);
m_menuIdDictOffset = str.tqdevice()->at(); m_menuIdDictOffset = str.tqdevice()->tqat();
m_menuIdDict->save(str); m_menuIdDict->save(str);
int endOfFactoryData = str.tqdevice()->at(); int endOfFactoryData = str.tqdevice()->tqat();
// Update header (pass #3) // Update header (pass #3)
saveHeader(str); saveHeader(str);
// Seek to end. // Seek to end.
str.tqdevice()->at(endOfFactoryData); str.tqdevice()->tqat(endOfFactoryData);
} }
void void
KBuildServiceFactory::saveOfferList(TQDataStream &str) KBuildServiceFactory::saveOfferList(TQDataStream &str)
{ {
m_offerListOffset = str.tqdevice()->at(); m_offerListOffset = str.tqdevice()->tqat();
bool isNumber; bool isNumber;
for(TQDictIterator<KSycocaEntry::Ptr> itserv ( *m_entryDict ); for(TQDictIterator<KSycocaEntry::Ptr> itserv ( *m_entryDict );
@ -201,7 +201,7 @@ KBuildServiceFactory::saveOfferList(TQDataStream &str)
void void
KBuildServiceFactory::saveInitList(TQDataStream &str) KBuildServiceFactory::saveInitList(TQDataStream &str)
{ {
m_initListOffset = str.tqdevice()->at(); m_initListOffset = str.tqdevice()->tqat();
KService::List initList; KService::List initList;

@ -165,14 +165,14 @@ KBuildServiceGroupFactory::save(TQDataStream &str)
{ {
KSycocaFactory::save(str); KSycocaFactory::save(str);
m_baseGroupDictOffset = str.tqdevice()->at(); m_baseGroupDictOffset = str.tqdevice()->tqat();
m_baseGroupDict->save(str); m_baseGroupDict->save(str);
int endOfFactoryData = str.tqdevice()->at(); int endOfFactoryData = str.tqdevice()->tqat();
// Update header (pass #3) // Update header (pass #3)
saveHeader(str); saveHeader(str);
// Seek to end. // Seek to end.
str.tqdevice()->at(endOfFactoryData); str.tqdevice()->tqat(endOfFactoryData);
} }

@ -152,13 +152,13 @@ KBuildServiceTypeFactory::save(TQDataStream &str)
savePatternLists(str); savePatternLists(str);
int endOfFactoryData = str.tqdevice()->at(); int endOfFactoryData = str.tqdevice()->tqat();
// Update header (pass #3) // Update header (pass #3)
saveHeader(str); saveHeader(str);
// Seek to end. // Seek to end.
str.tqdevice()->at(endOfFactoryData); str.tqdevice()->tqat(endOfFactoryData);
} }
void void
@ -203,10 +203,10 @@ KBuildServiceTypeFactory::savePatternLists(TQDataStream &str)
TQ_INT32 entrySize = 0; TQ_INT32 entrySize = 0;
TQ_INT32 nrOfEntries = 0; TQ_INT32 nrOfEntries = 0;
m_fastPatternOffset = str.tqdevice()->at(); m_fastPatternOffset = str.tqdevice()->tqat();
// Write out fastPatternHeader (Pass #1) // Write out fastPatternHeader (Pass #1)
str.tqdevice()->at(m_fastPatternOffset); str.tqdevice()->tqat(m_fastPatternOffset);
str << nrOfEntries; str << nrOfEntries;
str << entrySize; str << entrySize;
@ -214,27 +214,27 @@ KBuildServiceTypeFactory::savePatternLists(TQDataStream &str)
TQStringList::ConstIterator it = fastPatterns.begin(); TQStringList::ConstIterator it = fastPatterns.begin();
for ( ; it != fastPatterns.end() ; ++it ) for ( ; it != fastPatterns.end() ; ++it )
{ {
int start = str.tqdevice()->at(); int start = str.tqdevice()->tqat();
// Justify to 6 chars with spaces, so that the size remains constant // Justify to 6 chars with spaces, so that the size remains constant
// in the database file. // in the database file.
TQString paddedPattern = (*it).leftJustify(6).right(4); // remove leading "*." TQString paddedPattern = (*it).leftJustify(6).right(4); // remove leading "*."
//kdDebug(7021) << TQString("FAST : '%1' '%2'").arg(paddedPattern).arg(dict[(*it)]->name()) << endl; //kdDebug(7021) << TQString("FAST : '%1' '%2'").arg(paddedPattern).arg(dict[(*it)]->name()) << endl;
str << paddedPattern; str << paddedPattern;
str << dict[(*it)]->offset(); str << dict[(*it)]->offset();
entrySize = str.tqdevice()->at() - start; entrySize = str.tqdevice()->tqat() - start;
nrOfEntries++; nrOfEntries++;
} }
// store position // store position
m_otherPatternOffset = str.tqdevice()->at(); m_otherPatternOffset = str.tqdevice()->tqat();
// Write out fastPatternHeader (Pass #2) // Write out fastPatternHeader (Pass #2)
str.tqdevice()->at(m_fastPatternOffset); str.tqdevice()->tqat(m_fastPatternOffset);
str << nrOfEntries; str << nrOfEntries;
str << entrySize; str << entrySize;
// For the other patterns // For the other patterns
str.tqdevice()->at(m_otherPatternOffset); str.tqdevice()->tqat(m_otherPatternOffset);
it = otherPatterns.begin(); it = otherPatterns.begin();
for ( ; it != otherPatterns.end() ; ++it ) for ( ; it != otherPatterns.end() ; ++it )

@ -541,7 +541,7 @@ bool KBuildSycoca::recreate()
void KBuildSycoca::save() void KBuildSycoca::save()
{ {
// Write header (#pass 1) // Write header (#pass 1)
m_str->tqdevice()->at(0); m_str->tqdevice()->tqat(0);
(*m_str) << (TQ_INT32) KSycoca::version(); (*m_str) << (TQ_INT32) KSycoca::version();
KSycocaFactory * servicetypeFactory = 0L; KSycocaFactory * servicetypeFactory = 0L;
@ -579,10 +579,10 @@ void KBuildSycoca::save()
return; // error return; // error
} }
int endOfData = m_str->tqdevice()->at(); int endOfData = m_str->tqdevice()->tqat();
// Write header (#pass 2) // Write header (#pass 2)
m_str->tqdevice()->at(0); m_str->tqdevice()->tqat(0);
(*m_str) << (TQ_INT32) KSycoca::version(); (*m_str) << (TQ_INT32) KSycoca::version();
for(KSycocaFactory *factory = m_lstFactories->first(); for(KSycocaFactory *factory = m_lstFactories->first();
@ -599,7 +599,7 @@ void KBuildSycoca::save()
(*m_str) << (TQ_INT32) 0; // No more factories. (*m_str) << (TQ_INT32) 0; // No more factories.
// Jump to end of database // Jump to end of database
m_str->tqdevice()->at(endOfData); m_str->tqdevice()->tqat(endOfData);
} }
bool KBuildSycoca::checkDirTimestamps( const TQString& dirname, const TQDateTime& stamp, bool top ) bool KBuildSycoca::checkDirTimestamps( const TQString& dirname, const TQDateTime& stamp, bool top )

@ -53,7 +53,7 @@ KCTimeInfo::save(TQDataStream &str)
{ {
KSycocaFactory::save(str); KSycocaFactory::save(str);
m_dictOffset = str.tqdevice()->at(); m_dictOffset = str.tqdevice()->tqat();
TQDictIterator<TQ_UINT32> it(ctimeDict); TQDictIterator<TQ_UINT32> it(ctimeDict);
while( it.current()) while( it.current())
{ {
@ -62,10 +62,10 @@ KCTimeInfo::save(TQDataStream &str)
} }
str << TQString::null << (TQ_UINT32) 0; str << TQString::null << (TQ_UINT32) 0;
int endOfFactoryData = str.tqdevice()->at(); int endOfFactoryData = str.tqdevice()->tqat();
saveHeader(str); saveHeader(str);
str.tqdevice()->at(endOfFactoryData); str.tqdevice()->tqat(endOfFactoryData);
} }
void void
@ -86,7 +86,7 @@ void
KCTimeInfo::fillCTimeDict(TQDict<TQ_UINT32> &dict) KCTimeInfo::fillCTimeDict(TQDict<TQ_UINT32> &dict)
{ {
assert(m_str); assert(m_str);
m_str->tqdevice()->at(m_dictOffset); m_str->tqdevice()->tqat(m_dictOffset);
TQString path; TQString path;
TQ_UINT32 ctime; TQ_UINT32 ctime;
while(true) while(true)

@ -1000,7 +1000,7 @@ VFolderMenu::loadApplications(const TQString &dir, const TQString &prefix)
while( ( ep = readdir( dp ) ) != 0L ) while( ( ep = readdir( dp ) ) != 0L )
{ {
TQString fn( TQFile::decodeName(ep->d_name)); TQString fn( TQFile::decodeName(ep->d_name));
if (fn == _dot || fn == _dotdot || TQChar(fn.at(fn.length() - 1)).latin1() == '~') if (fn == _dot || fn == _dotdot || TQChar(fn.tqat(fn.length() - 1)).latin1() == '~')
continue; continue;
TQString pathfn = dir + fn; TQString pathfn = dir + fn;
@ -1110,7 +1110,7 @@ kdDebug(7021) << "processLegacyDir(" << dir << ", " << relDir << ", " << prefix
while( ( ep = readdir( dp ) ) != 0L ) while( ( ep = readdir( dp ) ) != 0L )
{ {
TQString fn( TQFile::decodeName(ep->d_name)); TQString fn( TQFile::decodeName(ep->d_name));
if (fn == _dot || fn == _dotdot || TQChar(fn.at(fn.length() - 1)).latin1() == '~') if (fn == _dot || fn == _dotdot || TQChar(fn.tqat(fn.length() - 1)).latin1() == '~')
continue; continue;
TQString pathfn = dir + fn; TQString pathfn = dir + fn;

@ -1079,6 +1079,11 @@ TQImage& KImageEffect::blend(const TQColor& clr, TQImage& dst, float opacity)
if (dst.depth() != 32) if (dst.depth() != 32)
dst = dst.convertDepth(32); dst = dst.convertDepth(32);
#ifdef USE_QT4
if (dst.format() != QImage::Format_ARGB32)
dst = dst.convertToFormat(QImage::Format_ARGB32); // This is needed because Qt4 has multiple variants with a 32 bit depth, and the routines below expect one specific variant (ARGB)
#endif
int pixels = dst.width() * dst.height(); int pixels = dst.width() * dst.height();
#ifdef USE_SSE2_INLINE_ASM #ifdef USE_SSE2_INLINE_ASM
@ -1329,6 +1334,13 @@ TQImage& KImageEffect::blend(TQImage& src, TQImage& dst, float opacity)
if (src.depth() != 32) src = src.convertDepth(32); if (src.depth() != 32) src = src.convertDepth(32);
if (dst.depth() != 32) dst = dst.convertDepth(32); if (dst.depth() != 32) dst = dst.convertDepth(32);
#ifdef USE_QT4
if (src.format() != QImage::Format_ARGB32)
src = dst.convertToFormat(QImage::Format_ARGB32); // This is needed because Qt4 has multiple variants with a 32 bit depth, and the routines below expect one specific variant (ARGB)
if (dst.format() != QImage::Format_ARGB32)
dst = dst.convertToFormat(QImage::Format_ARGB32); // This is needed because Qt4 has multiple variants with a 32 bit depth, and the routines below expect one specific variant (ARGB)
#endif
int pixels = src.width() * src.height(); int pixels = src.width() * src.height();
#ifdef USE_SSE2_INLINE_ASM #ifdef USE_SSE2_INLINE_ASM

@ -127,7 +127,7 @@ void CupsdSecurityPage::slotAdd()
{ {
if (KMessageBox::warningContinueCancel(this, i18n("This location is already defined. Do you want to replace the existing one?"),TQString::null,i18n("Replace")) == KMessageBox::Continue) if (KMessageBox::warningContinueCancel(this, i18n("This location is already defined. Do you want to replace the existing one?"),TQString::null,i18n("Replace")) == KMessageBox::Continue)
{ {
index = locs_.at(); index = locs_.tqat();
locs_.remove(); locs_.remove();
break; break;
} }
@ -149,7 +149,7 @@ void CupsdSecurityPage::slotAdd()
void CupsdSecurityPage::slotEdit(int index) void CupsdSecurityPage::slotEdit(int index)
{ {
CupsLocation *loc = locs_.at(index); CupsLocation *loc = locs_.tqat(index);
LocationDialog::editLocation(loc, this, conf_); LocationDialog::editLocation(loc, this, conf_);
} }

@ -128,7 +128,7 @@ void LocationDialog::setInfos(CupsdConf *conf)
void LocationDialog::fillLocation(CupsLocation *loc) void LocationDialog::fillLocation(CupsLocation *loc)
{ {
loc->resource_ = conf_->resources_.at(resource_->currentItem()); loc->resource_ = conf_->resources_.tqat(resource_->currentItem());
loc->resourcename_ = loc->resource_->path_; loc->resourcename_ = loc->resource_->path_;
loc->authtype_ = authtype_->currentItem(); loc->authtype_ = authtype_->currentItem();
loc->authclass_ = (loc->authtype_ == AUTHTYPE_NONE ? AUTHCLASS_ANONYMOUS : authclass_->currentItem()); loc->authclass_ = (loc->authtype_ == AUTHTYPE_NONE ? AUTHCLASS_ANONYMOUS : authclass_->currentItem());

@ -87,13 +87,13 @@ KMCupsConfigWidget::KMCupsConfigWidget(TQWidget *parent, const char *name)
TQVBoxLayout *lay0 = new TQVBoxLayout(this, 0, 10); TQVBoxLayout *lay0 = new TQVBoxLayout(this, 0, 10);
lay0->addWidget(m_hostbox,1); lay0->addWidget(m_hostbox,1);
lay0->addWidget(m_loginbox,1); lay0->addWidget(m_loginbox,1);
TQGridLayout *lay2 = new TQGridLayout(m_hostbox->layout(), 2, 2, 10); TQGridLayout *lay2 = new TQGridLayout(m_hostbox->tqlayout(), 2, 2, 10);
lay2->setColStretch(1,1); lay2->setColStretch(1,1);
lay2->addWidget(m_hostlabel,0,0); lay2->addWidget(m_hostlabel,0,0);
lay2->addWidget(m_portlabel,1,0); lay2->addWidget(m_portlabel,1,0);
lay2->addWidget(m_host,0,1); lay2->addWidget(m_host,0,1);
lay2->addWidget(m_port,1,1); lay2->addWidget(m_port,1,1);
TQGridLayout *lay3 = new TQGridLayout(m_loginbox->layout(), 4, 2, 10); TQGridLayout *lay3 = new TQGridLayout(m_loginbox->tqlayout(), 4, 2, 10);
lay3->setColStretch(1,1); lay3->setColStretch(1,1);
lay3->addWidget(m_loginlabel,0,0); lay3->addWidget(m_loginlabel,0,0);
lay3->addWidget(m_passwordlabel,1,0); lay3->addWidget(m_passwordlabel,1,0);

@ -353,7 +353,7 @@ KPImagePage::KPImagePage(DrMain *driver, TQWidget *parent, const char *name)
l0->addWidget(sizebox, 1, 0); l0->addWidget(sizebox, 1, 0);
l0->addWidget(positionbox, 1, 1); l0->addWidget(positionbox, 1, 1);
l0->setColStretch(0, 1); l0->setColStretch(0, 1);
TQGridLayout *l1 = new TQGridLayout(colorbox->layout(), 5, 2, 10); TQGridLayout *l1 = new TQGridLayout(colorbox->tqlayout(), 5, 2, 10);
l1->addWidget(m_brightness, 0, 0); l1->addWidget(m_brightness, 0, 0);
l1->addWidget(m_hue, 1, 0); l1->addWidget(m_hue, 1, 0);
l1->addWidget(m_saturation, 2, 0); l1->addWidget(m_saturation, 2, 0);
@ -361,14 +361,14 @@ KPImagePage::KPImagePage(DrMain *driver, TQWidget *parent, const char *name)
l1->addWidget(m_gamma, 4, 0); l1->addWidget(m_gamma, 4, 0);
l1->addMultiCellWidget(m_preview, 0, 3, 1, 1); l1->addMultiCellWidget(m_preview, 0, 3, 1, 1);
l1->addWidget(defbtn, 4, 1); l1->addWidget(defbtn, 4, 1);
TQVBoxLayout *l2 = new TQVBoxLayout(TQT_TQLAYOUT(sizebox->layout()), 3); TQVBoxLayout *l2 = new TQVBoxLayout(TQT_TQLAYOUT(sizebox->tqlayout()), 3);
l2->addStretch(1); l2->addStretch(1);
l2->addWidget(lab); l2->addWidget(lab);
l2->addWidget(m_sizetype); l2->addWidget(m_sizetype);
l2->addSpacing(10); l2->addSpacing(10);
l2->addWidget(m_size); l2->addWidget(m_size);
l2->addStretch(1); l2->addStretch(1);
TQGridLayout *l3 = new TQGridLayout(positionbox->layout(), 2, 2, 10); TQGridLayout *l3 = new TQGridLayout(positionbox->tqlayout(), 2, 2, 10);
TQHBoxLayout *l4 = new TQHBoxLayout(0, 0, 10); TQHBoxLayout *l4 = new TQHBoxLayout(0, 0, 10);
TQVBoxLayout *l5 = new TQVBoxLayout(0, 0, 10); TQVBoxLayout *l5 = new TQVBoxLayout(0, 0, 10);
l3->addLayout(l4, 0, 1); l3->addLayout(l4, 0, 1);

@ -627,7 +627,7 @@ void DrListOption::setChoice(int choicenum)
{ {
if (choicenum >= 0 && choicenum < (int)m_choices.count()) if (choicenum >= 0 && choicenum < (int)m_choices.count())
{ {
setValueText(m_choices.at(choicenum)->name()); setValueText(m_choices.tqat(choicenum)->name());
} }
} }

@ -53,7 +53,7 @@ void KMJobManager::discardAllJobs()
void KMJobManager::removeDiscardedJobs() void KMJobManager::removeDiscardedJobs()
{ {
for (uint i=0;i<m_jobs.count();i++) for (uint i=0;i<m_jobs.count();i++)
if (m_jobs.at(i)->isDiscarded()) if (m_jobs.tqat(i)->isDiscarded())
{ {
m_jobs.remove(i); m_jobs.remove(i);
i--; i--;

@ -253,7 +253,7 @@ TQPtrList<KMPrinter>* KMManager::printerList(bool reload)
// remove discarded printers // remove discarded printers
for (uint i=0; i<m_printers.count(); i++) for (uint i=0; i<m_printers.count(); i++)
{ {
KMPrinter *prt = m_printers.at(i); KMPrinter *prt = m_printers.tqat(i);
if (prt->isDiscarded()) if (prt->isDiscarded())
{ {
m_printers.remove(i); m_printers.remove(i);

@ -220,7 +220,7 @@ KPCopiesPage::KPCopiesPage(KPrinter *prt, TQWidget *parent, const char *name)
l1->setColStretch(1,1); l1->setColStretch(1,1);
l1->addWidget(m_pagebox,0,0); l1->addWidget(m_pagebox,0,0);
l1->addWidget(m_copybox,0,1); l1->addWidget(m_copybox,0,1);
TQVBoxLayout *l3 = new TQVBoxLayout(TQT_TQLAYOUT(m_pagebox->layout()), 5); TQVBoxLayout *l3 = new TQVBoxLayout(TQT_TQLAYOUT(m_pagebox->tqlayout()), 5);
l3->addWidget(m_all); l3->addWidget(m_all);
l3->addWidget(m_current); l3->addWidget(m_current);
TQHBoxLayout *l4 = new TQHBoxLayout(0, 0, 5); TQHBoxLayout *l4 = new TQHBoxLayout(0, 0, 5);
@ -233,7 +233,7 @@ KPCopiesPage::KPCopiesPage(KPrinter *prt, TQWidget *parent, const char *name)
l3->addLayout(l2); l3->addLayout(l2);
l2->addWidget(m_pagesetlabel,0); l2->addWidget(m_pagesetlabel,0);
l2->addWidget(m_pageset,1); l2->addWidget(m_pageset,1);
TQGridLayout *l5 = new TQGridLayout(m_copybox->layout(), 4, 2, 10); TQGridLayout *l5 = new TQGridLayout(m_copybox->tqlayout(), 4, 2, 10);
l5->setRowStretch(4,1); l5->setRowStretch(4,1);
l5->addWidget(m_copieslabel,0,0); l5->addWidget(m_copieslabel,0,0);
l5->addWidget(m_copies,0,1); l5->addWidget(m_copies,0,1);

@ -347,27 +347,27 @@ KPGeneralPage::KPGeneralPage(KMPrinter *pr, DrMain *dr, TQWidget *parent, const
lay2->addWidget(m_nupbox, 1, 1); lay2->addWidget(m_nupbox, 1, 1);
lay2->setColStretch(0, 1); lay2->setColStretch(0, 1);
lay2->setColStretch(1, 1); lay2->setColStretch(1, 1);
TQGridLayout *lay3 = new TQGridLayout(m_orientbox->layout(), 4, 2, TQGridLayout *lay3 = new TQGridLayout(m_orientbox->tqlayout(), 4, 2,
KDialog::spacingHint()); KDialog::spacingHint());
lay3->addWidget(m_portrait, 0, 0); lay3->addWidget(m_portrait, 0, 0);
lay3->addWidget(m_landscape, 1, 0); lay3->addWidget(m_landscape, 1, 0);
lay3->addWidget(m_revland, 2, 0); lay3->addWidget(m_revland, 2, 0);
lay3->addWidget(m_revport, 3, 0); lay3->addWidget(m_revport, 3, 0);
lay3->addMultiCellWidget(m_orientpix, 0, 3, 1, 1); lay3->addMultiCellWidget(m_orientpix, 0, 3, 1, 1);
TQGridLayout *lay4 = new TQGridLayout(m_duplexbox->layout(), 3, 2, TQGridLayout *lay4 = new TQGridLayout(m_duplexbox->tqlayout(), 3, 2,
KDialog::spacingHint()); KDialog::spacingHint());
lay4->addWidget(m_dupnone, 0, 0); lay4->addWidget(m_dupnone, 0, 0);
lay4->addWidget(m_duplong, 1, 0); lay4->addWidget(m_duplong, 1, 0);
lay4->addWidget(m_dupshort, 2, 0); lay4->addWidget(m_dupshort, 2, 0);
lay4->addMultiCellWidget(m_duplexpix, 0, 2, 1, 1); lay4->addMultiCellWidget(m_duplexpix, 0, 2, 1, 1);
lay4->setRowStretch( 0, 1 ); lay4->setRowStretch( 0, 1 );
TQGridLayout *lay5 = new TQGridLayout(m_nupbox->layout(), 3, 2, TQGridLayout *lay5 = new TQGridLayout(m_nupbox->tqlayout(), 3, 2,
KDialog::spacingHint()); KDialog::spacingHint());
lay5->addWidget(m_nup1, 0, 0); lay5->addWidget(m_nup1, 0, 0);
lay5->addWidget(m_nup2, 1, 0); lay5->addWidget(m_nup2, 1, 0);
lay5->addWidget(m_nup4, 2, 0); lay5->addWidget(m_nup4, 2, 0);
lay5->addMultiCellWidget(m_nuppix, 0, 2, 1, 1); lay5->addMultiCellWidget(m_nuppix, 0, 2, 1, 1);
TQGridLayout *lay6 = new TQGridLayout(m_bannerbox->layout(), 2, 2, TQGridLayout *lay6 = new TQGridLayout(m_bannerbox->tqlayout(), 2, 2,
KDialog::spacingHint()); KDialog::spacingHint());
lay6->addWidget(m_startbannerlabel, 0, 0); lay6->addWidget(m_startbannerlabel, 0, 0);
lay6->addWidget(m_endbannerlabel, 1, 0); lay6->addWidget(m_endbannerlabel, 1, 0);
@ -622,17 +622,17 @@ void KPGeneralPage::getOptions(TQMap<TQString,TQString>& opts, bool incldef)
DrListOption *opt; DrListOption *opt;
if ((opt=(DrListOption*)driver()->findOption("PageSize")) != NULL) if ((opt=(DrListOption*)driver()->findOption("PageSize")) != NULL)
{ {
DrBase *ch = opt->choices()->at(m_pagesize->currentItem()); DrBase *ch = opt->choices()->tqat(m_pagesize->currentItem());
if (incldef || ch->name() != opt->get("default")) opts["PageSize"] = ch->name(); if (incldef || ch->name() != opt->get("default")) opts["PageSize"] = ch->name();
} }
if ((opt=(DrListOption*)driver()->findOption("MediaType")) != NULL) if ((opt=(DrListOption*)driver()->findOption("MediaType")) != NULL)
{ {
DrBase *ch = opt->choices()->at(m_papertype->currentItem()); DrBase *ch = opt->choices()->tqat(m_papertype->currentItem());
if (incldef || ch->name() != opt->get("default")) opts["MediaType"] = ch->name(); if (incldef || ch->name() != opt->get("default")) opts["MediaType"] = ch->name();
} }
if ((opt=(DrListOption*)driver()->findOption("InputSlot")) != NULL) if ((opt=(DrListOption*)driver()->findOption("InputSlot")) != NULL)
{ {
DrBase *ch = opt->choices()->at(m_inputslot->currentItem()); DrBase *ch = opt->choices()->tqat(m_inputslot->currentItem());
if (incldef || ch->name() != opt->get("default")) opts["InputSlot"] = ch->name(); if (incldef || ch->name() != opt->get("default")) opts["InputSlot"] = ch->name();
} }

@ -164,15 +164,15 @@ void KPQtPage::init()
lay0->addWidget(m_orientbox,1,0); lay0->addWidget(m_orientbox,1,0);
lay0->addWidget(m_colorbox,1,1); lay0->addWidget(m_colorbox,1,1);
lay0->addWidget(m_nupbox,2,0); lay0->addWidget(m_nupbox,2,0);
TQGridLayout *lay1 = new TQGridLayout(m_orientbox->layout(), 2, 2, 10); TQGridLayout *lay1 = new TQGridLayout(m_orientbox->tqlayout(), 2, 2, 10);
lay1->addWidget(m_portrait,0,0); lay1->addWidget(m_portrait,0,0);
lay1->addWidget(m_landscape,1,0); lay1->addWidget(m_landscape,1,0);
lay1->addMultiCellWidget(m_orientpix,0,1,1,1); lay1->addMultiCellWidget(m_orientpix,0,1,1,1);
TQGridLayout *lay2 = new TQGridLayout(m_colorbox->layout(), 2, 2, 10); TQGridLayout *lay2 = new TQGridLayout(m_colorbox->tqlayout(), 2, 2, 10);
lay2->addWidget(m_color,0,0); lay2->addWidget(m_color,0,0);
lay2->addWidget(m_grayscale,1,0); lay2->addWidget(m_grayscale,1,0);
lay2->addMultiCellWidget(m_colorpix,0,1,1,1); lay2->addMultiCellWidget(m_colorpix,0,1,1,1);
TQGridLayout *lay3 = new TQGridLayout(m_nupbox->layout(), 4, 2, 5); TQGridLayout *lay3 = new TQGridLayout(m_nupbox->tqlayout(), 4, 2, 5);
lay3->addWidget(m_nup1,0,0); lay3->addWidget(m_nup1,0,0);
lay3->addWidget(m_nup2,1,0); lay3->addWidget(m_nup2,1,0);
lay3->addWidget(m_nup4,2,0); lay3->addWidget(m_nup4,2,0);
@ -305,7 +305,7 @@ void KPQtPage::getOptions(TQMap<TQString,TQString>& opts, bool incldef)
DrListOption *opt = static_cast<DrListOption*>(driver()->findOption("PageSize")); DrListOption *opt = static_cast<DrListOption*>(driver()->findOption("PageSize"));
if (opt) if (opt)
{ {
DrBase *ch = opt->choices()->at(m_pagesize->currentItem()); DrBase *ch = opt->choices()->tqat(m_pagesize->currentItem());
if (ch && (incldef || ch->name() != opt->get("default"))) if (ch && (incldef || ch->name() != opt->get("default")))
{ {
opts["PageSize"] = ch->name(); opts["PageSize"] = ch->name();

@ -361,7 +361,7 @@ KPrintDialog::KPrintDialog(TQWidget *parent, const char *name)
l2->addStretch(1); l2->addStretch(1);
l2->addWidget(d->m_ok,0); l2->addWidget(d->m_ok,0);
l2->addWidget(m_cancel,0); l2->addWidget(m_cancel,0);
TQGridLayout *l3 = new TQGridLayout(m_pbox->layout(),3,3,7); TQGridLayout *l3 = new TQGridLayout(m_pbox->tqlayout(),3,3,7);
l3->setColStretch(1,1); l3->setColStretch(1,1);
l3->setRowStretch(0,1); l3->setRowStretch(0,1);
TQGridLayout *l4 = new TQGridLayout(0, 5, 2, 0, 5); TQGridLayout *l4 = new TQGridLayout(0, 5, 2, 0, 5);
@ -824,7 +824,7 @@ void KPrintDialog::reload()
// remove printer dependent pages (usually from plugin) // remove printer dependent pages (usually from plugin)
TQTabWidget *tabs = static_cast<TQTabWidget*>(TQT_TQWIDGET(d->m_dummy->child("TabWidget", "TQTabWidget"))); TQTabWidget *tabs = static_cast<TQTabWidget*>(TQT_TQWIDGET(d->m_dummy->child("TabWidget", "TQTabWidget")));
for (uint i=0; i<d->m_pages.count(); i++) for (uint i=0; i<d->m_pages.count(); i++)
if (d->m_pages.at(i)->onlyRealPrinters()) if (d->m_pages.tqat(i)->onlyRealPrinters())
{ {
KPrintDialogPage *page = d->m_pages.take(i--); KPrintDialogPage *page = d->m_pages.take(i--);
if (tabs) if (tabs)
@ -952,10 +952,10 @@ void KPrintDialog::enableDialogPage( int index, bool flag )
if ( d->m_pages.count() > 1 ) if ( d->m_pages.count() > 1 )
{ {
TQTabWidget *tabs = static_cast<TQTabWidget*>(TQT_TQWIDGET(d->m_dummy->child("TabWidget", "TQTabWidget"))); TQTabWidget *tabs = static_cast<TQTabWidget*>(TQT_TQWIDGET(d->m_dummy->child("TabWidget", "TQTabWidget")));
tabs->setTabEnabled( d->m_pages.at( index ), flag ); tabs->setTabEnabled( d->m_pages.tqat( index ), flag );
} }
else else
d->m_pages.at( 0 )->setEnabled( flag ); d->m_pages.tqat( 0 )->setEnabled( flag );
} }
void KPrintDialog::slotOpenFileDialog() void KPrintDialog::slotOpenFileDialog()

@ -180,7 +180,7 @@ void KMIconView::setPrinterList(TQPtrList<KMPrinter> *list)
} }
for (uint i=0; i<m_items.count(); i++) for (uint i=0; i<m_items.count(); i++)
if (m_items.at(i)->isDiscarded()) if (m_items.tqat(i)->isDiscarded())
{ {
delete m_items.take(i); delete m_items.take(i);
i--; i--;

@ -398,7 +398,7 @@ void KMJobViewer::updateJobs()
} }
for (uint i=0; i<m_items.count(); i++) for (uint i=0; i<m_items.count(); i++)
if (m_items.at(i)->isDiscarded()) if (m_items.tqat(i)->isDiscarded())
{ {
delete m_items.take(i); delete m_items.take(i);
i--; i--;
@ -510,7 +510,7 @@ void KMJobViewer::slotMove(int prID)
{ {
if (prID >= 0 && prID < (int)(m_printers.count())) if (prID >= 0 && prID < (int)(m_printers.count()))
{ {
KMPrinter *p = m_printers.at(prID); KMPrinter *p = m_printers.tqat(prID);
send(KMJob::Move,i18n("Move to %1").arg(p->printerName()),p->printerName()); send(KMJob::Move,i18n("Move to %1").arg(p->printerName()),p->printerName());
} }
} }
@ -540,7 +540,7 @@ void KMJobViewer::slotPrinterSelected(int prID)
{ {
if (prID >= 0 && prID < (int)(m_printers.count()+1)) if (prID >= 0 && prID < (int)(m_printers.count()+1))
{ {
TQString prname = (prID == 0 ? i18n("All Printers") : m_printers.at(prID-1)->printerName()); TQString prname = (prID == 0 ? i18n("All Printers") : m_printers.tqat(prID-1)->printerName());
emit printerChanged(this, prname); emit printerChanged(this, prname);
} }
} }

@ -216,7 +216,7 @@ void KMListView::setPrinterList(TQPtrList<KMPrinter> *list)
TQPtrList<KMListViewItem> deleteList; TQPtrList<KMListViewItem> deleteList;
deleteList.setAutoDelete(true); deleteList.setAutoDelete(true);
for (uint i=0; i<m_items.count(); i++) for (uint i=0; i<m_items.count(); i++)
if (m_items.at(i)->isDiscarded()) if (m_items.tqat(i)->isDiscarded())
{ {
// instance items are put in front of the list // instance items are put in front of the list
// so that they are destroyed first // so that they are destroyed first

@ -138,7 +138,7 @@ KMSpecialPrinterDlg::KMSpecialPrinterDlg(TQWidget *parent, const char *name)
l0->addWidget(sep); l0->addWidget(sep);
l0->addWidget(m_gb); l0->addWidget(m_gb);
l0->addWidget(m_outfile_gb); l0->addWidget(m_outfile_gb);
TQGridLayout *l6 = new TQGridLayout(m_outfile_gb->layout(), 3, 2, 10); TQGridLayout *l6 = new TQGridLayout(m_outfile_gb->tqlayout(), 3, 2, 10);
l6->addMultiCellWidget( m_usefile, 0, 0, 0, 1 ); l6->addMultiCellWidget( m_usefile, 0, 0, 0, 1 );
l6->addWidget(m_mimetypelabel, 1, 0); l6->addWidget(m_mimetypelabel, 1, 0);
l6->addWidget(m_mimetype, 1, 1); l6->addWidget(m_mimetype, 1, 1);

@ -93,7 +93,7 @@ void KMWDriverSelect::updatePrinter(KMPrinter *p)
int index = m_list->currentItem(); int index = m_list->currentItem();
if (m_entries && index >= 0 && index < (int)(m_entries->count())) if (m_entries && index >= 0 && index < (int)(m_entries->count()))
{ {
KMDBEntry *entry = m_entries->at(index); KMDBEntry *entry = m_entries->tqat(index);
p->setDbEntry(entry); p->setDbEntry(entry);
p->setDriverInfo(entry->description); p->setDriverInfo(entry->description);
} }
@ -107,8 +107,8 @@ void KMWDriverSelect::updatePrinter(KMPrinter *p)
void KMWDriverSelect::slotDriverComment() void KMWDriverSelect::slotDriverComment()
{ {
int index = m_list->currentItem(); int index = m_list->currentItem();
if (m_entries && index >=0 && index < (int)(m_entries->count()) && !m_entries->at(index)->drivercomment.isEmpty()) if (m_entries && index >=0 && index < (int)(m_entries->count()) && !m_entries->tqat(index)->drivercomment.isEmpty())
KMessageBox::information(this, m_entries->at(index)->drivercomment, TQString::null, TQString::null, KMessageBox::AllowLink); KMessageBox::information(this, m_entries->tqat(index)->drivercomment, TQString::null, TQString::null, KMessageBox::AllowLink);
else else
KMessageBox::error(this, i18n("No information about the selected driver.")); KMessageBox::error(this, i18n("No information about the selected driver."));
} }

@ -56,19 +56,19 @@ void KMWInfoBase::setInfo(const TQString& s)
void KMWInfoBase::setLabel(int i, const TQString& s) void KMWInfoBase::setLabel(int i, const TQString& s)
{ {
if (i >= 0 && i < m_nlines) if (i >= 0 && i < m_nlines)
m_labels.at(i)->setText(s); m_labels.tqat(i)->setText(s);
} }
void KMWInfoBase::setText(int i, const TQString& s) void KMWInfoBase::setText(int i, const TQString& s)
{ {
if (i >= 0 && i < m_nlines) if (i >= 0 && i < m_nlines)
m_edits.at(i)->setText(s); m_edits.tqat(i)->setText(s);
} }
TQString KMWInfoBase::text(int i) TQString KMWInfoBase::text(int i)
{ {
if (i >= 0 && i < m_nlines) if (i >= 0 && i < m_nlines)
return m_edits.at(i)->text(); return m_edits.tqat(i)->text();
return TQString::null; return TQString::null;
} }
@ -76,15 +76,15 @@ void KMWInfoBase::setCurrent(int i)
{ {
if (i >= 0 && i < m_nlines) if (i >= 0 && i < m_nlines)
{ {
m_edits.at(i)->selectAll(); m_edits.tqat(i)->selectAll();
m_edits.at(i)->setFocus(); m_edits.tqat(i)->setFocus();
} }
} }
TQLineEdit* KMWInfoBase::lineEdit( int i ) TQLineEdit* KMWInfoBase::lineEdit( int i )
{ {
if ( i >= 0 && i < m_nlines ) if ( i >= 0 && i < m_nlines )
return m_edits.at( i ); return m_edits.tqat( i );
else else
return NULL; return NULL;
} }

@ -230,9 +230,9 @@ KXmlCommandAdvancedDlg::KXmlCommandAdvancedDlg(TQWidget *parent, const char *nam
l5->addWidget(m_edit1, 0, 1); l5->addWidget(m_edit1, 0, 1);
l5->addWidget(m_edit2, 1, 1); l5->addWidget(m_edit2, 1, 1);
TQGridLayout *l8 = new TQGridLayout(gb_input->layout(), 2, 2, TQGridLayout *l8 = new TQGridLayout(gb_input->tqlayout(), 2, 2,
KDialog::spacingHint()); KDialog::spacingHint());
TQGridLayout *l9 = new TQGridLayout(gb_output->layout(), 2, 2, TQGridLayout *l9 = new TQGridLayout(gb_output->tqlayout(), 2, 2,
KDialog::spacingHint()); KDialog::spacingHint());
l8->addWidget(m_inputfilelab, 0, 0); l8->addWidget(m_inputfilelab, 0, 0);
l8->addWidget(m_inputpipelab, 1, 0); l8->addWidget(m_inputpipelab, 1, 0);
@ -243,7 +243,7 @@ KXmlCommandAdvancedDlg::KXmlCommandAdvancedDlg(TQWidget *parent, const char *nam
l9->addWidget(m_outputfile, 0, 1); l9->addWidget(m_outputfile, 0, 1);
l9->addWidget(m_outputpipe, 1, 1); l9->addWidget(m_outputpipe, 1, 1);
TQVBoxLayout *l11 = new TQVBoxLayout(TQT_TQLAYOUT(gb->layout())); TQVBoxLayout *l11 = new TQVBoxLayout(TQT_TQLAYOUT(gb->tqlayout()));
l11->addWidget(m_stack); l11->addWidget(m_stack);
TQVBoxLayout *l12 = new TQVBoxLayout( 0, 0, 0 ); TQVBoxLayout *l12 = new TQVBoxLayout( 0, 0, 0 );
@ -895,14 +895,14 @@ KXmlCommandDlg::KXmlCommandDlg(TQWidget *parent, const char *name)
l6->addWidget(m_mimetypelab, 0); l6->addWidget(m_mimetypelab, 0);
l6->addWidget(m_mimetype, 1); l6->addWidget(m_mimetype, 1);
l7->addWidget(m_gb1); l7->addWidget(m_gb1);
TQGridLayout *l2 = new TQGridLayout(TQT_TQLAYOUT(m_gb1->layout()), 4, 3, 10); TQGridLayout *l2 = new TQGridLayout(TQT_TQLAYOUT(m_gb1->tqlayout()), 4, 3, 10);
l2->addMultiCellWidget(m_availablemime, 0, 3, 2, 2); l2->addMultiCellWidget(m_availablemime, 0, 3, 2, 2);
l2->addMultiCellWidget(m_selectedmime, 0, 3, 0, 0); l2->addMultiCellWidget(m_selectedmime, 0, 3, 0, 0);
l2->addWidget(m_addmime, 1, 1); l2->addWidget(m_addmime, 1, 1);
l2->addWidget(m_removemime, 2, 1); l2->addWidget(m_removemime, 2, 1);
l2->setRowStretch(0, 1); l2->setRowStretch(0, 1);
l2->setRowStretch(3, 1); l2->setRowStretch(3, 1);
TQHBoxLayout *l4 = new TQHBoxLayout(TQT_TQLAYOUT(m_gb2->layout()), 10); TQHBoxLayout *l4 = new TQHBoxLayout(TQT_TQLAYOUT(m_gb2->tqlayout()), 10);
l4->addWidget(m_requirements); l4->addWidget(m_requirements);
TQVBoxLayout *l8 = new TQVBoxLayout(0, 0, 0); TQVBoxLayout *l8 = new TQVBoxLayout(0, 0, 0);
l4->addLayout(l8); l4->addLayout(l8);

@ -46,7 +46,7 @@ KMProxyWidget::KMProxyWidget(TQWidget *parent, const char *name)
m_proxyhost->setEnabled(false); m_proxyhost->setEnabled(false);
m_proxyport->setEnabled(false); m_proxyport->setEnabled(false);
TQGridLayout *lay0 = new TQGridLayout(layout(), 3, 2, 10); TQGridLayout *lay0 = new TQGridLayout(tqlayout(), 3, 2, 10);
lay0->setColStretch(1,1); lay0->setColStretch(1,1);
lay0->addMultiCellWidget(m_useproxy,0,0,0,1); lay0->addMultiCellWidget(m_useproxy,0,0,0,1);
lay0->addWidget(m_hostlabel,1,0); lay0->addWidget(m_hostlabel,1,0);

@ -524,7 +524,7 @@ int PtyProcess::waitForChild()
fputs(output, stdout); fputs(output, stdout);
fflush(stdout); fflush(stdout);
} }
lineStart = output.at( output.length() - 1 ) == '\n'; lineStart = output.tqat( output.length() - 1 ) == '\n';
output = readAll(false); output = readAll(false);
} }
} }

@ -256,7 +256,7 @@ void KAction::initPrivate( const TQString& text, const KShortcut& cut,
{ {
d->m_cutDefault = cut; d->m_cutDefault = cut;
m_parentCollection = dynamic_cast<KActionCollection *>( parent() ); m_parentCollection = tqt_dynamic_cast<KActionCollection *>( parent() );
kdDebug(129) << "KAction::initPrivate(): this = " << this << " name = \"" << name() << "\" cut = " << cut.toStringInternal() << " m_parentCollection = " << m_parentCollection << endl; kdDebug(129) << "KAction::initPrivate(): this = " << this << " name = \"" << name() << "\" cut = " << cut.toStringInternal() << " m_parentCollection = " << m_parentCollection << endl;
if ( m_parentCollection ) if ( m_parentCollection )
m_parentCollection->insert( this ); m_parentCollection->insert( this );
@ -816,7 +816,7 @@ void KAction::plugMainWindowAccel( TQWidget *w )
while ( !tl->isDialog() && ( n = tl->tqparentWidget() ) ) // lookup parent and store while ( !tl->isDialog() && ( n = tl->tqparentWidget() ) ) // lookup parent and store
tl = n; tl = n;
KMainWindow * mw = dynamic_cast<KMainWindow *>(tl); // try to see if it's a kmainwindow KMainWindow * mw = tqt_dynamic_cast<KMainWindow *>(tl); // try to see if it's a kmainwindow
if (mw) if (mw)
plugAccel( mw->accel() ); plugAccel( mw->accel() );
else else
@ -1051,12 +1051,12 @@ TQWidget* KAction::container( int index ) const
KToolBar* KAction::toolBar( int index ) const KToolBar* KAction::toolBar( int index ) const
{ {
return dynamic_cast<KToolBar *>( d->m_containers[ index ].m_container ); return tqt_dynamic_cast<KToolBar *>( d->m_containers[ index ].m_container );
} }
TQPopupMenu* KAction::popupMenu( int index ) const TQPopupMenu* KAction::popupMenu( int index ) const
{ {
return dynamic_cast<TQPopupMenu *>( d->m_containers[ index ].m_container ); return tqt_dynamic_cast<TQPopupMenu *>( d->m_containers[ index ].m_container );
} }
TQWidget* KAction::representative( int index ) const TQWidget* KAction::representative( int index ) const
@ -1120,14 +1120,14 @@ void KAction::slotPopupActivated()
{ {
if( ::tqqt_cast<TQSignal *>(sender())) if( ::tqqt_cast<TQSignal *>(sender()))
{ {
int id = dynamic_cast<const TQSignal *>(sender())->value().toInt(); int id = tqt_dynamic_cast<const TQSignal *>(sender())->value().toInt();
int pos = findContainer(id); int pos = findContainer(id);
if(pos != -1) if(pos != -1)
{ {
TQPopupMenu* qpm = dynamic_cast<TQPopupMenu *>( container(pos) ); TQPopupMenu* qpm = tqt_dynamic_cast<TQPopupMenu *>( container(pos) );
if(qpm) if(qpm)
{ {
KPopupMenu* kpm = dynamic_cast<KPopupMenu *>( qpm ); KPopupMenu* kpm = tqt_dynamic_cast<KPopupMenu *>( qpm );
TQt::ButtonState state; TQt::ButtonState state;
if ( kpm ) // KPopupMenu? Nice, it stores the state. if ( kpm ) // KPopupMenu? Nice, it stores the state.
state = kpm->state(); state = kpm->state();

@ -1949,8 +1949,8 @@ int KToolBarPopupAction::plug( TQWidget *widget, int index )
int id_ = KAction::getToolButtonID(); int id_ = KAction::getToolButtonID();
if ( icon().isEmpty() && !iconSet().isNull() ) { if ( icon().isEmpty() && !iconSet().isNull() ) {
bar->insertButton( iconSet().pixmap(), id_, TQT_SIGNAL( buttonClicked(int, Qt::ButtonState) ), this, bar->insertButton( iconSet().pixmap(), id_, TQT_SIGNAL( buttonClicked(int, TQt::ButtonState) ), this,
TQT_SLOT( slotButtonClicked(int, Qt::ButtonState) ), TQT_SLOT( slotButtonClicked(int, TQt::ButtonState) ),
isEnabled(), plainText(), isEnabled(), plainText(),
index ); index );
} else { } else {
@ -1960,8 +1960,8 @@ int KToolBarPopupAction::plug( TQWidget *widget, int index )
else else
instance = KGlobal::instance(); instance = KGlobal::instance();
bar->insertButton( icon(), id_, TQT_SIGNAL( buttonClicked(int, Qt::ButtonState) ), this, bar->insertButton( icon(), id_, TQT_SIGNAL( buttonClicked(int, TQt::ButtonState) ), this,
TQT_SLOT( slotButtonClicked(int, Qt::ButtonState) ), TQT_SLOT( slotButtonClicked(int, TQt::ButtonState) ),
isEnabled(), plainText(), isEnabled(), plainText(),
index, instance ); index, instance );
} }
@ -2027,7 +2027,7 @@ int KToggleToolBarAction::plug( TQWidget* w, int index )
while ( !tl->isDialog() && ( n = tl->tqparentWidget() ) ) // lookup parent and store while ( !tl->isDialog() && ( n = tl->tqparentWidget() ) ) // lookup parent and store
tl = n; tl = n;
KMainWindow * mw = dynamic_cast<KMainWindow *>(tl); // try to see if it's a kmainwindow KMainWindow * mw = tqt_dynamic_cast<KMainWindow *>(tl); // try to see if it's a kmainwindow
if ( mw ) if ( mw )
m_toolBar = mw->toolBar( m_toolBarName ); m_toolBar = mw->toolBar( m_toolBarName );
@ -2326,7 +2326,7 @@ void KPasteTextAction::menuAboutToShow()
if (reply.isValid()) if (reply.isValid())
list = reply; list = reply;
} }
TQString clipboardText = tqApp->clipboard()->text(TQClipboard::Clipboard); TQString clipboardText = tqApp->tqclipboard()->text(TQClipboard::Clipboard);
if (list.isEmpty()) if (list.isEmpty())
list << clipboardText; list << clipboardText;
bool found = false; bool found = false;
@ -2354,7 +2354,7 @@ void KPasteTextAction::menuItemActivated( int id)
TQString clipboardText = reply; TQString clipboardText = reply;
reply = klipper.call("setClipboardContents(TQString)", clipboardText); reply = klipper.call("setClipboardContents(TQString)", clipboardText);
if (reply.isValid()) if (reply.isValid())
kdDebug(129) << "Clipboard: " << TQString(tqApp->clipboard()->text(TQClipboard::Clipboard)) << endl; kdDebug(129) << "Clipboard: " << TQString(tqApp->tqclipboard()->text(TQClipboard::Clipboard)) << endl;
} }
TQTimer::singleShot(20, this, TQT_SLOT(slotActivated())); TQTimer::singleShot(20, this, TQT_SLOT(slotActivated()));
} }

@ -110,7 +110,7 @@ KActionCollection::KActionCollection( TQObject *parent, const char *name,
kdWarning(129) << "KActionCollection::KActionCollection( TQObject *parent, const char *name, KInstance *instance )" << endl; //ellis kdWarning(129) << "KActionCollection::KActionCollection( TQObject *parent, const char *name, KInstance *instance )" << endl; //ellis
kdDebug(129) << kdBacktrace() << endl; kdDebug(129) << kdBacktrace() << endl;
d = new KActionCollectionPrivate; d = new KActionCollectionPrivate;
TQWidget* w = dynamic_cast<TQWidget*>( parent ); TQWidget* w = tqt_dynamic_cast<TQWidget*>( parent );
if( w ) if( w )
setWidget( w ); setWidget( w );
//d->m_bOneKAccelOnly = (d->m_kaccelList.count() > 0); //d->m_bOneKAccelOnly = (d->m_kaccelList.count() > 0);
@ -250,8 +250,8 @@ void KActionCollection::removeWidget( TQWidget* w )
} }
delete pKAccel; delete pKAccel;
d->m_widgetList.remove( d->m_widgetList.at( i ) ); d->m_widgetList.remove( d->m_widgetList.tqat( i ) );
d->m_kaccelList.remove( d->m_kaccelList.at( i ) ); d->m_kaccelList.remove( d->m_kaccelList.tqat( i ) );
if( d->m_iWidgetCurrent == (int)i ) if( d->m_iWidgetCurrent == (int)i )
d->m_iWidgetCurrent = -1; d->m_iWidgetCurrent = -1;
@ -402,7 +402,7 @@ KAction* KActionCollection::action( int index ) const
TQAsciiDictIterator<KAction> it( d->m_actionDict ); TQAsciiDictIterator<KAction> it( d->m_actionDict );
it += index; it += index;
return it.current(); return it.current();
// return d->m_actions.at( index ); // return d->m_actions.tqat( index );
} }
bool KActionCollection::readShortcutSettings( const TQString& sConfigGroup, KConfigBase* pConfig ) bool KActionCollection::readShortcutSettings( const TQString& sConfigGroup, KConfigBase* pConfig )

@ -159,7 +159,7 @@ void KColorButton::keyPressEvent( TQKeyEvent *e )
} }
else if ( KStdAccel::paste().contains( key ) ) { else if ( KStdAccel::paste().contains( key ) ) {
TQColor color; TQColor color;
KColorDrag::decode( TQApplication::tqclipboard()->data( QClipboard::Clipboard ), color ); KColorDrag::decode( TQApplication::tqclipboard()->data( TQClipboard::Clipboard ), color );
setColor( color ); setColor( color );
} }
else else

@ -261,7 +261,7 @@ void KComboBox::setLineEdit( TQLineEdit *edit )
} }
TQComboBox::setLineEdit( edit ); TQComboBox::setLineEdit( edit );
d->klineEdit = dynamic_cast<KLineEdit*>( edit ); d->klineEdit = tqt_dynamic_cast<KLineEdit*>( edit );
setDelegate( d->klineEdit ); setDelegate( d->klineEdit );
// Connect the returnPressed signal for both Q[K]LineEdits' // Connect the returnPressed signal for both Q[K]LineEdits'

@ -308,7 +308,7 @@ TQWidget* KCursorPrivateAutoHideEventFilter::actualWidget() const
TQWidget* w = m_widget; TQWidget* w = m_widget;
// Is w a scrollview ? Call setCursor on the viewport in that case. // Is w a scrollview ? Call setCursor on the viewport in that case.
TQScrollView * sv = dynamic_cast<TQScrollView *>( w ); TQScrollView * sv = tqt_dynamic_cast<TQScrollView *>( w );
if ( sv ) if ( sv )
w = sv->viewport(); w = sv->viewport();

@ -535,7 +535,7 @@ void KDockWidget::setPixmap(const TQPixmap& pixmap) {
dtg->changeTab(this,pixmap,dtg->tabLabel(this)); dtg->changeTab(this,pixmap,dtg->tabLabel(this));
TQWidget *contWid=parentDockContainer(); TQWidget *contWid=parentDockContainer();
if (contWid) { if (contWid) {
KDockContainer *x = dynamic_cast<KDockContainer*>(contWid); KDockContainer *x = tqt_dynamic_cast<KDockContainer*>(contWid);
if (x) { if (x) {
x->setPixmap(this,pixmap); x->setPixmap(this,pixmap);
} }
@ -556,7 +556,7 @@ KDockWidget::~KDockWidget()
} }
if (latestKDockContainer()) { if (latestKDockContainer()) {
KDockContainer *x = dynamic_cast<KDockContainer*>(latestKDockContainer()); KDockContainer *x = tqt_dynamic_cast<KDockContainer*>(latestKDockContainer());
if (x) { if (x) {
x->removeWidget(this); x->removeWidget(this);
} }
@ -719,7 +719,7 @@ void KDockWidget::setLatestKDockContainer(TQWidget* container)
{ {
if (container) if (container)
{ {
if (dynamic_cast<KDockContainer*>(container)) if (tqt_dynamic_cast<KDockContainer*>(container))
d->container=container; d->container=container;
else else
d->container=0; d->container=0;
@ -729,7 +729,7 @@ void KDockWidget::setLatestKDockContainer(TQWidget* container)
TQWidget* KDockWidget::latestKDockContainer() TQWidget* KDockWidget::latestKDockContainer()
{ {
if (!(d->container)) return 0; if (!(d->container)) return 0;
if (dynamic_cast<KDockContainer*>(d->container.operator->())) return d->container; if (tqt_dynamic_cast<KDockContainer*>(d->container.operator->())) return d->container;
return 0; return 0;
} }
@ -782,7 +782,7 @@ void KDockWidget::updateHeader()
header->hide(); header->hide();
} else { } else {
header->setTopLevel( false ); header->setTopLevel( false );
if (widget && dynamic_cast<KDockContainer*>(widget)) if (widget && tqt_dynamic_cast<KDockContainer*>(widget))
header->hide(); header->hide();
else else
header->show(); header->show();
@ -999,7 +999,7 @@ KDockWidget* KDockWidget::manualDock( KDockWidget* target, DockPosition dockPos,
* dock tab group, and our parent isn't a KDockContainer, and we have no explicit * dock tab group, and our parent isn't a KDockContainer, and we have no explicit
* parent dock container...we can't do much yet */ * parent dock container...we can't do much yet */
if ( parent() && !parent()->inherits("KDockSplitter") && !parentDockTabGroup() && if ( parent() && !parent()->inherits("KDockSplitter") && !parentDockTabGroup() &&
!(dynamic_cast<KDockContainer*>(parent())) && !parentDockContainer()){ !(tqt_dynamic_cast<KDockContainer*>(parent())) && !parentDockContainer()){
// kdDebug(282)<<"KDockWidget::manualDock(): success = false (3)"<<endl; // kdDebug(282)<<"KDockWidget::manualDock(): success = false (3)"<<endl;
// kdDebug(282)<<parent()->name()<<endl; // kdDebug(282)<<parent()->name()<<endl;
success = false; success = false;
@ -1064,11 +1064,11 @@ KDockWidget* KDockWidget::manualDock( KDockWidget* target, DockPosition dockPos,
if (!contWid) contWid=target->widget; if (!contWid) contWid=target->widget;
if (contWid) if (contWid)
{ {
KDockContainer *cont=dynamic_cast<KDockContainer*>(contWid); KDockContainer *cont=tqt_dynamic_cast<KDockContainer*>(contWid);
if (cont) if (cont)
{ {
if (latestKDockContainer() && (latestKDockContainer()!=contWid)) { if (latestKDockContainer() && (latestKDockContainer()!=contWid)) {
KDockContainer* dc = dynamic_cast<KDockContainer*>(latestKDockContainer()); KDockContainer* dc = tqt_dynamic_cast<KDockContainer*>(latestKDockContainer());
if (dc) { if (dc) {
dc->removeWidget(this); dc->removeWidget(this);
} }
@ -1227,7 +1227,7 @@ TQWidget *KDockWidget::parentDockContainer() const
{ {
if (!parent()) return 0L; if (!parent()) return 0L;
TQWidget* candidate = tqparentWidget()->tqparentWidget(); TQWidget* candidate = tqparentWidget()->tqparentWidget();
if (candidate && dynamic_cast<KDockContainer*>(candidate)) return candidate; if (candidate && tqt_dynamic_cast<KDockContainer*>(candidate)) return candidate;
return 0L; return 0L;
} }
@ -1382,7 +1382,7 @@ void KDockWidget::undock()
{ {
// kdDebug(282)<<"undocked from dockcontainer"<<endl; // kdDebug(282)<<"undocked from dockcontainer"<<endl;
undockedFromContainer=true; undockedFromContainer=true;
KDockContainer* dc = dynamic_cast<KDockContainer*>(d->container.operator->()); KDockContainer* dc = tqt_dynamic_cast<KDockContainer*>(d->container.operator->());
if (dc) { if (dc) {
dc->undockWidget(this); dc->undockWidget(this);
setFormerBrotherDockWidget(dc->parentDockWidget()); setFormerBrotherDockWidget(dc->parentDockWidget());
@ -1462,7 +1462,7 @@ void KDockWidget::setWidget( TQWidget* mw )
layout = new TQVBoxLayout( this ); layout = new TQVBoxLayout( this );
layout->setResizeMode( TQLayout::Minimum ); layout->setResizeMode( TQLayout::Minimum );
KDockContainer* dc = dynamic_cast<KDockContainer*>(widget); KDockContainer* dc = tqt_dynamic_cast<KDockContainer*>(widget);
if (dc) if (dc)
{ {
d->isContainer=true; d->isContainer=true;
@ -1538,7 +1538,7 @@ void KDockWidget::makeDockVisible()
} }
if (parentDockContainer()) { if (parentDockContainer()) {
TQWidget *contWid=parentDockContainer(); TQWidget *contWid=parentDockContainer();
KDockContainer *x = dynamic_cast<KDockContainer*>(contWid); KDockContainer *x = tqt_dynamic_cast<KDockContainer*>(contWid);
if (x) { if (x) {
x->showWidget(this); x->showWidget(this);
} }
@ -1862,7 +1862,7 @@ KDockWidget* KDockManager::findDockWidgetAt( const TQPoint& pos )
} }
if ( qt_tqfind_obj_child( TQT_TQOBJECT(w), "KDockSplitter", "_dock_split_" ) ) return 0L; if ( qt_tqfind_obj_child( TQT_TQOBJECT(w), "KDockSplitter", "_dock_split_" ) ) return 0L;
if ( qt_tqfind_obj_child( TQT_TQOBJECT(w), "KDockTabGroup", "_dock_tab" ) ) return 0L; if ( qt_tqfind_obj_child( TQT_TQOBJECT(w), "KDockTabGroup", "_dock_tab" ) ) return 0L;
if (dynamic_cast<KDockContainer*>(w)) return 0L; if (tqt_dynamic_cast<KDockContainer*>(w)) return 0L;
if (!childDockWidgetList) return 0L; if (!childDockWidgetList) return 0L;
if ( childDockWidgetList->tqfind(w) != -1 ) return 0L; if ( childDockWidgetList->tqfind(w) != -1 ) return 0L;
@ -2221,7 +2221,7 @@ void KDockManager::writeConfig(TQDomElement &base)
for (TQObjectListIt it(d->containerDocks);it.current();++it) for (TQObjectListIt it(d->containerDocks);it.current();++it)
{ {
KDockContainer* dc = dynamic_cast<KDockContainer*>(((KDockWidget*)it.current())->widget); KDockContainer* dc = tqt_dynamic_cast<KDockContainer*>(((KDockWidget*)it.current())->widget);
if (dc) { if (dc) {
dc->prepareSave(nList); dc->prepareSave(nList);
} }
@ -2241,7 +2241,7 @@ void KDockManager::writeConfig(TQDomElement &base)
TQDomElement groupEl; TQDomElement groupEl;
if (obj->d->isContainer) { if (obj->d->isContainer) {
KDockContainer* x = dynamic_cast<KDockContainer*>(obj->widget); KDockContainer* x = tqt_dynamic_cast<KDockContainer*>(obj->widget);
if (x) { if (x) {
groupEl=doc.createElement("dockContainer"); groupEl=doc.createElement("dockContainer");
x->save(groupEl); x->save(groupEl);
@ -2379,7 +2379,7 @@ void KDockManager::readConfig(TQDomElement &base)
if (!(cont->d->isContainer)) { if (!(cont->d->isContainer)) {
kdDebug(282)<<"restoration of dockContainer is only supported for already existing dock containers"<<endl; kdDebug(282)<<"restoration of dockContainer is only supported for already existing dock containers"<<endl;
} else { } else {
KDockContainer *dc=dynamic_cast<KDockContainer*>(cont->getWidget()); KDockContainer *dc=tqt_dynamic_cast<KDockContainer*>(cont->getWidget());
if (!dc) kdDebug(282)<<"Error while trying to handle dockcontainer configuration restoration"<<endl; if (!dc) kdDebug(282)<<"Error while trying to handle dockcontainer configuration restoration"<<endl;
else { else {
dc->load(childEl); dc->load(childEl);
@ -2555,7 +2555,7 @@ void KDockManager::writeConfig( KConfig* c, TQString group )
// kdDebug(282)<<TQString("list size: %1").arg(nList.count())<<endl; // kdDebug(282)<<TQString("list size: %1").arg(nList.count())<<endl;
for (TQObjectListIt it(d->containerDocks);it.current();++it) for (TQObjectListIt it(d->containerDocks);it.current();++it)
{ {
KDockContainer* dc = dynamic_cast<KDockContainer*>(((KDockWidget*)it.current())->widget); KDockContainer* dc = tqt_dynamic_cast<KDockContainer*>(((KDockWidget*)it.current())->widget);
if (dc) { if (dc) {
dc->prepareSave(nList); dc->prepareSave(nList);
} }
@ -2571,7 +2571,7 @@ void KDockManager::writeConfig( KConfig* c, TQString group )
obj->header->saveConfig( c ); obj->header->saveConfig( c );
} }
if (obj->d->isContainer) { if (obj->d->isContainer) {
KDockContainer* x = dynamic_cast<KDockContainer*>(obj->widget); KDockContainer* x = tqt_dynamic_cast<KDockContainer*>(obj->widget);
if (x) { if (x) {
x->save(c,group); x->save(c,group);
} }
@ -2734,7 +2734,7 @@ void KDockManager::readConfig( KConfig* c, TQString group )
} }
if (obj && obj->d->isContainer) { if (obj && obj->d->isContainer) {
dynamic_cast<KDockContainer*>(obj->widget)->load(c,group); tqt_dynamic_cast<KDockContainer*>(obj->widget)->load(c,group);
removeFromAutoCreateList(obj); removeFromAutoCreateList(obj);
} }
if ( obj && obj->header){ if ( obj && obj->header){
@ -2774,7 +2774,7 @@ void KDockManager::readConfig( KConfig* c, TQString group )
KDockWidget* d2 = getDockWidgetFromName( list.current() ); KDockWidget* d2 = getDockWidgetFromName( list.current() );
tabDockGroup = d2->manualDock( d1, KDockWidget::DockCenter ); tabDockGroup = d2->manualDock( d1, KDockWidget::DockCenter );
if ( tabDockGroup ){ if ( tabDockGroup ){
KDockTabGroup* tab = dynamic_cast<KDockTabGroup*>(tabDockGroup->widget); KDockTabGroup* tab = tqt_dynamic_cast<KDockTabGroup*>(tabDockGroup->widget);
list.next(); list.next();
while ( list.current() && tabDockGroup ){ while ( list.current() && tabDockGroup ){
KDockWidget* tabDock = getDockWidgetFromName( list.current() ); KDockWidget* tabDock = getDockWidgetFromName( list.current() );
@ -2791,7 +2791,7 @@ void KDockManager::readConfig( KConfig* c, TQString group )
obj = tabDockGroup; obj = tabDockGroup;
} }
if (obj && obj->d->isContainer) dynamic_cast<KDockContainer*>(obj->widget)->load(c,group); if (obj && obj->d->isContainer) tqt_dynamic_cast<KDockContainer*>(obj->widget)->load(c,group);
if ( obj && obj->header){ if ( obj && obj->header){
obj->header->loadConfig( c ); obj->header->loadConfig( c );
} }
@ -2950,7 +2950,7 @@ void KDockManager::slotMenuPopup()
void KDockManager::slotMenuActivated( int id ) void KDockManager::slotMenuActivated( int id )
{ {
MenuDockData* data = menuData->at( id ); MenuDockData* data = menuData->tqat( id );
data->dock->changeHideShowState(); data->dock->changeHideShowState();
} }
@ -3121,9 +3121,9 @@ void KDockArea::resizeEvent(TQResizeEvent *rsize)
// for (unsigned int i=0;i<children()->count();i++) // for (unsigned int i=0;i<children()->count();i++)
{ {
// TQPtrList<TQObject> list(children()); // TQPtrList<TQObject> list(children());
// TQObject *obj=((TQPtrList<TQObject*>)children())->at(i); // TQObject *obj=((TQPtrList<TQObject*>)children())->tqat(i);
TQObject *obj=children()->getFirst(); TQObject *obj=children()->getFirst();
if (split = dynamic_cast<KDockSplitter*>(obj)) if (split = tqt_dynamic_cast<KDockSplitter*>(obj))
{ {
split->setGeometry( TQRect(TQPoint(0,0), size() )); split->setGeometry( TQRect(TQPoint(0,0), size() ));
// break; // break;
@ -3272,7 +3272,7 @@ void KDockContainer::prepareSave(TQStringList &names)
names.remove(tmp->data); names.remove(tmp->data);
// for (uint i=0;i<m_children.count();i++) // for (uint i=0;i<m_children.count();i++)
// { // {
// names.remove(m_children.at(i)); // names.remove(m_children.tqat(i));
// } // }
} }

@ -274,7 +274,7 @@ void KDockSplitter::resizeEvent(TQResizeEvent *ev)
// However, this works surprising well! // However, this works surprising well!
if (m_orientation == Qt::Horizontal) { if (m_orientation == Qt::Horizontal) {
if (ev->oldSize().height() != ev->size().height()) { if (ev->oldSize().height() != ev->size().height()) {
if( (c1->getWidget()) && (dc=dynamic_cast<KDockContainer*>(c1->getWidget()))) { if( (c1->getWidget()) && (dc=tqt_dynamic_cast<KDockContainer*>(c1->getWidget()))) {
// dockwidget is on the bottom. move xpos so that the size from child1 stays // dockwidget is on the bottom. move xpos so that the size from child1 stays
xpos = (int)ceil(((double)factor) * checkValue(height() - child1->height() - 4) / height()); xpos = (int)ceil(((double)factor) * checkValue(height() - child1->height() - 4) / height());
} else { } else {
@ -286,7 +286,7 @@ void KDockSplitter::resizeEvent(TQResizeEvent *ev)
} }
} else { } else {
if (ev->oldSize().width() != width()) { if (ev->oldSize().width() != width()) {
if( (c1->getWidget()) && (dc=dynamic_cast<KDockContainer*>(c1->getWidget()))) { if( (c1->getWidget()) && (dc=tqt_dynamic_cast<KDockContainer*>(c1->getWidget()))) {
xpos = (int)ceil(((double)factor) * checkValue(width() - child1->width() - 4) / width()); xpos = (int)ceil(((double)factor) * checkValue(width() - child1->width() - 4) / width());
} else { } else {
// xpos should not change // xpos should not change
@ -332,11 +332,11 @@ void KDockSplitter::resizeEvent(TQResizeEvent *ev)
kdDebug(282) << "Splitter visibility : " << divider->isVisible() << endl;; kdDebug(282) << "Splitter visibility : " << divider->isVisible() << endl;;
kdDebug(282) << "Splitter procentual pos: " << xpos << endl; kdDebug(282) << "Splitter procentual pos: " << xpos << endl;
if (c0->getWidget()) { if (c0->getWidget()) {
dc=dynamic_cast<KDockContainer*>(c0->getWidget()); dc=tqt_dynamic_cast<KDockContainer*>(c0->getWidget());
kdDebug(282) << "Child 0 KDockContainer?: " << dc << endl; kdDebug(282) << "Child 0 KDockContainer?: " << dc << endl;
} }
if (c1->getWidget()) { if (c1->getWidget()) {
dc=dynamic_cast<KDockContainer*>(c1->getWidget()); dc=tqt_dynamic_cast<KDockContainer*>(c1->getWidget());
kdDebug(282) << "Child 1 KDockContainer?: " << dc << endl; kdDebug(282) << "Child 1 KDockContainer?: " << dc << endl;
} }
kdDebug(282) << "Child0 : " << child0 << endl; kdDebug(282) << "Child0 : " << child0 << endl;
@ -348,7 +348,7 @@ void KDockSplitter::resizeEvent(TQResizeEvent *ev)
// //
if( ( (m_orientation==Qt::Vertical) &&((fixedWidth0==-1) && (fixedWidth1==-1)) ) || if( ( (m_orientation==Qt::Vertical) &&((fixedWidth0==-1) && (fixedWidth1==-1)) ) ||
( (m_orientation==Qt::Horizontal) &&((fixedHeight0==-1) && (fixedHeight1==-1)) ) ) { ( (m_orientation==Qt::Horizontal) &&((fixedHeight0==-1) && (fixedHeight1==-1)) ) ) {
if ((c0->getWidget()) && (dc=dynamic_cast<KDockContainer*>(c0->getWidget())) if ((c0->getWidget()) && (dc=tqt_dynamic_cast<KDockContainer*>(c0->getWidget()))
&& (dc->isOverlapMode())) { && (dc->isOverlapMode())) {
// child0 ist a KDockContainer // child0 ist a KDockContainer
int position; int position;
@ -367,7 +367,7 @@ void KDockSplitter::resizeEvent(TQResizeEvent *ev)
divider->setGeometry(position, 0, 4, height()); divider->setGeometry(position, 0, 4, height());
} }
} else { } else {
if ((c1->getWidget()) && (dc=dynamic_cast<KDockContainer*>(c1->getWidget())) if ((c1->getWidget()) && (dc=tqt_dynamic_cast<KDockContainer*>(c1->getWidget()))
&& (dc->isOverlapMode())) { && (dc->isOverlapMode())) {
// child1 ist a KDockContainer // child1 ist a KDockContainer
int position; int position;
@ -403,7 +403,7 @@ void KDockSplitter::resizeEvent(TQResizeEvent *ev)
int diff = 0; int diff = 0;
if (m_orientation == Qt::Horizontal) { if (m_orientation == Qt::Horizontal) {
if ((c1->getWidget()) && (dc=dynamic_cast<KDockContainer*>(c1->getWidget()))) { if ((c1->getWidget()) && (dc=tqt_dynamic_cast<KDockContainer*>(c1->getWidget()))) {
// bottom is dockcontainer // bottom is dockcontainer
if( divider->isVisible() ) { if( divider->isVisible() ) {
child0->setGeometry(0, 0, width(), position); child0->setGeometry(0, 0, width(), position);
@ -419,7 +419,7 @@ void KDockSplitter::resizeEvent(TQResizeEvent *ev)
} }
divider->setGeometry(0, position, width(), 4); divider->setGeometry(0, position, width(), 4);
} else { } else {
if ((c1->getWidget()) && (dc=dynamic_cast<KDockContainer*>(c1->getWidget()))) { if ((c1->getWidget()) && (dc=tqt_dynamic_cast<KDockContainer*>(c1->getWidget()))) {
// right is dockcontainer // right is dockcontainer
if( divider->isVisible() ) { if( divider->isVisible() ) {
child0->setGeometry(0, 0, position, height()); child0->setGeometry(0, 0, position, height());
@ -497,8 +497,8 @@ bool KDockSplitter::eventFilter(TQObject *o, TQEvent *e)
switch (e->type()) { switch (e->type()) {
case TQEvent::MouseMove: case TQEvent::MouseMove:
mev= (TQMouseEvent*)e; mev= (TQMouseEvent*)e;
child0->setUpdatesEnabled(mOpaqueResize); child0->tqsetUpdatesEnabled(mOpaqueResize);
child1->setUpdatesEnabled(mOpaqueResize); child1->tqsetUpdatesEnabled(mOpaqueResize);
if (m_orientation == Qt::Horizontal) { if (m_orientation == Qt::Horizontal) {
if ((fixedHeight0!=-1) || (fixedHeight1!=-1)) if ((fixedHeight0!=-1) || (fixedHeight1!=-1))
{ {
@ -536,8 +536,8 @@ bool KDockSplitter::eventFilter(TQObject *o, TQEvent *e)
handled= true; handled= true;
break; break;
case TQEvent::MouseButtonRelease: case TQEvent::MouseButtonRelease:
child0->setUpdatesEnabled(true); child0->tqsetUpdatesEnabled(true);
child1->setUpdatesEnabled(true); child1->tqsetUpdatesEnabled(true);
mev= (TQMouseEvent*)e; mev= (TQMouseEvent*)e;
if (m_orientation == Qt::Horizontal){ if (m_orientation == Qt::Horizontal){
if ((fixedHeight0!=-1) || (fixedHeight1!=-1)) if ((fixedHeight0!=-1) || (fixedHeight1!=-1))

@ -411,7 +411,7 @@ void KEditListBox::virtual_hook( int, void* )
KEditListBox::CustomEditor::CustomEditor( KComboBox *combo ) KEditListBox::CustomEditor::CustomEditor( KComboBox *combo )
{ {
m_representationWidget = combo; m_representationWidget = combo;
m_lineEdit = dynamic_cast<KLineEdit*>( combo->lineEdit() ); m_lineEdit = tqt_dynamic_cast<KLineEdit*>( combo->lineEdit() );
assert( m_lineEdit ); assert( m_lineEdit );
} }

@ -184,7 +184,7 @@ void KIconView::slotAutoSelect()
bool select = !m_pCurrentItem->isSelected(); bool select = !m_pCurrentItem->isSelected();
bool update = viewport()->isUpdatesEnabled(); bool update = viewport()->isUpdatesEnabled();
viewport()->setUpdatesEnabled( false ); viewport()->tqsetUpdatesEnabled( false );
//Calculate the smallest rectangle that contains the current Item //Calculate the smallest rectangle that contains the current Item
//and the one that got the autoselect event //and the one that got the autoselect event
@ -216,7 +216,7 @@ void KIconView::slotAutoSelect()
} }
blockSignals( block ); blockSignals( block );
viewport()->setUpdatesEnabled( update ); viewport()->tqsetUpdatesEnabled( update );
tqrepaintContents( redraw, false ); tqrepaintContents( redraw, false );
emit selectionChanged(); emit selectionChanged();

@ -518,7 +518,7 @@ bool KJanusWidget::setSwallowedWidget( TQWidget *widget )
TQObjectList l = mSwallowPage->childrenListObject(); // silence please TQObjectList l = mSwallowPage->childrenListObject(); // silence please
for( uint i=0; i < l.count(); i++ ) for( uint i=0; i < l.count(); i++ )
{ {
TQObject *o = l.at(i); TQObject *o = l.tqat(i);
if( o->isWidgetType() ) if( o->isWidgetType() )
{ {
((TQWidget*)o)->hide(); ((TQWidget*)o)->hide();

@ -191,7 +191,7 @@ void KLanguageButton::slotActivated( int index )
setCurrentItem( index ); setCurrentItem( index );
// Forward event from popup menu as if it was emitted from this widget: // Forward event from popup menu as if it was emitted from this widget:
TQString id = *m_ids->at( index ); TQString id = *m_ids->tqat( index );
emit activated( id ); emit activated( id );
} }
@ -199,7 +199,7 @@ void KLanguageButton::slotHighlighted( int index )
{ {
//kdDebug() << "slotHighlighted" << index << endl; //kdDebug() << "slotHighlighted" << index << endl;
TQString id = *m_ids->at( index ); TQString id = *m_ids->tqat( index );
emit ( highlighted(id) ); emit ( highlighted(id) );
} }
@ -237,7 +237,7 @@ bool KLanguageButton::contains( const TQString & id ) const
TQString KLanguageButton::current() const TQString KLanguageButton::current() const
{ {
return *m_ids->at( currentItem() ); return *m_ids->tqat( currentItem() );
} }
@ -248,7 +248,7 @@ TQString KLanguageButton::id( int i ) const
kdDebug() << "KLanguageButton::tag(), unknown tag " << i << endl; kdDebug() << "KLanguageButton::tag(), unknown tag " << i << endl;
return TQString::null; return TQString::null;
} }
return *m_ids->at( i ); return *m_ids->tqat( i );
} }

@ -420,9 +420,9 @@ bool KLineEdit::copySqueezedText(bool clipboard) const
return false; return false;
TQString t = d->squeezedText; TQString t = d->squeezedText;
t = t.mid(start, end - start); t = t.mid(start, end - start);
disconnect( TQApplication::clipboard(), TQT_SIGNAL(selectionChanged()), this, 0); disconnect( TQApplication::tqclipboard(), TQT_SIGNAL(selectionChanged()), this, 0);
TQApplication::clipboard()->setText( t, clipboard ? QClipboard::Clipboard : QClipboard::Selection ); TQApplication::tqclipboard()->setText( t, clipboard ? TQClipboard::Clipboard : TQClipboard::Selection );
connect( TQApplication::clipboard(), TQT_SIGNAL(selectionChanged()), this, connect( TQApplication::tqclipboard(), TQT_SIGNAL(selectionChanged()), this,
TQT_SLOT(clipboardChanged()) ); TQT_SLOT(clipboardChanged()) );
return true; return true;
} }
@ -453,7 +453,7 @@ void KLineEdit::keyPressEvent( TQKeyEvent *e )
} }
else if ( KStdAccel::pasteSelection().contains( key ) ) else if ( KStdAccel::pasteSelection().contains( key ) )
{ {
TQString text = TQApplication::clipboard()->text( QClipboard::Selection); TQString text = TQApplication::tqclipboard()->text( TQClipboard::Selection);
insert( text ); insert( text );
deselect(); deselect();
return; return;
@ -840,7 +840,7 @@ void KLineEdit::mousePressEvent( TQMouseEvent* e )
void KLineEdit::mouseReleaseEvent( TQMouseEvent* e ) void KLineEdit::mouseReleaseEvent( TQMouseEvent* e )
{ {
TQLineEdit::mouseReleaseEvent( e ); TQLineEdit::mouseReleaseEvent( e );
if (TQApplication::clipboard()->supportsSelection() ) { if (TQApplication::tqclipboard()->supportsSelection() ) {
if ( e->button() == Qt::LeftButton ) { if ( e->button() == Qt::LeftButton ) {
// Fix copying of squeezed text if needed // Fix copying of squeezed text if needed
copySqueezedText( false ); copySqueezedText( false );

@ -133,7 +133,7 @@ void KListBox::slotAutoSelect()
bool select = !m_pCurrentItem->isSelected(); bool select = !m_pCurrentItem->isSelected();
bool update = viewport()->isUpdatesEnabled(); bool update = viewport()->isUpdatesEnabled();
viewport()->setUpdatesEnabled( false ); viewport()->tqsetUpdatesEnabled( false );
bool down = index( previousItem ) < index( m_pCurrentItem ); bool down = index( previousItem ) < index( m_pCurrentItem );
TQListBoxItem* it = down ? previousItem : m_pCurrentItem; TQListBoxItem* it = down ? previousItem : m_pCurrentItem;
@ -150,7 +150,7 @@ void KListBox::slotAutoSelect()
} }
blockSignals( block ); blockSignals( block );
viewport()->setUpdatesEnabled( update ); viewport()->tqsetUpdatesEnabled( update );
triggerUpdate( false ); triggerUpdate( false );
emit selectionChanged(); emit selectionChanged();

@ -621,7 +621,7 @@ void KListView::slotAutoSelect()
bool select = !d->pCurrentItem->isSelected(); bool select = !d->pCurrentItem->isSelected();
bool update = viewport()->isUpdatesEnabled(); bool update = viewport()->isUpdatesEnabled();
viewport()->setUpdatesEnabled( false ); viewport()->tqsetUpdatesEnabled( false );
bool down = previousItem->itemPos() < d->pCurrentItem->itemPos(); bool down = previousItem->itemPos() < d->pCurrentItem->itemPos();
TQListViewItemIterator lit( down ? previousItem : d->pCurrentItem ); TQListViewItemIterator lit( down ? previousItem : d->pCurrentItem );
@ -638,7 +638,7 @@ void KListView::slotAutoSelect()
} }
blockSignals( block ); blockSignals( block );
viewport()->setUpdatesEnabled( update ); viewport()->tqsetUpdatesEnabled( update );
triggerUpdate(); triggerUpdate();
emit selectionChanged(); emit selectionChanged();
@ -661,7 +661,7 @@ void KListView::slotAutoSelect()
} }
} }
else else
kdDebug() << "KListView::slotAutoSelect: That´s not supposed to happen!!!!" << endl; kdDebug() << "KListView::slotAutoSelect: That<EFBFBD>s not supposed to happen!!!!" << endl;
} }
void KListView::slotHeaderChanged() void KListView::slotHeaderChanged()

@ -302,7 +302,7 @@ void KListViewSearchLine::activateSearch()
void KListViewSearchLine::itemAdded(TQListViewItem *item) const void KListViewSearchLine::itemAdded(TQListViewItem *item) const
{ {
item->setVisible(itemMatches(item, text())); item->tqsetVisible(itemMatches(item, text()));
} }
void KListViewSearchLine::listViewDeleted() void KListViewSearchLine::listViewDeleted()
@ -347,9 +347,9 @@ void KListViewSearchLine::checkItemParentsNotVisible()
{ {
TQListViewItem *item = it.current(); TQListViewItem *item = it.current();
if(itemMatches(item, d->search)) if(itemMatches(item, d->search))
item->setVisible(true); item->tqsetVisible(true);
else else
item->setVisible(false); item->tqsetVisible(false);
} }
} }
@ -381,23 +381,23 @@ bool KListViewSearchLine::checkItemParentsVisible(TQListViewItem *item, TQListVi
visible = true; visible = true;
if (highestHiddenParent) if (highestHiddenParent)
{ {
highestHiddenParent->setVisible(true); highestHiddenParent->tqsetVisible(true);
// Calling setVisible on our ancestor will unhide all its descendents. Hide the ones // Calling tqsetVisible on our ancestor will unhide all its descendents. Hide the ones
// before us that should not be shown. // before us that should not be shown.
for(TQListViewItem *hide = first; hide != item; hide = hide->nextSibling()) for(TQListViewItem *hide = first; hide != item; hide = hide->nextSibling())
hide->setVisible(false); hide->tqsetVisible(false);
highestHiddenParent = 0; highestHiddenParent = 0;
// If we matched, than none of our children matched, yet the setVisible() call on our // If we matched, than none of our children matched, yet the tqsetVisible() call on our
// ancestor unhid them, undo the damage: // ancestor unhid them, undo the damage:
if(!childMatch) if(!childMatch)
for(TQListViewItem *hide = item->firstChild(); hide; hide = hide->nextSibling()) for(TQListViewItem *hide = item->firstChild(); hide; hide = hide->nextSibling())
hide->setVisible(false); hide->tqsetVisible(false);
} }
else else
item->setVisible(true); item->tqsetVisible(true);
} }
else else
item->setVisible(false); item->tqsetVisible(false);
} }
return visible; return visible;
} }
@ -470,7 +470,7 @@ KListViewSearchLine *KListViewSearchLineWidget::searchLine() const
void KListViewSearchLineWidget::positionInToolBar() void KListViewSearchLineWidget::positionInToolBar()
{ {
KToolBar *toolBar = dynamic_cast<KToolBar *>(parent()); KToolBar *toolBar = tqt_dynamic_cast<KToolBar *>(parent());
if(toolBar) { if(toolBar) {

@ -491,7 +491,7 @@ void KMainWindow::setupGUI( TQSize defaultSize, int options, const TQString & xm
void KMainWindow::createGUI( const TQString &xmlfile, bool _conserveMemory ) void KMainWindow::createGUI( const TQString &xmlfile, bool _conserveMemory )
{ {
// disabling the updates prevents unnecessary redraws // disabling the updates prevents unnecessary redraws
setUpdatesEnabled( false ); tqsetUpdatesEnabled( false );
// just in case we are rebuilding, let's remove our old client // just in case we are rebuilding, let's remove our old client
guiFactory()->removeClient( this ); guiFactory()->removeClient( this );
@ -564,7 +564,7 @@ void KMainWindow::createGUI( const TQString &xmlfile, bool _conserveMemory )
conserveMemory(); conserveMemory();
} }
setUpdatesEnabled( true ); tqsetUpdatesEnabled( true );
updateGeometry(); updateGeometry();
} }

@ -135,7 +135,7 @@ int KMainWindowInterface::getWinID()
} }
void KMainWindowInterface::grabWindowToClipBoard() void KMainWindowInterface::grabWindowToClipBoard()
{ {
QClipboard *clipboard = TQApplication::clipboard(); TQClipboard *clipboard = TQApplication::tqclipboard();
clipboard->setPixmap(TQPixmap::grabWidget(m_MainWindow)); clipboard->setPixmap(TQPixmap::grabWidget(m_MainWindow));
} }
void KMainWindowInterface::hide() void KMainWindowInterface::hide()

@ -506,7 +506,7 @@ void KMenuBar::drawContents( TQPainter* p )
BackgroundMode bg_mode = backgroundMode(); BackgroundMode bg_mode = backgroundMode();
BackgroundOrigin bg_origin = backgroundOrigin(); BackgroundOrigin bg_origin = backgroundOrigin();
setUpdatesEnabled(false); tqsetUpdatesEnabled(false);
setBackgroundMode(X11ParentRelative); setBackgroundMode(X11ParentRelative);
setBackgroundOrigin(WindowOrigin); setBackgroundOrigin(WindowOrigin);
@ -561,7 +561,7 @@ void KMenuBar::drawContents( TQPainter* p )
setBackgroundOrigin(bg_origin); setBackgroundOrigin(bg_origin);
setBackgroundMode(bg_mode); setBackgroundMode(bg_mode);
setUpdatesEnabled(up_enabled); tqsetUpdatesEnabled(up_enabled);
} }
} }

@ -187,9 +187,9 @@ void KPasswordEdit::erase()
void KPasswordEdit::focusInEvent(TQFocusEvent *e) void KPasswordEdit::focusInEvent(TQFocusEvent *e)
{ {
const TQString txt = text(); const TQString txt = text();
setUpdatesEnabled(false); tqsetUpdatesEnabled(false);
TQLineEdit::focusInEvent(e); TQLineEdit::focusInEvent(e);
setUpdatesEnabled(true); tqsetUpdatesEnabled(true);
setText(txt); setText(txt);
} }

@ -206,13 +206,13 @@ bool KSharedPixmap::x11Event(XEvent *event)
TQPixmap::resize( tw+origin.x(), th+origin.y() ); TQPixmap::resize( tw+origin.x(), th+origin.y() );
XCopyArea(qt_xdisplay(), pixmap, ((KPixmap*)this)->handle(), qt_xget_temp_gc(qt_xscreen(), false), XCopyArea(qt_xdisplay(), pixmap, (static_cast<KPixmap*>(this))->handle(), qt_xget_temp_gc(qt_xscreen(), false),
xa, ya, t1w+origin.x(), t1h+origin.y(), origin.x(), origin.y() ); xa, ya, t1w+origin.x(), t1h+origin.y(), origin.x(), origin.y() );
XCopyArea(qt_xdisplay(), pixmap, ((KPixmap*)this)->handle(), qt_xget_temp_gc(qt_xscreen(), false), XCopyArea(qt_xdisplay(), pixmap, (static_cast<KPixmap*>(this))->handle(), qt_xget_temp_gc(qt_xscreen(), false),
0, ya, tw-t1w, t1h, t1w, 0); 0, ya, tw-t1w, t1h, t1w, 0);
XCopyArea(qt_xdisplay(), pixmap, ((KPixmap*)this)->handle(), qt_xget_temp_gc(qt_xscreen(), false), XCopyArea(qt_xdisplay(), pixmap, (static_cast<KPixmap*>(this))->handle(), qt_xget_temp_gc(qt_xscreen(), false),
xa, 0, t1w, th-t1h, 0, t1h); xa, 0, t1w, th-t1h, 0, t1h);
XCopyArea(qt_xdisplay(), pixmap, ((KPixmap*)this)->handle(), qt_xget_temp_gc(qt_xscreen(), false), XCopyArea(qt_xdisplay(), pixmap, (static_cast<KPixmap*>(this))->handle(), qt_xget_temp_gc(qt_xscreen(), false),
0, 0, tw-t1w, th-t1h, t1w, t1h); 0, 0, tw-t1w, th-t1h, t1w, t1h);
XFree(pixmap_id); XFree(pixmap_id);

@ -58,6 +58,7 @@ class KDEUI_EXPORT KSharedPixmap:
public KPixmap public KPixmap
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:

@ -995,7 +995,7 @@ bool KSpell::check( const TQString &_buffer, bool _usedialog )
// origbuffer since I got errors otherwise // origbuffer since I got errors otherwise
if ( !origbuffer.endsWith("\n\n" ) ) if ( !origbuffer.endsWith("\n\n" ) )
{ {
if (origbuffer.at(origbuffer.length()-1)!='\n') if (origbuffer.tqat(origbuffer.length()-1)!='\n')
{ {
origbuffer+='\n'; origbuffer+='\n';
origbuffer+='\n'; //shouldn't these be removed at some point? origbuffer+='\n'; //shouldn't these be removed at some point?

@ -48,7 +48,7 @@ KTabBar::KTabBar( TQWidget *parent, const char *name )
mActivateDragSwitchTabTimer = new TQTimer( this ); mActivateDragSwitchTabTimer = new TQTimer( this );
connect( mActivateDragSwitchTabTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( activateDragSwitchTab() ) ); connect( mActivateDragSwitchTabTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( activateDragSwitchTab() ) );
connect(this, TQT_SIGNAL(layoutChanged()), TQT_SLOT(onLayoutChange())); connect(this, TQT_SIGNAL(tqlayoutChanged()), TQT_SLOT(onLayoutChange()));
} }
KTabBar::~KTabBar() KTabBar::~KTabBar()
@ -67,7 +67,7 @@ void KTabBar::setTabEnabled( int id, bool enabled )
if ( !enabled && id == currentTab() && count()>1 ) { if ( !enabled && id == currentTab() && count()>1 ) {
TQPtrList<TQTab> *tablist = tabList(); TQPtrList<TQTab> *tablist = tabList();
if ( mTabCloseActivatePrevious ) if ( mTabCloseActivatePrevious )
t = tablist->at( count()-2 ); t = tablist->tqat( count()-2 );
else { else {
int index = indexOf( id ); int index = indexOf( id );
index += ( index+1 == count() ) ? -1 : 1; index += ( index+1 == count() ) ? -1 : 1;

@ -95,7 +95,7 @@ void KTabWidget::insertTab( TQWidget *child, TQTab *tab, int index )
resizeTabs( d->m_tabNames.count()-1 ); resizeTabs( d->m_tabNames.count()-1 );
} }
else { else {
d->m_tabNames.insert( d->m_tabNames.at( index ), tab->text() ); d->m_tabNames.insert( d->m_tabNames.tqat( index ), tab->text() );
resizeTabs( index ); resizeTabs( index );
} }
} }
@ -422,7 +422,7 @@ void KTabWidget::moveTab( int from, int to )
if ( to < 0 || to >= count() ) if ( to < 0 || to >= count() )
d->m_tabNames.append( TQString::null ); d->m_tabNames.append( TQString::null );
else else
d->m_tabNames.insert( d->m_tabNames.at( to ), TQString::null ); d->m_tabNames.insert( d->m_tabNames.tqat( to ), TQString::null );
} }
w = page( to ); w = page( to );
@ -441,7 +441,7 @@ void KTabWidget::removePage( TQWidget * w ) {
if ( d->m_automaticResizeTabs ) { if ( d->m_automaticResizeTabs ) {
int index = indexOf( w ); int index = indexOf( w );
if ( index != -1 ) if ( index != -1 )
d->m_tabNames.remove( d->m_tabNames.at( index ) ); d->m_tabNames.remove( d->m_tabNames.tqat( index ) );
} }
TQTabWidget::removePage( w ); TQTabWidget::removePage( w );
if ( d->m_automaticResizeTabs ) if ( d->m_automaticResizeTabs )

@ -172,7 +172,7 @@ void KTextEdit::keyPressEvent( TQKeyEvent *e )
} }
else if ( KStdAccel::pasteSelection().contains( key ) ) else if ( KStdAccel::pasteSelection().contains( key ) )
{ {
TQString text = TQApplication::clipboard()->text( QClipboard::Selection); TQString text = TQApplication::tqclipboard()->text( TQClipboard::Selection);
if ( !text.isEmpty() ) if ( !text.isEmpty() )
insert( text ); insert( text );
e->accept(); e->accept();

@ -194,7 +194,7 @@ TQSizePolicy KToolBarSeparator::sizePolicy() const
KToolBar::KToolBar( TQWidget *parent, const char *name, bool honorStyle, bool readConfig ) KToolBar::KToolBar( TQWidget *parent, const char *name, bool honorStyle, bool readConfig )
: TQToolBar( TQString::tqfromLatin1( name ), : TQToolBar( TQString::tqfromLatin1( name ),
dynamic_cast<TQMainWindow*>(parent), tqt_dynamic_cast<TQMainWindow*>(parent),
parent, false, parent, false,
name ? name : "mainToolBar") name ? name : "mainToolBar")
{ {
@ -430,7 +430,7 @@ KAnimWidget *KToolBar::animatedWidget( int id )
Id2WidgetMap::Iterator it = id2widget.tqfind( id ); Id2WidgetMap::Iterator it = id2widget.tqfind( id );
if ( it == id2widget.end() ) if ( it == id2widget.end() )
return 0; return 0;
KAnimWidget *aw = dynamic_cast<KAnimWidget *>(*it); KAnimWidget *aw = tqt_dynamic_cast<KAnimWidget *>(*it);
if ( aw ) if ( aw )
return aw; return aw;
TQObjectList *l = queryList( "KAnimWidget" ); TQObjectList *l = queryList( "KAnimWidget" );
@ -440,7 +440,7 @@ KAnimWidget *KToolBar::animatedWidget( int id )
} }
for ( TQObject *o = l->first(); o; o = l->next() ) { for ( TQObject *o = l->first(); o; o = l->next() ) {
KAnimWidget *aw = dynamic_cast<KAnimWidget *>(o); KAnimWidget *aw = tqt_dynamic_cast<KAnimWidget *>(o);
if ( aw ) if ( aw )
{ {
delete l; delete l;
@ -613,7 +613,7 @@ KComboBox * KToolBar::getCombo(int id)
Id2WidgetMap::Iterator it = id2widget.tqfind( id ); Id2WidgetMap::Iterator it = id2widget.tqfind( id );
if ( it == id2widget.end() ) if ( it == id2widget.end() )
return 0; return 0;
return dynamic_cast<KComboBox *>( *it ); return tqt_dynamic_cast<KComboBox *>( *it );
} }
@ -622,7 +622,7 @@ KLineEdit * KToolBar::getLined (int id)
Id2WidgetMap::Iterator it = id2widget.tqfind( id ); Id2WidgetMap::Iterator it = id2widget.tqfind( id );
if ( it == id2widget.end() ) if ( it == id2widget.end() )
return 0; return 0;
return dynamic_cast<KLineEdit *>( *it ); return tqt_dynamic_cast<KLineEdit *>( *it );
} }
@ -631,7 +631,7 @@ KToolBarButton * KToolBar::getButton (int id)
Id2WidgetMap::Iterator it = id2widget.tqfind( id ); Id2WidgetMap::Iterator it = id2widget.tqfind( id );
if ( it == id2widget.end() ) if ( it == id2widget.end() )
return 0; return 0;
return dynamic_cast<KToolBarButton *>( *it ); return tqt_dynamic_cast<KToolBarButton *>( *it );
} }
@ -734,7 +734,7 @@ int KToolBar::itemIndex (int id)
int KToolBar::idAt (int index) int KToolBar::idAt (int index)
{ {
TQWidget *w = widgets.at(index); TQWidget *w = widgets.tqat(index);
return widget2id[w]; return widget2id[w];
} }
@ -856,10 +856,11 @@ void KToolBar::setIconText(IconText icontext, bool update)
// ugly hack to force a TQMainWindow::triggerLayout( true ) // ugly hack to force a TQMainWindow::triggerLayout( true )
TQMainWindow *mw = mainWindow(); TQMainWindow *mw = mainWindow();
if ( mw ) { if ( mw ) {
mw->setUpdatesEnabled( false ); mw->tqsetUpdatesEnabled( false );
mw->setToolBarsMovable( !mw->toolBarsMovable() ); // mw->setToolBarsMovable( !mw->toolBarsMovable() ); // Old way
mw->setToolBarsMovable( !mw->toolBarsMovable() ); // mw->setToolBarsMovable( !mw->toolBarsMovable() );
mw->setUpdatesEnabled( true ); mw->setCentralWidget(mw->centralWidget()); // This is a faster hack
mw->tqsetUpdatesEnabled( true );
} }
} }
@ -893,14 +894,14 @@ void KToolBar::setIconSize(int size, bool update)
// ugly hack to force a TQMainWindow::triggerLayout( true ) // ugly hack to force a TQMainWindow::triggerLayout( true )
if ( mainWindow() ) { if ( mainWindow() ) {
TQMainWindow *mw = mainWindow(); TQMainWindow *mw = mainWindow();
mw->setUpdatesEnabled( false ); mw->tqsetUpdatesEnabled( false );
mw->setToolBarsMovable( !mw->toolBarsMovable() ); // mw->setToolBarsMovable( !mw->toolBarsMovable() ); // Old way
mw->setToolBarsMovable( !mw->toolBarsMovable() ); // mw->setToolBarsMovable( !mw->toolBarsMovable() );
mw->setUpdatesEnabled( true ); mw->setCentralWidget(mw->centralWidget()); // This is a faster hack
mw->tqsetUpdatesEnabled( true );
} }
} }
int KToolBar::iconSize() const int KToolBar::iconSize() const
{ {
if ( !d->m_iconSize ) // default value? if ( !d->m_iconSize ) // default value?
@ -946,7 +947,7 @@ void KToolBar::setFlat (bool flag)
else else
mainWindow()->moveDockWindow( this, DockTop ); mainWindow()->moveDockWindow( this, DockTop );
// And remember to save the new look later // And remember to save the new look later
KMainWindow *kmw = dynamic_cast<KMainWindow *>(mainWindow()); KMainWindow *kmw = tqt_dynamic_cast<KMainWindow *>(mainWindow());
if ( kmw ) if ( kmw )
kmw->setSettingsDirty(); kmw->setSettingsDirty();
} }
@ -1092,7 +1093,7 @@ void KToolBar::saveSettings(KConfig *config, const TQString &_configGroup)
// reappear at the same position the next time. // reappear at the same position the next time.
// The whole set of indexes has to be saved. // The whole set of indexes has to be saved.
//kdDebug(220) << name() << " writing index " << index << endl; //kdDebug(220) << name() << " writing index " << index << endl;
KMainWindow *kmw = dynamic_cast<KMainWindow *>(mainWindow()); KMainWindow *kmw = tqt_dynamic_cast<KMainWindow *>(mainWindow());
// don't save if there's only one toolbar // don't save if there's only one toolbar
// Don't use kmw->toolBarIterator() because you might // Don't use kmw->toolBarIterator() because you might
@ -1203,7 +1204,7 @@ void KToolBar::mousePressEvent ( TQMouseEvent *m )
else else
return; // assume this was an action handled elsewhere, no need for setSettingsDirty() return; // assume this was an action handled elsewhere, no need for setSettingsDirty()
} }
KMainWindow *kmw = dynamic_cast<KMainWindow *>(mw); KMainWindow *kmw = tqt_dynamic_cast<KMainWindow *>(mw);
if ( kmw ) if ( kmw )
kmw->setSettingsDirty(); kmw->setSettingsDirty();
} }
@ -1237,17 +1238,17 @@ void KToolBar::rebuildLayout()
for ( TQWidget *w = widgets.first(); w; w = widgets.next() ) { for ( TQWidget *w = widgets.first(); w; w = widgets.next() ) {
if ( w == rightAligned ) if ( w == rightAligned )
continue; continue;
KToolBarSeparator *ktbs = dynamic_cast<KToolBarSeparator *>(w); KToolBarSeparator *ktbs = tqt_dynamic_cast<KToolBarSeparator *>(w);
if ( ktbs && !ktbs->showLine() ) { if ( ktbs && !ktbs->showLine() ) {
l->addSpacing( orientation() == Qt::Vertical ? w->tqsizeHint().height() : w->tqsizeHint().width() ); l->addSpacing( orientation() == Qt::Vertical ? w->tqsizeHint().height() : w->tqsizeHint().width() );
w->hide(); w->hide();
continue; continue;
} }
if ( dynamic_cast<TQPopupMenu *>(w) ) // w is a QPopupMenu? if ( tqt_dynamic_cast<TQPopupMenu *>(w) ) // w is a QPopupMenu?
continue; continue;
l->addWidget( w ); l->addWidget( w );
w->show(); w->show();
if ((orientation() == Qt::Horizontal) && dynamic_cast<TQLineEdit *>(w)) // w is TQLineEdit ? if ((orientation() == Qt::Horizontal) && tqt_dynamic_cast<TQLineEdit *>(w)) // w is TQLineEdit ?
l->addSpacing(2); // A little bit extra spacing behind it. l->addSpacing(2); // A little bit extra spacing behind it.
} }
if ( rightAligned ) { if ( rightAligned ) {
@ -1269,14 +1270,14 @@ void KToolBar::rebuildLayout()
void KToolBar::childEvent( TQChildEvent *e ) void KToolBar::childEvent( TQChildEvent *e )
{ {
if ( e->child()->isWidgetType() ) { if ( e->child()->isWidgetType() ) {
TQWidget * w = dynamic_cast<TQWidget *>(e->child()); TQWidget * w = tqt_dynamic_cast<TQWidget *>(e->child());
if (!w || !(::qstrcmp( "qt_dockwidget_internal", w->name()))) if (!w || !(::qstrcmp( "qt_dockwidget_internal", w->name())))
{ {
TQToolBar::childEvent( e ); TQToolBar::childEvent( e );
return; return;
} }
if ( e->type() == TQEvent::ChildInserted ) { if ( e->type() == TQEvent::ChildInserted ) {
if ( !dynamic_cast<TQPopupMenu *>(w)) { // e->child() is not a QPopupMenu if ( !tqt_dynamic_cast<TQPopupMenu *>(w)) { // e->child() is not a QPopupMenu
// prevent items that have been explicitly inserted by insert*() from // prevent items that have been explicitly inserted by insert*() from
// being inserted again // being inserted again
if ( !widget2id.tqcontains( w ) ) if ( !widget2id.tqcontains( w ) )
@ -1293,8 +1294,8 @@ void KToolBar::childEvent( TQChildEvent *e )
layoutTimer->start( 50, true ); layoutTimer->start( 50, true );
TQBoxLayout *l = boxLayout(); TQBoxLayout *l = boxLayout();
// clear the old layout so that we don't get unnecassery layout // clear the old layout so that we don't get unnecessary layout
// changes till we have rebuild the thing // changes until we have rebuilt the thing
TQLayoutIterator it = l->iterator(); TQLayoutIterator it = l->iterator();
while ( it.current() ) while ( it.current() )
it.deleteCurrent(); it.deleteCurrent();
@ -1366,7 +1367,7 @@ TQSize KToolBar::tqsizeHint() const
minSize = minSize.expandedTo(TQSize(0, sh.height())); minSize = minSize.expandedTo(TQSize(0, sh.height()));
minSize += TQSize(sh.width()+1, 0); minSize += TQSize(sh.width()+1, 0);
if (dynamic_cast<TQLineEdit *>(w)) // w is a TQLineEdit ? if (tqt_dynamic_cast<TQLineEdit *>(w)) // w is a TQLineEdit ?
minSize += TQSize(2, 0); // A little bit extra spacing behind it. minSize += TQSize(2, 0); // A little bit extra spacing behind it.
} }
@ -1428,7 +1429,7 @@ void KToolBar::show()
void KToolBar::resizeEvent( TQResizeEvent *e ) void KToolBar::resizeEvent( TQResizeEvent *e )
{ {
bool b = isUpdatesEnabled(); bool b = isUpdatesEnabled();
setUpdatesEnabled( false ); tqsetUpdatesEnabled( false );
TQToolBar::resizeEvent( e ); TQToolBar::resizeEvent( e );
if (b) if (b)
{ {
@ -1443,6 +1444,10 @@ void KToolBar::resizeEvent( TQResizeEvent *e )
slotRepaint(); slotRepaint();
} }
} }
// else {
// printf("[WARNING] In KToolBar::resizeEvent, but this code block should not be executing. Preventing toolbar lockup. [Code 0045]\n\r");
// tqsetUpdatesEnabled( true );
// }
} }
void KToolBar::slotIconChanged(int group) void KToolBar::slotIconChanged(int group)
@ -1473,7 +1478,7 @@ void KToolBar::slotAppearanceChanged()
applyAppearanceSettings(KGlobal::config(), TQString::null, true /* lose local settings */ ); applyAppearanceSettings(KGlobal::config(), TQString::null, true /* lose local settings */ );
// And remember to save the new look later // And remember to save the new look later
KMainWindow *kmw = dynamic_cast<KMainWindow *>(mainWindow()); KMainWindow *kmw = tqt_dynamic_cast<KMainWindow *>(mainWindow());
if ( kmw ) if ( kmw )
kmw->setSettingsDirty(); kmw->setSettingsDirty();
} }
@ -1727,14 +1732,14 @@ bool KToolBar::event( TQEvent *e )
void KToolBar::slotRepaint() void KToolBar::slotRepaint()
{ {
setUpdatesEnabled( false ); tqsetUpdatesEnabled( false );
// Send a resizeEvent to update the "toolbar extension arrow" // Send a resizeEvent to update the "toolbar extension arrow"
// (The button you get when your toolbar-items don't fit in // (The button you get when your toolbar-items don't fit in
// the available space) // the available space)
TQResizeEvent ev(size(), size()); TQResizeEvent ev(size(), size());
resizeEvent(&ev); resizeEvent(&ev);
TQApplication::sendPostedEvents( this, TQEvent::LayoutHint ); TQApplication::sendPostedEvents( this, TQEvent::LayoutHint );
setUpdatesEnabled( true ); tqsetUpdatesEnabled( true );
tqrepaint( true ); tqrepaint( true );
} }
@ -1745,7 +1750,7 @@ void KToolBar::toolBarPosChanged( TQToolBar *tb )
if ( d->oldPos == DockMinimized ) if ( d->oldPos == DockMinimized )
rebuildLayout(); rebuildLayout();
d->oldPos = (TQMainWindow::ToolBarDock)barPos(); d->oldPos = (TQMainWindow::ToolBarDock)barPos();
KMainWindow *kmw = dynamic_cast<KMainWindow *>(mainWindow()); KMainWindow *kmw = tqt_dynamic_cast<KMainWindow *>(mainWindow());
if ( kmw ) if ( kmw )
kmw->setSettingsDirty(); kmw->setSettingsDirty();
} }
@ -2133,7 +2138,7 @@ void KToolBar::slotContextAboutToShow()
// and ToolBarHandler::setupActions() deletes it, so better not keep it around. // and ToolBarHandler::setupActions() deletes it, so better not keep it around.
// So we currently plug/unplug the last two actions of the menu. // So we currently plug/unplug the last two actions of the menu.
// Another way would be to keep around the actions and plug them all into a (new each time) popupmenu. // Another way would be to keep around the actions and plug them all into a (new each time) popupmenu.
KMainWindow *kmw = dynamic_cast<KMainWindow *>(mainWindow()); KMainWindow *kmw = tqt_dynamic_cast<KMainWindow *>(mainWindow());
if ( kmw ) { if ( kmw ) {
kmw->setupToolbarMenuActions(); kmw->setupToolbarMenuActions();
// Only allow hiding a toolbar if the action is also plugged somewhere else (e.g. menubar) // Only allow hiding a toolbar if the action is also plugged somewhere else (e.g. menubar)
@ -2213,7 +2218,7 @@ void KToolBar::slotContextAboutToHide()
{ {
// We have to unplug whatever slotContextAboutToShow plugged into the menu. // We have to unplug whatever slotContextAboutToShow plugged into the menu.
// Unplug the toolbar menu action // Unplug the toolbar menu action
KMainWindow *kmw = dynamic_cast<KMainWindow *>(mainWindow()); KMainWindow *kmw = tqt_dynamic_cast<KMainWindow *>(mainWindow());
if ( kmw && kmw->toolBarMenuAction() ) if ( kmw && kmw->toolBarMenuAction() )
if ( kmw->toolBarMenuAction()->containerCount() > 1 ) if ( kmw->toolBarMenuAction()->containerCount() > 1 )
kmw->toolBarMenuAction()->unplug(context); kmw->toolBarMenuAction()->unplug(context);

@ -118,7 +118,7 @@ KToolBarButton::KToolBarButton( const TQString& _icon, int _id,
TQToolButton::setTextLabel(_txt); TQToolButton::setTextLabel(_txt);
d->m_instance = _instance; d->m_instance = _instance;
d->m_parent = dynamic_cast<KToolBar*>(_parent); d->m_parent = tqt_dynamic_cast<KToolBar*>(_parent);
if (d->m_parent) { if (d->m_parent) {
connect(d->m_parent, TQT_SIGNAL( modechange() ), connect(d->m_parent, TQT_SIGNAL( modechange() ),
this, TQT_SLOT( modeChange() )); this, TQT_SLOT( modeChange() ));
@ -151,7 +151,7 @@ KToolBarButton::KToolBarButton( const TQPixmap& pixmap, int _id,
d->m_id = _id; d->m_id = _id;
TQToolButton::setTextLabel(txt); TQToolButton::setTextLabel(txt);
d->m_parent = dynamic_cast<KToolBar*>(_parent); d->m_parent = tqt_dynamic_cast<KToolBar*>(_parent);
if (d->m_parent) { if (d->m_parent) {
connect(d->m_parent, TQT_SIGNAL( modechange() ), connect(d->m_parent, TQT_SIGNAL( modechange() ),
this, TQT_SLOT( modeChange() )); this, TQT_SLOT( modeChange() ));
@ -405,7 +405,7 @@ void KToolBarButton::enterEvent(TQEvent *)
bool KToolBarButton::eventFilter(TQObject *o, TQEvent *ev) bool KToolBarButton::eventFilter(TQObject *o, TQEvent *ev)
{ {
if ((KToolBarButton *)o == this) if (TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(this))
{ {
// Popup the menu when the left mousebutton is pressed and the mouse // Popup the menu when the left mousebutton is pressed and the mouse

@ -51,7 +51,7 @@ namespace
TQPtrListIterator<TQDockWindow> dockWindowIt( dockWindows ); TQPtrListIterator<TQDockWindow> dockWindowIt( dockWindows );
for ( ; dockWindowIt.current(); ++dockWindowIt ) { for ( ; dockWindowIt.current(); ++dockWindowIt ) {
KToolBar *toolBar = dynamic_cast<KToolBar *>( dockWindowIt.current() ); KToolBar *toolBar = tqt_dynamic_cast<KToolBar *>( dockWindowIt.current() );
if ( !toolBar ) if ( !toolBar )
continue; continue;
@ -232,7 +232,7 @@ void ToolBarHandler::connectToActionContainer( KAction *action )
void ToolBarHandler::connectToActionContainer( TQWidget *container ) void ToolBarHandler::connectToActionContainer( TQWidget *container )
{ {
TQPopupMenu *popupMenu = dynamic_cast<TQPopupMenu *>( container ); TQPopupMenu *popupMenu = tqt_dynamic_cast<TQPopupMenu *>( container );
if ( !popupMenu ) if ( !popupMenu )
return; return;

@ -201,7 +201,7 @@ void KWordWrap::drawFadeoutText(TQPainter *p, int x, int y, int maxW,
int n = TQMIN( tl, 3); int n = TQMIN( tl, 3);
for (int i = 0; i < n; i++) { for (int i = 0; i < n; i++) {
p->setPen( mixColors( 0.70 - i * 0.25, textColor, bgColor ) ); p->setPen( mixColors( 0.70 - i * 0.25, textColor, bgColor ) );
TQString s( t.at( tl - n + i ) ); TQString s( t.tqat( tl - n + i ) );
p->drawText( x, y, s ); p->drawText( x, y, s );
x += fm.width( s ); x += fm.width( s );
} }

@ -552,7 +552,7 @@ void KXMLGUIFactory::configureAction( KAction *action, const TQDomAttr &attribut
int KXMLGUIFactory::configureShortcuts(bool bAllowLetterShortcuts , bool bSaveSettings ) int KXMLGUIFactory::configureShortcuts(bool bAllowLetterShortcuts , bool bSaveSettings )
{ {
KKeyDialog dlg( bAllowLetterShortcuts, dynamic_cast<TQWidget*>(parent()) ); KKeyDialog dlg( bAllowLetterShortcuts, tqt_dynamic_cast<TQWidget*>(parent()) );
TQPtrListIterator<KXMLGUIClient> it( d->m_clients ); TQPtrListIterator<KXMLGUIClient> it( d->m_clients );
KXMLGUIClient *client; KXMLGUIClient *client;
while( (client=it.current()) !=0 ) while( (client=it.current()) !=0 )

@ -85,7 +85,7 @@ MergingIndexList::Iterator ContainerNode::findIndex( const TQString &name )
/* /*
* Check if the given container widget is a child of this node and return the node structure * Check if the given container widget is a child of this node and return the node structure
* if fonud. * if found.
*/ */
ContainerNode *ContainerNode::findContainerNode( TQWidget *container ) ContainerNode *ContainerNode::findContainerNode( TQWidget *container )
{ {
@ -238,7 +238,7 @@ void ContainerNode::plugActionList( BuildState &state, const MergingIndexList::I
return; return;
ContainerClient *client = findChildContainerClient( state.guiClient, ContainerClient *client = findChildContainerClient( state.guiClient,
TQString::null, TQString(),
mergingIndices.end() ); mergingIndices.end() );
client->actionLists.insert( k, state.actionList ); client->actionLists.insert( k, state.actionList );
@ -280,7 +280,7 @@ void ContainerNode::unplugActionList( BuildState &state, const MergingIndexList:
return; return;
ContainerClient *client = findChildContainerClient( state.guiClient, ContainerClient *client = findChildContainerClient( state.guiClient,
TQString::null, TQString(),
mergingIndices.end() ); mergingIndices.end() );
ActionListMap::Iterator lIt( client->actionLists.tqfind( k ) ); ActionListMap::Iterator lIt( client->actionLists.tqfind( k ) );
@ -539,7 +539,7 @@ BuildHelper::BuildHelper( BuildState &state, ContainerNode *node )
} }
m_state.currentDefaultMergingIt = parentNode->findIndex( defaultMergingName ); m_state.currentDefaultMergingIt = parentNode->findIndex( defaultMergingName );
parentNode->calcMergingIndex( TQString::null, m_state.currentClientMergingIt, parentNode->calcMergingIndex( TQString(), m_state.currentClientMergingIt,
m_state, /*ignoreDefaultMergingIndex*/ false ); m_state, /*ignoreDefaultMergingIndex*/ false );
} }
@ -727,7 +727,7 @@ void BuildHelper::processMergeElement( const TQString &tag, const TQString &name
// re-calculate the running default and client merging indices. // re-calculate the running default and client merging indices.
m_state.currentDefaultMergingIt = parentNode->findIndex( defaultMergingName ); m_state.currentDefaultMergingIt = parentNode->findIndex( defaultMergingName );
parentNode->calcMergingIndex( TQString::null, m_state.currentClientMergingIt, parentNode->calcMergingIndex( TQString(), m_state.currentClientMergingIt,
m_state, ignoreDefaultMergingIndex ); m_state, ignoreDefaultMergingIndex );
} }
@ -784,7 +784,7 @@ void BuildHelper::processContainerElement( const TQDomElement &e, const TQString
// and re-calculate running values, for better performance // and re-calculate running values, for better performance
m_state.currentDefaultMergingIt = parentNode->findIndex( defaultMergingName ); m_state.currentDefaultMergingIt = parentNode->findIndex( defaultMergingName );
parentNode->calcMergingIndex( TQString::null, m_state.currentClientMergingIt, parentNode->calcMergingIndex( TQString(), m_state.currentClientMergingIt,
m_state, ignoreDefaultMergingIndex ); m_state, ignoreDefaultMergingIndex );
} }
@ -823,8 +823,8 @@ TQWidget *BuildHelper::createContainer( TQWidget *parent, int index,
void BuildState::reset() void BuildState::reset()
{ {
clientName = TQString::null; clientName = TQString();
actionListName = TQString::null; actionListName = TQString();
actionList.clear(); actionList.clear();
guiClient = 0; guiClient = 0;
clientBuilder = 0; clientBuilder = 0;

@ -501,7 +501,7 @@ static int qxembed_x11_event_filter( XEvent* e)
// L0683: Set focus on saved focus widget // L0683: Set focus on saved focus widget
if ( focusCurrent ) { if ( focusCurrent ) {
focusCurrent->setFocus(); focusCurrent->setFocus();
if( QXEmbed* emb = dynamic_cast< QXEmbed* >( focusCurrent )) if( QXEmbed* emb = tqt_dynamic_cast< QXEmbed* >( focusCurrent ))
emb->updateEmbeddedFocus( true ); emb->updateEmbeddedFocus( true );
} }
else if ( !w->tqtopLevelWidget()->tqfocusWidget() ) else if ( !w->tqtopLevelWidget()->tqfocusWidget() )
@ -545,7 +545,7 @@ static int qxembed_x11_event_filter( XEvent* e)
// We first record what the focus widget was // We first record what the focus widget was
// and clear the Qt focus. // and clear the Qt focus.
if ( w->tqtopLevelWidget()->tqfocusWidget() ) { if ( w->tqtopLevelWidget()->tqfocusWidget() ) {
if( QXEmbed* emb = dynamic_cast< QXEmbed* >( w->tqtopLevelWidget()->tqfocusWidget())) if( QXEmbed* emb = tqt_dynamic_cast< QXEmbed* >( w->tqtopLevelWidget()->tqfocusWidget()))
emb->updateEmbeddedFocus( false ); emb->updateEmbeddedFocus( false );
focusMap->insert( w->tqtopLevelWidget(), focusMap->insert( w->tqtopLevelWidget(),
new TQGuardedPtr<TQWidget>(w->tqtopLevelWidget()->tqfocusWidget() ) ); new TQGuardedPtr<TQWidget>(w->tqtopLevelWidget()->tqfocusWidget() ) );

@ -643,7 +643,7 @@ void Directory::setOpen( bool o )
return; return;
} }
listView()->setUpdatesEnabled( false ); listView()->tqsetUpdatesEnabled( false );
const QFileInfoList * files = thisDir.entryInfoList(); const QFileInfoList * files = thisDir.entryInfoList();
if ( files ){ if ( files ){
QFileInfoListIterator it( *files ); QFileInfoListIterator it( *files );
@ -654,7 +654,7 @@ void Directory::setOpen( bool o )
(void)new Directory( this, f->fileName() ); (void)new Directory( this, f->fileName() );
} }
} }
listView()->setUpdatesEnabled( true ); listView()->tqsetUpdatesEnabled( true );
} }
TQListViewItem::setOpen( o ); TQListViewItem::setOpen( o );
} }

@ -148,10 +148,10 @@ void HelpProtocol::get( const KURL& url )
doc = url.path(); doc = url.path();
if ( !mGhelp ) { if ( !mGhelp ) {
if (doc.at(0) != '/') if (doc.tqat(0) != '/')
doc = doc.prepend('/'); doc = doc.prepend('/');
if (doc.at(doc.length() - 1) == '/') if (doc.tqat(doc.length() - 1) == '/')
doc += "index.html"; doc += "index.html";
} }

@ -133,7 +133,7 @@ xmlParserInputPtr meinExternalEntityLoader(const char *URL, const char *ID,
TQString splitOut(const TQString &parsed, int index) TQString splitOut(const TQString &parsed, int index)
{ {
int start_index = index + 1; int start_index = index + 1;
while (parsed.at(start_index - 1) != '>') start_index++; while (parsed.tqat(start_index - 1) != '>') start_index++;
int inside = 0; int inside = 0;
@ -170,7 +170,7 @@ TQString splitOut(const TQString &parsed, int index)
if (index > 0) { if (index > 0) {
int endindex = filedata.tqfindRev("</FILENAME>"); int endindex = filedata.tqfindRev("</FILENAME>");
while (filedata.at(endindex) != '>') endindex++; while (filedata.tqat(endindex) != '>') endindex++;
endindex++; endindex++;
filedata = filedata.left(index) + filedata.mid(endindex); filedata = filedata.left(index) + filedata.mid(endindex);
} }
@ -279,7 +279,7 @@ TQString lookForCache( const TQString &filename )
{ {
kdDebug() << "lookForCache " << filename << endl; kdDebug() << "lookForCache " << filename << endl;
assert( filename.endsWith( ".docbook" ) ); assert( filename.endsWith( ".docbook" ) );
assert( filename.at( 0 ) == '/' ); assert( filename.tqat( 0 ) == '/' );
TQString cache = filename.left( filename.length() - 7 ); TQString cache = filename.left( filename.length() - 7 );
TQString output; TQString output;
@ -336,7 +336,7 @@ TQCString fromUnicode( const TQString &data )
buffer_len += test.length(); buffer_len += test.length();
} else { } else {
TQString res; TQString res;
res.sprintf( "&#%d;", TQChar(part.at( i )).tqunicode() ); res.sprintf( "&#%d;", TQChar(part.tqat( i )).tqunicode() );
test = locale->fromUnicode( res ); test = locale->fromUnicode( res );
if (buffer_len + test.length() + 1 > sizeof(buffer)) if (buffer_len + test.length() + 1 > sizeof(buffer))
break; break;

@ -256,7 +256,7 @@ namespace DOM {
virtual ~StyleListImpl(); virtual ~StyleListImpl();
unsigned long length() const { return m_lstChildren->count(); } unsigned long length() const { return m_lstChildren->count(); }
StyleBaseImpl *item(unsigned long num) const { return m_lstChildren->at(num); } StyleBaseImpl *item(unsigned long num) const { return m_lstChildren->tqat(num); }
void append(StyleBaseImpl *item) { m_lstChildren->append(item); } void append(StyleBaseImpl *item) { m_lstChildren->append(item); }

@ -137,7 +137,7 @@ public:
~CSSRuleListImpl(); ~CSSRuleListImpl();
unsigned long length() const { return m_lstCSSRules.count(); } unsigned long length() const { return m_lstCSSRules.count(); }
CSSRuleImpl *item ( unsigned long index ) { return m_lstCSSRules.at( index ); } CSSRuleImpl *item ( unsigned long index ) { return m_lstCSSRules.tqat( index ); }
/* not part of the DOM */ /* not part of the DOM */

@ -281,7 +281,7 @@ void CSSStyleDeclarationImpl::removeCSSHints()
return; return;
for (int i = (int)m_lstValues->count()-1; i >= 0; i--) { for (int i = (int)m_lstValues->count()-1; i >= 0; i--) {
if (!m_lstValues->at(i)->nonCSSHint) if (!m_lstValues->tqat(i)->nonCSSHint)
m_lstValues->remove(i); m_lstValues->remove(i);
} }
} }
@ -358,8 +358,8 @@ unsigned long CSSStyleDeclarationImpl::length() const
DOMString CSSStyleDeclarationImpl::item( unsigned long index ) const DOMString CSSStyleDeclarationImpl::item( unsigned long index ) const
{ {
if(m_lstValues && index < m_lstValues->count() && m_lstValues->at(index)) if(m_lstValues && index < m_lstValues->count() && m_lstValues->tqat(index))
return getPropertyName(m_lstValues->at(index)->m_id); return getPropertyName(m_lstValues->tqat(index)->m_id);
return DOMString(); return DOMString();
} }

@ -136,7 +136,7 @@ public:
virtual ~CSSValueListImpl(); virtual ~CSSValueListImpl();
unsigned long length() const { return m_values.count(); } unsigned long length() const { return m_values.count(); }
CSSValueImpl *item ( unsigned long index ) { return m_values.at(index); } CSSValueImpl *item ( unsigned long index ) { return m_values.tqat(index); }
virtual bool isValueList() const { return true; } virtual bool isValueList() const { return true; }

@ -786,7 +786,7 @@ unsigned int CSSStyleSelector::addInlineDeclarations(DOM::ElementImpl* e,
if (i == firstLen) if (i == firstLen)
values = addValues; values = addValues;
CSSProperty *prop = values->at(i >= firstLen ? i - firstLen : i); CSSProperty *prop = values->tqat(i >= firstLen ? i - firstLen : i);
Source source = Inline; Source source = Inline;
if( prop->m_important ) source = InlineImportant; if( prop->m_important ) source = InlineImportant;
@ -1782,7 +1782,7 @@ void CSSStyleSelectorList::append( CSSStyleSheetImpl *sheet,
TQPtrList<CSSSelector> *s = r->selector(); TQPtrList<CSSSelector> *s = r->selector();
for(int j = 0; j < (int)s->count(); j++) for(int j = 0; j < (int)s->count(); j++)
{ {
CSSOrderedRule *rule = new CSSOrderedRule(r, s->at(j), count()); CSSOrderedRule *rule = new CSSOrderedRule(r, s->tqat(j), count());
TQPtrList<CSSOrderedRule>::append(rule); TQPtrList<CSSOrderedRule>::append(rule);
//kdDebug( 6080 ) << "appending StyleRule!" << endl; //kdDebug( 6080 ) << "appending StyleRule!" << endl;
} }
@ -1829,7 +1829,7 @@ void CSSStyleSelectorList::append( CSSStyleSheetImpl *sheet,
for( int j = 0; j < ( int ) s->count(); j++ ) for( int j = 0; j < ( int ) s->count(); j++ )
{ {
CSSOrderedRule *orderedRule = new CSSOrderedRule( CSSOrderedRule *orderedRule = new CSSOrderedRule(
styleRule, s->at( j ), count() ); styleRule, s->tqat( j ), count() );
TQPtrList<CSSOrderedRule>::append( orderedRule ); TQPtrList<CSSOrderedRule>::append( orderedRule );
} }
} }
@ -1891,7 +1891,7 @@ void CSSOrderedPropertyList::append(DOM::CSSStyleDeclarationImpl *decl, uint sel
int len = values->count(); int len = values->count();
for(int i = 0; i < len; i++) for(int i = 0; i < len; i++)
{ {
CSSProperty *prop = values->at(i); CSSProperty *prop = values->tqat(i);
Source source = regular; Source source = regular;
if( prop->m_important ) source = important; if( prop->m_important ) source = important;

@ -548,7 +548,7 @@ void KJSDebugWin::slotToggleBreakpoint(int lineno)
if (m_sourceSel->currentItem() < 0) if (m_sourceSel->currentItem() < 0)
return; return;
SourceFile *sourceFile = m_sourceSelFiles.at(m_sourceSel->currentItem()); SourceFile *sourceFile = m_sourceSelFiles.tqat(m_sourceSel->currentItem());
// Find the source fragment containing the selected line (if any) // Find the source fragment containing the selected line (if any)
int sourceId = -1; int sourceId = -1;
@ -592,14 +592,14 @@ void KJSDebugWin::slotSourceSelected(int sourceSelIndex)
// A source file has been selected from the drop-down list - display the file // A source file has been selected from the drop-down list - display the file
if (sourceSelIndex < 0 || sourceSelIndex >= (int)m_sourceSel->count()) if (sourceSelIndex < 0 || sourceSelIndex >= (int)m_sourceSel->count())
return; return;
SourceFile *sourceFile = m_sourceSelFiles.at(sourceSelIndex); SourceFile *sourceFile = m_sourceSelFiles.tqat(sourceSelIndex);
displaySourceFile(sourceFile,true); displaySourceFile(sourceFile,true);
// If the currently selected context is in the current source file, then hilight // If the currently selected context is in the current source file, then hilight
// the line it's on. // the line it's on.
if (m_contextList->currentItem() >= 0) { if (m_contextList->currentItem() >= 0) {
Context ctx = m_execs[m_contextList->currentItem()]->context(); Context ctx = m_execs[m_contextList->currentItem()]->context();
if (m_sourceFragments[ctx.sourceId()]->sourceFile == m_sourceSelFiles.at(sourceSelIndex)) if (m_sourceFragments[ctx.sourceId()]->sourceFile == m_sourceSelFiles.tqat(sourceSelIndex))
setSourceLine(ctx.sourceId(),ctx.curStmtFirstLine()); setSourceLine(ctx.sourceId(),ctx.curStmtFirstLine());
} }
} }
@ -614,7 +614,7 @@ void KJSDebugWin::slotEval()
if (m_execStates.isEmpty()) { if (m_execStates.isEmpty()) {
if (m_sourceSel->currentItem() < 0) if (m_sourceSel->currentItem() < 0)
return; return;
SourceFile *sourceFile = m_sourceSelFiles.at(m_sourceSel->currentItem()); SourceFile *sourceFile = m_sourceSelFiles.tqat(m_sourceSel->currentItem());
if (!sourceFile->interpreter) if (!sourceFile->interpreter)
return; return;
exec = sourceFile->interpreter->globalExec(); exec = sourceFile->interpreter->globalExec();
@ -744,7 +744,7 @@ bool KJSDebugWin::sourceParsed(KJS::ExecState *exec, int sourceId,
if (!sourceFile->interpreter) if (!sourceFile->interpreter)
sourceFile->interpreter = exec->interpreter(); sourceFile->interpreter = exec->interpreter();
for (index = 0; index < m_sourceSel->count(); index++) { for (index = 0; index < m_sourceSel->count(); index++) {
if (m_sourceSelFiles.at(index) == sourceFile) if (m_sourceSelFiles.tqat(index) == sourceFile)
break; break;
} }
assert(index < m_sourceSel->count()); assert(index < m_sourceSel->count());
@ -782,7 +782,7 @@ bool KJSDebugWin::sourceUnused(KJS::ExecState *exec, int sourceId)
SourceFile *sourceFile = fragment->sourceFile; SourceFile *sourceFile = fragment->sourceFile;
if (sourceFile->hasOneRef()) { if (sourceFile->hasOneRef()) {
for (int i = 0; i < m_sourceSel->count(); i++) { for (int i = 0; i < m_sourceSel->count(); i++) {
if (m_sourceSelFiles.at(i) == sourceFile) { if (m_sourceSelFiles.tqat(i) == sourceFile) {
m_sourceSel->removeItem(i); m_sourceSel->removeItem(i);
m_sourceSelFiles.remove(i); m_sourceSelFiles.remove(i);
break; break;
@ -930,7 +930,7 @@ void KJSDebugWin::setSourceLine(int sourceId, int lineno)
SourceFile *sourceFile = source->sourceFile; SourceFile *sourceFile = source->sourceFile;
if (m_curSourceFile != source->sourceFile) { if (m_curSourceFile != source->sourceFile) {
for (int i = 0; i < m_sourceSel->count(); i++) for (int i = 0; i < m_sourceSel->count(); i++)
if (m_sourceSelFiles.at(i) == sourceFile) if (m_sourceSelFiles.tqat(i) == sourceFile)
m_sourceSel->setCurrentItem(i); m_sourceSel->setCurrentItem(i);
displaySourceFile(sourceFile,false); displaySourceFile(sourceFile,false);
} }

@ -394,7 +394,7 @@ Value Plugins::get(ExecState *exec, const Identifier &propertyName) const
bool ok; bool ok;
unsigned int i = propertyName.toULong(&ok); unsigned int i = propertyName.toULong(&ok);
if( ok && i<plugins->count() ) if( ok && i<plugins->count() )
return Value( new Plugin( exec, plugins->at(i) ) ); return Value( new Plugin( exec, plugins->tqat(i) ) );
// plugin[name] // plugin[name]
Value val = pluginByName( exec, propertyName.qstring() ); Value val = pluginByName( exec, propertyName.qstring() );
@ -439,7 +439,7 @@ Value PluginsFunc::tryCall(ExecState *exec, Object &thisObj, const List &args)
bool ok; bool ok;
unsigned int i = args[0].toString(exec).toArrayIndex(&ok); unsigned int i = args[0].toString(exec).toArrayIndex(&ok);
if( ok && i<base->plugins->count() ) if( ok && i<base->plugins->count() )
return Value( new Plugin( exec, base->plugins->at(i) ) ); return Value( new Plugin( exec, base->plugins->tqat(i) ) );
return Undefined(); return Undefined();
} }
case Plugins_NamedItem: case Plugins_NamedItem:
@ -479,7 +479,7 @@ Value MimeTypes::get(ExecState *exec, const Identifier &propertyName) const
bool ok; bool ok;
unsigned int i = propertyName.toULong(&ok); unsigned int i = propertyName.toULong(&ok);
if( ok && i<mimes->count() ) if( ok && i<mimes->count() )
return Value( new MimeType( exec, mimes->at(i) ) ); return Value( new MimeType( exec, mimes->tqat(i) ) );
// mimeTypes[name] // mimeTypes[name]
Value val = mimeTypeByName( exec, propertyName.qstring() ); Value val = mimeTypeByName( exec, propertyName.qstring() );
@ -522,7 +522,7 @@ Value MimeTypesFunc::tryCall(ExecState *exec, Object &thisObj, const List &args)
bool ok; bool ok;
unsigned int i = args[0].toString(exec).toArrayIndex(&ok); unsigned int i = args[0].toString(exec).toArrayIndex(&ok);
if( ok && i<base->mimes->count() ) if( ok && i<base->mimes->count() )
return Value( new MimeType( exec, base->mimes->at(i) ) ); return Value( new MimeType( exec, base->mimes->tqat(i) ) );
return Undefined(); return Undefined();
} }
case MimeTypes_NamedItem: case MimeTypes_NamedItem:
@ -562,8 +562,8 @@ Value Plugin::get(ExecState *exec, const Identifier &propertyName) const
//kdDebug(6070) << "Plugin::get plugin[" << i << "]" << endl; //kdDebug(6070) << "Plugin::get plugin[" << i << "]" << endl;
if( ok && i<m_info->mimes.count() ) if( ok && i<m_info->mimes.count() )
{ {
//kdDebug(6070) << "returning mimetype " << m_info->mimes.at(i)->type << endl; //kdDebug(6070) << "returning mimetype " << m_info->mimes.tqat(i)->type << endl;
return Value(new MimeType(exec, m_info->mimes.at(i))); return Value(new MimeType(exec, m_info->mimes.tqat(i)));
} }
// plugin["name"] // plugin["name"]
@ -609,7 +609,7 @@ Value PluginFunc::tryCall(ExecState *exec, Object &thisObj, const List &args)
bool ok; bool ok;
unsigned int i = args[0].toString(exec).toArrayIndex(&ok); unsigned int i = args[0].toString(exec).toArrayIndex(&ok);
if( ok && i< plugin->pluginInfo()->mimes.count() ) if( ok && i< plugin->pluginInfo()->mimes.count() )
return Value( new MimeType( exec, plugin->pluginInfo()->mimes.at(i) ) ); return Value( new MimeType( exec, plugin->pluginInfo()->mimes.tqat(i) ) );
return Undefined(); return Undefined();
} }
case Plugin_NamedItem: case Plugin_NamedItem:

@ -1013,7 +1013,7 @@ Value Window::get(ExecState *exec, const Identifier &p) const
TQPtrList<KParts::ReadOnlyPart> frames = part->frames(); TQPtrList<KParts::ReadOnlyPart> frames = part->frames();
unsigned int len = frames.count(); unsigned int len = frames.count();
if (i < len) { if (i < len) {
KParts::ReadOnlyPart* frame = frames.at(i); KParts::ReadOnlyPart* frame = frames.tqat(i);
if (frame) if (frame)
return Window::retrieve(frame); return Window::retrieve(frame);
} }
@ -2412,7 +2412,7 @@ Value FrameArray::get(ExecState *exec, const Identifier &p) const
bool ok; bool ok;
unsigned int i = p.toArrayIndex(&ok); unsigned int i = p.toArrayIndex(&ok);
if (ok && i < len) if (ok && i < len)
frame = frames.at(i); frame = frames.tqat(i);
} }
// we are potentially fetching a reference to a another Window object here. // we are potentially fetching a reference to a another Window object here.

@ -2761,7 +2761,7 @@ static TQString expandLF(const TQString& s)
unsigned pos2 = 0; unsigned pos2 = 0;
for(unsigned pos = 0; pos < len; pos++) for(unsigned pos = 0; pos < len; pos++)
{ {
TQChar c = s.at(pos); TQChar c = s.tqat(pos);
switch(c.tqunicode()) switch(c.tqunicode())
{ {
case '\n': case '\n':

@ -328,14 +328,14 @@ NodeImpl *HTMLFormCollectionImpl::item( unsigned long index ) const
TQPtrList<HTMLGenericFormElementImpl>& l = static_cast<HTMLFormElementImpl*>( m_refNode )->formElements; TQPtrList<HTMLGenericFormElementImpl>& l = static_cast<HTMLFormElementImpl*>( m_refNode )->formElements;
for (unsigned i = strt; i < l.count(); i++) for (unsigned i = strt; i < l.count(); i++)
{ {
if (l.at( i )->isEnumeratable()) if (l.tqat( i )->isEnumeratable())
{ {
if (dist == 0) if (dist == 0)
{ {
//Found it! //Found it!
m_cache->position = index; m_cache->position = index;
m_cache->current.index = i; m_cache->current.index = i;
return l.at( i ); return l.tqat( i );
} }
else else
--dist; --dist;
@ -349,7 +349,7 @@ unsigned long HTMLFormCollectionImpl::calcLength(NodeImpl *start) const
unsigned length = 0; unsigned length = 0;
TQPtrList<HTMLGenericFormElementImpl> l = static_cast<HTMLFormElementImpl*>( start )->formElements; TQPtrList<HTMLGenericFormElementImpl> l = static_cast<HTMLFormElementImpl*>( start )->formElements;
for ( unsigned i = 0; i < l.count(); i++ ) for ( unsigned i = 0; i < l.count(); i++ )
if ( l.at( i )->isEnumeratable() ) if ( l.tqat( i )->isEnumeratable() )
++length; ++length;
return length; return length;
} }
@ -369,7 +369,7 @@ NodeImpl *HTMLFormCollectionImpl::nextNamedItem( const DOMString &name ) const
//Go through the list, trying to find the appropriate named form element. //Go through the list, trying to find the appropriate named form element.
for ( ; currentNamePos < l.count(); ++currentNamePos ) for ( ; currentNamePos < l.count(); ++currentNamePos )
{ {
HTMLGenericFormElementImpl* el = l.at(currentNamePos); HTMLGenericFormElementImpl* el = l.tqat(currentNamePos);
if (el->isEnumeratable() && if (el->isEnumeratable() &&
((el->getAttribute(ATTR_ID) == name) || ((el->getAttribute(ATTR_ID) == name) ||
(el->getAttribute(ATTR_NAME) == name))) (el->getAttribute(ATTR_NAME) == name)))
@ -387,7 +387,7 @@ NodeImpl *HTMLFormCollectionImpl::nextNamedItem( const DOMString &name ) const
TQPtrList<HTMLImageElementImpl>& il = static_cast<HTMLFormElementImpl*>( m_refNode )->imgElements; TQPtrList<HTMLImageElementImpl>& il = static_cast<HTMLFormElementImpl*>( m_refNode )->imgElements;
for ( ; currentNameImgPos < il.count(); ++currentNameImgPos ) for ( ; currentNameImgPos < il.count(); ++currentNameImgPos )
{ {
HTMLImageElementImpl* el = il.at(currentNameImgPos); HTMLImageElementImpl* el = il.tqat(currentNameImgPos);
if ((el->getAttribute(ATTR_ID) == name) || if ((el->getAttribute(ATTR_ID) == name) ||
(el->getAttribute(ATTR_NAME) == name)) (el->getAttribute(ATTR_NAME) == name))
{ {

@ -234,7 +234,7 @@ KJavaAppletViewer::KJavaAppletViewer (TQWidget * wparent, const char *,
if (equalPos > 0) { if (equalPos > 0) {
const TQString name = (*it).left (equalPos).upper (); const TQString name = (*it).left (equalPos).upper ();
TQString value = (*it).right ((*it).length () - equalPos - 1); TQString value = (*it).right ((*it).length () - equalPos - 1);
if (value.at(0)=='\"') if (value.tqat(0)=='\"')
value = value.right (value.length () - 1); value = value.right (value.length () - 1);
if (value.at (value.length () - 1) == '\"') if (value.at (value.length () - 1) == '\"')
value.truncate (value.length () - 1); value.truncate (value.length () - 1);

@ -218,12 +218,12 @@ void KJavaProcess::popBuffer()
// kdDebug(6100) << "Sending buffer to java, buffer = >>"; // kdDebug(6100) << "Sending buffer to java, buffer = >>";
// for( unsigned int i = 0; i < buf->size(); i++ ) // for( unsigned int i = 0; i < buf->size(); i++ )
// { // {
// if( buf->at(i) == (char)0 ) // if( buf->tqat(i) == (char)0 )
// kdDebug(6100) << "<SEP>"; // kdDebug(6100) << "<SEP>";
// else if( buf->at(i) > 0 && buf->at(i) < 10 ) // else if( buf->tqat(i) > 0 && buf->tqat(i) < 10 )
// kdDebug(6100) << "<CMD " << (int) buf->at(i) << ">"; // kdDebug(6100) << "<CMD " << (int) buf->tqat(i) << ">";
// else // else
// kdDebug(6100) << buf->at(i); // kdDebug(6100) << buf->tqat(i);
// } // }
// kdDebug(6100) << "<<" << endl; // kdDebug(6100) << "<<" << endl;

@ -2103,7 +2103,7 @@ static RenderTableCell *findNearestTableCellInRow(KHTMLPart *part, int x,
int n = (int)row->row->size(); int n = (int)row->row->size();
int i; int i;
for (i = 0; i < n; i++) { for (i = 0; i < n; i++) {
RenderTableCell *cell = row->row->at(i); RenderTableCell *cell = row->row->tqat(i);
if (!cell || (long)cell == -1) continue; if (!cell || (long)cell == -1) continue;
int absx, absy; int absx, absy;
@ -2127,7 +2127,7 @@ static RenderTableCell *findNearestTableCellInRow(KHTMLPart *part, int x,
int index = i - ((cnt >> 1) + 1)*(cnt & 1) + (cnt >> 1)*!(cnt & 1); int index = i - ((cnt >> 1) + 1)*(cnt & 1) + (cnt >> 1)*!(cnt & 1);
if (index < 0 || index >= n) continue; if (index < 0 || index >= n) continue;
RenderTableCell *cell = row->row->at(index); RenderTableCell *cell = row->row->tqat(index);
if (!cell || (long)cell == -1) continue; if (!cell || (long)cell == -1) continue;
#if DEBUG_CARETMODE > 1 #if DEBUG_CARETMODE > 1
@ -2227,7 +2227,7 @@ static int findRowInSection(RenderTableSection *section, RenderTableCell *cell,
// check for cell // check for cell
int m = row->row->size(); int m = row->row->size();
for (int j = 0; j < m; j++) { for (int j = 0; j < m; j++) {
RenderTableCell *c = row->row->at(j); RenderTableCell *c = row->row->tqat(j);
if (c == directCell) return i; if (c == directCell) return i;
}/*next j*/ }/*next j*/

@ -112,7 +112,7 @@ void KHTMLPartBrowserExtension::editableWidgetFocused( TQWidget *widget )
if ( !m_connectedToClipboard && m_editableFormWidget ) if ( !m_connectedToClipboard && m_editableFormWidget )
{ {
connect( TQApplication::clipboard(), TQT_SIGNAL( dataChanged() ), connect( TQApplication::tqclipboard(), TQT_SIGNAL( dataChanged() ),
this, TQT_SLOT( updateEditActions() ) ); this, TQT_SLOT( updateEditActions() ) );
if ( m_editableFormWidget->inherits( "QLineEdit" ) || m_editableFormWidget->inherits( "QTextEdit" ) ) if ( m_editableFormWidget->inherits( "QLineEdit" ) || m_editableFormWidget->inherits( "QTextEdit" ) )
@ -135,7 +135,7 @@ void KHTMLPartBrowserExtension::editableWidgetBlurred( TQWidget * /*widget*/ )
if ( m_connectedToClipboard ) if ( m_connectedToClipboard )
{ {
disconnect( TQApplication::clipboard(), TQT_SIGNAL( dataChanged() ), disconnect( TQApplication::tqclipboard(), TQT_SIGNAL( dataChanged() ),
this, TQT_SLOT( updateEditActions() ) ); this, TQT_SLOT( updateEditActions() ) );
if ( oldWidget ) if ( oldWidget )
@ -338,7 +338,7 @@ void KHTMLPartBrowserExtension::updateEditActions()
TQMimeSource *data = TQApplication::tqclipboard()->data(); TQMimeSource *data = TQApplication::tqclipboard()->data();
enableAction( "paste", data->provides( "text/plain" ) ); enableAction( "paste", data->provides( "text/plain" ) );
#else #else
TQString data=TQApplication::clipboard()->text(); TQString data=TQApplication::tqclipboard()->text();
enableAction( "paste", data.contains("://")); enableAction( "paste", data.contains("://"));
#endif #endif
bool hasSelection = false; bool hasSelection = false;
@ -759,7 +759,7 @@ void KHTMLPopupGUIClient::slotCopyImageLocation()
TQApplication::tqclipboard()->setData( new KURLDrag( lst ), TQClipboard::Clipboard ); TQApplication::tqclipboard()->setData( new KURLDrag( lst ), TQClipboard::Clipboard );
TQApplication::tqclipboard()->setData( new KURLDrag( lst ), TQClipboard::Selection ); TQApplication::tqclipboard()->setData( new KURLDrag( lst ), TQClipboard::Selection );
#else #else
TQApplication::clipboard()->setText( safeURL.url() ); //FIXME(E): Handle multiple entries TQApplication::tqclipboard()->setText( safeURL.url() ); //FIXME(E): Handle multiple entries
#endif #endif
} }

@ -96,7 +96,7 @@ KHTMLPageCacheEntry::endData()
m_complete = true; m_complete = true;
if ( m_file->status() == 0) { if ( m_file->status() == 0) {
m_file->dataStream()->tqdevice()->flush(); m_file->dataStream()->tqdevice()->flush();
m_file->dataStream()->tqdevice()->at(0); m_file->dataStream()->tqdevice()->tqat(0);
} }
} }

@ -1480,7 +1480,7 @@ void KHTMLPart::clear()
d->m_startOffset = 0; d->m_startOffset = 0;
d->m_endOffset = 0; d->m_endOffset = 0;
#ifndef QT_NO_CLIPBOARD #ifndef QT_NO_CLIPBOARD
connect( kapp->clipboard(), TQT_SIGNAL( selectionChanged()), TQT_SLOT( slotClearSelection())); connect( kapp->tqclipboard(), TQT_SIGNAL( selectionChanged()), TQT_SLOT( slotClearSelection()));
#endif #endif
d->m_jobPercent = 0; d->m_jobPercent = 0;
@ -3005,7 +3005,7 @@ void KHTMLPart::findText()
// The lineedit of the dialog would make khtml lose its selection, otherwise // The lineedit of the dialog would make khtml lose its selection, otherwise
#ifndef QT_NO_CLIPBOARD #ifndef QT_NO_CLIPBOARD
disconnect( kapp->clipboard(), TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(slotClearSelection()) ); disconnect( kapp->tqclipboard(), TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(slotClearSelection()) );
#endif #endif
// Now show the dialog in which the user can choose options. // Now show the dialog in which the user can choose options.
@ -3036,7 +3036,7 @@ void KHTMLPart::findText( const TQString &str, long options, TQWidget *parent, K
return; return;
#ifndef QT_NO_CLIPBOARD #ifndef QT_NO_CLIPBOARD
connect( kapp->clipboard(), TQT_SIGNAL(selectionChanged()), TQT_SLOT(slotClearSelection()) ); connect( kapp->tqclipboard(), TQT_SIGNAL(selectionChanged()), TQT_SLOT(slotClearSelection()) );
#endif #endif
// Create the KFind object // Create the KFind object
@ -6610,9 +6610,9 @@ void KHTMLPart::khtmlMouseReleaseEvent( khtml::MouseReleaseEvent *event )
#ifndef QT_NO_CLIPBOARD #ifndef QT_NO_CLIPBOARD
TQString text = selectedText(); TQString text = selectedText();
text.replace(TQChar(0xa0), ' '); text.replace(TQChar(0xa0), ' ');
disconnect( kapp->clipboard(), TQT_SIGNAL( selectionChanged()), this, TQT_SLOT( slotClearSelection())); disconnect( kapp->tqclipboard(), TQT_SIGNAL( selectionChanged()), this, TQT_SLOT( slotClearSelection()));
kapp->clipboard()->setText(text,QClipboard::Selection); kapp->tqclipboard()->setText(text,TQClipboard::Selection);
connect( kapp->clipboard(), TQT_SIGNAL( selectionChanged()), TQT_SLOT( slotClearSelection())); connect( kapp->tqclipboard(), TQT_SIGNAL( selectionChanged()), TQT_SLOT( slotClearSelection()));
#endif #endif
//kdDebug( 6000 ) << "selectedText = " << text << endl; //kdDebug( 6000 ) << "selectedText = " << text << endl;
emitSelectionChanged(); emitSelectionChanged();

@ -484,7 +484,7 @@ static void appendRunsForObject(int start, int end, RenderObject* obj, BidiState
bool haveNextMidpoint = (smidpoints && sCurrMidpoint < sNumMidpoints); bool haveNextMidpoint = (smidpoints && sCurrMidpoint < sNumMidpoints);
BidiIterator nextMidpoint; BidiIterator nextMidpoint;
if (haveNextMidpoint) if (haveNextMidpoint)
nextMidpoint = smidpoints->at(sCurrMidpoint); nextMidpoint = smidpoints->tqat(sCurrMidpoint);
if (betweenMidpoints) { if (betweenMidpoints) {
if (!(haveNextMidpoint && nextMidpoint.obj == obj)) if (!(haveNextMidpoint && nextMidpoint.obj == obj))
return; return;

@ -1406,7 +1406,7 @@ void TextAreaWidget::slotReplaceNext()
} }
if (!(m_replace->options() & KReplaceDialog::PromptOnReplace)) { if (!(m_replace->options() & KReplaceDialog::PromptOnReplace)) {
viewport()->setUpdatesEnabled(false); viewport()->tqsetUpdatesEnabled(false);
} }
KFind::Result res = KFind::NoMatch; KFind::Result res = KFind::NoMatch;
@ -1449,7 +1449,7 @@ void TextAreaWidget::slotReplaceNext()
} }
if (!(m_replace->options() & KReplaceDialog::PromptOnReplace)) { if (!(m_replace->options() & KReplaceDialog::PromptOnReplace)) {
viewport()->setUpdatesEnabled(true); viewport()->tqsetUpdatesEnabled(true);
tqrepaintChanged(); tqrepaintChanged();
} }

@ -168,7 +168,7 @@ TQRegion RenderLayer::paintedRegion(RenderLayer* rootLayer)
if (m_negZOrderList) { if (m_negZOrderList) {
uint count = m_negZOrderList->count(); uint count = m_negZOrderList->count();
for (uint i = 0; i < count; i++) { for (uint i = 0; i < count; i++) {
RenderLayer* child = m_negZOrderList->at(i); RenderLayer* child = m_negZOrderList->tqat(i);
r += child->paintedRegion(rootLayer); r += child->paintedRegion(rootLayer);
} }
} }
@ -188,7 +188,7 @@ TQRegion RenderLayer::paintedRegion(RenderLayer* rootLayer)
if (m_posZOrderList) { if (m_posZOrderList) {
uint count = m_posZOrderList->count(); uint count = m_posZOrderList->count();
for (uint i = 0; i < count; i++) { for (uint i = 0; i < count; i++) {
RenderLayer* child = m_posZOrderList->at(i); RenderLayer* child = m_posZOrderList->tqat(i);
r += child->paintedRegion(rootLayer); r += child->paintedRegion(rootLayer);
} }
} }
@ -266,7 +266,7 @@ void RenderLayer::updateWidgetMasks(RenderLayer* rootLayer)
m_region = TQRect(0,0,sv->contentsWidth(),sv->contentsHeight()); m_region = TQRect(0,0,sv->contentsWidth(),sv->contentsHeight());
for (uint i = 0; i < count; i++) { for (uint i = 0; i < count; i++) {
RenderLayer* child = m_posZOrderList->at(i); RenderLayer* child = m_posZOrderList->tqat(i);
if (child->zIndex() == 0 && child->renderer()->style()->position() == STATIC) if (child->zIndex() == 0 && child->renderer()->style()->position() == STATIC)
continue; // we don't know the widget's exact stacking position within flow continue; // we don't know the widget's exact stacking position within flow
m_region -= child->paintedRegion(rootLayer); m_region -= child->paintedRegion(rootLayer);
@ -898,7 +898,7 @@ void RenderLayer::paintLayer(RenderLayer* rootLayer, TQPainter *p,
if (m_negZOrderList) { if (m_negZOrderList) {
uint count = m_negZOrderList->count(); uint count = m_negZOrderList->count();
for (uint i = 0; i < count; i++) { for (uint i = 0; i < count; i++) {
RenderLayer* child = m_negZOrderList->at(i); RenderLayer* child = m_negZOrderList->tqat(i);
child->paintLayer(rootLayer, p, paintDirtyRect, selectionOnly); child->paintLayer(rootLayer, p, paintDirtyRect, selectionOnly);
} }
} }
@ -946,7 +946,7 @@ void RenderLayer::paintLayer(RenderLayer* rootLayer, TQPainter *p,
if (m_posZOrderList) { if (m_posZOrderList) {
uint count = m_posZOrderList->count(); uint count = m_posZOrderList->count();
for (uint i = 0; i < count; i++) { for (uint i = 0; i < count; i++) {
RenderLayer* child = m_posZOrderList->at(i); RenderLayer* child = m_posZOrderList->tqat(i);
child->paintLayer(rootLayer, p, paintDirtyRect, selectionOnly); child->paintLayer(rootLayer, p, paintDirtyRect, selectionOnly);
} }
} }
@ -1026,7 +1026,7 @@ RenderLayer* RenderLayer::nodeAtPointForLayer(RenderLayer* rootLayer, RenderObje
if (m_posZOrderList) { if (m_posZOrderList) {
uint count = m_posZOrderList->count(); uint count = m_posZOrderList->count();
for (int i = count-1; i >= 0; i--) { for (int i = count-1; i >= 0; i--) {
RenderLayer* child = m_posZOrderList->at(i); RenderLayer* child = m_posZOrderList->tqat(i);
insideLayer = child->nodeAtPointForLayer(rootLayer, info, xMousePos, yMousePos, hitTestRect); insideLayer = child->nodeAtPointForLayer(rootLayer, info, xMousePos, yMousePos, hitTestRect);
if (insideLayer) if (insideLayer)
return insideLayer; return insideLayer;
@ -1057,7 +1057,7 @@ RenderLayer* RenderLayer::nodeAtPointForLayer(RenderLayer* rootLayer, RenderObje
if (m_negZOrderList) { if (m_negZOrderList) {
uint count = m_negZOrderList->count(); uint count = m_negZOrderList->count();
for (int i = count-1; i >= 0; i--) { for (int i = count-1; i >= 0; i--) {
RenderLayer* child = m_negZOrderList->at(i); RenderLayer* child = m_negZOrderList->tqat(i);
insideLayer = child->nodeAtPointForLayer(rootLayer, info, xMousePos, yMousePos, hitTestRect); insideLayer = child->nodeAtPointForLayer(rootLayer, info, xMousePos, yMousePos, hitTestRect);
if (insideLayer) if (insideLayer)
return insideLayer; return insideLayer;
@ -1261,8 +1261,8 @@ static void sortByZOrder(TQPtrVector<RenderLayer>* buffer,
for (uint i = end-1; i > start; i--) { for (uint i = end-1; i > start; i--) {
bool sorted = true; bool sorted = true;
for (uint j = start; j < i; j++) { for (uint j = start; j < i; j++) {
RenderLayer* elt = buffer->at(j); RenderLayer* elt = buffer->tqat(j);
RenderLayer* elt2 = buffer->at(j+1); RenderLayer* elt2 = buffer->tqat(j+1);
if (elt->zIndex() > elt2->zIndex()) { if (elt->zIndex() > elt2->zIndex()) {
sorted = false; sorted = false;
buffer->insert(j, elt2); buffer->insert(j, elt2);
@ -1279,8 +1279,8 @@ static void sortByZOrder(TQPtrVector<RenderLayer>* buffer,
sortByZOrder(buffer, mergeBuffer, start, mid); sortByZOrder(buffer, mergeBuffer, start, mid);
sortByZOrder(buffer, mergeBuffer, mid, end); sortByZOrder(buffer, mergeBuffer, mid, end);
RenderLayer* elt = buffer->at(mid-1); RenderLayer* elt = buffer->tqat(mid-1);
RenderLayer* elt2 = buffer->at(mid); RenderLayer* elt2 = buffer->tqat(mid);
// Handle the fast common case (of equal z-indices). The list may already // Handle the fast common case (of equal z-indices). The list may already
// be completely sorted. // be completely sorted.
@ -1293,26 +1293,26 @@ static void sortByZOrder(TQPtrVector<RenderLayer>* buffer,
uint i1 = start; uint i1 = start;
uint i2 = mid; uint i2 = mid;
elt = buffer->at(i1); elt = buffer->tqat(i1);
elt2 = buffer->at(i2); elt2 = buffer->tqat(i2);
while (i1 < mid || i2 < end) { while (i1 < mid || i2 < end) {
if (i1 < mid && (i2 == end || elt->zIndex() <= elt2->zIndex())) { if (i1 < mid && (i2 == end || elt->zIndex() <= elt2->zIndex())) {
mergeBuffer->insert(mergeBuffer->count(), elt); mergeBuffer->insert(mergeBuffer->count(), elt);
i1++; i1++;
if (i1 < mid) if (i1 < mid)
elt = buffer->at(i1); elt = buffer->tqat(i1);
} }
else { else {
mergeBuffer->insert(mergeBuffer->count(), elt2); mergeBuffer->insert(mergeBuffer->count(), elt2);
i2++; i2++;
if (i2 < end) if (i2 < end)
elt2 = buffer->at(i2); elt2 = buffer->tqat(i2);
} }
} }
for (uint i = start; i < end; i++) for (uint i = start; i < end; i++)
buffer->insert(i, mergeBuffer->at(i-start)); buffer->insert(i, mergeBuffer->tqat(i-start));
mergeBuffer->clear(); mergeBuffer->clear();
} }
@ -1471,7 +1471,7 @@ static void writeLayers(TQTextStream &ts, const RenderLayer* rootLayer, RenderLa
if (negList) { if (negList) {
for (unsigned i = 0; i != negList->count(); ++i) for (unsigned i = 0; i != negList->count(); ++i)
writeLayers(ts, rootLayer, negList->at(i), paintDirtyRect, indent ); writeLayers(ts, rootLayer, negList->tqat(i), paintDirtyRect, indent );
} }
if (shouldPaint) if (shouldPaint)
@ -1485,7 +1485,7 @@ static void writeLayers(TQTextStream &ts, const RenderLayer* rootLayer, RenderLa
TQPtrVector<RenderLayer>* posList = l->posZOrderList(); TQPtrVector<RenderLayer>* posList = l->posZOrderList();
if (posList) { if (posList) {
for (unsigned i = 0; i != posList->count(); ++i) for (unsigned i = 0; i != posList->count(); ++i)
writeLayers(ts, rootLayer, posList->at(i), paintDirtyRect, indent); writeLayers(ts, rootLayer, posList->tqat(i), paintDirtyRect, indent);
} }
} }

@ -482,7 +482,7 @@ void RenderTable::paint( PaintInfo& pI, int _tx, int _ty)
#if 0 #if 0
TQString m; TQString m;
for (uint i = 0; i < borderStyles.count(); i++) for (uint i = 0; i < borderStyles.count(); i++)
m += TQString("%1 ").arg((*borderStyles.at(i)).width()); m += TQString("%1 ").arg((*borderStyles.tqat(i)).width());
kdDebug(6040) << m << endl; kdDebug(6040) << m << endl;
#endif #endif
TQValueListIterator<CollapsedBorderValue> it = borderStyles.begin(); TQValueListIterator<CollapsedBorderValue> it = borderStyles.begin();

@ -738,7 +738,7 @@ void RenderText::deleteInlineBoxes(RenderArena* arena)
if (!arena) if (!arena)
arena = renderArena(); arena = renderArena();
for(unsigned int i=0; i < len; i++) { for(unsigned int i=0; i < len; i++) {
InlineTextBox* s = m_lines.at(i); InlineTextBox* s = m_lines.tqat(i);
if (s) if (s)
s->detach(arena); s->detach(arena);
m_lines.remove(i); m_lines.remove(i);
@ -1464,7 +1464,7 @@ static TQString quoteAndEscapeNonPrintables(const TQString &s)
TQString result; TQString result;
result += '"'; result += '"';
for (uint i = 0; i != s.length(); ++i) { for (uint i = 0; i != s.length(); ++i) {
TQChar c = s.at(i); TQChar c = s.tqat(i);
if (c == '\\') { if (c == '\\') {
result += "\\\\"; result += "\\\\";
} else if (c == '"') { } else if (c == '"') {

@ -1051,7 +1051,7 @@ void RegressionTest::doJavascriptReport( const TQString &test )
text.replace( TQRegExp( "\nFAIL" ), "\n<span style='color: red'>FAIL</span>" ); text.replace( TQRegExp( "\nFAIL" ), "\n<span style='color: red'>FAIL</span>" );
text.replace( TQRegExp( "\nPASSED" ), "\n<span style='color: green'>PASSED</span>" ); text.replace( TQRegExp( "\nPASSED" ), "\n<span style='color: green'>PASSED</span>" );
text.replace( TQRegExp( "\nPASS" ), "\n<span style='color: green'>PASS</span>" ); text.replace( TQRegExp( "\nPASS" ), "\n<span style='color: green'>PASS</span>" );
if ( text.at( 0 ) == '\n' ) if ( text.tqat( 0 ) == '\n' )
text = text.mid( 1, text.length() ); text = text.mid( 1, text.length() );
text.replace( '\n', "<br>\n" ); text.replace( '\n', "<br>\n" );
cl += text; cl += text;

@ -1925,7 +1925,7 @@ NodeImpl *GenericRONamedNodeMapImpl::item ( unsigned long index ) const
if (index >= m_contents->count()) if (index >= m_contents->count())
return 0; return 0;
return m_contents->at(index); return m_contents->tqat(index);
} }
unsigned long GenericRONamedNodeMapImpl::length( ) const unsigned long GenericRONamedNodeMapImpl::length( ) const

@ -910,7 +910,7 @@ namespace { // Private.
return false; return false;
} }
int offset = s.tqdevice()->at(); int offset = s.tqdevice()->tqat();
int size = FaceOffset( header ); int size = FaceOffset( header );
for( int i = 0; i < 6; i++ ) { for( int i = 0; i < 6; i++ ) {
@ -921,7 +921,7 @@ namespace { // Private.
} }
// Seek device. // Seek device.
s.tqdevice()->at( offset ); s.tqdevice()->tqat( offset );
offset += size; offset += size;
// Load face from stream. // Load face from stream.

@ -61,7 +61,7 @@ static bool seekToCodeStart( TQIODevice * io, TQ_UINT32 & ps_offset, TQ_UINT32 &
+ ((unsigned char) buf[2] << 16) + ((unsigned char) buf[2] << 16)
+ ((unsigned char) buf[3] << 24); + ((unsigned char) buf[3] << 24);
kdDebug(399) << "kimgio EPS: Offset: " << ps_offset <<" Size: " << ps_size << endl; kdDebug(399) << "kimgio EPS: Offset: " << ps_offset <<" Size: " << ps_size << endl;
if ( !io->at(ps_offset) ) // Get offset of PostScript code in the MS-DOS EPS file. if ( !io->tqat(ps_offset) ) // Get offset of PostScript code in the MS-DOS EPS file.
{ {
kdError(399) << "kimgio EPS: cannot seek in MS-DOS EPS file" << endl; kdError(399) << "kimgio EPS: cannot seek in MS-DOS EPS file" << endl;
return false; return false;
@ -218,7 +218,7 @@ KDE_EXPORT void kimgio_eps_read (TQImageIO *image)
io->reset(); // Go back to start of file to give all the file to GhostScript io->reset(); // Go back to start of file to give all the file to GhostScript
if (ps_offset>0L) // We have an offset if (ps_offset>0L) // We have an offset
io->at(ps_offset); io->tqat(ps_offset);
TQByteArray buffer ( io->readAll() ); TQByteArray buffer ( io->readAll() );
// If we have no MS-DOS EPS file or if the size seems wrong, then choose the buffer size // If we have no MS-DOS EPS file or if the size seems wrong, then choose the buffer size

@ -127,7 +127,7 @@ namespace { // Private.
if (val != 2) if (val != 2)
{ {
s.tqdevice()->at( s.tqdevice()->at() - 1 ); s.tqdevice()->tqat( s.tqdevice()->tqat() - 1 );
Read_Old_Line(image.data(), width, s); Read_Old_Line(image.data(), width, s);
RGBE_To_QRgbLine(image.data(), scanline, width); RGBE_To_QRgbLine(image.data(), scanline, width);
continue; continue;

@ -243,7 +243,7 @@ namespace
extern "C" KDE_EXPORT void kimgio_ico_read( TQImageIO* io ) extern "C" KDE_EXPORT void kimgio_ico_read( TQImageIO* io )
{ {
TQIODevice::Offset offset = io->ioDevice()->at(); TQIODevice::Offset offset = io->ioDevice()->tqat();
TQDataStream stream( io->ioDevice() ); TQDataStream stream( io->ioDevice() );
stream.setByteOrder( TQDataStream::LittleEndian ); stream.setByteOrder( TQDataStream::LittleEndian );
@ -295,7 +295,7 @@ extern "C" KDE_EXPORT void kimgio_ico_read( TQImageIO* io )
offset + selected->offset > io->ioDevice()->size() ) offset + selected->offset > io->ioDevice()->size() )
return; return;
io->ioDevice()->at( offset + selected->offset ); io->ioDevice()->tqat( offset + selected->offset );
TQImage icon; TQImage icon;
if ( loadFromDIB( stream, *selected, icon ) ) if ( loadFromDIB( stream, *selected, icon ) )
{ {
@ -334,7 +334,7 @@ void kimgio_ico_write(TQImageIO *io)
if (!qt_write_dib(dib, pixels)) if (!qt_write_dib(dib, pixels))
return; return;
uint hdrPos = dib.device()->at(); uint hdrPos = dib.device()->tqat();
if (!qt_write_dib(dib, mask)) if (!qt_write_dib(dib, mask))
return; return;
memmove(dibData.data() + hdrPos, dibData.data() + hdrPos + BMP_WIN + 8, dibData.size() - hdrPos - BMP_WIN - 8); memmove(dibData.data() + hdrPos, dibData.data() + hdrPos + BMP_WIN + 8, dibData.size() - hdrPos - BMP_WIN - 8);
@ -361,14 +361,14 @@ void kimgio_ico_write(TQImageIO *io)
rec.dibSize = dibData.size(); rec.dibSize = dibData.size();
ico << rec.width << rec.height << rec.colors ico << rec.width << rec.height << rec.colors
<< rec.hotspotX << rec.hotspotY << rec.dibSize; << rec.hotspotX << rec.hotspotY << rec.dibSize;
rec.dibOffset = ico.device()->at() + sizeof(rec.dibOffset); rec.dibOffset = ico.device()->tqat() + sizeof(rec.dibOffset);
ico << rec.dibOffset; ico << rec.dibOffset;
BMP_INFOHDR dibHeader; BMP_INFOHDR dibHeader;
dib.device()->at(0); dib.device()->tqat(0);
dib >> dibHeader; dib >> dibHeader;
dibHeader.biHeight = io->image().height() << 1; dibHeader.biHeight = io->image().height() << 1;
dib.device()->at(0); dib.device()->tqat(0);
dib << dibHeader; dib << dibHeader;
ico.writeRawBytes(dibData.data(), dibData.size()); ico.writeRawBytes(dibData.data(), dibData.size());

@ -291,7 +291,7 @@ kimgio_jp2_write( TQImageIO* io )
TQ_LONG size; TQ_LONG size;
// seek to the beginning of the file. // seek to the beginning of the file.
if( !in->at( 0 ) ) { delete ktempf; return; } if( !in->tqat( 0 ) ) { delete ktempf; return; }
// 0 or -1 is EOF / error // 0 or -1 is EOF / error
while( ( size = in->readBlock( b.data(), 4096 ) ) > 0 ) { while( ( size = in->readBlock( b.data(), 4096 ) ) > 0 ) {

@ -46,7 +46,7 @@ static TQDataStream &operator>>( TQDataStream &s, PCXHEADER &ph )
// Skip the rest of the header // Skip the rest of the header
TQ_UINT8 byte; TQ_UINT8 byte;
while ( s.tqdevice()->at() < 128 ) while ( s.tqdevice()->tqat() < 128 )
s >> byte; s >> byte;
return s; return s;
@ -183,7 +183,7 @@ static void readImage4( TQImage &img, TQDataStream &s, const PCXHEADER &header )
TQ_UINT32 offset = i*header.BytesPerLine; TQ_UINT32 offset = i*header.BytesPerLine;
for ( unsigned int x=0; x<header.width(); ++x ) for ( unsigned int x=0; x<header.width(); ++x )
if ( buf[ offset + ( x/8 ) ] & ( 128 >> ( x%8 ) ) ) if ( buf[ offset + ( x/8 ) ] & ( 128 >> ( x%8 ) ) )
pixbuf[ x ] = pixbuf.at(x) + ( 1 << i ); pixbuf[ x ] = static_cast<const char>(pixbuf.tqat(x)) + ( 1 << i );
} }
uchar *p = img.scanLine( y ); uchar *p = img.scanLine( y );
@ -343,7 +343,7 @@ static void writeLine( TQDataStream &s, TQByteArray &buf )
count = 1; count = 1;
byte = buf[ i++ ]; byte = buf[ i++ ];
while ( ( i < size ) && ( byte == buf.at(i) ) && ( count < 63 ) ) while ( ( i < size ) && ( TQChar(byte) == buf.tqat(i) ) && ( count < 63 ) )
{ {
++i; ++i;
++count; ++count;
@ -412,7 +412,7 @@ static void writeImage4( TQImage &img, TQDataStream &s, PCXHEADER &header )
{ {
for ( int i=0; i<4; ++i ) for ( int i=0; i<4; ++i )
if ( *( p+x ) & ( 1 << i ) ) if ( *( p+x ) & ( 1 << i ) )
buf[ i ][ x/8 ] = buf[ i ].at(x/8) | 1 << ( 7-x%8 ); buf[ i ][ x/8 ] = buf[ i ].tqat(x/8) | 1 << ( 7-x%8 );
} }
for ( int i=0; i<4; ++i ) for ( int i=0; i<4; ++i )

@ -119,15 +119,15 @@ namespace { // Private.
// Skip mode data. // Skip mode data.
s >> tmp; s >> tmp;
s.tqdevice()->at( s.tqdevice()->at() + tmp ); s.tqdevice()->tqat( s.tqdevice()->tqat() + tmp );
// Skip image resources. // Skip image resources.
s >> tmp; s >> tmp;
s.tqdevice()->at( s.tqdevice()->at() + tmp ); s.tqdevice()->tqat( s.tqdevice()->tqat() + tmp );
// Skip the reserved data. // Skip the reserved data.
s >> tmp; s >> tmp;
s.tqdevice()->at( s.tqdevice()->at() + tmp ); s.tqdevice()->tqat( s.tqdevice()->tqat() + tmp );
// Find out if the data is compressed. // Find out if the data is compressed.
// Known values: // Known values:

@ -324,7 +324,7 @@ KDE_EXPORT void kimgio_tga_read( TQImageIO *io )
// Read image header. // Read image header.
TgaHeader tga; TgaHeader tga;
s >> tga; s >> tga;
s.tqdevice()->at( TgaHeader::SIZE + tga.id_length ); s.tqdevice()->tqat( TgaHeader::SIZE + tga.id_length );
// Check image file format. // Check image file format.
if( s.atEnd() ) { if( s.atEnd() ) {

@ -30,14 +30,14 @@ static toff_t tiff_seek( thandle_t handle, toff_t off, int whence )
TQIODevice *dev = reinterpret_cast<TQIODevice *>( handle ); TQIODevice *dev = reinterpret_cast<TQIODevice *>( handle );
if ( whence == SEEK_CUR ) if ( whence == SEEK_CUR )
off += dev->at(); off += dev->tqat();
else if ( whence == SEEK_END ) else if ( whence == SEEK_END )
off += dev->size(); off += dev->size();
if ( !dev->at( off ) ) if ( !dev->tqat( off ) )
return ( toff_t )-1; return ( toff_t )-1;
return dev->at(); return dev->tqat();
} }
static toff_t tiff_size( thandle_t handle ) static toff_t tiff_size( thandle_t handle )

@ -178,7 +178,7 @@ kdDebug() << tag << " " << xcf_image.width << " " << xcf_image.height << " " <<
while (!layer_offsets.isEmpty()) { while (!layer_offsets.isEmpty()) {
TQ_INT32 layer_offset = layer_offsets.pop(); TQ_INT32 layer_offset = layer_offsets.pop();
xcf_io.tqdevice()->at(layer_offset); xcf_io.tqdevice()->tqat(layer_offset);
if (!loadLayer(xcf_io, xcf_image)) if (!loadLayer(xcf_io, xcf_image))
return; return;
@ -415,7 +415,7 @@ bool XCFImageFormat::loadLayer(TQDataStream& xcf_io, XCFImage& xcf_image)
if( !composeTiles(xcf_image)) if( !composeTiles(xcf_image))
return false; return false;
xcf_io.tqdevice()->at(layer.hierarchy_offset); xcf_io.tqdevice()->tqat(layer.hierarchy_offset);
// As tiles are loaded, they are copied into the layers tiles by // As tiles are loaded, they are copied into the layers tiles by
// this routine. (loadMask(), below, uses a slightly different // this routine. (loadMask(), below, uses a slightly different
@ -427,7 +427,7 @@ bool XCFImageFormat::loadLayer(TQDataStream& xcf_io, XCFImage& xcf_image)
return false; return false;
if (layer.mask_offset != 0) { if (layer.mask_offset != 0) {
xcf_io.tqdevice()->at(layer.mask_offset); xcf_io.tqdevice()->tqat(layer.mask_offset);
if (!loadMask(xcf_io, layer)) if (!loadMask(xcf_io, layer))
return false; return false;
@ -758,13 +758,13 @@ bool XCFImageFormat::loadHierarchy(TQDataStream& xcf_io, Layer& layer)
} }
} while (junk != 0); } while (junk != 0);
TQIODevice::Offset saved_pos = xcf_io.tqdevice()->at(); TQIODevice::Offset saved_pos = xcf_io.tqdevice()->tqat();
xcf_io.tqdevice()->at(offset); xcf_io.tqdevice()->tqat(offset);
if (!loadLevel(xcf_io, layer, bpp)) if (!loadLevel(xcf_io, layer, bpp))
return false; return false;
xcf_io.tqdevice()->at(saved_pos); xcf_io.tqdevice()->tqat(saved_pos);
return true; return true;
} }
@ -801,7 +801,7 @@ bool XCFImageFormat::loadLevel(TQDataStream& xcf_io, Layer& layer, TQ_INT32 bpp)
return false; return false;
} }
TQIODevice::Offset saved_pos = xcf_io.tqdevice()->at(); TQIODevice::Offset saved_pos = xcf_io.tqdevice()->tqat();
TQ_UINT32 offset2; TQ_UINT32 offset2;
xcf_io >> offset2; xcf_io >> offset2;
@ -815,7 +815,7 @@ bool XCFImageFormat::loadLevel(TQDataStream& xcf_io, Layer& layer, TQ_INT32 bpp)
if (offset2 == 0) if (offset2 == 0)
offset2 = offset + (uint)(TILE_WIDTH * TILE_HEIGHT * 4 * 1.5); offset2 = offset + (uint)(TILE_WIDTH * TILE_HEIGHT * 4 * 1.5);
xcf_io.tqdevice()->at(offset); xcf_io.tqdevice()->tqat(offset);
int size = layer.image_tiles[j][i].width() * layer.image_tiles[j][i].height(); int size = layer.image_tiles[j][i].width() * layer.image_tiles[j][i].height();
if (!loadTileRLE(xcf_io, layer.tile, size, offset2 - offset, bpp)) if (!loadTileRLE(xcf_io, layer.tile, size, offset2 - offset, bpp))
@ -827,7 +827,7 @@ bool XCFImageFormat::loadLevel(TQDataStream& xcf_io, Layer& layer, TQ_INT32 bpp)
layer.assignBytes(layer, i, j); layer.assignBytes(layer, i, j);
xcf_io.tqdevice()->at(saved_pos); xcf_io.tqdevice()->tqat(saved_pos);
xcf_io >> offset; xcf_io >> offset;
if (xcf_io.tqdevice()->status() != IO_Ok) { if (xcf_io.tqdevice()->status() != IO_Ok) {
@ -873,7 +873,7 @@ bool XCFImageFormat::loadMask(TQDataStream& xcf_io, Layer& layer)
return false; return false;
} }
xcf_io.tqdevice()->at(hierarchy_offset); xcf_io.tqdevice()->tqat(hierarchy_offset);
layer.assignBytes = assignMaskBytes; layer.assignBytes = assignMaskBytes;
if (!loadHierarchy(xcf_io, layer)) if (!loadHierarchy(xcf_io, layer))

@ -164,7 +164,7 @@ IdleSlave::age(time_t now)
KLauncher::KLauncher(int _kdeinitSocket, bool new_startup) KLauncher::KLauncher(int _kdeinitSocket, bool new_startup)
// : KApplication( false, false ), // No Styles, No GUI // : KApplication( false, false ), // No Styles, No GUI
: KApplication( false, true ), // QClipboard tries to construct a QWidget so a GUI is technically needed, even though it is not used : KApplication( false, true ), // TQClipboard tries to construct a QWidget so a GUI is technically needed, even though it is not used
DCOPObject("klauncher"), DCOPObject("klauncher"),
kdeinitSocket(_kdeinitSocket), mAutoStart( new_startup ), kdeinitSocket(_kdeinitSocket), mAutoStart( new_startup ),
dontBlockReading(false), newStartup( new_startup ) dontBlockReading(false), newStartup( new_startup )

@ -200,8 +200,8 @@ void KBookmarkBar::fillBookmarkBar(KBookmarkGroup & parent)
else else
{ {
KAction *action = new KBookmarkAction( text, bm.icon(), 0, m_actionCollection, 0 ); KAction *action = new KBookmarkAction( text, bm.icon(), 0, m_actionCollection, 0 );
connect(action, TQT_SIGNAL( activated ( KAction::ActivationReason, Qt::ButtonState )), connect(action, TQT_SIGNAL( activated ( KAction::ActivationReason, TQt::ButtonState )),
this, TQT_SLOT( slotBookmarkSelected( KAction::ActivationReason, Qt::ButtonState ) )); this, TQT_SLOT( slotBookmarkSelected( KAction::ActivationReason, TQt::ButtonState ) ));
action->setProperty( "url", bm.url().url() ); action->setProperty( "url", bm.url().url() );
action->setProperty( "address", bm.address() ); action->setProperty( "address", bm.address() );
@ -231,8 +231,8 @@ void KBookmarkBar::fillBookmarkBar(KBookmarkGroup & parent)
bm.address()); bm.address());
connect(menu, TQT_SIGNAL( aboutToShowContextMenu(const KBookmark &, TQPopupMenu * ) ), connect(menu, TQT_SIGNAL( aboutToShowContextMenu(const KBookmark &, TQPopupMenu * ) ),
this, TQT_SIGNAL( aboutToShowContextMenu(const KBookmark &, TQPopupMenu * ) )); this, TQT_SIGNAL( aboutToShowContextMenu(const KBookmark &, TQPopupMenu * ) ));
connect(menu, TQT_SIGNAL( openBookmark( const TQString &, Qt::ButtonState) ), connect(menu, TQT_SIGNAL( openBookmark( const TQString &, TQt::ButtonState) ),
this, TQT_SIGNAL( openBookmark( const TQString &, Qt::ButtonState) )); this, TQT_SIGNAL( openBookmark( const TQString &, TQt::ButtonState) ));
menu->fillBookmarkMenu(); menu->fillBookmarkMenu();
action->plug(m_toolBar); action->plug(m_toolBar);
m_lstSubMenus.append( menu ); m_lstSubMenus.append( menu );

@ -404,9 +404,9 @@ void RMB::slotRMBActionCopyLocation( int val )
if ( !bookmark.isGroup() ) if ( !bookmark.isGroup() )
{ {
kapp->tqclipboard()->setData( KBookmarkDrag::newDrag(bookmark, 0), kapp->tqclipboard()->setData( KBookmarkDrag::newDrag(bookmark, 0),
QClipboard::Selection ); TQClipboard::Selection );
kapp->tqclipboard()->setData( KBookmarkDrag::newDrag(bookmark, 0), kapp->tqclipboard()->setData( KBookmarkDrag::newDrag(bookmark, 0),
QClipboard::Clipboard ); TQClipboard::Clipboard );
} }
} }
@ -609,8 +609,8 @@ void KBookmarkMenu::fillBookmarkMenu()
new KBookmarkMenu( m_pManager, m_pOwner, actionMenu->popupMenu(), new KBookmarkMenu( m_pManager, m_pOwner, actionMenu->popupMenu(),
m_actionCollection, false, m_actionCollection, false,
m_bAddBookmark, TQString::null ); m_bAddBookmark, TQString::null );
connect( subMenu, TQT_SIGNAL( openBookmark( const TQString &, Qt::ButtonState ) ), connect( subMenu, TQT_SIGNAL( openBookmark( const TQString &, TQt::ButtonState ) ),
this, TQT_SIGNAL( openBookmark( const TQString &, Qt::ButtonState ) )); this, TQT_SIGNAL( openBookmark( const TQString &, TQt::ButtonState ) ));
m_lstSubMenus.append(subMenu); m_lstSubMenus.append(subMenu);
connect(actionMenu->popupMenu(), TQT_SIGNAL(aboutToShow()), subMenu, TQT_SLOT(slotNSLoad())); connect(actionMenu->popupMenu(), TQT_SIGNAL(aboutToShow()), subMenu, TQT_SLOT(slotNSLoad()));
@ -639,8 +639,8 @@ void KBookmarkMenu::fillBookmarkMenu()
{ {
//kdDebug(7043) << "Creating URL bookmark menu item for " << bm.text() << endl; //kdDebug(7043) << "Creating URL bookmark menu item for " << bm.text() << endl;
KAction * action = new KBookmarkAction( text, bm.icon(), 0, m_actionCollection, 0 ); KAction * action = new KBookmarkAction( text, bm.icon(), 0, m_actionCollection, 0 );
connect(action, TQT_SIGNAL( activated ( KAction::ActivationReason, Qt::ButtonState )), connect(action, TQT_SIGNAL( activated ( KAction::ActivationReason, TQt::ButtonState )),
this, TQT_SLOT( slotBookmarkSelected( KAction::ActivationReason, Qt::ButtonState ) )); this, TQT_SLOT( slotBookmarkSelected( KAction::ActivationReason, TQt::ButtonState ) ));
action->setProperty( "url", bm.url().url() ); action->setProperty( "url", bm.url().url() );
action->setProperty( "address", bm.address() ); action->setProperty( "address", bm.address() );
@ -668,8 +668,8 @@ void KBookmarkMenu::fillBookmarkMenu()
connect(subMenu, TQT_SIGNAL( aboutToShowContextMenu( const KBookmark &, TQPopupMenu * ) ), connect(subMenu, TQT_SIGNAL( aboutToShowContextMenu( const KBookmark &, TQPopupMenu * ) ),
this, TQT_SIGNAL( aboutToShowContextMenu( const KBookmark &, TQPopupMenu * ) )); this, TQT_SIGNAL( aboutToShowContextMenu( const KBookmark &, TQPopupMenu * ) ));
connect(subMenu, TQT_SIGNAL( openBookmark( const TQString &, Qt::ButtonState ) ), connect(subMenu, TQT_SIGNAL( openBookmark( const TQString &, TQt::ButtonState ) ),
this, TQT_SIGNAL( openBookmark( const TQString &, Qt::ButtonState ) )); this, TQT_SIGNAL( openBookmark( const TQString &, TQt::ButtonState ) ));
m_lstSubMenus.append( subMenu ); m_lstSubMenus.append( subMenu );
} }
} }
@ -1058,8 +1058,8 @@ void KBookmarkMenuNSImporter::newBookmark( const TQString & text, const TQCStrin
TQString _text = KStringHandler::csqueeze(text); TQString _text = KStringHandler::csqueeze(text);
_text.replace( '&', "&&" ); _text.replace( '&', "&&" );
KAction * action = new KBookmarkAction(_text, "html", 0, 0, "", m_actionCollection, 0); KAction * action = new KBookmarkAction(_text, "html", 0, 0, "", m_actionCollection, 0);
connect(action, TQT_SIGNAL( activated ( KAction::ActivationReason, Qt::ButtonState )), connect(action, TQT_SIGNAL( activated ( KAction::ActivationReason, TQt::ButtonState )),
m_menu, TQT_SLOT( slotBookmarkSelected( KAction::ActivationReason, Qt::ButtonState ) )); m_menu, TQT_SLOT( slotBookmarkSelected( KAction::ActivationReason, TQt::ButtonState ) ));
action->setProperty( "url", url ); action->setProperty( "url", url );
action->setToolTip( url ); action->setToolTip( url );
action->plug( mstack.top()->m_parentMenu ); action->plug( mstack.top()->m_parentMenu );
@ -1076,8 +1076,8 @@ void KBookmarkMenuNSImporter::newFolder( const TQString & text, bool, const TQSt
KBookmarkMenu *subMenu = new KBookmarkMenu( m_pManager, m_menu->m_pOwner, actionMenu->popupMenu(), KBookmarkMenu *subMenu = new KBookmarkMenu( m_pManager, m_menu->m_pOwner, actionMenu->popupMenu(),
m_actionCollection, false, m_actionCollection, false,
m_menu->m_bAddBookmark, TQString::null ); m_menu->m_bAddBookmark, TQString::null );
connect( subMenu, TQT_SIGNAL( openBookmark( const TQString &, Qt::ButtonState ) ), connect( subMenu, TQT_SIGNAL( openBookmark( const TQString &, TQt::ButtonState ) ),
m_menu, TQT_SIGNAL( openBookmark( const TQString &, Qt::ButtonState ) )); m_menu, TQT_SIGNAL( openBookmark( const TQString &, TQt::ButtonState ) ));
mstack.top()->m_lstSubMenus.append( subMenu ); mstack.top()->m_lstSubMenus.append( subMenu );
mstack.push(subMenu); mstack.push(subMenu);

@ -1269,8 +1269,8 @@ void KDirOperator::setupActions()
mkdirAction = new KAction( i18n("New Folder..."), 0, mkdirAction = new KAction( i18n("New Folder..."), 0,
TQT_TQOBJECT(this), TQT_SLOT( mkdir() ), myActionCollection, "mkdir" ); TQT_TQOBJECT(this), TQT_SLOT( mkdir() ), myActionCollection, "mkdir" );
KAction* trash = new KAction( i18n( "Move to Trash" ), "edittrash", Key_Delete, myActionCollection, "trash" ); KAction* trash = new KAction( i18n( "Move to Trash" ), "edittrash", Key_Delete, myActionCollection, "trash" );
connect( trash, TQT_SIGNAL( activated( KAction::ActivationReason, Qt::ButtonState ) ), connect( trash, TQT_SIGNAL( activated( KAction::ActivationReason, TQt::ButtonState ) ),
this, TQT_SLOT( trashSelected( KAction::ActivationReason, Qt::ButtonState ) ) ); this, TQT_SLOT( trashSelected( KAction::ActivationReason, TQt::ButtonState ) ) );
new KAction( i18n( "Delete" ), "editdelete", SHIFT+Key_Delete, TQT_TQOBJECT(this), new KAction( i18n( "Delete" ), "editdelete", SHIFT+Key_Delete, TQT_TQOBJECT(this),
TQT_SLOT( deleteSelected() ), myActionCollection, "delete" ); TQT_SLOT( deleteSelected() ), myActionCollection, "delete" );
mkdirAction->setIcon( TQString::tqfromLatin1("folder_new") ); mkdirAction->setIcon( TQString::tqfromLatin1("folder_new") );

@ -170,7 +170,7 @@ KEncodingFileDialog::Result KEncodingFileDialog::getSaveFileNameAndEncoding(cons
TQWidget *parent, TQWidget *parent,
const TQString& caption) const TQString& caption)
{ {
bool specialDir = dir.at(0) == ':'; bool specialDir = dir.tqat(0) == ':';
KEncodingFileDialog dlg(specialDir?dir:TQString::null, encoding,filter,caption.isNull() ? i18n("Save As") : caption, KEncodingFileDialog dlg(specialDir?dir:TQString::null, encoding,filter,caption.isNull() ? i18n("Save As") : caption,
Saving,parent, "filedialog", true); Saving,parent, "filedialog", true);
@ -193,7 +193,7 @@ KEncodingFileDialog::Result KEncodingFileDialog::getSaveURLAndEncoding(const TQ
const TQString& dir, const TQString& filter, const TQString& dir, const TQString& filter,
TQWidget *parent, const TQString& caption) TQWidget *parent, const TQString& caption)
{ {
bool specialDir = dir.at(0) == ':'; bool specialDir = dir.tqat(0) == ':';
KEncodingFileDialog dlg(specialDir?dir:TQString::null, encoding,filter,caption.isNull() ? i18n("Save As") : KEncodingFileDialog dlg(specialDir?dir:TQString::null, encoding,filter,caption.isNull() ? i18n("Save As") :
caption, Saving,parent, "filedialog", true); caption, Saving,parent, "filedialog", true);

@ -1595,7 +1595,7 @@ TQString KFileDialog::getSaveFileName(const TQString& dir, const TQString& filte
TQWidget *parent, TQWidget *parent,
const TQString& caption) const TQString& caption)
{ {
bool specialDir = dir.at(0) == ':'; bool specialDir = dir.tqat(0) == ':';
KFileDialog dlg( specialDir ? dir : TQString::null, filter, parent, "filedialog", true); KFileDialog dlg( specialDir ? dir : TQString::null, filter, parent, "filedialog", true);
if ( !specialDir ) if ( !specialDir )
dlg.setSelection( dir ); // may also be a filename dlg.setSelection( dir ); // may also be a filename
@ -1616,7 +1616,7 @@ TQString KFileDialog::getSaveFileNameWId(const TQString& dir, const TQString& fi
WId parent_id, WId parent_id,
const TQString& caption) const TQString& caption)
{ {
bool specialDir = dir.at(0) == ':'; bool specialDir = dir.tqat(0) == ':';
TQWidget* parent = TQT_TQWIDGET(TQWidget::find( parent_id )); TQWidget* parent = TQT_TQWIDGET(TQWidget::find( parent_id ));
KFileDialog dlg( specialDir ? dir : TQString::null, filter, parent, "filedialog", true); KFileDialog dlg( specialDir ? dir : TQString::null, filter, parent, "filedialog", true);
#ifdef Q_WS_X11 #ifdef Q_WS_X11
@ -1644,7 +1644,7 @@ TQString KFileDialog::getSaveFileNameWId(const TQString& dir, const TQString& fi
KURL KFileDialog::getSaveURL(const TQString& dir, const TQString& filter, KURL KFileDialog::getSaveURL(const TQString& dir, const TQString& filter,
TQWidget *parent, const TQString& caption) TQWidget *parent, const TQString& caption)
{ {
bool specialDir = dir.at(0) == ':'; bool specialDir = dir.tqat(0) == ':';
KFileDialog dlg(specialDir ? dir : TQString::null, filter, parent, "filedialog", true); KFileDialog dlg(specialDir ? dir : TQString::null, filter, parent, "filedialog", true);
if ( !specialDir ) if ( !specialDir )
dlg.setSelection( dir ); // may also be a filename dlg.setSelection( dir ); // may also be a filename
@ -1950,7 +1950,7 @@ void KFileDialog::updateAutoSelectExtension (void)
// first try X-KDE-NativeExtension // first try X-KDE-NativeExtension
TQString nativeExtension = mime->property ("X-KDE-NativeExtension").toString (); TQString nativeExtension = mime->property ("X-KDE-NativeExtension").toString ();
if (nativeExtension.at (0) == '.') if (nativeExtension.tqat (0) == '.')
{ {
d->extension = nativeExtension.lower (); d->extension = nativeExtension.lower ();
kdDebug (kfile_area) << "\tsetMimeFilter-style: native ext=\'" kdDebug (kfile_area) << "\tsetMimeFilter-style: native ext=\'"
@ -2361,7 +2361,7 @@ void KFileDialog::setNonExtSelection()
TQString pattern, filename = locationEdit->currentText().stripWhiteSpace(); TQString pattern, filename = locationEdit->currentText().stripWhiteSpace();
KServiceTypeFactory::self()->findFromPattern( filename, &pattern ); KServiceTypeFactory::self()->findFromPattern( filename, &pattern );
if ( !pattern.isEmpty() && pattern.at( 0 ) == '*' && pattern.tqfind( '*' , 1 ) == -1 ) if ( !pattern.isEmpty() && pattern.tqat( 0 ) == '*' && pattern.tqfind( '*' , 1 ) == -1 )
locationEdit->lineEdit()->setSelection( 0, filename.length() - pattern.stripWhiteSpace().length()+1 ); locationEdit->lineEdit()->setSelection( 0, filename.length() - pattern.stripWhiteSpace().length()+1 );
else else
{ {

@ -95,7 +95,7 @@ TQString KFileFilterCombo::currentFilter() const
{ {
TQString f = currentText(); TQString f = currentText();
if (f == text(currentItem())) { // user didn't edit the text if (f == text(currentItem())) { // user didn't edit the text
f = *filters.at(currentItem()); f = *filters.tqat(currentItem());
if ( d->isMimeFilter || (currentItem() == 0 && d->hasAllSupportedFiles) ) { if ( d->isMimeFilter || (currentItem() == 0 && d->hasAllSupportedFiles) ) {
return f; // we have a mimetype as filter return f; // we have a mimetype as filter
} }

@ -340,10 +340,10 @@ void KFileIconView::insertItem( KFileItem *i )
TQIconView* qview = static_cast<TQIconView*>( this ); TQIconView* qview = static_cast<TQIconView*>( this );
// Since creating and initializing an item leads to a tqrepaint, // Since creating and initializing an item leads to a tqrepaint,
// we disable updates on the IconView for a while. // we disable updates on the IconView for a while.
qview->setUpdatesEnabled( false ); qview->tqsetUpdatesEnabled( false );
KFileIconViewItem *item = new KFileIconViewItem( qview, i ); KFileIconViewItem *item = new KFileIconViewItem( qview, i );
initItem( item, i, true ); initItem( item, i, true );
qview->setUpdatesEnabled( true ); qview->tqsetUpdatesEnabled( true );
if ( !i->isMimeTypeKnown() ) if ( !i->isMimeTypeKnown() )
m_resolver->m_lstPendingMimeIconItems.append( item ); m_resolver->m_lstPendingMimeIconItems.append( item );
@ -632,7 +632,7 @@ bool KFileIconView::canPreview( const KFileItem *item ) const
for ( ; it != d->previewMimeTypes.end(); ++it ) { for ( ; it != d->previewMimeTypes.end(); ++it ) {
TQString type = *it; TQString type = *it;
// the "mimetype" can be "image/*" // the "mimetype" can be "image/*"
if ( type.at( type.length() - 1 ) == '*' ) { if ( type.tqat( type.length() - 1 ) == '*' ) {
r.setPattern( type ); r.setPattern( type );
if ( r.search( item->mimetype() ) != -1 ) if ( r.search( item->mimetype() ) != -1 )
return true; return true;

@ -122,7 +122,7 @@ void KIconCanvas::slotLoadFiles()
TQApplication::setOverrideCursor(tqwaitCursor); TQApplication::setOverrideCursor(tqwaitCursor);
// disable updates to not trigger paint events when adding child items // disable updates to not trigger paint events when adding child items
setUpdatesEnabled( false ); tqsetUpdatesEnabled( false );
#ifdef HAVE_LIBART #ifdef HAVE_LIBART
KSVGIconEngine *svgEngine = new KSVGIconEngine(); KSVGIconEngine *svgEngine = new KSVGIconEngine();
@ -191,7 +191,7 @@ void KIconCanvas::slotLoadFiles()
#endif #endif
// enable updates since we have to draw the whole view now // enable updates since we have to draw the whole view now
setUpdatesEnabled( true ); tqsetUpdatesEnabled( true );
TQApplication::restoreOverrideCursor(); TQApplication::restoreOverrideCursor();
d->m_bLoading = false; d->m_bLoading = false;
@ -268,11 +268,11 @@ void KIconDialog::init()
top->setSpacing( spacingHint() ); top->setSpacing( spacingHint() );
TQButtonGroup *bgroup = new TQButtonGroup(0, Qt::Vertical, i18n("Icon Source"), main); TQButtonGroup *bgroup = new TQButtonGroup(0, Qt::Vertical, i18n("Icon Source"), main);
bgroup->layout()->setSpacing(KDialog::spacingHint()); bgroup->tqlayout()->setSpacing(KDialog::spacingHint());
bgroup->layout()->setMargin(KDialog::marginHint()); bgroup->tqlayout()->setMargin(KDialog::marginHint());
top->addWidget(bgroup); top->addWidget(bgroup);
connect(bgroup, TQT_SIGNAL(clicked(int)), TQT_SLOT(slotButtonClicked(int))); connect(bgroup, TQT_SIGNAL(clicked(int)), TQT_SLOT(slotButtonClicked(int)));
TQGridLayout *grid = new TQGridLayout(bgroup->layout(), 3, 2); TQGridLayout *grid = new TQGridLayout(bgroup->tqlayout(), 3, 2);
mpRb1 = new TQRadioButton(i18n("S&ystem icons:"), bgroup); mpRb1 = new TQRadioButton(i18n("S&ystem icons:"), bgroup);
grid->addWidget(mpRb1, 1, 0); grid->addWidget(mpRb1, 1, 0);
mpCombo = new TQComboBox(bgroup); mpCombo = new TQComboBox(bgroup);

@ -374,7 +374,7 @@ Application * KNotifyWidget::addApplicationEvents( const TQString& path )
kdDebug() << "**** knotify: adding path: " << path << endl; kdDebug() << "**** knotify: adding path: " << path << endl;
TQString relativePath = path; TQString relativePath = path;
if ( path.at(0) == '/' && KStandardDirs::exists( path ) ) if ( path.tqat(0) == '/' && KStandardDirs::exists( path ) )
relativePath = makeRelative( path ); relativePath = makeRelative( path );
if ( !relativePath.isEmpty() ) if ( !relativePath.isEmpty() )

@ -576,7 +576,7 @@ void KPropertiesDialog::rename( const TQString& _name )
else else
{ {
TQString tmpurl = m_singleUrl.url(); TQString tmpurl = m_singleUrl.url();
if ( tmpurl.at(tmpurl.length() - 1) == '/') if ( tmpurl.tqat(tmpurl.length() - 1) == '/')
// It's a directory, so strip the trailing slash first // It's a directory, so strip the trailing slash first
tmpurl.truncate( tmpurl.length() - 1); tmpurl.truncate( tmpurl.length() - 1);
newUrl = tmpurl; newUrl = tmpurl;
@ -908,7 +908,7 @@ KFilePropsPlugin::KFilePropsPlugin( KPropertiesDialog *_props )
// Enhanced rename: Don't highlight the file extension. // Enhanced rename: Don't highlight the file extension.
TQString pattern; TQString pattern;
KServiceTypeFactory::self()->findFromPattern( filename, &pattern ); KServiceTypeFactory::self()->findFromPattern( filename, &pattern );
if (!pattern.isEmpty() && pattern.at(0)=='*' && pattern.tqfind('*',1)==-1) if (!pattern.isEmpty() && pattern.tqat(0)=='*' && pattern.tqfind('*',1)==-1)
d->m_lined->setSelection(0, filename.length()-pattern.stripWhiteSpace().length()+1); d->m_lined->setSelection(0, filename.length()-pattern.stripWhiteSpace().length()+1);
else else
{ {
@ -1654,11 +1654,11 @@ KFilePermissionsPropsPlugin::KFilePermissionsPropsPlugin( KPropertiesDialog *_pr
/* Group: Access Permissions */ /* Group: Access Permissions */
gb = new TQGroupBox ( 0, Qt::Vertical, i18n("Access Permissions"), d->m_frame ); gb = new TQGroupBox ( 0, Qt::Vertical, i18n("Access Permissions"), d->m_frame );
gb->layout()->setSpacing(KDialog::spacingHint()); gb->tqlayout()->setSpacing(KDialog::spacingHint());
gb->layout()->setMargin(KDialog::marginHint()); gb->tqlayout()->setMargin(KDialog::marginHint());
box->addWidget (gb); box->addWidget (gb);
gl = new TQGridLayout (gb->layout(), 7, 2); gl = new TQGridLayout (gb->tqlayout(), 7, 2);
gl->setColStretch(1, 1); gl->setColStretch(1, 1);
l = d->explanationLabel = new TQLabel( "", gb ); l = d->explanationLabel = new TQLabel( "", gb );
@ -1723,11 +1723,11 @@ KFilePermissionsPropsPlugin::KFilePermissionsPropsPlugin( KPropertiesDialog *_pr
/**** Group: Ownership ****/ /**** Group: Ownership ****/
gb = new TQGroupBox ( 0, Qt::Vertical, i18n("Ownership"), d->m_frame ); gb = new TQGroupBox ( 0, Qt::Vertical, i18n("Ownership"), d->m_frame );
gb->layout()->setSpacing(KDialog::spacingHint()); gb->tqlayout()->setSpacing(KDialog::spacingHint());
gb->layout()->setMargin(KDialog::marginHint()); gb->tqlayout()->setMargin(KDialog::marginHint());
box->addWidget (gb); box->addWidget (gb);
gl = new TQGridLayout (gb->layout(), 4, 3); gl = new TQGridLayout (gb->tqlayout(), 4, 3);
gl->addRowSpacing(0, 10); gl->addRowSpacing(0, 10);
/*** Set Owner ***/ /*** Set Owner ***/
@ -1915,10 +1915,10 @@ void KFilePermissionsPropsPlugin::slotShowAdvancedPermissions() {
// Group: Access Permissions // Group: Access Permissions
gb = new TQGroupBox ( 0, Qt::Vertical, i18n("Access Permissions"), mainVBox ); gb = new TQGroupBox ( 0, Qt::Vertical, i18n("Access Permissions"), mainVBox );
gb->layout()->setSpacing(KDialog::spacingHint()); gb->tqlayout()->setSpacing(KDialog::spacingHint());
gb->layout()->setMargin(KDialog::marginHint()); gb->tqlayout()->setMargin(KDialog::marginHint());
gl = new TQGridLayout (gb->layout(), 6, 6); gl = new TQGridLayout (gb->tqlayout(), 6, 6);
gl->addRowSpacing(0, 10); gl->addRowSpacing(0, 10);
TQValueVector<TQWidget*> theNotSpecials; TQValueVector<TQWidget*> theNotSpecials;
@ -3635,7 +3635,7 @@ KExecPropsPlugin::KExecPropsPlugin( KPropertiesDialog *_props )
mainlayout->addWidget(tmpQGroupBox); mainlayout->addWidget(tmpQGroupBox);
TQGridLayout *grid = new TQGridLayout(tmpQGroupBox->layout(), 2, 2); TQGridLayout *grid = new TQGridLayout(tmpQGroupBox->tqlayout(), 2, 2);
grid->setSpacing( KDialog::spacingHint() ); grid->setSpacing( KDialog::spacingHint() );
grid->setColStretch(1, 1); grid->setColStretch(1, 1);
@ -3662,7 +3662,7 @@ KExecPropsPlugin::KExecPropsPlugin( KPropertiesDialog *_props )
mainlayout->addWidget(tmpQGroupBox); mainlayout->addWidget(tmpQGroupBox);
grid = new TQGridLayout(tmpQGroupBox->layout(), 3, 2); grid = new TQGridLayout(tmpQGroupBox->tqlayout(), 3, 2);
grid->setSpacing( KDialog::spacingHint() ); grid->setSpacing( KDialog::spacingHint() );
grid->setColStretch(1, 1); grid->setColStretch(1, 1);
@ -3701,7 +3701,7 @@ KExecPropsPlugin::KExecPropsPlugin( KPropertiesDialog *_props )
mainlayout->addWidget(tmpQGroupBox); mainlayout->addWidget(tmpQGroupBox);
grid = new TQGridLayout(tmpQGroupBox->layout(), 2, 2); grid = new TQGridLayout(tmpQGroupBox->tqlayout(), 2, 2);
grid->setSpacing(KDialog::spacingHint()); grid->setSpacing(KDialog::spacingHint());
grid->setColStretch(1, 1); grid->setColStretch(1, 1);

@ -1010,7 +1010,7 @@ KURL KURLBarItemDialog::url() const
{ {
TQString text = m_urlEdit->url(); TQString text = m_urlEdit->url();
KURL u; KURL u;
if ( text.at(0) == '/' ) if ( text.tqat(0) == '/' )
u.setPath( text ); u.setPath( text );
else else
u = text; u = text;

@ -87,7 +87,7 @@ TQStringList KURLComboBox::urls() const
for ( int i = defaultList.count(); i < count(); i++ ) { for ( int i = defaultList.count(); i < count(); i++ ) {
url = text( i ); url = text( i );
if ( !url.isEmpty() ) { if ( !url.isEmpty() ) {
//if ( url.at(0) == '/' ) //if ( url.tqat(0) == '/' )
// list.append( url.prepend( fileProt ) ); // list.append( url.prepend( fileProt ) );
//else //else
list.append( url ); list.append( url );
@ -129,7 +129,7 @@ void KURLComboBox::setDefaults()
KURLComboItem *item; KURLComboItem *item;
for ( unsigned int id = 0; id < defaultList.count(); id++ ) { for ( unsigned int id = 0; id < defaultList.count(); id++ ) {
item = defaultList.at( id ); item = defaultList.tqat( id );
insertURLItem( item ); insertURLItem( item );
} }
} }

@ -4533,7 +4533,7 @@ void MultiGetJob::slotFinished()
// return slave to pool // return slave to pool
// fetch new slave for first entry in m_waitQueue and call start // fetch new slave for first entry in m_waitQueue and call start
// again. // again.
GetRequest *entry = m_waitQueue.at(0); GetRequest *entry = m_waitQueue.tqat(0);
m_url = entry->url; m_url = entry->url;
slaveDone(); slaveDone();
Scheduler::doJob(this); Scheduler::doJob(this);

@ -98,7 +98,7 @@ bool KAr::openArchive( int mode )
TQCString name; TQCString name;
int date, uid, gid, mode, size; int date, uid, gid, mode, size;
dev->at( dev->at() + (2 - (dev->at() % 2)) % 2 ); // Ar headers are padded to byte boundary dev->tqat( dev->tqat() + (2 - (dev->tqat() % 2)) % 2 ); // Ar headers are padded to byte boundary
if ( dev->readBlock (ar_header.data(), 60) != 60 ) { // Read ar header if ( dev->readBlock (ar_header.data(), 60) != 60 ) { // Read ar header
kdWarning(7042) << "Couldn't read header" << endl; kdWarning(7042) << "Couldn't read header" << endl;
@ -131,7 +131,7 @@ bool KAr::openArchive( int mode )
kdDebug(7042) << "Read in longnames entry" << endl; kdDebug(7042) << "Read in longnames entry" << endl;
} else if (name.mid(1, 1) == " ") { // Symbol table entry } else if (name.mid(1, 1) == " ") { // Symbol table entry
kdDebug(7042) << "Skipped symbol entry" << endl; kdDebug(7042) << "Skipped symbol entry" << endl;
dev->at( dev->at() + size ); dev->tqat( dev->tqat() + size );
skip_entry = true; skip_entry = true;
} else { // Longfilename } else { // Longfilename
kdDebug(7042) << "Longfilename #" << name.mid(1, 15).toInt() << endl; kdDebug(7042) << "Longfilename #" << name.mid(1, 15).toInt() << endl;
@ -150,10 +150,10 @@ bool KAr::openArchive( int mode )
kdDebug(7042) << "Filename: " << name << " Size: " << size << endl; kdDebug(7042) << "Filename: " << name << " Size: " << size << endl;
KArchiveEntry* entry; KArchiveEntry* entry;
entry = new KArchiveFile(this, name, mode, date, /*uid*/ 0, /*gid*/ 0, 0, dev->at(), size); entry = new KArchiveFile(this, name, mode, date, /*uid*/ 0, /*gid*/ 0, 0, dev->tqat(), size);
rootDir()->addEntry(entry); // Ar files don't support directorys, so everything in root rootDir()->addEntry(entry); // Ar files don't support directorys, so everything in root
dev->at( dev->at() + size ); // Skip contents dev->tqat( dev->tqat() + size ); // Skip contents
} }
delete[] ar_longnames; delete[] ar_longnames;

@ -491,7 +491,7 @@ int KArchiveFile::size() const
TQByteArray KArchiveFile::data() const TQByteArray KArchiveFile::data() const
{ {
archive()->device()->at( m_pos ); archive()->device()->tqat( m_pos );
// Read content // Read content
TQByteArray arr( m_size ); TQByteArray arr( m_size );

@ -56,7 +56,7 @@ public:
else else
ok = m_dev->open( m ); ok = m_dev->open( m );
if ( ok )*/ if ( ok )*/
m_dev->at( m_start ); // No concurrent access ! m_dev->tqat( m_start ); // No concurrent access !
} }
else else
kdWarning(7005) << "KLimitedIODevice::open only supports IO_ReadOnly!" << endl; kdWarning(7005) << "KLimitedIODevice::open only supports IO_ReadOnly!" << endl;
@ -89,13 +89,13 @@ public:
return c[0]; return c[0];
} }
virtual int ungetch( int c ) { return m_dev->ungetch(c); } // ## apply lower limit ? virtual int ungetch( int c ) { return m_dev->ungetch(c); } // ## apply lower limit ?
virtual Offset at() const { return m_dev->at() - m_start; } virtual Offset at() const { return m_dev->tqat() - m_start; }
virtual bool at( Offset pos ) { virtual bool at( Offset pos ) {
Q_ASSERT( pos <= m_length ); Q_ASSERT( pos <= m_length );
pos = QMIN( pos, m_length ); // Apply upper limit pos = QMIN( pos, m_length ); // Apply upper limit
return m_dev->at( m_start + pos ); return m_dev->tqat( m_start + pos );
} }
virtual bool atEnd() const { return m_dev->atEnd() || m_dev->at() >= m_start + m_length; } virtual bool atEnd() const { return m_dev->atEnd() || m_dev->tqat() >= m_start + m_length; }
private: private:
TQIODevice* m_dev; TQIODevice* m_dev;
TQ_ULONG m_start; TQ_ULONG m_start;

@ -52,14 +52,14 @@ KServiceFactory::KServiceFactory()
(*m_str) >> i; (*m_str) >> i;
m_menuIdDictOffset = i; m_menuIdDictOffset = i;
int saveOffset = m_str->tqdevice()->at(); int saveOffset = m_str->tqdevice()->tqat();
// Init index tables // Init index tables
m_nameDict = new KSycocaDict(m_str, m_nameDictOffset); m_nameDict = new KSycocaDict(m_str, m_nameDictOffset);
// Init index tables // Init index tables
m_relNameDict = new KSycocaDict(m_str, m_relNameDictOffset); m_relNameDict = new KSycocaDict(m_str, m_relNameDictOffset);
// Init index tables // Init index tables
m_menuIdDict = new KSycocaDict(m_str, m_menuIdDictOffset); m_menuIdDict = new KSycocaDict(m_str, m_menuIdDictOffset);
saveOffset = m_str->tqdevice()->at(saveOffset); saveOffset = m_str->tqdevice()->tqat(saveOffset);
} }
else else
{ {
@ -225,7 +225,7 @@ KService::List KServiceFactory::allInitServices()
// Assume we're NOT building a database // Assume we're NOT building a database
m_str->tqdevice()->at(m_initListOffset); m_str->tqdevice()->tqat(m_initListOffset);
TQ_INT32 entryCount; TQ_INT32 entryCount;
(*m_str) >> entryCount; (*m_str) >> entryCount;
@ -253,7 +253,7 @@ KService::List KServiceFactory::offers( int serviceTypeOffset )
TQDataStream *str = m_str; TQDataStream *str = m_str;
// Jump to the offer list // Jump to the offer list
str->tqdevice()->at( m_offerListOffset ); str->tqdevice()->tqat( m_offerListOffset );
TQ_INT32 aServiceTypeOffset; TQ_INT32 aServiceTypeOffset;
TQ_INT32 aServiceOffset; TQ_INT32 aServiceOffset;
@ -268,13 +268,13 @@ KService::List KServiceFactory::offers( int serviceTypeOffset )
if ( aServiceTypeOffset == serviceTypeOffset ) if ( aServiceTypeOffset == serviceTypeOffset )
{ {
// Save stream position ! // Save stream position !
int savedPos = str->tqdevice()->at(); int savedPos = str->tqdevice()->tqat();
// Create Service // Create Service
KService * serv = createEntry( aServiceOffset ); KService * serv = createEntry( aServiceOffset );
if (serv) if (serv)
list.append( KService::Ptr( serv ) ); list.append( KService::Ptr( serv ) );
// Restore position // Restore position
str->tqdevice()->at( savedPos ); str->tqdevice()->tqat( savedPos );
} else if ( aServiceTypeOffset > (TQ_INT32)serviceTypeOffset ) } else if ( aServiceTypeOffset > (TQ_INT32)serviceTypeOffset )
break; // too far break; // too far
} }

@ -40,10 +40,10 @@ KServiceGroupFactory::KServiceGroupFactory()
(*m_str) >> i; (*m_str) >> i;
m_baseGroupDictOffset = i; m_baseGroupDictOffset = i;
int saveOffset = m_str->tqdevice()->at(); int saveOffset = m_str->tqdevice()->tqat();
// Init index tables // Init index tables
m_baseGroupDict = new KSycocaDict(m_str, m_baseGroupDictOffset); m_baseGroupDict = new KSycocaDict(m_str, m_baseGroupDictOffset);
m_str->tqdevice()->at(saveOffset); m_str->tqdevice()->tqat(saveOffset);
} }
else else
{ {

@ -118,14 +118,14 @@ KMimeType * KServiceTypeFactory::findFromPattern(const TQString &_filename, TQSt
// Get stream to the header // Get stream to the header
TQDataStream *str = m_str; TQDataStream *str = m_str;
str->tqdevice()->at( m_fastPatternOffset ); str->tqdevice()->tqat( m_fastPatternOffset );
TQ_INT32 nrOfEntries; TQ_INT32 nrOfEntries;
(*str) >> nrOfEntries; (*str) >> nrOfEntries;
TQ_INT32 entrySize; TQ_INT32 entrySize;
(*str) >> entrySize; (*str) >> entrySize;
TQ_INT32 fastOffset = str->tqdevice()->at( ); TQ_INT32 fastOffset = str->tqdevice()->tqat( );
TQ_INT32 matchingOffset = 0; TQ_INT32 matchingOffset = 0;
@ -145,7 +145,7 @@ KMimeType * KServiceTypeFactory::findFromPattern(const TQString &_filename, TQSt
while (left <= right) { while (left <= right) {
middle = (left + right) / 2; middle = (left + right) / 2;
// read pattern at position "middle" // read pattern at position "middle"
str->tqdevice()->at( middle * entrySize + fastOffset ); str->tqdevice()->tqat( middle * entrySize + fastOffset );
KSycocaEntry::read(*str, pattern); KSycocaEntry::read(*str, pattern);
int cmp = pattern.compare( extension ); int cmp = pattern.compare( extension );
if (cmp < 0) if (cmp < 0)
@ -166,7 +166,7 @@ KMimeType * KServiceTypeFactory::findFromPattern(const TQString &_filename, TQSt
// Now try the "other" Pattern table // Now try the "other" Pattern table
if ( m_patterns.isEmpty() ) { if ( m_patterns.isEmpty() ) {
str->tqdevice()->at( m_otherPatternOffset ); str->tqdevice()->tqat( m_otherPatternOffset );
TQString pattern; TQString pattern;
TQ_INT32 mimetypeOffset; TQ_INT32 mimetypeOffset;

@ -95,7 +95,7 @@ KShred::fillbyte(unsigned int byte)
} }
if (!flush()) if (!flush())
return false; return false;
return file->at(0); return file->tqat(0);
} }
@ -114,7 +114,7 @@ KShred::fillpattern(unsigned char *data, unsigned int size)
} }
if (!flush()) if (!flush())
return false; return false;
return file->at(0); return file->tqat(0);
} }
@ -140,7 +140,7 @@ KShred::fillrandom()
} }
if (!flush()) if (!flush())
return false; return false;
return file->at(0); return file->tqat(0);
} }

@ -461,14 +461,14 @@ bool KTar::openArchive( int mode )
//kdDebug(7041) << "KTar::openArchive file " << nm << " size=" << size << endl; //kdDebug(7041) << "KTar::openArchive file " << nm << " size=" << size << endl;
e = new KArchiveFile( this, nm, access, time, user, group, symlink, e = new KArchiveFile( this, nm, access, time, user, group, symlink,
dev->at(), size ); dev->tqat(), size );
} }
// Skip contents + align bytes // Skip contents + align bytes
int rest = size % 0x200; int rest = size % 0x200;
int skip = size + (rest ? 0x200 - rest : 0); int skip = size + (rest ? 0x200 - rest : 0);
//kdDebug(7041) << "KTar::openArchive, at()=" << dev->at() << " rest=" << rest << " skipping " << skip << endl; //kdDebug(7041) << "KTar::openArchive, at()=" << dev->tqat() << " rest=" << rest << " skipping " << skip << endl;
if (! dev->at( dev->at() + skip ) ) if (! dev->tqat( dev->tqat() + skip ) )
kdWarning(7041) << "KTar::openArchive skipping " << skip << " failed" << endl; kdWarning(7041) << "KTar::openArchive skipping " << skip << " failed" << endl;
} }
@ -495,7 +495,7 @@ bool KTar::openArchive( int mode )
else else
{ {
//qDebug("Terminating. Read %d bytes, first one is %d", n, buffer[0]); //qDebug("Terminating. Read %d bytes, first one is %d", n, buffer[0]);
d->tarEnd = dev->at() - n; // Remember end of archive d->tarEnd = dev->tqat() - n; // Remember end of archive
ende = true; ende = true;
} }
} while( !ende ); } while( !ende );
@ -591,7 +591,7 @@ bool KTar::writeDir( const TQString& name, const TQString& user, const TQString&
char buffer[ 0x201 ]; char buffer[ 0x201 ];
memset( buffer, 0, 0x200 ); memset( buffer, 0, 0x200 );
if ( mode() & IO_ReadWrite ) device()->at(d->tarEnd); // Go to end of archive as might have moved with a read if ( mode() & IO_ReadWrite ) device()->tqat(d->tarEnd); // Go to end of archive as might have moved with a read
// If more than 100 chars, we need to use the LongLink trick // If more than 100 chars, we need to use the LongLink trick
if ( dirName.length() > 99 ) if ( dirName.length() > 99 )
@ -616,7 +616,7 @@ bool KTar::writeDir( const TQString& name, const TQString& user, const TQString&
// Write header // Write header
device()->writeBlock( buffer, 0x200 ); device()->writeBlock( buffer, 0x200 );
if ( mode() & IO_ReadWrite ) d->tarEnd = device()->at(); if ( mode() & IO_ReadWrite ) d->tarEnd = device()->tqat();
d->dirList.append( dirName ); // contains trailing slash d->dirList.append( dirName ); // contains trailing slash
return true; // TODO if wanted, better error control return true; // TODO if wanted, better error control
@ -636,7 +636,7 @@ bool KTar::doneWriting( uint size )
// Write tqalignment // Write tqalignment
int rest = size % 0x200; int rest = size % 0x200;
if ( mode() & IO_ReadWrite ) if ( mode() & IO_ReadWrite )
d->tarEnd = device()->at() + (rest ? 0x200 - rest : 0); // Record our new end of archive d->tarEnd = device()->tqat() + (rest ? 0x200 - rest : 0); // Record our new end of archive
if ( rest ) if ( rest )
{ {
char buffer[ 0x201 ]; char buffer[ 0x201 ];
@ -799,7 +799,7 @@ bool KTar::prepareWriting_impl(const TQString &name, const TQString &user,
char buffer[ 0x201 ]; char buffer[ 0x201 ];
memset( buffer, 0, 0x200 ); memset( buffer, 0, 0x200 );
if ( mode() & IO_ReadWrite ) device()->at(d->tarEnd); // Go to end of archive as might have moved with a read if ( mode() & IO_ReadWrite ) device()->tqat(d->tarEnd); // Go to end of archive as might have moved with a read
// provide converted stuff we need lateron // provide converted stuff we need lateron
TQCString encodedFilename = TQFile::encodeName(fileName); TQCString encodedFilename = TQFile::encodeName(fileName);
@ -858,7 +858,7 @@ bool KTar::writeDir_impl(const TQString &name, const TQString &user,
char buffer[ 0x201 ]; char buffer[ 0x201 ];
memset( buffer, 0, 0x200 ); memset( buffer, 0, 0x200 );
if ( mode() & IO_ReadWrite ) device()->at(d->tarEnd); // Go to end of archive as might have moved with a read if ( mode() & IO_ReadWrite ) device()->tqat(d->tarEnd); // Go to end of archive as might have moved with a read
// provide converted stuff we need lateron // provide converted stuff we need lateron
TQCString encodedDirname = TQFile::encodeName(dirName); TQCString encodedDirname = TQFile::encodeName(dirName);
@ -882,7 +882,7 @@ bool KTar::writeDir_impl(const TQString &name, const TQString &user,
// Write header // Write header
device()->writeBlock( buffer, 0x200 ); device()->writeBlock( buffer, 0x200 );
if ( mode() & IO_ReadWrite ) d->tarEnd = device()->at(); if ( mode() & IO_ReadWrite ) d->tarEnd = device()->tqat();
d->dirList.append( dirName ); // contains trailing slash d->dirList.append( dirName ); // contains trailing slash
return true; // TODO if wanted, better error control return true; // TODO if wanted, better error control
@ -916,7 +916,7 @@ bool KTar::writeSymLink_impl(const TQString &name, const TQString &target,
char buffer[ 0x201 ]; char buffer[ 0x201 ];
memset( buffer, 0, 0x200 ); memset( buffer, 0, 0x200 );
if ( mode() & IO_ReadWrite ) device()->at(d->tarEnd); // Go to end of archive as might have moved with a read if ( mode() & IO_ReadWrite ) device()->tqat(d->tarEnd); // Go to end of archive as might have moved with a read
// provide converted stuff we need lateron // provide converted stuff we need lateron
TQCString encodedFilename = TQFile::encodeName(fileName); TQCString encodedFilename = TQFile::encodeName(fileName);
@ -946,7 +946,7 @@ bool KTar::writeSymLink_impl(const TQString &name, const TQString &target,
// Write header // Write header
bool retval = device()->writeBlock( buffer, 0x200 ) == 0x200; bool retval = device()->writeBlock( buffer, 0x200 ) == 0x200;
if ( mode() & IO_ReadWrite ) d->tarEnd = device()->at(); if ( mode() & IO_ReadWrite ) d->tarEnd = device()->tqat();
return retval; return retval;
} }

@ -738,7 +738,7 @@ bool KURLCompletion::userCompletion(const MyURL &url, TQString *match)
{ {
if ( url.protocol() != "file" if ( url.protocol() != "file"
|| !url.dir().isEmpty() || !url.dir().isEmpty()
|| url.file().at(0) != '~' ) || url.file().tqat(0) != '~' )
return false; return false;
if ( !isListedURL( CTUser ) ) { if ( !isListedURL( CTUser ) ) {
@ -770,7 +770,7 @@ extern char **environ; // Array of environment variables
bool KURLCompletion::envCompletion(const MyURL &url, TQString *match) bool KURLCompletion::envCompletion(const MyURL &url, TQString *match)
{ {
if ( url.file().at(0) != '$' ) if ( url.file().tqat(0) != '$' )
return false; return false;
if ( !isListedURL( CTEnv ) ) { if ( !isListedURL( CTEnv ) ) {
@ -849,7 +849,7 @@ bool KURLCompletion::exeCompletion(const MyURL &url, TQString *match)
} }
// No hidden files unless the user types "." // No hidden files unless the user types "."
bool no_hidden_files = url.file().at(0) != '.'; bool no_hidden_files = url.file().tqat(0) != '.';
// List files if needed // List files if needed
// //
@ -923,7 +923,7 @@ bool KURLCompletion::fileCompletion(const MyURL &url, TQString *match)
} }
// No hidden files unless the user types "." // No hidden files unless the user types "."
bool no_hidden_files = ( url.file().at(0) != '.' ); bool no_hidden_files = ( url.file().tqat(0) != '.' );
// List files if needed // List files if needed
// //
@ -1293,7 +1293,7 @@ void KURLCompletion::postProcessMatch( TQString *match ) const
void KURLCompletion::adjustMatch( TQString& match ) const void KURLCompletion::adjustMatch( TQString& match ) const
{ {
if ( match.at( match.length()-1 ) != '/' ) if ( match.tqat( match.length()-1 ) != '/' )
{ {
TQString copy; TQString copy;

@ -22,7 +22,7 @@
TQPixmap KURLPixmapProvider::pixmapFor( const TQString& url, int size ) { TQPixmap KURLPixmapProvider::pixmapFor( const TQString& url, int size ) {
KURL u; KURL u;
if ( url.at(0) == '/' ) if ( url.tqat(0) == '/' )
u.setPath( url ); u.setPath( url );
else else
u = url; u = url;

@ -427,7 +427,7 @@ bool KZip::openArchive( int mode )
for (;;) // repeat until 'end of entries' signature is reached for (;;) // repeat until 'end of entries' signature is reached
{ {
kdDebug(7040) << "loop starts" << endl; kdDebug(7040) << "loop starts" << endl;
kdDebug(7040) << "dev->at() now : " << dev->at() << endl; kdDebug(7040) << "dev->tqat() now : " << dev->tqat() << endl;
n = dev->readBlock( buffer, 4 ); n = dev->readBlock( buffer, 4 );
if (n < 4) if (n < 4)
@ -449,7 +449,7 @@ kdDebug(7040) << "dev->at() now : " << dev->at() << endl;
kdDebug(7040) << "PK34 found local file header" << endl; kdDebug(7040) << "PK34 found local file header" << endl;
startOfFile = false; startOfFile = false;
// can this fail ??? // can this fail ???
dev->at( dev->at() + 2 ); // skip 'version needed to extract' dev->tqat( dev->tqat() + 2 ); // skip 'version needed to extract'
// read static header stuff // read static header stuff
n = dev->readBlock( buffer, 24 ); n = dev->readBlock( buffer, 24 );
@ -490,7 +490,7 @@ kdDebug(7040) << "dev->at() now : " << dev->at() << endl;
// read and parse the beginning of the extra field, // read and parse the beginning of the extra field,
// skip rest of extra field in case it is too long // skip rest of extra field in case it is too long
unsigned int extraFieldEnd = dev->at() + extralen; unsigned int extraFieldEnd = dev->tqat() + extralen;
pfi->extralen = extralen; pfi->extralen = extralen;
int handledextralen = QMIN(extralen, (int)sizeof buffer); int handledextralen = QMIN(extralen, (int)sizeof buffer);
@ -505,7 +505,7 @@ kdDebug(7040) << "dev->at() now : " << dev->at() << endl;
} }
// jump to end of extra field // jump to end of extra field
dev->at( extraFieldEnd ); dev->tqat( extraFieldEnd );
// we have to take care of the 'general purpose bit flag'. // we have to take care of the 'general purpose bit flag'.
// if bit 3 is set, the header doesn't contain the length of // if bit 3 is set, the header doesn't contain the length of
@ -544,18 +544,18 @@ kdDebug(7040) << "dev->at() now : " << dev->at() << endl;
if ( buffer[0] == 'K' && buffer[1] == 7 && buffer[2] == 8 ) if ( buffer[0] == 'K' && buffer[1] == 7 && buffer[2] == 8 )
{ {
foundSignature = true; foundSignature = true;
dev->at( dev->at() + 12 ); // skip the 'data_descriptor' dev->tqat( dev->tqat() + 12 ); // skip the 'data_descriptor'
} }
else if ( ( buffer[0] == 'K' && buffer[1] == 1 && buffer[2] == 2 ) else if ( ( buffer[0] == 'K' && buffer[1] == 1 && buffer[2] == 2 )
|| ( buffer[0] == 'K' && buffer[1] == 3 && buffer[2] == 4 ) ) || ( buffer[0] == 'K' && buffer[1] == 3 && buffer[2] == 4 ) )
{ {
foundSignature = true; foundSignature = true;
dev->at( dev->at() - 4 ); // go back 4 bytes, so that the magic bytes can be found... dev->tqat( dev->tqat() - 4 ); // go back 4 bytes, so that the magic bytes can be found...
} }
else if ( buffer[0] == 'P' || buffer[1] == 'P' || buffer[2] == 'P' ) else if ( buffer[0] == 'P' || buffer[1] == 'P' || buffer[2] == 'P' )
{ {
// We have another P character so we must go back a little to check if it is a magic // We have another P character so we must go back a little to check if it is a magic
dev->at( dev->at() - 3 ); dev->tqat( dev->tqat() - 3 );
} }
} }
@ -611,14 +611,14 @@ kdDebug(7040) << "dev->at() now : " << dev->at() << endl;
if ( buffer[0] == 'K' && buffer[1] == 7 && buffer[2] == 8 ) if ( buffer[0] == 'K' && buffer[1] == 7 && buffer[2] == 8 )
{ {
foundSignature = true; foundSignature = true;
dev->at( dev->at() + 12 ); // skip the 'data_descriptor' dev->tqat( dev->tqat() + 12 ); // skip the 'data_descriptor'
} }
if ( ( buffer[0] == 'K' && buffer[1] == 1 && buffer[2] == 2 ) if ( ( buffer[0] == 'K' && buffer[1] == 1 && buffer[2] == 2 )
|| ( buffer[0] == 'K' && buffer[1] == 3 && buffer[2] == 4 ) ) || ( buffer[0] == 'K' && buffer[1] == 3 && buffer[2] == 4 ) )
{ {
foundSignature = true; foundSignature = true;
dev->at( dev->at() - 4 ); dev->tqat( dev->tqat() - 4 );
// go back 4 bytes, so that the magic bytes can be found // go back 4 bytes, so that the magic bytes can be found
// in the next cycle... // in the next cycle...
} }
@ -626,10 +626,10 @@ kdDebug(7040) << "dev->at() now : " << dev->at() << endl;
} }
else else
{ {
// kdDebug(7040) << "before interesting dev->at(): " << dev->at() << endl; // kdDebug(7040) << "before interesting dev->tqat(): " << dev->tqat() << endl;
bool success; bool success;
success = dev->at( dev->at() + compr_size ); // can this fail ??? success = dev->tqat( dev->tqat() + compr_size ); // can this fail ???
/* kdDebug(7040) << "after interesting dev->at(): " << dev->at() << endl; /* kdDebug(7040) << "after interesting dev->tqat(): " << dev->tqat() << endl;
if ( success ) if ( success )
kdDebug(7040) << "dev->at was successful... " << endl; kdDebug(7040) << "dev->at was successful... " << endl;
else else
@ -653,7 +653,7 @@ kdDebug(7040) << "dev->at() now : " << dev->at() << endl;
// so we reached the central header at the end of the zip file // so we reached the central header at the end of the zip file
// here we get all interesting data out of the central header // here we get all interesting data out of the central header
// of a file // of a file
offset = dev->at() - 4; offset = dev->tqat() - 4;
//set offset for appending new files //set offset for appending new files
if ( d->m_offset == 0L ) d->m_offset = offset; if ( d->m_offset == 0L ) d->m_offset = offset;
@ -792,7 +792,7 @@ kdDebug(7040) << "dev->at() now : " << dev->at() << endl;
//calculate offset to next entry //calculate offset to next entry
offset += 46 + commlen + extralen + namelen; offset += 46 + commlen + extralen + namelen;
bool b = dev->at(offset); bool b = dev->tqat(offset);
Q_ASSERT( b ); Q_ASSERT( b );
if ( !b ) if ( !b )
return false; return false;
@ -832,12 +832,12 @@ kdDebug(7040) << "dev->at() now : " << dev->at() << endl;
if ( buffer[0] == 'K' && buffer[1] == 3 && buffer[2] == 4 ) if ( buffer[0] == 'K' && buffer[1] == 3 && buffer[2] == 4 )
{ {
foundSignature = true; foundSignature = true;
dev->at( dev->at() - 4 ); // go back 4 bytes, so that the magic bytes can be found... dev->tqat( dev->tqat() - 4 ); // go back 4 bytes, so that the magic bytes can be found...
} }
else if ( buffer[0] == 'P' || buffer[1] == 'P' || buffer[2] == 'P' ) else if ( buffer[0] == 'P' || buffer[1] == 'P' || buffer[2] == 'P' )
{ {
// We have another P character so we must go back a little to check if it is a magic // We have another P character so we must go back a little to check if it is a magic
dev->at( dev->at() - 3 ); dev->tqat( dev->tqat() - 3 );
} }
} }
} }
@ -871,14 +871,14 @@ bool KZip::closeArchive()
char buffer[ 22 ]; // first used for 12, then for 22 at the end char buffer[ 22 ]; // first used for 12, then for 22 at the end
uLong crc = crc32(0L, Z_NULL, 0); uLong crc = crc32(0L, Z_NULL, 0);
TQ_LONG centraldiroffset = device()->at(); TQ_LONG centraldiroffset = device()->tqat();
//kdDebug(7040) << "closearchive: centraldiroffset: " << centraldiroffset << endl; //kdDebug(7040) << "closearchive: centraldiroffset: " << centraldiroffset << endl;
TQ_LONG atbackup = centraldiroffset; TQ_LONG atbackup = centraldiroffset;
TQPtrListIterator<KZipFileEntry> it( d->m_fileList ); TQPtrListIterator<KZipFileEntry> it( d->m_fileList );
for ( ; it.current() ; ++it ) for ( ; it.current() ; ++it )
{ //set crc and compressed size in each local file header { //set crc and compressed size in each local file header
if ( !device()->at( it.current()->headerStart() + 14 ) ) if ( !device()->tqat( it.current()->headerStart() + 14 ) )
return false; return false;
//kdDebug(7040) << "closearchive setcrcandcsize: filename: " //kdDebug(7040) << "closearchive setcrcandcsize: filename: "
// << it.current()->path() // << it.current()->path()
@ -905,7 +905,7 @@ bool KZip::closeArchive()
if ( device()->writeBlock( buffer, 12 ) != 12 ) if ( device()->writeBlock( buffer, 12 ) != 12 )
return false; return false;
} }
device()->at( atbackup ); device()->tqat( atbackup );
for ( it.toFirst(); it.current() ; ++it ) for ( it.toFirst(); it.current() ; ++it )
{ {
@ -994,9 +994,9 @@ bool KZip::closeArchive()
if ( !ok ) if ( !ok )
return false; return false;
} }
TQ_LONG centraldirendoffset = device()->at(); TQ_LONG centraldirendoffset = device()->tqat();
//kdDebug(7040) << "closearchive: centraldirendoffset: " << centraldirendoffset << endl; //kdDebug(7040) << "closearchive: centraldirendoffset: " << centraldirendoffset << endl;
//kdDebug(7040) << "closearchive: device()->at(): " << device()->at() << endl; //kdDebug(7040) << "closearchive: device()->tqat(): " << device()->tqat() << endl;
//write end of central dir record. //write end of central dir record.
buffer[ 0 ] = 'P'; //end of central dir signature buffer[ 0 ] = 'P'; //end of central dir signature
@ -1107,7 +1107,7 @@ bool KZip::prepareWriting_impl(const TQString &name, const TQString &user,
} }
// set right offset in zip. // set right offset in zip.
if ( !device()->at( d->m_offset ) ) { if ( !device()->tqat( d->m_offset ) ) {
kdWarning(7040) << "prepareWriting_impl: cannot seek in ZIP file. Disk full?" << endl; kdWarning(7040) << "prepareWriting_impl: cannot seek in ZIP file. Disk full?" << endl;
abort(); abort();
return false; return false;
@ -1144,9 +1144,9 @@ bool KZip::prepareWriting_impl(const TQString &name, const TQString &user,
// construct a KZipFileEntry and add it to list // construct a KZipFileEntry and add it to list
KZipFileEntry * e = new KZipFileEntry( this, fileName, perm, mtime, user, group, TQString::null, KZipFileEntry * e = new KZipFileEntry( this, fileName, perm, mtime, user, group, TQString::null,
name, device()->at() + 30 + name.length(), // start name, device()->tqat() + 30 + name.length(), // start
0 /*size unknown yet*/, d->m_compression, 0 /*csize unknown yet*/ ); 0 /*size unknown yet*/, d->m_compression, 0 /*csize unknown yet*/ );
e->setHeaderStart( device()->at() ); e->setHeaderStart( device()->tqat() );
//kdDebug(7040) << "wrote file start: " << e->position() << " name: " << name << endl; //kdDebug(7040) << "wrote file start: " << e->position() << " name: " << name << endl;
parentDir->addEntry( e ); parentDir->addEntry( e );
@ -1274,13 +1274,13 @@ bool KZip::doneWriting( uint size )
Q_ASSERT( d->m_currentFile ); Q_ASSERT( d->m_currentFile );
//kdDebug(7040) << "donewriting reached." << endl; //kdDebug(7040) << "donewriting reached." << endl;
//kdDebug(7040) << "filename: " << d->m_currentFile->path() << endl; //kdDebug(7040) << "filename: " << d->m_currentFile->path() << endl;
//kdDebug(7040) << "getpos (at): " << device()->at() << endl; //kdDebug(7040) << "getpos (at): " << device()->tqat() << endl;
d->m_currentFile->setSize(size); d->m_currentFile->setSize(size);
int extra_field_len = 0; int extra_field_len = 0;
if ( d->m_extraField == ModificationTime ) if ( d->m_extraField == ModificationTime )
extra_field_len = 17; // value also used in doneWriting() extra_field_len = 17; // value also used in doneWriting()
int csize = device()->at() - int csize = device()->tqat() -
d->m_currentFile->headerStart() - 30 - d->m_currentFile->headerStart() - 30 -
d->m_currentFile->path().length() - extra_field_len; d->m_currentFile->path().length() - extra_field_len;
d->m_currentFile->setCompressedSize(csize); d->m_currentFile->setCompressedSize(csize);
@ -1294,7 +1294,7 @@ bool KZip::doneWriting( uint size )
d->m_currentFile = 0L; d->m_currentFile = 0L;
// update saved offset for appending new files // update saved offset for appending new files
d->m_offset = device()->at(); d->m_offset = device()->tqat();
return true; return true;
} }

@ -132,7 +132,7 @@ static KIO::CopyJob* chooseAndPaste( const KURL& u, TQMimeSource* data,
kdDebug() << " result=" << result << " chosenFormat=" << chosenFormat << endl; kdDebug() << " result=" << result << " chosenFormat=" << chosenFormat << endl;
KURL new_url( u ); KURL new_url( u );
new_url.addPath( result ); new_url.addPath( result );
// if "data" came from QClipboard, then it was deleted already - by a nice 0-seconds timer // if "data" came from TQClipboard, then it was deleted already - by a nice 0-seconds timer
// In that case, get it again. Let's hope the user didn't copy something else meanwhile :/ // In that case, get it again. Let's hope the user didn't copy something else meanwhile :/
if ( clipboard ) { if ( clipboard ) {
data = TQApplication::tqclipboard()->data(); data = TQApplication::tqclipboard()->data();

@ -93,7 +93,7 @@ namespace KIO {
* The filename to use in that directory is prompted by this method. * The filename to use in that directory is prompted by this method.
* @param dialogText the text to show in the dialog * @param dialogText the text to show in the dialog
* @param widget parent widget to use for dialogs * @param widget parent widget to use for dialogs
* @param clipboard whether the TQMimeSource comes from QClipboard. If you * @param clipboard whether the TQMimeSource comes from TQClipboard. If you
* use pasteClipboard for that case, you never have to worry about this parameter. * use pasteClipboard for that case, you never have to worry about this parameter.
* *
* @see pasteClipboard() * @see pasteClipboard()

@ -62,7 +62,7 @@ KIO::PasteDialog::PasteDialog( const TQString &caption, const TQString &label,
m_clipboardChanged = false; m_clipboardChanged = false;
if ( clipboard ) if ( clipboard )
connect( TQApplication::clipboard(), TQT_SIGNAL( dataChanged() ), connect( TQApplication::tqclipboard(), TQT_SIGNAL( dataChanged() ),
this, TQT_SLOT( slotClipboardDataChanged() ) ); this, TQT_SLOT( slotClipboardDataChanged() ) );
} }

@ -346,7 +346,7 @@ bool Scheduler::startJobScheduled(ProtocolInfo *protInfo)
// Prevent starvation. We skip the first entry in the queue at most // Prevent starvation. We skip the first entry in the queue at most
// 2 times in a row. The // 2 times in a row. The
protInfo->skipCount = 0; protInfo->skipCount = 0;
job = protInfo->joblist.at(0); job = protInfo->joblist.tqat(0);
slave = findIdleSlave(protInfo, job, dummy ); slave = findIdleSlave(protInfo, job, dummy );
} }
else else
@ -356,7 +356,7 @@ bool Scheduler::startJobScheduled(ProtocolInfo *protInfo)
Slave *firstSlave = 0; Slave *firstSlave = 0;
for(uint i = 0; (i < protInfo->joblist.count()) && (i < 10); i++) for(uint i = 0; (i < protInfo->joblist.count()) && (i < 10); i++)
{ {
job = protInfo->joblist.at(i); job = protInfo->joblist.tqat(i);
slave = findIdleSlave(protInfo, job, exact); slave = findIdleSlave(protInfo, job, exact);
if (!firstSlave) if (!firstSlave)
{ {

@ -246,7 +246,7 @@ TQString KSSLCertificate::getMD5DigestFromKDEKey(const TQString &k) {
int pos = k.tqfindRev('('); int pos = k.tqfindRev('(');
if (pos != -1) { if (pos != -1) {
unsigned int len = k.length(); unsigned int len = k.length();
if (k.at(len-1) == ')') { if (k.tqat(len-1) == ')') {
rc = k.mid(pos+1, len-pos-2); rc = k.mid(pos+1, len-pos-2);
} }
} }

@ -348,7 +348,7 @@ void KSSLInfoDlg::slotChain(int x) {
cl.setAutoDelete(true); cl.setAutoDelete(true);
for (int i = 0; i < x-1; i++) for (int i = 0; i < x-1; i++)
cl.remove((unsigned int)0); cl.remove((unsigned int)0);
KSSLCertificate thisCert = *(cl.at(0)); KSSLCertificate thisCert = *(cl.tqat(0));
cl.remove((unsigned int)0); cl.remove((unsigned int)0);
thisCert.chain().setChain(cl); thisCert.chain().setChain(cl);
displayCert(&thisCert); displayCert(&thisCert);

@ -182,7 +182,7 @@ TQString KSSLSettings::getCipherList() {
// Also remove NULL ciphers and 168bit ciphers // Also remove NULL ciphers and 168bit ciphers
for (unsigned int i = 0; i < cipherList.count(); i++) { for (unsigned int i = 0; i < cipherList.count(); i++) {
CipherNode *j = 0L; CipherNode *j = 0L;
while ((j = cipherList.at(i)) != 0L) { while ((j = cipherList.tqat(i)) != 0L) {
if (j->name.contains("ADH-") || j->name.contains("NULL-") || j->name.contains("DES-CBC3-SHA") || j->name.contains("FZA")) { if (j->name.contains("ADH-") || j->name.contains("NULL-") || j->name.contains("DES-CBC3-SHA") || j->name.contains("FZA")) {
cipherList.remove(j); cipherList.remove(j);
} else { } else {

@ -74,7 +74,7 @@ int main(int argc, char **argv) {
if (recipient.isEmpty()) if (recipient.isEmpty())
recipient = "submit@bugs.kde.org"; recipient = "submit@bugs.kde.org";
else { else {
if (recipient.at(0) == '\'') { if (recipient.tqat(0) == '\'') {
recipient = recipient.mid(1).left(recipient.length() - 2); recipient = recipient.mid(1).left(recipient.length() - 2);
} }
} }
@ -84,7 +84,7 @@ int main(int argc, char **argv) {
if (subject.isEmpty()) if (subject.isEmpty())
subject = "(no subject)"; subject = "(no subject)";
else { else {
if (subject.at(0) == '\'') if (subject.tqat(0) == '\'')
subject = subject.mid(1).left(subject.length() - 2); subject = subject.mid(1).left(subject.length() - 2);
} }
TQTextIStream input(stdin); TQTextIStream input(stdin);

@ -867,7 +867,7 @@ void KSSLD::searchAddCert(KSSLCertificate *cert) {
if (elem.tqfindRef(cert) == -1) { if (elem.tqfindRef(cert) == -1) {
unsigned int n = 0; unsigned int n = 0;
for(; n < elem.size(); n++) { for(; n < elem.size(); n++) {
if (!elem.at(n)) { if (!elem.tqat(n)) {
elem.insert(n, cert); elem.insert(n, cert);
break; break;
} }
@ -912,7 +912,7 @@ TQStringList KSSLD::getKDEKeyByEmail(const TQString &email) {
TQPtrVector<KSSLCertificate> &elem = *it; TQPtrVector<KSSLCertificate> &elem = *it;
for (unsigned int n = 0; n < elem.size(); n++) { for (unsigned int n = 0; n < elem.size(); n++) {
KSSLCertificate *cert = elem.at(n); KSSLCertificate *cert = elem.tqat(n);
if (cert) { if (cert) {
rc.append(cert->getKDEKey()); rc.append(cert->getKDEKey());
} }

@ -418,7 +418,7 @@ void ProgressItem::slotToggleDefaultProgress() {
// Called when a rename or skip dialog pops up // Called when a rename or skip dialog pops up
// We want to prevent someone from killing the job in the uiserver then // We want to prevent someone from killing the job in the uiserver then
void ProgressItem::setVisible( bool visible ) { void ProgressItem::tqsetVisible( bool visible ) {
if ( m_visible != visible ) if ( m_visible != visible )
{ {
m_visible = visible; m_visible = visible;
@ -792,7 +792,7 @@ ProgressItem* UIServer::findItem( int id )
void UIServer::setItemVisible( ProgressItem * item, bool visible ) void UIServer::setItemVisible( ProgressItem * item, bool visible )
{ {
item->setVisible( visible ); item->tqsetVisible( visible );
// Check if we were the last one to be visible // Check if we were the last one to be visible
// or the first one -> hide/show the list in that case // or the first one -> hide/show the list in that case
// (Note that the user could have hidden the listview by hand yet, no time) // (Note that the user could have hidden the listview by hand yet, no time)

@ -118,7 +118,7 @@ public:
bool keepOpen() const; bool keepOpen() const;
void finished(); void finished();
void setVisible( bool visible ); void tqsetVisible( bool visible );
void setDefaultProgressVisible( bool visible ); void setDefaultProgressVisible( bool visible );
bool isVisible() const { return m_visible; } bool isVisible() const { return m_visible; }

@ -41,8 +41,8 @@ void test_block( const TQString & fileName )
// TQCString s(array,n+1); // Terminate with 0 before printing // TQCString s(array,n+1); // Terminate with 0 before printing
// printf("%s", s.data()); // printf("%s", s.data());
kdDebug() << "dev.at = " << dev->at() << endl; kdDebug() << "dev.at = " << dev->tqat() << endl;
//kdDebug() << "f.at = " << f.at() << endl; //kdDebug() << "f.at = " << f.tqat() << endl;
} }
dev->close(); dev->close();
delete dev; delete dev;

@ -4711,7 +4711,7 @@ FILE* HTTPProtocol::checkCacheEntry( bool readWrite)
TQCString u = m_request.url.url().latin1(); TQCString u = m_request.url.url().latin1();
for(int i = u.length(); i--;) for(int i = u.length(); i--;)
{ {
hash = (hash * 12211 + u.at(i)) % 2147483563; hash = (hash * 12211 + static_cast<const char>(u.tqat(i))) % 2147483563;
} }
TQString hashString; TQString hashString;
@ -5943,7 +5943,7 @@ TQString HTTPProtocol::createDigestAuth ( bool isForProxy )
for (int i = 0; i < count; i++ ) for (int i = 0; i < count; i++ )
{ {
KURL u ( info.digestURI.at(i) ); KURL u ( info.digestURI.tqat(i) );
send &= (m_request.url.protocol().lower() == u.protocol().lower()); send &= (m_request.url.protocol().lower() == u.protocol().lower());
send &= (m_request.hostname.lower() == u.host().lower()); send &= (m_request.hostname.lower() == u.host().lower());

@ -618,7 +618,7 @@ void KCookieJar::extractDomains(const TQString &_fqdn,
return; return;
} }
// Return numeric IPv4 addresses as is... // Return numeric IPv4 addresses as is...
if ((_fqdn.at(0) >= '0') && (_fqdn.at(0) <= '9')) if ((_fqdn.tqat(0) >= TQChar('0')) && (_fqdn.tqat(0) <= TQChar('9')))
{ {
if (_fqdn.tqfind(TQRegExp(IP_ADDRESS_EXPRESSION)) > -1) if (_fqdn.tqfind(TQRegExp(IP_ADDRESS_EXPRESSION)) > -1)
{ {

@ -192,7 +192,7 @@ static int readf(char *buf, int start, int len,void *udata) {
TQIODevice* dev = ( static_cast<KIso*> (udata) )->device(); TQIODevice* dev = ( static_cast<KIso*> (udata) )->device();
if (dev->at(start<<11)) { if (dev->tqat(start<<11)) {
if ((dev->readBlock(buf, len<<11)) != -1) return (len); if ((dev->readBlock(buf, len<<11)) != -1) return (len);
} }
kdDebug() << "KIso::ReadRequest failed start: " << start << " len: " << len << endl; kdDebug() << "KIso::ReadRequest failed start: " << start << " len: " << len << endl;

@ -42,7 +42,7 @@ TQByteArray KIsoFile::data(long long pos, int count) const {
TQByteArray r; TQByteArray r;
int rlen; int rlen;
if ( archive()->device()->at(position()+pos) && if ( archive()->device()->tqat(position()+pos) &&
r.tqresize( ((pos+count) < size()) ? count : size()-pos) ) { r.tqresize( ((pos+count) < size()) ? count : size()-pos) ) {
rlen=archive()->device()->readBlock( r.data(), r.size() ); rlen=archive()->device()->readBlock( r.data(), r.size() );
if (rlen ==- 1) r.resize(0); if (rlen ==- 1) r.resize(0);

@ -246,7 +246,7 @@ bool DockContainer::eventFilter( TQObject *obj, TQEvent *event )
switch ( event->type() ){ switch ( event->type() ){
case TQEvent::MouseButtonPress: case TQEvent::MouseButtonPress:
{ {
KDockWidget * w=m_revMap[dynamic_cast<KMultiTabBarTab*>(obj)->id()]; KDockWidget * w=m_revMap[tqt_dynamic_cast<KMultiTabBarTab*>(obj)->id()];
if (!w) { if (!w) {
kdDebug()<<"NoWidget"<<endl; kdDebug()<<"NoWidget"<<endl;
break; break;
@ -307,7 +307,7 @@ void DockContainer::showWidget(KDockWidget *w) {
void DockContainer::changeOverlapMode() void DockContainer::changeOverlapMode()
{ {
const KDockButton_Private *btn=dynamic_cast<const KDockButton_Private*>(sender()); const KDockButton_Private *btn=tqt_dynamic_cast<const KDockButton_Private*>(sender());
kdDebug(760)<<"DockContainer::changeOverlapMode: button=="<<btn<<endl; kdDebug(760)<<"DockContainer::changeOverlapMode: button=="<<btn<<endl;
@ -612,7 +612,7 @@ void DockContainer::toggle() {
if (m_tb->isTabRaised(oldtab)) { if (m_tb->isTabRaised(oldtab)) {
m_tb->setTab(oldtab,false); m_tb->setTab(oldtab,false);
tabClicked(oldtab); tabClicked(oldtab);
// KMDI::MainWindow *mainFrm = dynamic_cast<KMDI::MainWindow*>(m_mainWin); // KMDI::MainWindow *mainFrm = tqt_dynamic_cast<KMDI::MainWindow*>(m_mainWin);
// if (mainFrm && mainFrm->activeWindow() ) // TODO // if (mainFrm && mainFrm->activeWindow() ) // TODO
// mainFrm->activeWindow()->setFocus(); // mainFrm->activeWindow()->setFocus();
@ -633,7 +633,7 @@ void DockContainer::prevToolView() {
if (pos==-1) return; if (pos==-1) return;
pos--; pos--;
if (pos<0) pos=tabs->count()-1; if (pos<0) pos=tabs->count()-1;
KMultiTabBarTab *tab=tabs->at(pos); KMultiTabBarTab *tab=tabs->tqat(pos);
if (!tab) return; //can never happen here, but who knows if (!tab) return; //can never happen here, but who knows
m_tb->setTab(tab->id(),true); m_tb->setTab(tab->id(),true);
tabClicked(tab->id()); tabClicked(tab->id());
@ -645,7 +645,7 @@ void DockContainer::nextToolView() {
if (pos==-1) return; if (pos==-1) return;
pos++; pos++;
if (pos>=(int)tabs->count()) pos=0; if (pos>=(int)tabs->count()) pos=0;
KMultiTabBarTab *tab=tabs->at(pos); KMultiTabBarTab *tab=tabs->tqat(pos);
if (!tab) return; //can never happen here, but who knows if (!tab) return; //can never happen here, but who knows
m_tb->setTab(tab->id(),true); m_tb->setTab(tab->id(),true);
tabClicked(tab->id()); tabClicked(tab->id());

@ -100,7 +100,7 @@ GUIClient::~GUIClient()
{ {
// actionCollection()->writeShortcutSettings( "KMDI Shortcuts", kapp->config() ); // actionCollection()->writeShortcutSettings( "KMDI Shortcuts", kapp->config() );
for (uint i=0;i<m_toolViewActions.count();i++) for (uint i=0;i<m_toolViewActions.count();i++)
disconnect(m_toolViewActions.at(i),0,this,0); disconnect(m_toolViewActions.tqat(i),0,this,0);
m_toolViewActions.setAutoDelete( false ); m_toolViewActions.setAutoDelete( false );
m_toolViewActions.clear(); m_toolViewActions.clear();
@ -119,7 +119,7 @@ void GUIClient::setupActions()
if (m_toolViewActions.count()<3) if (m_toolViewActions.count()<3)
{ {
for (uint i=0;i<m_toolViewActions.count();i++) for (uint i=0;i<m_toolViewActions.count();i++)
addList.append(m_toolViewActions.at(i)); addList.append(m_toolViewActions.tqat(i));
} }
else else
addList.append(m_toolMenu); addList.append(m_toolMenu);
@ -146,7 +146,7 @@ void GUIClient::addToolView(KMDI::ToolViewAccessor* mtva)
cfg->setGroup( _grp ); cfg->setGroup( _grp );
KAction *a=new ToggleToolViewAction(i18n("Show %1").arg(mtva->wrappedWidget()->caption()), KAction *a=new ToggleToolViewAction(i18n("Show %1").arg(mtva->wrappedWidget()->caption()),
/*TQString::null*/sc,dynamic_cast<KDockWidget*>(mtva->wrapperWidget()), /*TQString::null*/sc,tqt_dynamic_cast<KDockWidget*>(mtva->wrapperWidget()),
m_mdiMainFrm,actionCollection(), aname.latin1() ); m_mdiMainFrm,actionCollection(), aname.latin1() );
((ToggleToolViewAction*)a)->setCheckedState(TQString(i18n("Hide %1").arg(mtva->wrappedWidget()->caption()))); ((ToggleToolViewAction*)a)->setCheckedState(TQString(i18n("Hide %1").arg(mtva->wrappedWidget()->caption())));

@ -327,7 +327,7 @@ void MainWindow::setToolViewStyle(int flag)
bool toolviewExists = false; bool toolviewExists = false;
TQMap<TQWidget*,KMDI::ToolViewAccessor*>::Iterator it; TQMap<TQWidget*,KMDI::ToolViewAccessor*>::Iterator it;
for (it = m_toolViews->begin(); it != m_toolViews->end(); ++it) { for (it = m_toolViews->begin(); it != m_toolViews->end(); ++it) {
KDockWidget *dockWidget = dynamic_cast<KDockWidget*>(it.data()->wrapperWidget()); KDockWidget *dockWidget = tqt_dynamic_cast<KDockWidget*>(it.data()->wrapperWidget());
if (dockWidget) { if (dockWidget) {
if (flag == KMDI::IconOnly) if (flag == KMDI::IconOnly)
{ {
@ -373,7 +373,7 @@ void MainWindow::dockToolViewsIntoContainers(TQPtrList<KDockWidget>& widgetsToRe
void MainWindow::findToolViewsDockedToMain(TQPtrList<KDockWidget>* list,KDockWidget::DockPosition dprtmw) { void MainWindow::findToolViewsDockedToMain(TQPtrList<KDockWidget>* list,KDockWidget::DockPosition dprtmw) {
KDockWidget *mainDock=getMainDockWidget(); KDockWidget *mainDock=getMainDockWidget();
if (mainDock->parentDockTabGroup()) { if (mainDock->parentDockTabGroup()) {
mainDock=dynamic_cast<KDockWidget*>(mainDock->parentDockTabGroup()->parent()); mainDock=tqt_dynamic_cast<KDockWidget*>(mainDock->parentDockTabGroup()->parent());
// FIXME: will likely crash below due to unchecked cast // FIXME: will likely crash below due to unchecked cast
} }
@ -384,7 +384,7 @@ void MainWindow::findToolViewsDockedToMain(TQPtrList<KDockWidget>* list,KDockWid
} }
if (widget) { if (widget) {
KDockTabGroup *tg=dynamic_cast<KDockTabGroup*>(widget-> KDockTabGroup *tg=tqt_dynamic_cast<KDockTabGroup*>(widget->
getWidget()); getWidget());
if (tg) { if (tg) {
kdDebug(760)<<"KDockTabGroup found"<<endl; kdDebug(760)<<"KDockTabGroup found"<<endl;

@ -37,7 +37,7 @@ ToolViewAccessor::ToolViewAccessor( KMDI::MainWindow *parent, TQWidget *widgetTo
mdiMainFrm=parent; mdiMainFrm=parent;
d=new KMDIPrivate::ToolViewAccessorPrivate(); d=new KMDIPrivate::ToolViewAccessorPrivate();
if (widgetToWrap->inherits("KDockWidget")) { if (widgetToWrap->inherits("KDockWidget")) {
d->widgetContainer=dynamic_cast<KDockWidget*>(widgetToWrap); d->widgetContainer=tqt_dynamic_cast<KDockWidget*>(widgetToWrap);
d->widget=d->widgetContainer->getWidget(); d->widget=d->widgetContainer->getWidget();
} else { } else {
d->widget=widgetToWrap; d->widget=widgetToWrap;

@ -252,7 +252,7 @@ bool KMdiDockContainer::eventFilter( TQObject *obj, TQEvent *event )
{ {
case TQEvent::MouseButtonPress: case TQEvent::MouseButtonPress:
{ {
KMultiTabBarTab* kmtbTab = dynamic_cast<KMultiTabBarTab*>( obj ); KMultiTabBarTab* kmtbTab = tqt_dynamic_cast<KMultiTabBarTab*>( obj );
if ( !kmtbTab ) if ( !kmtbTab )
{ {
kdDebug(760) << k_funcinfo << "Got a mouse button press but we have no tab" << endl; kdDebug(760) << k_funcinfo << "Got a mouse button press but we have no tab" << endl;
@ -332,7 +332,7 @@ void KMdiDockContainer::showWidget( KDockWidget *w )
void KMdiDockContainer::changeOverlapMode() void KMdiDockContainer::changeOverlapMode()
{ {
const KDockButton_Private * btn = dynamic_cast<const KDockButton_Private*>( sender() ); const KDockButton_Private * btn = tqt_dynamic_cast<const KDockButton_Private*>( sender() );
if ( !btn ) if ( !btn )
return ; return ;
@ -794,7 +794,7 @@ void KMdiDockContainer::toggle()
kdDebug( 760 ) << k_funcinfo << "lowering tab" << endl; kdDebug( 760 ) << k_funcinfo << "lowering tab" << endl;
m_tb->setTab( oldtab, false ); m_tb->setTab( oldtab, false );
tabClicked( oldtab ); tabClicked( oldtab );
KMdiMainFrm *mainFrm = dynamic_cast<KMdiMainFrm*>( m_mainWin ); KMdiMainFrm *mainFrm = tqt_dynamic_cast<KMdiMainFrm*>( m_mainWin );
if ( mainFrm && mainFrm->activeWindow() ) if ( mainFrm && mainFrm->activeWindow() )
mainFrm->activeWindow()->setFocus(); mainFrm->activeWindow()->setFocus();
} }
@ -826,7 +826,7 @@ void KMdiDockContainer::prevToolView()
if ( pos < 0 ) if ( pos < 0 )
pos = tabs->count() - 1; pos = tabs->count() - 1;
KMultiTabBarTab *tab = tabs->at( pos ); KMultiTabBarTab *tab = tabs->tqat( pos );
if ( !tab ) if ( !tab )
return ; //can never happen here, but who knows return ; //can never happen here, but who knows
@ -847,7 +847,7 @@ void KMdiDockContainer::nextToolView()
if ( pos >= ( int ) tabs->count() ) if ( pos >= ( int ) tabs->count() )
pos = 0; pos = 0;
KMultiTabBarTab *tab = tabs->at( pos ); KMultiTabBarTab *tab = tabs->tqat( pos );
if ( !tab ) if ( !tab )
return ; //can never happen here, but who knows return ; //can never happen here, but who knows

@ -174,7 +174,7 @@ KMDIGUIClient::~KMDIGUIClient()
// actionCollection()->writeShortcutSettings( "KMDI Shortcuts", kapp->config() ); // actionCollection()->writeShortcutSettings( "KMDI Shortcuts", kapp->config() );
for ( uint i = 0;i < m_toolViewActions.count();i++ ) for ( uint i = 0;i < m_toolViewActions.count();i++ )
disconnect( m_toolViewActions.at( i ), 0, this, 0 ); disconnect( m_toolViewActions.tqat( i ), 0, this, 0 );
m_toolViewActions.setAutoDelete( false ); m_toolViewActions.setAutoDelete( false );
m_toolViewActions.clear(); m_toolViewActions.clear();
@ -230,7 +230,7 @@ void KMDIGUIClient::setupActions()
TQPtrList<KAction> addList; TQPtrList<KAction> addList;
if ( m_toolViewActions.count() < 3 ) if ( m_toolViewActions.count() < 3 )
for ( uint i = 0;i < m_toolViewActions.count();i++ ) for ( uint i = 0;i < m_toolViewActions.count();i++ )
addList.append( m_toolViewActions.at( i ) ); addList.append( m_toolViewActions.tqat( i ) );
else else
addList.append( m_toolMenu ); addList.append( m_toolMenu );
if ( m_mdiMode == KMdi::IDEAlMode ) if ( m_mdiMode == KMdi::IDEAlMode )
@ -258,7 +258,7 @@ void KMDIGUIClient::addToolView( KMdiToolViewAccessor* mtva )
sc = KShortcut( cfg->readEntry( aname, "" ) ); sc = KShortcut( cfg->readEntry( aname, "" ) );
cfg->setGroup( _grp ); cfg->setGroup( _grp );
KAction *a = new ToggleToolViewAction( i18n( "Show %1" ).arg( mtva->wrappedWidget() ->caption() ), KAction *a = new ToggleToolViewAction( i18n( "Show %1" ).arg( mtva->wrappedWidget() ->caption() ),
/*TQString::null*/sc, dynamic_cast<KDockWidget*>( mtva->wrapperWidget() ), /*TQString::null*/sc, tqt_dynamic_cast<KDockWidget*>( mtva->wrapperWidget() ),
m_mdiMainFrm, actionCollection(), aname.latin1() ); m_mdiMainFrm, actionCollection(), aname.latin1() );
#if KDE_IS_VERSION(3,2,90) #if KDE_IS_VERSION(3,2,90)

@ -1777,7 +1777,7 @@ void KMdiMainFrm::setToolviewStyle( int flag )
TQMap<TQWidget*, KMdiToolViewAccessor*>::Iterator it; TQMap<TQWidget*, KMdiToolViewAccessor*>::Iterator it;
for ( it = m_pToolViews->begin(); it != m_pToolViews->end(); ++it ) for ( it = m_pToolViews->begin(); it != m_pToolViews->end(); ++it )
{ {
KDockWidget *dockWidget = dynamic_cast<KDockWidget*>( it.data()->wrapperWidget() ); KDockWidget *dockWidget = tqt_dynamic_cast<KDockWidget*>( it.data()->wrapperWidget() );
if ( dockWidget ) if ( dockWidget )
{ {
switch ( flag ) switch ( flag )
@ -1886,7 +1886,7 @@ void KMdiMainFrm::findToolViewsDockedToMain( TQPtrList<KDockWidget>* list, KDock
KDockWidget* mainDock = getMainDockWidget(); KDockWidget* mainDock = getMainDockWidget();
if ( mainDock->parentDockTabGroup() ) if ( mainDock->parentDockTabGroup() )
{ {
mainDock = dynamic_cast<KDockWidget*>( mainDock->parentDockTabGroup()->parent() ); mainDock = tqt_dynamic_cast<KDockWidget*>( mainDock->parentDockTabGroup()->parent() );
// FIXME: will likely crash below due to unchecked cast // FIXME: will likely crash below due to unchecked cast
} }
@ -1903,7 +1903,7 @@ void KMdiMainFrm::findToolViewsDockedToMain( TQPtrList<KDockWidget>* list, KDock
if ( widget ) if ( widget )
{ {
KDockTabGroup* tg = dynamic_cast<KDockTabGroup*>( widget->getWidget() ); KDockTabGroup* tg = tqt_dynamic_cast<KDockTabGroup*>( widget->getWidget() );
if ( tg ) if ( tg )
{ {
kdDebug(760) << k_funcinfo << "KDockTabGroup found" << endl; kdDebug(760) << k_funcinfo << "KDockTabGroup found" << endl;
@ -2118,7 +2118,7 @@ void KMdiMainFrm::finishIDEAlMode( bool full )
TQStringList KMdiMainFrm::prepareIdealToTabs( KDockWidget* container ) TQStringList KMdiMainFrm::prepareIdealToTabs( KDockWidget* container )
{ {
KDockContainer * pDW = dynamic_cast<KDockContainer*>( container->getWidget() ); KDockContainer * pDW = tqt_dynamic_cast<KDockContainer*>( container->getWidget() );
TQStringList widgetNames = ( ( KMdiDockContainer* ) pDW ) ->containedWidgets(); TQStringList widgetNames = ( ( KMdiDockContainer* ) pDW ) ->containedWidgets();
for ( TQStringList::iterator it = widgetNames.begin();it != widgetNames.end();++it ) for ( TQStringList::iterator it = widgetNames.begin();it != widgetNames.end();++it )
{ {
@ -2733,7 +2733,7 @@ void KMdiMainFrm::windowMenuItemActivated( int id )
if ( id < 100 ) if ( id < 100 )
return ; return ;
id -= 100; id -= 100;
KMdiChildView *pView = m_pDocumentViews->at( id ); KMdiChildView *pView = m_pDocumentViews->tqat( id );
if ( !pView ) if ( !pView )
return ; return ;
if ( pView->isMinimized() ) if ( pView->isMinimized() )
@ -2759,7 +2759,7 @@ void KMdiMainFrm::dockMenuItemActivated( int id )
if ( id < 100 ) if ( id < 100 )
return ; return ;
id -= 100; id -= 100;
KMdiChildView *pView = m_pDocumentViews->at( id ); KMdiChildView *pView = m_pDocumentViews->tqat( id );
if ( !pView ) if ( !pView )
return ; return ;
if ( pView->isMinimized() ) if ( pView->isMinimized() )

@ -36,7 +36,7 @@ KMdiToolViewAccessor::KMdiToolViewAccessor( KMdiMainFrm *parent, TQWidget *widge
d = new KMdiToolViewAccessorPrivate(); d = new KMdiToolViewAccessorPrivate();
if ( widgetToWrap->inherits( "KDockWidget" ) ) if ( widgetToWrap->inherits( "KDockWidget" ) )
{ {
d->widgetContainer = dynamic_cast<KDockWidget*>( widgetToWrap ); d->widgetContainer = tqt_dynamic_cast<KDockWidget*>( widgetToWrap );
d->widget = d->widgetContainer->getWidget(); d->widget = d->widgetContainer->getWidget();
} }
else else

@ -182,9 +182,9 @@ void DownloadDialog::clear()
kdDebug() << "clear listviews in " << v << endl; kdDebug() << "clear listviews in " << v << endl;
if(v) if(v)
{ {
(*(v->at(0)))->clear(); (*(v->tqat(0)))->clear();
(*(v->at(1)))->clear(); (*(v->tqat(1)))->clear();
(*(v->at(2)))->clear(); (*(v->tqat(2)))->clear();
//delete (*it); //delete (*it);
} }
@ -570,7 +570,7 @@ void DownloadDialog::install(Entry *e)
if(currentEntryItem() == m_entryitem) if(currentEntryItem() == m_entryitem)
{ {
TQPushButton *in; TQPushButton *in;
in = *(m_buttons[d->m_page]->at(0)); in = *(m_buttons[d->m_page]->tqat(0));
if(in) in->setEnabled(false); if(in) in->setEnabled(false);
} }
@ -625,8 +625,8 @@ void DownloadDialog::slotTab()
else else
{ {
TQPushButton *de, *in; TQPushButton *de, *in;
in = *(m_buttons[d->m_page]->at(0)); in = *(m_buttons[d->m_page]->tqat(0));
de = *(m_buttons[d->m_page]->at(1)); de = *(m_buttons[d->m_page]->tqat(1));
if(in) in->setEnabled(false); if(in) in->setEnabled(false);
if(de) de->setEnabled(false); if(de) de->setEnabled(false);
@ -705,8 +705,8 @@ void DownloadDialog::slotSelected()
else enabled = true; else enabled = true;
TQPushButton *de, *in; TQPushButton *de, *in;
in = *(m_buttons[d->m_page]->at(0)); in = *(m_buttons[d->m_page]->tqat(0));
de = *(m_buttons[d->m_page]->at(1)); de = *(m_buttons[d->m_page]->tqat(1));
if(in) in->setEnabled(enabled); if(in) in->setEnabled(enabled);
if(de) de->setEnabled(true); if(de) de->setEnabled(true);
} }
@ -747,9 +747,9 @@ void DownloadDialog::slotPage(TQWidget *w)
d->m_page = w; d->m_page = w;
lv_r = *(m_map[w]->at(0)); lv_r = *(m_map[w]->tqat(0));
lv_d = *(m_map[w]->at(1)); lv_d = *(m_map[w]->tqat(1));
lv_l = *(m_map[w]->at(2)); lv_l = *(m_map[w]->tqat(2));
p = m_providers[w]; p = m_providers[w];
m_rt = m_rts[w]; m_rt = m_rts[w];

@ -452,7 +452,7 @@ void BrowserExtension::slotCompleted()
void BrowserExtension::pasteRequest() void BrowserExtension::pasteRequest()
{ {
TQCString plain( "plain" ); TQCString plain( "plain" );
TQString url = TQApplication::tqclipboard()->tqtext(plain, TQClipboard::Selection).stripWhiteSpace(); TQString url = TQApplication::tqclipboard()->text(plain, TQClipboard::Selection).stripWhiteSpace();
// Remove linefeeds and any whitespace surrounding it. // Remove linefeeds and any whitespace surrounding it.
url.remove(TQRegExp("[\\ ]*\\n+[\\ ]*")); url.remove(TQRegExp("[\\ ]*\\n+[\\ ]*"));

@ -66,7 +66,7 @@ namespace KParts
T::tqstaticMetaObject()->className(), T::tqstaticMetaObject()->className(),
args ); args );
T *result = dynamic_cast<T *>( static_cast<TQT_BASE_OBJECT_NAME*>(object) ); T *result = tqt_dynamic_cast<T *>( object );
if ( !result ) if ( !result )
delete object; delete object;
return result; return result;
@ -104,7 +104,7 @@ namespace KParts
T::tqstaticMetaObject()->className(), T::tqstaticMetaObject()->className(),
args ); args );
T *result = dynamic_cast<T *>( object ); T *result = tqt_dynamic_cast<T *>( object );
if ( !result ) if ( !result )
delete object; delete object;
return result; return result;
@ -178,7 +178,7 @@ namespace KParts
*error = ErrNoFactory; *error = ErrNoFactory;
return 0; return 0;
} }
KParts::Factory *partFactory = dynamic_cast<KParts::Factory *>( factory ); KParts::Factory *partFactory = tqt_dynamic_cast<KParts::Factory *>( factory );
if ( !partFactory ) if ( !partFactory )
{ {
library->unload(); library->unload();

@ -76,7 +76,7 @@ void DockMainWindow::createGUI( Part * part )
KXMLGUIFactory *factory = guiFactory(); KXMLGUIFactory *factory = guiFactory();
setUpdatesEnabled( false ); tqsetUpdatesEnabled( false );
TQPtrList<Plugin> plugins; TQPtrList<Plugin> plugins;
@ -117,7 +117,7 @@ void DockMainWindow::createGUI( Part * part )
} }
setUpdatesEnabled( true ); tqsetUpdatesEnabled( true );
d->m_activePart = part; d->m_activePart = part;
} }

@ -63,7 +63,7 @@ const KInstance *Factory::partInstanceFromLibrary( const TQCString &libraryName
KLibFactory *factory = library->factory(); KLibFactory *factory = library->factory();
if ( !factory ) if ( !factory )
return 0; return 0;
KParts::Factory *pfactory = dynamic_cast<KParts::Factory *>( factory ); KParts::Factory *pfactory = tqt_dynamic_cast<KParts::Factory *>( factory );
if ( !pfactory ) if ( !pfactory )
return 0; return 0;
return pfactory->partInstance(); return pfactory->partInstance();

@ -111,7 +111,7 @@ namespace KParts
if ( part && !qstrcmp( className, "KParts::ReadOnlyPart" ) ) if ( part && !qstrcmp( className, "KParts::ReadOnlyPart" ) )
{ {
KParts::ReadWritePart *rwp = dynamic_cast<KParts::ReadWritePart *>( part ); KParts::ReadWritePart *rwp = tqt_dynamic_cast<KParts::ReadWritePart *>( part );
if ( rwp ) if ( rwp )
rwp->setReadWrite( false ); rwp->setReadWrite( false );
} }
@ -137,11 +137,11 @@ namespace KParts
args ); args );
// (this cast is guaranteed to work...) // (this cast is guaranteed to work...)
KParts::Part *part = dynamic_cast<KParts::Part *>( object ); KParts::Part *part = tqt_dynamic_cast<KParts::Part *>( object );
if ( part && !qstrcmp( className, "KParts::ReadOnlyPart" ) ) if ( part && !qstrcmp( className, "KParts::ReadOnlyPart" ) )
{ {
KParts::ReadWritePart *rwp = dynamic_cast<KParts::ReadWritePart *>( part ); KParts::ReadWritePart *rwp = tqt_dynamic_cast<KParts::ReadWritePart *>( part );
if ( rwp ) if ( rwp )
rwp->setReadWrite( false ); rwp->setReadWrite( false );
} }

@ -93,7 +93,7 @@ void MainWindow::createGUI( Part * part )
assert( factory ); assert( factory );
setUpdatesEnabled( false ); tqsetUpdatesEnabled( false );
TQPtrList<Plugin> plugins; TQPtrList<Plugin> plugins;
@ -137,7 +137,7 @@ void MainWindow::createGUI( Part * part )
applyMainWindowSettings( KGlobal::config(), autoSaveGroup() ); applyMainWindowSettings( KGlobal::config(), autoSaveGroup() );
} }
setUpdatesEnabled( true ); tqsetUpdatesEnabled( true );
d->m_activePart = part; d->m_activePart = part;
} }

@ -131,7 +131,7 @@ public:
/** /**
* Specifies which mouse buttons the partmanager should react upon. * Specifies which mouse buttons the partmanager should react upon.
* By default it reacts on all mouse buttons (LMB/MMB/RMB). * By default it reacts on all mouse buttons (LMB/MMB/RMB).
* @param buttonMask a combination of Qt::ButtonState values e.g. Qt::LeftButton | Qt::MidButton * @param buttonMask a combination of TQt::ButtonState values e.g. Qt::LeftButton | Qt::MidButton
*/ */
void setActivationButtonMask( short int buttonMask ); void setActivationButtonMask( short int buttonMask );
/** /**

@ -135,7 +135,7 @@ KStatusBar * StatusBarExtension::statusBar() const
{ {
if ( !m_statusBar ) { if ( !m_statusBar ) {
TQWidget* w = static_cast<KParts::ReadOnlyPart*>(parent())->widget(); TQWidget* w = static_cast<KParts::ReadOnlyPart*>(parent())->widget();
KMainWindow* mw = dynamic_cast<KMainWindow *>( w->tqtopLevelWidget() ); KMainWindow* mw = tqt_dynamic_cast<KMainWindow *>( w->tqtopLevelWidget() );
if ( mw ) if ( mw )
m_statusBar = mw->statusBar(); m_statusBar = mw->statusBar();
} }

@ -627,7 +627,7 @@ const TQString& RandRDisplay::version() const
void RandRDisplay::setCurrentScreen(int index) void RandRDisplay::setCurrentScreen(int index)
{ {
m_currentScreenIndex = index; m_currentScreenIndex = index;
m_currentScreen = m_screens.at(m_currentScreenIndex); m_currentScreen = m_screens.tqat(m_currentScreenIndex);
Q_ASSERT(m_currentScreen); Q_ASSERT(m_currentScreen);
} }
@ -655,7 +655,7 @@ int RandRDisplay::numScreens() const
RandRScreen* RandRDisplay::screen(int index) RandRScreen* RandRDisplay::screen(int index)
{ {
return m_screens.at(index); return m_screens.tqat(index);
} }
RandRScreen* RandRDisplay::currentScreen() RandRScreen* RandRDisplay::currentScreen()

@ -106,9 +106,9 @@ ConfigPage::ConfigPage( TQWidget *parent, const char *name )
TQGroupBox *groupBox = new TQGroupBox( i18n( "Resources" ), this ); TQGroupBox *groupBox = new TQGroupBox( i18n( "Resources" ), this );
groupBox->setColumnLayout(0, Qt::Vertical ); groupBox->setColumnLayout(0, Qt::Vertical );
groupBox->layout()->setSpacing( 6 ); groupBox->tqlayout()->setSpacing( 6 );
groupBox->layout()->setMargin( 11 ); groupBox->tqlayout()->setMargin( 11 );
TQGridLayout *groupBoxLayout = new TQGridLayout( groupBox->layout(), 2, 2 ); TQGridLayout *groupBoxLayout = new TQGridLayout( groupBox->tqlayout(), 2, 2 );
mFamilyCombo = new KComboBox( false, groupBox ); mFamilyCombo = new KComboBox( false, groupBox );
groupBoxLayout->addMultiCellWidget( mFamilyCombo, 0, 0, 0, 1 ); groupBoxLayout->addMultiCellWidget( mFamilyCombo, 0, 0, 0, 1 );
@ -130,7 +130,7 @@ ConfigPage::ConfigPage( TQWidget *parent, const char *name )
mEditButton->setEnabled( false ); mEditButton->setEnabled( false );
mStandardButton = buttonBox->addButton( i18n( "&Use as Standard" ), TQT_TQOBJECT(this), TQT_SLOT(slotStandard()) ); mStandardButton = buttonBox->addButton( i18n( "&Use as Standard" ), TQT_TQOBJECT(this), TQT_SLOT(slotStandard()) );
mStandardButton->setEnabled( false ); mStandardButton->setEnabled( false );
buttonBox->layout(); buttonBox->tqlayout();
groupBoxLayout->addWidget( buttonBox, 1, 1 ); groupBoxLayout->addWidget( buttonBox, 1, 1 );

@ -66,7 +66,7 @@ SelectDialog::SelectDialog( TQPtrList<Resource> list, TQWidget *parent,
// setup listbox // setup listbox
uint counter = 0; uint counter = 0;
for ( uint i = 0; i < list.count(); ++i ) { for ( uint i = 0; i < list.count(); ++i ) {
Resource *resource = list.at( i ); Resource *resource = list.tqat( i );
if ( resource && !resource->readOnly() ) { if ( resource && !resource->readOnly() ) {
mResourceMap.insert( counter, resource ); mResourceMap.insert( counter, resource );
mResourceId->insertItem( resource->resourceName() ); mResourceId->insertItem( resource->resourceName() );

@ -70,7 +70,7 @@ static TQColor readColorEntry( TQSettings* s, const char *pKey,
TQString aValue = s->readEntry( pKey ); TQString aValue = s->readEntry( pKey );
if ( !aValue.isEmpty() ) if ( !aValue.isEmpty() )
{ {
if ( aValue.at( 0 ) == '#' ) if ( aValue.tqat( 0 ) == '#' )
{ {
aRetColor.setNamedColor( aValue ); aRetColor.setNamedColor( aValue );
} }

@ -117,9 +117,9 @@ void KFindDialog::init(bool forReplace, const TQStringList &findStrings, bool ha
topLayout->setMargin( 0 ); topLayout->setMargin( 0 );
m_findGrp = new TQGroupBox(0, Qt::Vertical, i18n("Find"), page); m_findGrp = new TQGroupBox(0, Qt::Vertical, i18n("Find"), page);
m_findGrp->layout()->setSpacing( KDialog::spacingHint() ); m_findGrp->tqlayout()->setSpacing( KDialog::spacingHint() );
// m_findGrp->layout()->setMargin( KDialog::marginHint() ); // m_findGrp->tqlayout()->setMargin( KDialog::marginHint() );
m_findLayout = new TQGridLayout(m_findGrp->layout()); m_findLayout = new TQGridLayout(m_findGrp->tqlayout());
m_findLayout->setSpacing( KDialog::spacingHint() ); m_findLayout->setSpacing( KDialog::spacingHint() );
// m_findLayout->setMargin( KDialog::marginHint() ); // m_findLayout->setMargin( KDialog::marginHint() );
@ -138,9 +138,9 @@ void KFindDialog::init(bool forReplace, const TQStringList &findStrings, bool ha
topLayout->addWidget(m_findGrp); topLayout->addWidget(m_findGrp);
m_replaceGrp = new TQGroupBox(0, Qt::Vertical, i18n("Replace With"), page); m_replaceGrp = new TQGroupBox(0, Qt::Vertical, i18n("Replace With"), page);
m_replaceGrp->layout()->setSpacing( KDialog::spacingHint() ); m_replaceGrp->tqlayout()->setSpacing( KDialog::spacingHint() );
// m_replaceGrp->layout()->setMargin( KDialog::marginHint() ); // m_replaceGrp->tqlayout()->setMargin( KDialog::marginHint() );
m_replaceLayout = new TQGridLayout(m_replaceGrp->layout()); m_replaceLayout = new TQGridLayout(m_replaceGrp->tqlayout());
m_replaceLayout->setSpacing( KDialog::spacingHint() ); m_replaceLayout->setSpacing( KDialog::spacingHint() );
// m_replaceLayout->setMargin( KDialog::marginHint() ); // m_replaceLayout->setMargin( KDialog::marginHint() );
@ -159,9 +159,9 @@ void KFindDialog::init(bool forReplace, const TQStringList &findStrings, bool ha
topLayout->addWidget(m_replaceGrp); topLayout->addWidget(m_replaceGrp);
m_optionGrp = new TQGroupBox(0, Qt::Vertical, i18n("Options"), page); m_optionGrp = new TQGroupBox(0, Qt::Vertical, i18n("Options"), page);
m_optionGrp->layout()->setSpacing(KDialog::spacingHint()); m_optionGrp->tqlayout()->setSpacing(KDialog::spacingHint());
// m_optionGrp->layout()->setMargin(KDialog::marginHint()); // m_optionGrp->tqlayout()->setMargin(KDialog::marginHint());
optionsLayout = new TQGridLayout(m_optionGrp->layout()); optionsLayout = new TQGridLayout(m_optionGrp->tqlayout());
optionsLayout->setSpacing( KDialog::spacingHint() ); optionsLayout->setSpacing( KDialog::spacingHint() );
// optionsLayout->setMargin( KDialog::marginHint() ); // optionsLayout->setMargin( KDialog::marginHint() );
@ -429,7 +429,7 @@ void KFindDialog::showPatterns()
if ( d->m_regexpDialog ) if ( d->m_regexpDialog )
{ {
KRegExpEditorInterface *iface = dynamic_cast<KRegExpEditorInterface *>( d->m_regexpDialog ); KRegExpEditorInterface *iface = tqt_dynamic_cast<KRegExpEditorInterface *>( d->m_regexpDialog );
assert( iface ); assert( iface );
iface->setRegExp( pattern() ); iface->setRegExp( pattern() );

@ -82,7 +82,7 @@ void KMultiTabBarInternal::setStyle(enum KMultiTabBar::KMultiTabBarStyle style)
{ {
m_style=style; m_style=style;
for (uint i=0;i<m_tabs.count();i++) for (uint i=0;i<m_tabs.count();i++)
m_tabs.at(i)->setStyle(m_style); m_tabs.tqat(i)->setStyle(m_style);
if ( (m_style==KMultiTabBar::KDEV3) || if ( (m_style==KMultiTabBar::KDEV3) ||
(m_style==KMultiTabBar::KDEV3ICON ) ) { (m_style==KMultiTabBar::KDEV3ICON ) ) {
@ -106,7 +106,7 @@ void KMultiTabBarInternal::setStyle(enum KMultiTabBar::KMultiTabBarStyle style)
} }
addChild(box); addChild(box);
for (uint i=0;i<m_tabs.count();i++) for (uint i=0;i<m_tabs.count();i++)
mainLayout->add(m_tabs.at(i)); mainLayout->add(m_tabs.tqat(i));
mainLayout->setAutoAdd(true); mainLayout->setAutoAdd(true);
} }
@ -175,7 +175,7 @@ void KMultiTabBarInternal::mousePressEvent(TQMouseEvent *ev)
uint ulen=0;\ uint ulen=0;\
diff=0; \ diff=0; \
for (uint i2=i;i2<tabCount;i2++) {\ for (uint i2=i;i2<tabCount;i2++) {\
uint l1=m_tabs.at(i2)->neededSize();\ uint l1=m_tabs.tqat(i2)->neededSize();\
if ((ulen+l1)>space){\ if ((ulen+l1)>space){\
if (ulen==0) diff=0;\ if (ulen==0) diff=0;\
else diff=((float)(space-ulen))/(i2-i);\ else diff=((float)(space-ulen))/(i2-i);\
@ -208,7 +208,7 @@ void KMultiTabBarInternal::resizeEvent(TQResizeEvent *ev) {
const uint tabCount=m_tabs.count(); const uint tabCount=m_tabs.count();
for (uint i=0;i<tabCount;i++) { for (uint i=0;i<tabCount;i++) {
cnt++; cnt++;
tmp+=m_tabs.at(i)->neededSize(); tmp+=m_tabs.tqat(i)->neededSize();
if (tmp>space) { if (tmp>space) {
if (cnt>1)i--; if (cnt>1)i--;
else if (i==(tabCount-1)) break; else if (i==(tabCount-1)) break;
@ -232,7 +232,7 @@ void KMultiTabBarInternal::resizeEvent(TQResizeEvent *ev) {
//kdDebug()<<"m_lines recalculated="<<m_lines<<endl; //kdDebug()<<"m_lines recalculated="<<m_lines<<endl;
for (uint i=0;i<tabCount;i++) { for (uint i=0;i<tabCount;i++) {
KMultiTabBarTab *tab=m_tabs.at(i); KMultiTabBarTab *tab=m_tabs.tqat(i);
cnt++; cnt++;
tmp+=tab->neededSize()+diff; tmp+=tab->neededSize()+diff;
if (tmp>space) { if (tmp>space) {
@ -258,7 +258,7 @@ void KMultiTabBarInternal::resizeEvent(TQResizeEvent *ev) {
//kdDebug()<<"starting new line:"<<lines<<endl; //kdDebug()<<"starting new line:"<<lines<<endl;
} else { } else {
//kdDebug()<<"Placing line on line:"<<lines<<" pos: (x/y)=("<<tmp-m_tabs.at(i)->neededSize()<<"/"<<lines*24<<")"<<endl; //kdDebug()<<"Placing line on line:"<<lines<<" pos: (x/y)=("<<tmp-m_tabs.tqat(i)->neededSize()<<"/"<<lines*24<<")"<<endl;
//kdDebug()<<"diff="<<diff<<endl; //kdDebug()<<"diff="<<diff<<endl;
tab->removeEventFilter(this); tab->removeEventFilter(this);
tab->move(NEARBYINT(tmp-tab->neededSize()),lines*24); tab->move(NEARBYINT(tmp-tab->neededSize()),lines*24);
@ -279,7 +279,7 @@ void KMultiTabBarInternal::resizeEvent(TQResizeEvent *ev) {
tmp=-diff; tmp=-diff;
for (uint i=0;i<tabCount;i++) { for (uint i=0;i<tabCount;i++) {
KMultiTabBarTab *tab=m_tabs.at(i); KMultiTabBarTab *tab=m_tabs.tqat(i);
cnt++; cnt++;
tmp+=tab->neededSize()+diff; tmp+=tab->neededSize()+diff;
if (tmp>space) { if (tmp>space) {
@ -311,7 +311,7 @@ void KMultiTabBarInternal::resizeEvent(TQResizeEvent *ev) {
} else { } else {
int size=0; /*move the calculation into another function and call it only on add tab and tab click events*/ int size=0; /*move the calculation into another function and call it only on add tab and tab click events*/
for (int i=0;i<(int)m_tabs.count();i++) for (int i=0;i<(int)m_tabs.count();i++)
size+=(m_barMode==KMultiTabBar::Vertical?m_tabs.at(i)->height():m_tabs.at(i)->width()); size+=(m_barMode==KMultiTabBar::Vertical?m_tabs.tqat(i)->height():m_tabs.tqat(i)->width());
if ((m_position==KMultiTabBar::Bottom) || (m_position==KMultiTabBar::Top)) if ((m_position==KMultiTabBar::Bottom) || (m_position==KMultiTabBar::Top))
box->setGeometry(0,0,size,height()); box->setGeometry(0,0,size,height());
else box->setGeometry(0,0,width(),size); else box->setGeometry(0,0,width(),size);
@ -351,7 +351,7 @@ int KMultiTabBarInternal::appendTab(const TQPixmap &pic ,int id,const TQString&
if (m_expandedTabSize<tab->neededSize()) { if (m_expandedTabSize<tab->neededSize()) {
m_expandedTabSize=tab->neededSize(); m_expandedTabSize=tab->neededSize();
for (uint i=0;i<m_tabs.count();i++) for (uint i=0;i<m_tabs.count();i++)
m_tabs.at(i)->setSize(m_expandedTabSize); m_tabs.tqat(i)->setSize(m_expandedTabSize);
} else tab->setSize(m_expandedTabSize); } else tab->setSize(m_expandedTabSize);
} else tab->updateState(); } else tab->updateState();
@ -364,7 +364,7 @@ void KMultiTabBarInternal::removeTab(int id)
{ {
for (uint pos=0;pos<m_tabs.count();pos++) for (uint pos=0;pos<m_tabs.count();pos++)
{ {
if (m_tabs.at(pos)->id()==id) if (m_tabs.tqat(pos)->id()==id)
{ {
m_tabs.remove(pos); m_tabs.remove(pos);
resizeEvent(0); resizeEvent(0);
@ -377,7 +377,7 @@ void KMultiTabBarInternal::setPosition(enum KMultiTabBar::KMultiTabBarPosition p
{ {
m_position=pos; m_position=pos;
for (uint i=0;i<m_tabs.count();i++) for (uint i=0;i<m_tabs.count();i++)
m_tabs.at(i)->setTabsPosition(m_position); m_tabs.tqat(i)->setTabsPosition(m_position);
viewport()->tqrepaint(); viewport()->tqrepaint();
} }
@ -445,13 +445,13 @@ void KMultiTabBarButton::setStyle(KMultiTabBar::KMultiTabBarStyle style)
void KMultiTabBarButton::hideEvent( TQHideEvent* he) { void KMultiTabBarButton::hideEvent( TQHideEvent* he) {
TQPushButton::hideEvent(he); TQPushButton::hideEvent(he);
KMultiTabBar *tb=dynamic_cast<KMultiTabBar*>(tqparentWidget()); KMultiTabBar *tb=tqt_dynamic_cast<KMultiTabBar*>(tqparentWidget());
if (tb) tb->updateSeparator(); if (tb) tb->updateSeparator();
} }
void KMultiTabBarButton::showEvent( TQShowEvent* he) { void KMultiTabBarButton::showEvent( TQShowEvent* he) {
TQPushButton::showEvent(he); TQPushButton::showEvent(he);
KMultiTabBar *tb=dynamic_cast<KMultiTabBar*>(tqparentWidget()); KMultiTabBar *tb=tqt_dynamic_cast<KMultiTabBar*>(tqparentWidget());
if (tb) tb->updateSeparator(); if (tb) tb->updateSeparator();
} }
@ -923,7 +923,7 @@ void KMultiTabBar::removeButton(int id)
{ {
for (uint pos=0;pos<m_buttons.count();pos++) for (uint pos=0;pos<m_buttons.count();pos++)
{ {
if (m_buttons.at(pos)->id()==id) if (m_buttons.tqat(pos)->id()==id)
{ {
m_buttons.take(pos)->deleteLater(); m_buttons.take(pos)->deleteLater();
break; break;
@ -978,7 +978,7 @@ void KMultiTabBar::setPosition(KMultiTabBarPosition pos)
m_position=pos; m_position=pos;
m_internal->setPosition(pos); m_internal->setPosition(pos);
for (uint i=0;i<m_buttons.count();i++) for (uint i=0;i<m_buttons.count();i++)
m_buttons.at(i)->setPosition(pos); m_buttons.tqat(i)->setPosition(pos);
} }
KMultiTabBar::KMultiTabBarPosition KMultiTabBar::position() const KMultiTabBar::KMultiTabBarPosition KMultiTabBar::position() const
@ -988,7 +988,7 @@ KMultiTabBar::KMultiTabBarPosition KMultiTabBar::position() const
void KMultiTabBar::fontChange(const TQFont& /* oldFont */) void KMultiTabBar::fontChange(const TQFont& /* oldFont */)
{ {
for (uint i=0;i<tabs()->count();i++) for (uint i=0;i<tabs()->count();i++)
tabs()->at(i)->resize(); tabs()->tqat(i)->resize();
tqrepaint(); tqrepaint();
} }

@ -422,7 +422,7 @@ int Backend::open(const TQByteArray& password) {
// compare hashes // compare hashes
int sz = encrypted.size(); int sz = encrypted.size();
for (int i = 0; i < 20; i++) { for (int i = 0; i < 20; i++) {
if (testhash[i] != encrypted.at(sz - 20 + i)) { if (testhash[i] != static_cast<const char>(encrypted.tqat(sz - 20 + i))) {
encrypted.fill(0); encrypted.fill(0);
sha.reset(); sha.reset();
return -8; // hash error. return -8; // hash error.

@ -143,7 +143,7 @@ class MD5Digest : public TQByteArray {
char x, y; char x, y;
for (; i < 16; ++i) { for (; i < 16; ++i) {
x = at(i); x = at(i);
y = r.at(i); y = const_cast<MD5Digest&>(r).tqat(i);
if (x != y) { if (x != y) {
break; break;
} }

@ -204,7 +204,7 @@ void QEventLoopEx::registerSocketNotifier( TQSocketNotifier *notifier )
while ( p && p->fd > sockfd ) while ( p && p->fd > sockfd )
p = list->next(); p = list->next();
if ( p ) if ( p )
list->insert( list->at(), sn ); list->insert( list->tqat(), sn );
else else
list->append( sn ); list->append( sn );
} }

Loading…
Cancel
Save