Remove additional unneeded tq method conversions

(cherry picked from commit a51cd9949c)
v3.5.13-sru
Timothy Pearson 14 years ago committed by Slávek Banko
parent e2867c1f1e
commit 41b1d53a01

@ -647,13 +647,13 @@ For more details please consult the HOWTO file in the kcontrol directory.
<p>The API for Kicker panel applets and extensions has changed. Panels can now be <p>The API for Kicker panel applets and extensions has changed. Panels can now be
left/top, center, or right/bottom aligned, and applets and extensions may receive left/top, center, or right/bottom aligned, and applets and extensions may receive
notification about a change in tqalignment. notification about a change in alignment.
<H4>KPanelApplet</H4> <H4>KPanelApplet</H4>
<p>The virtual methods orientationChange() and popupDirectionChange() are deprecated. <p>The virtual methods orientationChange() and popupDirectionChange() are deprecated.
Instead you should reimplement positionChange() and alignmentChange() to be Instead you should reimplement positionChange() and alignmentChange() to be
notified of changes in the position and tqalignment of the panel on which your applet notified of changes in the position and alignment of the panel on which your applet
resides. In addition, the popupDirection() method and the Direction enum are resides. In addition, the popupDirection() method and the Direction enum are
deprecated. Instead you should use the position() method and Position enum. Applets that use deprecated. Instead you should use the position() method and Position enum. Applets that use
the deprecated methods will still work with KDE 3, but may not compile or work with the deprecated methods will still work with KDE 3, but may not compile or work with
@ -662,7 +662,7 @@ a future version.
<H4>KPanelExtension</H4> <H4>KPanelExtension</H4>
<p>There is a new method alignmentChange() that your extension should reimplement if <p>There is a new method alignmentChange() that your extension should reimplement if
it needs to know about changes in tqalignment. it needs to know about changes in alignment.
<H4><P ALIGN="RIGHT"><A HREF="#TOC">Return to the Table of Contents</A></P></H4> <H4><P ALIGN="RIGHT"><A HREF="#TOC">Return to the Table of Contents</A></P></H4>
<p> <p>

@ -147,7 +147,7 @@ void KVideoWidget::embed( Arts::VideoPlayObject vpo )
} }
setBackgroundMode( PaletteBackground ); setBackgroundMode( PaletteBackground );
tqrepaint(); repaint();
// Resize GUI // Resize GUI
videoWidth = 0; videoWidth = 0;

@ -89,7 +89,7 @@ typedef enum {
IceClosedASAP, IceClosedASAP,
IceConnectionInUse, IceConnectionInUse,
IceStartedShutdownNegotiation IceStartedShutdownNegotiation
} IceCloseStatus; } IceClosetStatus;
typedef enum { typedef enum {
IceProcessMessagesSuccess, IceProcessMessagesSuccess,
@ -398,7 +398,7 @@ extern Bool IceCheckShutdownNegotiation (
#define IceCloseConnection KDE_IceCloseConnection #define IceCloseConnection KDE_IceCloseConnection
extern IceCloseStatus IceCloseConnection ( extern IceClosetStatus IceCloseConnection (
#if NeedFunctionPrototypes #if NeedFunctionPrototypes
IceConn /* iceConn */ IceConn /* iceConn */
#endif #endif

@ -221,7 +221,7 @@ extern void _IceErrorBadValue (
/* /*
* Write pad bytes. Used to force 32 or 64 bit tqalignment. * Write pad bytes. Used to force 32 or 64 bit alignment.
* A maxium of 7 pad bytes can be specified. * A maxium of 7 pad bytes can be specified.
*/ */
@ -306,7 +306,7 @@ extern void _IceErrorBadValue (
/* /*
* Read pad bytes (for 32 or 64 bit tqalignment). * Read pad bytes (for 32 or 64 bit alignment).
* A maxium of 7 pad bytes can be specified. * A maxium of 7 pad bytes can be specified.
*/ */

@ -102,14 +102,14 @@ IceConn iceConn;
IceCloseStatus IceClosetStatus
IceCloseConnection (iceConn) IceCloseConnection (iceConn)
IceConn iceConn; IceConn iceConn;
{ {
int refCountReachedZero; int refCountReachedZero;
IceCloseStatus status; IceClosetStatus status;
/* /*
* If this connection object was never valid, we can close * If this connection object was never valid, we can close

@ -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.tqat(s)); partl.remove(partl.at(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.tqat(s)); partl.remove(partl.at(s));
} }
lt = partl.join(" "); lt = partl.join(" ");

@ -396,7 +396,7 @@ public:
* Flag for allowing entering the event loop if the call blocks too long. * Flag for allowing entering the event loop if the call blocks too long.
* @p NoEventLoop disables entering the event loop. * @p NoEventLoop disables entering the event loop.
* @p UseEventLoop allows entering the event loop while waiting for long * @p UseEventLoop allows entering the event loop while waiting for long
* blocking DCOP call, thus making the GUI tqrepaint if needed, and possibly * blocking DCOP call, thus making the GUI repaint if needed, and possibly
* allowing also other code in the application to be executed. * allowing also other code in the application to be executed.
* @see DCOPClient::call() * @see DCOPClient::call()
*/ */

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

@ -143,7 +143,7 @@ class BytesEditInterface
virtual bool isModified() const = 0; virtual bool isModified() const = 0;
public: // call for action public: // call for action
/** tqrepaint the indizes from i1 to i2 */ /** repaint the indizes from i1 to i2 */
virtual void repaintRange( int i1, int i2 ) = 0; virtual void repaintRange( int i1, int i2 ) = 0;
}; };

@ -467,7 +467,7 @@ k_dcop_signals:
/** /**
* @brief Indicates that a contact's presence has changed * @brief Indicates that a contact's presence has changed
* *
* Notifies connected DCOP tqreceivers about a change in a contact's * Notifies connected DCOP receivers about a change in a contact's
* presence. * presence.
* *
* Implementations just have to call this method with the appropriate * Implementations just have to call this method with the appropriate

@ -44,7 +44,7 @@ class KTEXTEDITOR_EXPORT EditInterfaceExt
/** /**
* Begin an editing sequence. Edit commands during this sequence will be * Begin an editing sequence. Edit commands during this sequence will be
* bunched together such that they represent a single undo command in the * bunched together such that they represent a single undo command in the
* editor, and so that tqrepaint events do not occur inbetween. * editor, and so that repaint events do not occur inbetween.
* *
* Your application should not return control to the event loop while it * Your application should not return control to the event loop while it
* has an unterminated (no matching editEnd() call) editing sequence * has an unterminated (no matching editEnd() call) editing sequence

@ -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.tqat(d->chooser->editorCombo->currentItem()-1))); TQString::null : (*d->elements.at(d->chooser->editorCombo->currentItem()-1)));
cfg->sync(); cfg->sync();
cfg->setGroup(previousGroup); cfg->setGroup(previousGroup);

@ -40,7 +40,7 @@
<property name="text"> <property name="text">
<string>Please choose the default text editing component that you wish to use in this application. If you choose &lt;B&gt;System Default&lt;/B&gt;, the application will honor your changes in the Control Center. All other choices will override that setting.</string> <string>Please choose the default text editing component that you wish to use in this application. If you choose &lt;B&gt;System Default&lt;/B&gt;, the application will honor your changes in the Control Center. All other choices will override that setting.</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>WordBreak|AlignVCenter|AlignLeft</set> <set>WordBreak|AlignVCenter|AlignLeft</set>
</property> </property>
</widget> </widget>

@ -127,7 +127,7 @@ class CategoriesMap : public TQMap<int, TQString>
* keys). Of course, in different files a key might be used twice. <BR> * keys). Of course, in different files a key might be used twice. <BR>
* The keys are objects of the type KabKey and define the section in the * The keys are objects of the type KabKey and define the section in the
* addressbook database where the entry is stored (see QConfigDB * addressbook database where the entry is stored (see QConfigDB
* reference). Keys tqinvalidate on file changes, so keep track of the * reference). Keys invalidate on file changes, so keep track of the
* signal ::changed. <BR> * signal ::changed. <BR>
* kab watches file changes. If the opened file changes on disk, it is * kab watches file changes. If the opened file changes on disk, it is
* automatically reloaded and ::changed() is emitted. * automatically reloaded and ::changed() is emitted.

@ -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).tqat(count)); temp=makeComplexString(((TQStrList)values).at(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.tqat(count))); values.append(TQString::fromUtf8(temp.at(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.tqat(count)).utf8()); utf8strings.append((*values.at(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()->tqat( 2 * sizeof( TQ_UINT32 ) ); stream.device()->at( 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.tqat( entry.length() -1 ) == ')' ) { if ( entry.at( entry.length() -1 ) == ')' ) {
int br = entry.findRev( '(' ); int br = entry.findRev( '(' );
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.tqat( entry.length() - 1 ).isSpace() ) { if ( entry.at( 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.tqat( 0 ) == '<' && email.tqat( email.length() - 1) == '>' ) { if ( email.at( 0 ) == '<' && email.at( email.length() - 1) == '>' ) {
email = email.mid( 1, email.length() - 2 ); email = email.mid( 1, email.length() - 2 );
} }
if ( name.tqat( 0 ) == '"' && name.tqat( name.length() - 1) == '"' ) { if ( name.at( 0 ) == '"' && name.at( name.length() - 1) == '"' ) {
name = name.mid( 1, name.length() - 2 ); name = name.mid( 1, name.length() - 2 );
} }
if ( name.tqat( 0 ) == '\'' && name.tqat( name.length() - 1) == '\'' ) { if ( name.at( 0 ) == '\'' && name.at( name.length() - 1) == '\'' ) {
name = name.mid( 1, name.length() - 2 ); name = name.mid( 1, name.length() - 2 );
} }
if ( name.tqat( name.length() -1 ) == ')' ) { if ( name.at( name.length() -1 ) == ')' ) {
int br = name.findRev( '(' ); int br = name.findRev( '(' );
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.tqat( name.length() - 1 ).isSpace() ) { if ( name.at( 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).tqat( 0 ) == '#' ) continue; if ( (*it).at( 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).tqat( i ) == '"' ) { if ( (*it).at( i ) == '"' ) {
if ( insideQuote ) if ( insideQuote )
insideQuote = false; insideQuote = false;
else else
insideQuote = true; insideQuote = true;
} else if ( (*it).tqat( i ) == ',' && !insideQuote ) { } else if ( (*it).at( 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.tqat( i ); Resource *resource = list.at( 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.tqat(0)).uid()=="78ze" if ( !( (*list.at(0)).uid()=="78ze"
&& (*list.tqat(1)).uid()=="Rsdf" && (*list.at(1)).uid()=="Rsdf"
&& (*list.tqat(2)).uid()=="Fhwn" && (*list.at(2)).uid()=="Fhwn"
&& (*list.tqat(3)).uid()=="kk45" && (*list.at(3)).uid()=="kk45"
&& (*list.tqat(4)).uid()=="Asdf" && (*list.at(4)).uid()=="Asdf"
&& (*list.tqat(5)).uid()=="Z2hk" && (*list.at(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.tqat(5)).uid()=="78ze" if ( !( (*list.at(5)).uid()=="78ze"
&& (*list.tqat(4)).uid()=="Rsdf" && (*list.at(4)).uid()=="Rsdf"
&& (*list.tqat(3)).uid()=="Fhwn" && (*list.at(3)).uid()=="Fhwn"
&& (*list.tqat(2)).uid()=="kk45" && (*list.at(2)).uid()=="kk45"
&& (*list.tqat(1)).uid()=="Asdf" && (*list.at(1)).uid()=="Asdf"
&& (*list.tqat(0)).uid()=="Z2hk" && (*list.at(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.tqat(0)).uid()=="78ze" if ( !( (*list.at(0)).uid()=="78ze"
&& (*list.tqat(1)).uid()=="Rsdf" && (*list.at(1)).uid()=="Rsdf"
&& (*list.tqat(2)).uid()=="Fhwn" && (*list.at(2)).uid()=="Fhwn"
&& (*list.tqat(3)).uid()=="kk45" && (*list.at(3)).uid()=="kk45"
&& (*list.tqat(4)).uid()=="Z2hk" && (*list.at(4)).uid()=="Z2hk"
&& (*list.tqat(5)).uid()=="Asdf" && (*list.at(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.tqat(5)).uid()=="78ze" if ( !( (*list.at(5)).uid()=="78ze"
&& (*list.tqat(4)).uid()=="Rsdf" && (*list.at(4)).uid()=="Rsdf"
&& (*list.tqat(3)).uid()=="Fhwn" && (*list.at(3)).uid()=="Fhwn"
&& (*list.tqat(2)).uid()=="kk45" && (*list.at(2)).uid()=="kk45"
&& (*list.tqat(1)).uid()=="Z2hk" && (*list.at(1)).uid()=="Z2hk"
&& (*list.tqat(0)).uid()=="Asdf" && (*list.at(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.tqat(0)).uid()=="78ze" if ( !( (*list.at(0)).uid()=="78ze"
&& (*list.tqat(1)).uid()=="Asdf" && (*list.at(1)).uid()=="Asdf"
&& (*list.tqat(2)).uid()=="Fhwn" && (*list.at(2)).uid()=="Fhwn"
&& (*list.tqat(3)).uid()=="Rsdf" && (*list.at(3)).uid()=="Rsdf"
&& (*list.tqat(4)).uid()=="Z2hk" && (*list.at(4)).uid()=="Z2hk"
&& (*list.tqat(5)).uid()=="kk45" && (*list.at(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.tqat(5)).uid()=="78ze" if ( !( (*list.at(5)).uid()=="78ze"
&& (*list.tqat(4)).uid()=="Asdf" && (*list.at(4)).uid()=="Asdf"
&& (*list.tqat(3)).uid()=="Fhwn" && (*list.at(3)).uid()=="Fhwn"
&& (*list.tqat(2)).uid()=="Rsdf" && (*list.at(2)).uid()=="Rsdf"
&& (*list.tqat(1)).uid()=="Z2hk" && (*list.at(1)).uid()=="Z2hk"
&& (*list.tqat(0)).uid()=="kk45" && (*list.at(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.tqat(0)).uid()=="78ze" if ( !( (*list2.at(0)).uid()=="78ze"
&& (*list2.tqat(1)).uid()=="Asdf" && (*list2.at(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.tqat(1)).uid()=="78ze" if ( !( (*list2.at(1)).uid()=="78ze"
&& (*list2.tqat(0)).uid()=="Asdf" && (*list2.at(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.tqat(0); break; case 0: poBox_ = l.at(0); break;
case 1: extAddress_ = l.tqat(1); break; case 1: extAddress_ = l.at(1); break;
case 2: street_ = l.tqat(2); break; case 2: street_ = l.at(2); break;
case 3: locality_ = l.tqat(3); break; case 3: locality_ = l.at(3); break;
case 4: region_ = l.tqat(4); break; case 4: region_ = l.at(4); break;
case 5: postCode_ = l.tqat(5); break; case 5: postCode_ = l.at(5); break;
case 6: countryName_ = l.tqat(6); break; case 6: countryName_ = l.at(6); break;
default: break; default: break;
} }
} }

@ -174,7 +174,7 @@ ContentLine::_parse()
return; return;
} }
name_ = l.tqat(0); name_ = l.at(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.tqat(0); primary_ = l.at(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.tqat(0); break; case 0: family_ = l.at(0); break;
case 1: given_ = l.tqat(1); break; case 1: given_ = l.at(1); break;
case 2: middle_ = l.tqat(2); break; case 2: middle_ = l.at(2); break;
case 3: prefix_ = l.tqat(3); break; case 3: prefix_ = l.at(3); break;
case 4: suffix_ = l.tqat(4); break; case 4: suffix_ = l.at(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_.tqat(i); return valueList_.at(i);
} }

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

@ -95,7 +95,7 @@ VCard::_parse()
} }
// Get the first line // Get the first line
TQCString beginLine = TQCString(l.tqat(0)).stripWhiteSpace(); TQCString beginLine = TQCString(l.at(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.tqat( value.length() - 1 ) == '=' && it != linesEnd ) { while ( value.at( value.length() - 1 ) == '=' && it != linesEnd ) {
value = value.remove( value.length() - 1, 1 ) + (*it); value = value.remove( value.length() - 1, 1 ) + (*it);
++it; ++it;
} }

@ -36,7 +36,7 @@ static bool needsEncoding( const TQString &value )
{ {
uint length = value.length(); uint length = value.length();
for ( uint i = 0; i < length; ++i ) { for ( uint i = 0; i < length; ++i ) {
char c = value.tqat( i ).latin1(); char c = value.at( i ).latin1();
if ( (c < 33 || c > 126) && c != ' ' && c != '=' ) if ( (c < 33 || c > 126) && c != ' ' && c != '=' )
return true; return true;
} }

@ -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.tqat(i)->name; TQString name = items.at(i)->name;
if (name.find("Comment") != -1 && commentAttrib == 255) if (name.find("Comment") != -1 && commentAttrib == 255)
{ {
commentAttrib = i; commentAttrib = i;
@ -1411,7 +1411,7 @@ void KateXmlIndent::getLineInfo (uint line, uint &prevIndent, int &numTags,
uint pos, len = text.length(); uint pos, len = text.length();
bool seenOpen = false; bool seenOpen = false;
for(pos = 0; pos < len; ++pos) { for(pos = 0; pos < len; ++pos) {
int ch = text.tqat(pos).tqunicode(); int ch = text.at(pos).tqunicode();
switch(ch) { switch(ch) {
case '<': case '<':
seenOpen = true; seenOpen = true;
@ -1467,11 +1467,11 @@ void KateXmlIndent::getLineInfo (uint line, uint &prevIndent, int &numTags,
if(unclosedTag) { if(unclosedTag) {
// find the start of the next attribute, so we can align with it // find the start of the next attribute, so we can align with it
do { do {
lastCh = text.tqat(++attrCol).tqunicode(); lastCh = text.at(++attrCol).tqunicode();
}while(lastCh && lastCh != ' ' && lastCh != '\t'); }while(lastCh && lastCh != ' ' && lastCh != '\t');
while(lastCh == ' ' || lastCh == '\t') { while(lastCh == ' ' || lastCh == '\t') {
lastCh = text.tqat(++attrCol).tqunicode(); lastCh = text.at(++attrCol).tqunicode();
} }
attrCol = prevLine->cursorX(attrCol, tabWidth); attrCol = prevLine->cursorX(attrCol, tabWidth);
@ -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.tqat(i)->name.section( ':', 1 ) == val ) if ( items.at(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.tqat(i)->line, KTextEditor::MarkInterface::markType01 ); m_view->getDoc()->removeMark( m.at(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.tqat(z)->line > line) && ((found == -1) || (uint(found) > m.tqat(z)->line)) ) if ( (m.at(z)->line > line) && ((found == -1) || (uint(found) > m.at(z)->line)) )
found = m.tqat(z)->line; found = m.at(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.tqat(z)->line < line) && ((found == -1) || (uint(found) < m.tqat(z)->line))) if ((m.at(z)->line < line) && ((found == -1) || (uint(found) < m.at(z)->line)))
found = m.tqat(z)->line; found = m.at(z)->line;
if (found != -1) if (found != -1)
m_view->gotoLineNumber ( found ); m_view->gotoLineNumber ( found );

@ -860,12 +860,12 @@ void KateBuffer::setHighlight(uint hlMode)
// aha, hl will change // aha, hl will change
if (h != m_highlight) if (h != m_highlight)
{ {
bool tqinvalidate = !h->noHighlighting(); bool invalidate = !h->noHighlighting();
if (m_highlight) if (m_highlight)
{ {
m_highlight->release(); m_highlight->release();
tqinvalidate = true; invalidate = true;
} }
h->use(); h->use();
@ -880,7 +880,7 @@ void KateBuffer::setHighlight(uint hlMode)
m_highlight = h; m_highlight = h;
if (tqinvalidate) if (invalidate)
invalidateHighlighting(); invalidateHighlighting();
// inform the document that the hl was really changed // inform the document that the hl was really changed
@ -949,7 +949,7 @@ void KateBuffer::addIndentBasedFoldingInformation(TQMemArray<uint> &foldingList,
} }
} }
bool KateBuffer::doHighlight (KateBufBlock *buf, uint startLine, uint endLine, bool tqinvalidate) bool KateBuffer::doHighlight (KateBufBlock *buf, uint startLine, uint endLine, bool invalidate)
{ {
// no hl around, no stuff to do // no hl around, no stuff to do
if (!m_highlight) if (!m_highlight)
@ -971,7 +971,7 @@ bool KateBuffer::doHighlight (KateBufBlock *buf, uint startLine, uint endLine, b
//kdDebug (13020) << "HL UNTIL LINE: " << m_lineHighlighted << " MAX: " << m_lineHighlightedMax << endl; //kdDebug (13020) << "HL UNTIL LINE: " << m_lineHighlighted << " MAX: " << m_lineHighlightedMax << endl;
//kdDebug (13020) << "HL DYN COUNT: " << KateHlManager::self()->countDynamicCtxs() << " MAX: " << m_maxDynamicContexts << endl; //kdDebug (13020) << "HL DYN COUNT: " << KateHlManager::self()->countDynamicCtxs() << " MAX: " << m_maxDynamicContexts << endl;
// see if there are too many dynamic contexts; if yes, tqinvalidate HL of all documents // see if there are too many dynamic contexts; if yes, invalidate HL of all documents
if (KateHlManager::self()->countDynamicCtxs() >= m_maxDynamicContexts) if (KateHlManager::self()->countDynamicCtxs() >= m_maxDynamicContexts)
{ {
{ {
@ -1240,7 +1240,7 @@ bool KateBuffer::doHighlight (KateBufBlock *buf, uint startLine, uint endLine, b
buf->markDirty (); buf->markDirty ();
// tag the changed lines ! // tag the changed lines !
if (tqinvalidate) if (invalidate)
emit tagLines (startLine, current_line + buf->startLine()); emit tagLines (startLine, current_line + buf->startLine());
// emit that we have changed the folding // emit that we have changed the folding

@ -116,7 +116,7 @@ class KateBufBlock
void removeLine(uint i); void removeLine(uint i);
/** /**
* mark this block as dirty, will tqinvalidate the swap data * mark this block as dirty, will invalidate the swap data
* insert/removeLine will mark the block dirty itself * insert/removeLine will mark the block dirty itself
*/ */
void markDirty (); void markDirty ();
@ -611,7 +611,7 @@ class KateBuffer : public TQObject
* @returns true when the highlighting in the next block needs to be updated, * @returns true when the highlighting in the next block needs to be updated,
* false otherwise. * false otherwise.
*/ */
bool doHighlight (KateBufBlock *buf, uint from, uint to, bool tqinvalidate); bool doHighlight (KateBufBlock *buf, uint from, uint to, bool invalidate);
signals: signals:
/** /**

@ -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.tqat(i); KateCodeFoldingNode *node = markedForDeleting.at(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.tqat(i); KateCodeFoldingNode *node=nodesForLine.at(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.tqat(0)->visible = !nodesForLine.tqat(0)->visible; nodesForLine.at(0)->visible = !nodesForLine.at(0)->visible;
if (!nodesForLine.tqat(0)->visible) if (!nodesForLine.at(0)->visible)
addHiddenLineBlock(nodesForLine.tqat(0),line); addHiddenLineBlock(nodesForLine.at(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.tqat(0)); updateHiddenSubNodes(nodesForLine.at(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()->tqat(z)->updateConfig (); KateFactory::self()->documents()->at(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.tqat(index) || isGlobal()) if (m_pluginsSet.at(index) || isGlobal())
return m_plugins.tqat(index); return m_plugins.at(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()->tqat(z)->updateConfig (); KateFactory::self()->views()->at(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()->tqat(z)->updateConfig (); KateFactory::self()->renderers()->at(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()->tqat(z)->config()->reloadSchema(); KateFactory::self()->renderers()->at(z)->config()->reloadSchema();
else if ( m_renderer && m_schemaSet ) else if ( m_renderer && m_schemaSet )
setSchemaInternal( m_schema ); setSchemaInternal( m_schema );

@ -712,7 +712,7 @@ KateViewDefaultsConfig::KateViewDefaultsConfig(TQWidget *parent)
"you to set a maximum width of the screen, as a percentage, after which " "you to set a maximum width of the screen, as a percentage, after which "
"dynamically wrapped lines will no longer be vertically aligned. For " "dynamically wrapped lines will no longer be vertically aligned. For "
"example, at 50%, lines whose indentation levels are deeper than 50% of " "example, at 50%, lines whose indentation levels are deeper than 50% of "
"the width of the screen will not have vertical tqalignment applied to " "the width of the screen will not have vertical alignment applied to "
"subsequent wrapped lines.</p>")); "subsequent wrapped lines.</p>"));
TQWhatsThis::add(m_line,i18n( TQWhatsThis::add(m_line,i18n(
"If this option is checked, every new view will display line numbers " "If this option is checked, every new view will display line numbers "
@ -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().tqat(0); KateView* view = (KateView*)m_doc->views().at(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.tqat(i)->pluginIndex(), m_items.tqat(i)->isOn()); KateDocumentConfig::global()->setPlugin (m_items.at(i)->pluginIndex(), m_items.at(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.tqat( i )->apply(); editorPages.at( 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.tqat(i)); enablePluginGUI (plugin, m_views.at(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.tqat(i)); disablePluginGUI (plugin, m_views.at(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.tqat(i)); msave.append (*m.at(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.tqat(z)->editStart (); m_views.at(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.tqat(z)->editEnd (m_buffer->editTagStart(), m_buffer->editTagEnd(), m_buffer->editTagFrom()); m_views.at(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.tqat(i)->apply(); editorPages.at(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.tqat(z)->renderer()->updateAttributes (); m_views.at(z)->renderer()->updateAttributes ();
if (needInvalidate) if (needInvalidate)
m_buffer->invalidateHighlighting(); m_buffer->invalidateHighlighting();
@ -3981,9 +3981,9 @@ 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.tqat( p-1 ) ) ) ( p && ! highlight()->isInWord( s.at( p-1 ) ) )
) )
s[p] = s.tqat(p).upper(); s[p] = s.at(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.tqat(z)->tagLines (start, end, true); m_views.at(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.tqat(z)->tagLines(start, end, true); m_views.at(z)->tagLines(start, end, true);
} }
void KateDocument::repaintViews(bool paintOnlyDirty) void KateDocument::repaintViews(bool paintOnlyDirty)
{ {
for (uint z = 0; z < m_views.count(); z++) for (uint z = 0; z < m_views.count(); z++)
m_views.tqat(z)->repaintText(paintOnlyDirty); m_views.at(z)->repaintText(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.tqat(z)->tagAll(); m_views.at(z)->tagAll();
m_views.tqat(z)->updateView (true); m_views.at(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()->tqat(z) != this) && (KateFactory::self()->documents()->tqat(z)->url().filename() == url().filename()) ) if ( (KateFactory::self()->documents()->at(z) != this) && (KateFactory::self()->documents()->at(z)->url().filename() == url().filename()) )
if ( KateFactory::self()->documents()->tqat(z)->m_docNameNumber > count ) if ( KateFactory::self()->documents()->at(z)->m_docNameNumber > count )
count = KateFactory::self()->documents()->tqat(z)->m_docNameNumber; count = KateFactory::self()->documents()->at(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.tqat( i )->cursorLine() ); lines.append( m_views.at( i )->cursorLine() );
cols.append( m_views.tqat( i )->cursorColumn() ); cols.append( m_views.at( 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.tqat( i )->setCursorPositionInternal( lines[ i ], cols[ i ], m_config->tabWidth(), false ); m_views.at( 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.tqat(i)->script(scriptname); result=m_indentScriptManagers.at(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->tqat(z)->name); config.setGroup (v->at(z)->name);
config.writeEntry ("Section", v->tqat(z)->section); config.writeEntry ("Section", v->at(z)->section);
config.writeEntry ("Wildcards", v->tqat(z)->wildcards, ';'); config.writeEntry ("Wildcards", v->at(z)->wildcards, ';');
config.writeEntry ("Mimetypes", v->tqat(z)->mimetypes, ';'); config.writeEntry ("Mimetypes", v->at(z)->mimetypes, ';');
config.writeEntry ("Priority", v->tqat(z)->priority); config.writeEntry ("Priority", v->at(z)->priority);
TQString varLine = v->tqat(z)->varLine; TQString varLine = v->at(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->tqat(z)->name; newg << v->at(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.tqat(z)->mimetypes.findIndex (mt->name()) > -1) if (m_types.at(z)->mimetypes.findIndex (mt->name()) > -1)
types.append (m_types.tqat(z)); types.append (m_types.at(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.tqat(z)->wildcards.begin(); it != m_types.tqat(z)->wildcards.end(); ++it ) for( TQStringList::Iterator it = m_types.at(z)->wildcards.begin(); it != m_types.at(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.tqat(z)); types.append (m_types.at(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.tqat(number); return m_types.at(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()->tqat(z); *type = *KateFactory::self()->fileTypeManager()->list()->at(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.tqat(i)->section.length() > 0) if (m_types.at(i)->section.length() > 0)
typeCombo->insertItem(m_types.tqat(i)->section + TQString ("/") + m_types.tqat(i)->name); typeCombo->insertItem(m_types.at(i)->section + TQString ("/") + m_types.at(i)->name);
else else
typeCombo->insertItem(m_types.tqat(i)->name); typeCombo->insertItem(m_types.at(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.tqat(i)->name == newN) if (m_types.at(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.tqat(type); t = m_types.at(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()->tqat(z)->name; TQString hlName = KateFactory::self()->fileTypeManager()->list()->at(z)->name;
TQString hlSection = KateFactory::self()->fileTypeManager()->list()->tqat(z)->section; TQString hlSection = KateFactory::self()->fileTypeManager()->list()->at(z)->section;
if ( !hlSection.isEmpty() && (names.contains(hlName) < 1) ) if ( !hlSection.isEmpty() && (names.contains(hlName) < 1) )
{ {
@ -551,7 +551,7 @@ void KateViewFileTypeAction::slotAboutToShow()
int m = subMenusName.findIndex (hlSection); int m = subMenusName.findIndex (hlSection);
names << hlName; names << hlName;
subMenus.tqat(m)->insertItem ( hlName, this, TQT_SLOT(setType(int)), 0, z+1); subMenus.at(m)->insertItem ( hlName, this, TQT_SLOT(setType(int)), 0, z+1);
} }
else if (names.contains(hlName) < 1) else if (names.contains(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.tqat(i)->count();i2++) for (uint i2=0;i2<subMenus.at(i)->count();i2++)
subMenus.tqat(i)->setItemChecked(subMenus.tqat(i)->idAt(i2),false); subMenus.at(i)->setItemChecked(subMenus.at(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.findIndex (t->section); int i = subMenusName.findIndex (t->section);
if (i >= 0 && subMenus.tqat(i)) if (i >= 0 && subMenus.at(i))
subMenus.tqat(i)->setItemChecked (doc->fileType()+1, true); subMenus.at(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.tqat(offset2) >= TQChar('0') && text.tqat(offset2) <= TQChar('7'))) while ((len > 0) && (text.at(offset2) >= TQChar('0') && text.at(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) && (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++) for (i = 0; (len > 0) && (i < 2) && (static_cast<const char>(text.at(offset)) >= '0' && static_cast<const char>(text.at(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) && (static_cast<const char>(text.tqat(offset)) >= '0' && static_cast<const char>(text.tqat(offset)) <= '7'); i++) for (i = 0; (len > 0) && (i < 3) && (static_cast<const char>(text.at(offset)) >= '0' && static_cast<const char>(text.at(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.tqat(i)->name == buildPrefix+name) if (iDl.at(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.tqat(z); KateHlItemData *itemData = itemDataList.at(z);
KateAttribute n = *defaultStyleList.tqat(itemData->defStyleNum); KateAttribute n = *defaultStyleList.at(itemData->defStyleNum);
if (itemData && itemData->isSomethingSet()) if (itemData && itemData->isSomethingSet())
n += *itemData; n += *itemData;
array->tqat(z) = n; array->at(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.tqat(z); KateHlItemData *itemData = itemDataList.at(z);
KateAttribute n = *defaultStyleList.tqat(itemData->defStyleNum); KateAttribute n = *defaultStyleList.at(itemData->defStyleNum);
if (itemData && itemData->isSomethingSet()) if (itemData && itemData->isSomethingSet())
n += *itemData; n += *itemData;
array->tqat(z) = n; array->at(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.tqat(z))); outlist.append (new KateHlItemData (*itemDataList.at(z)));
} }
//END //END
@ -2974,7 +2974,7 @@ KateHlManager::KateHlManager()
if (insert == hlList.count()) if (insert == hlList.count())
break; break;
if ( TQString(hlList.tqat(insert)->section() + hlList.tqat(insert)->nameTranslated()).lower() if ( TQString(hlList.at(insert)->section() + hlList.at(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.tqat(n); return hlList.at(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.tqat(z)->name() == name) if (hlList.at(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.tqat(z); KateAttribute *i = list.at(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.tqat(z); KateAttribute *i = list.at(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.tqat(n)->name(); return hlList.at(n)->name();
} }
TQString KateHlManager::hlNameTranslated(int n) TQString KateHlManager::hlNameTranslated(int n)
{ {
return hlList.tqat(n)->nameTranslated(); return hlList.at(n)->nameTranslated();
} }
TQString KateHlManager::hlSection(int n) TQString KateHlManager::hlSection(int n)
{ {
return hlList.tqat(n)->section(); return hlList.at(n)->section();
} }
bool KateHlManager::hlHidden(int n) bool KateHlManager::hlHidden(int n)
{ {
return hlList.tqat(n)->hidden(); return hlList.at(n)->hidden();
} }
TQString KateHlManager::identifierForName(const TQString& name) TQString KateHlManager::identifierForName(const TQString& name)
@ -3433,7 +3433,7 @@ void KateViewHighlightAction::slotAboutToShow()
int m = subMenusName.findIndex (hlSection); int m = subMenusName.findIndex (hlSection);
names << hlName; names << hlName;
subMenus.tqat(m)->insertItem ( '&' + hlName, this, TQT_SLOT(setHl(int)), 0, z); subMenus.at(m)->insertItem ( '&' + hlName, this, TQT_SLOT(setHl(int)), 0, z);
} }
else if (names.contains(hlName) < 1) else if (names.contains(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.tqat(i)->count();i2++) for (uint i2=0;i2<subMenus.at(i)->count();i2++)
{ {
subMenus.tqat(i)->setItemChecked(subMenus.tqat(i)->idAt(i2),false); subMenus.at(i)->setItemChecked(subMenus.at(i)->idAt(i2),false);
} }
} }
popupMenu()->setItemChecked (0, false); popupMenu()->setItemChecked (0, false);
int i = subMenusName.findIndex (KateHlManager::self()->hlSection(doc->hlMode())); int i = subMenusName.findIndex (KateHlManager::self()->hlSection(doc->hlMode()));
if (i >= 0 && subMenus.tqat(i)) if (i >= 0 && subMenus.at(i))
subMenus.tqat(i)->setItemChecked (doc->hlMode(), true); subMenus.at(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().tqat(0), args[1].toUInt32(exec) ) ); return KJS::Boolean( doc->highlight()->isInWord( args[0].toString(exec).qstring().at(0), args[1].toUInt32(exec) ) );
case KateJSDocument::CanBreakAt: case KateJSDocument::CanBreakAt:
return KJS::Boolean( doc->highlight()->canBreakAt( args[0].toString(exec).qstring().tqat(0), args[1].toUInt32(exec) ) ); return KJS::Boolean( doc->highlight()->canBreakAt( args[0].toString(exec).qstring().at(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.tqat(0)->textColor() ); paint.setPen( _dsList.at(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->tqat(pos); return &m_attributes->at(pos);
return &m_attributes->tqat(0); return &m_attributes->at(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->tqat(0)->textColor(); // not quite as much of an assumption ;) _c = l->at(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->tqat( i ) ); new KateStyleListItem( m_defaultStyles, KateHlManager::self()->defaultStyleName(i, true), l->at( 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->tqat(0)->textColor(); // not quite as much of an assumption ;) _c = l->at(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->tqat(itemData->defStyleNum), itemData ); new KateStyleListItem( parent, name, l->at(itemData->defStyleNum), itemData );
} else { } else {
new KateStyleListItem( m_styles, itemData->name, l->tqat(itemData->defStyleNum), itemData ); new KateStyleListItem( m_styles, itemData->name, l->at(itemData->defStyleNum), itemData );
} }
} }
} }
@ -1357,7 +1357,7 @@ void KateStyleListItem::toggleDefStyle()
delete is; delete is;
is = new KateAttribute( *ds ); is = new KateAttribute( *ds );
updateStyle(); updateStyle();
tqrepaint(); repaint();
} }
} }
@ -1441,7 +1441,7 @@ void KateStyleListItem::setColor( int column )
break; break;
} }
tqrepaint(); repaint();
} }
void KateStyleListItem::unsetColor( int c ) void KateStyleListItem::unsetColor( int c )

@ -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 = TQString(br.cap(1)).tqat(0); TQChar argument = TQString(br.cap(1)).at(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 ).tqat( foundCol - 1 ) ) ) && ! doc()->highlight()->isInWord( doc()->textLine( foundLine ).at( foundCol - 1 ) ) ) &&
( foundCol + matchLen == doc()->lineLength( foundLine ) || ( foundCol + matchLen == doc()->lineLength( foundLine ) ||
! doc()->highlight()->isInWord( doc()->textLine( foundLine ).tqat( foundCol + matchLen ) ) ) ! doc()->highlight()->isInWord( doc()->textLine( foundLine ).at( foundCol + matchLen ) ) )
); );
if ( found ) if ( found )
{ {

@ -173,7 +173,7 @@ void KateTemplateHandler::generateRangeTable( uint insertLine, uint insertCol, c
{ {
++col; ++col;
if ( insertString.tqat( colInText ) == '\n' ) if ( insertString.at( 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.tqat( m_currentTabStop ); KateTemplatePlaceHolder *ph = m_tabOrder.at( 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.tqat( i ); KateTemplatePlaceHolder *ph = m_tabOrder.at( 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.tqat( m_currentTabStop ) ->ranges.tqat( 0 ); m_currentRange = m_tabOrder.at( m_currentTabStop ) ->ranges.at( 0 );
if ( m_tabOrder.tqat( m_currentTabStop ) ->isInitialValue ) if ( m_tabOrder.at( 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.tqat(z)->type() != KateUndoGroup::editMarkLineAutoWrapped) if (m_items.at(z)->type() != KateUndoGroup::editMarkLineAutoWrapped)
{ {
m_doc->activeView()->editSetCursor (m_items.tqat(z)->cursorBefore()); m_doc->activeView()->editSetCursor (m_items.at(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.tqat(z)->type() != KateUndoGroup::editMarkLineAutoWrapped) if (m_items.at(z)->type() != KateUndoGroup::editMarkLineAutoWrapped)
{ {
m_doc->activeView()->editSetCursor (m_items.tqat(z)->cursorAfter()); m_doc->activeView()->editSetCursor (m_items.at(z)->cursorAfter());
break; break;
} }
} }

@ -1233,11 +1233,11 @@ void KateView::updateRendererConfig()
// update the text area // update the text area
m_viewInternal->updateView (true); m_viewInternal->updateView (true);
m_viewInternal->tqrepaint (); m_viewInternal->repaint ();
// update the left border right, for example linenumbers // update the left border right, for example linenumbers
m_viewInternal->leftBorder->updateFont(); m_viewInternal->leftBorder->updateFont();
m_viewInternal->leftBorder->tqrepaint (); m_viewInternal->leftBorder->repaint ();
// @@ showIndentLines is not cached anymore. // @@ showIndentLines is not cached anymore.
// m_renderer->setShowIndentLines (m_renderer->config()->showIndentationLines()); // m_renderer->setShowIndentLines (m_renderer->config()->showIndentationLines());
@ -1596,7 +1596,7 @@ void KateView::paste()
{ {
m_doc->paste( this ); m_doc->paste( this );
emit selectionChanged(); emit selectionChanged();
m_viewInternal->tqrepaint(); m_viewInternal->repaint();
} }
void KateView::cut() void KateView::cut()

@ -89,7 +89,7 @@ KateViewInternal::KateViewInternal(KateView *view, KateDocument *doc)
// cursor // cursor
cursor.setMoveOnInsert (true); cursor.setMoveOnInsert (true);
// tqinvalidate selStartCached, or keyb selection is screwed initially // invalidate selStartCached, or keyb selection is screwed initially
selStartCached.setLine( -1 ); selStartCached.setLine( -1 );
// //
// scrollbar for lines // scrollbar for lines
@ -2759,7 +2759,7 @@ void KateViewInternal::mousePressEvent( TQMouseEvent* e )
} }
else else
{ {
selStartCached.setLine( -1 ); // tqinvalidate selStartCached.setLine( -1 ); // invalidate
} }
if( !( e->state() & TQt::ShiftButton ) && isTargetSelected( e->pos() ) ) if( !( e->state() & TQt::ShiftButton ) && isTargetSelected( e->pos() ) )

@ -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->tqat( i ); AutoBookmarkEnt *e = m_ents->at( 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.tqat(z)->parentClient() == view) if (m_views.at(z)->parentClient() == view)
{ {
InsertFilePluginView *nview = m_views.tqat(z); InsertFilePluginView *nview = m_views.at(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.tqat(z)->parentClient() == view) if (m_views.at(z)->parentClient() == view)
{ {
ISearchPluginView *nview = m_views.tqat(z); ISearchPluginView *nview = m_views.at(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.tqat(z)->parentClient() == view) if (m_views.at(z)->parentClient() == view)
{ {
KDataToolPluginView *nview = m_views.tqat(z); KDataToolPluginView *nview = m_views.at(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.tqat(i); TQChar ch = tmp_line.at(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.tqat(i); TQChar ch = tmp_line.at(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.tqat(z)->parentClient() == view) if (m_views.at(z)->parentClient() == view)
{ {
DocWordCompletionPluginView *nview = m_views.tqat(z); DocWordCompletionPluginView *nview = m_views.at(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().tqat(c-1)); displayPKCS12Cert(_p12->getCertificate()->chain().getChain().at(c-1));
} }
} }

@ -183,9 +183,9 @@ void KZoneAllocator::delBlock(MemBlock *b)
void * void *
KZoneAllocator::allocate(size_t _size) KZoneAllocator::allocate(size_t _size)
{ {
// Use the size of (void *) as tqalignment // Use the size of (void *) as alignment
const size_t tqalignment = sizeof(void *) - 1; const size_t alignment = sizeof(void *) - 1;
_size = (_size + tqalignment) & ~tqalignment; _size = (_size + alignment) & ~alignment;
if ((unsigned long) _size + blockOffset > blockSize) if ((unsigned long) _size + blockOffset > blockSize)
{ {

@ -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.tqat(iPos).isDigit(); iPos++) for (; sNum.length() > iPos && sNum.at(iPos).isDigit(); iPos++)
{ {
result *= 10; result *= 10;
result += sNum.tqat(iPos).digitValue(); result += sNum.at(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.tqat( i ); return m_formats.at( i );
else else
return 0L; return 0L;
} }
@ -78,7 +78,7 @@ public:
{ {
int index = m_formats.find( format ); int index = m_formats.find( format );
if ( index > -1 ) if ( index > -1 )
return *(m_data.tqat( index )); return *(m_data.at( index ));
return TQByteArray(); return TQByteArray();
} }

@ -1239,7 +1239,7 @@ KCmdLineArgs::arg(int n) const
exit(255); exit(255);
} }
return parsedArgList->tqat(n); return parsedArgList->at(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.tqat(i), sorted ); node = node->insert( item.at(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.tqat( i ); ch = string.at( 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.tqat( i ); ch = string.at( 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.tqat(0); TQChar ch1 = restString.at(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.tqat( i ) ); child = parent->find( string.at( 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.tqat( i - 1 ); parent = deletables.at( i - 1 );
child = deletables.tqat( i ); child = deletables.at( 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::tqat(uint index) const KCompTreeNode *KCompTreeNodeList::at(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 *tqat(uint index) const; KCompTreeNode *at(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 * childAt(int index) const { inline const KCompTreeNode * childAt(int index) const {
return myChildren.tqat(index); return myChildren.at(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.tqat(0); rFile.at(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.tqat(0) == (QChar)'#' ) if ( aValue.at(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.tqat( 0 ) ), atoi( list.tqat( 1 ) ), TQDate date( atoi( list.at( 0 ) ), atoi( list.at( 1 ) ),
atoi( list.tqat( 2 ) ) ); atoi( list.at( 2 ) ) );
TQTime time( atoi( list.tqat( 3 ) ), atoi( list.tqat( 4 ) ), TQTime time( atoi( list.at( 3 ) ), atoi( list.at( 4 ) ),
atoi( list.tqat( 5 ) ) ); atoi( list.at( 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.tqat(str_list.length() - 1) == (QChar)sep ) if( str_list.at(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.tqat(str_list.length() - 1) == (QChar)sep ) if( str_list.at(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 );
} }

@ -201,7 +201,7 @@ int main(int argc, char **argv)
if (helptexts[index]) { if (helptexts[index]) {
printf("%s - %s\n", helptexts[index], i18n(helptexts[index+1]).local8Bit().data()); printf("%s - %s\n", helptexts[index], i18n(helptexts[index+1]).local8Bit().data());
} else { } else {
printf("%s", i18n("%1 - unknown type\n").tqarg(*it).local8Bit().data()); printf("%s", i18n("%1 - unknown type\n").arg(*it).local8Bit().data());
} }
} }
return 0; return 0;
@ -226,7 +226,7 @@ int main(int argc, char **argv)
else if ( type == "document" ) else if ( type == "document" )
printResult(KGlobalSettings::documentPath()); printResult(KGlobalSettings::documentPath());
else else
fprintf(stderr, "%s", i18n("%1 - unknown type of userpath\n").tqarg(type).local8Bit().data() ); fprintf(stderr, "%s", i18n("%1 - unknown type of userpath\n").arg(type).local8Bit().data() );
return 0; return 0;
} }

@ -415,7 +415,7 @@ kdbgstream& kdbgstream::operator << (const TQWidget* widget)
return *this; return *this;
} }
output += string; output += string;
if (output.tqat(output.length() -1 ) == (QChar)'\n') if (output.at(output.length() -1 ) == (QChar)'\n')
{ {
flush(); flush();
} }
@ -454,7 +454,7 @@ kdbgstream& kdbgstream::operator<<( const TQRect& r ) {
kdbgstream& kdbgstream::operator<<( const TQRegion& reg ) { kdbgstream& kdbgstream::operator<<( const TQRegion& reg ) {
*this<< "[ "; *this<< "[ ";
TQMemArray<TQRect>rs=reg.tqrects(); TQMemArray<TQRect>rs=reg.rects();
for (uint i=0;i<rs.size();++i) for (uint i=0;i<rs.size();++i)
*this << TQString(TQString("[%1,%2 - %3x%4] ").arg(rs[i].x()).arg(rs[i].y()).arg(rs[i].width()).arg(rs[i].height() )) ; *this << TQString(TQString("[%1,%2 - %3x%4] ").arg(rs[i].x()).arg(rs[i].y()).arg(rs[i].width()).arg(rs[i].height() )) ;

@ -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.tqat(output.length() -1 ) == (QChar)'\n') if (output.at(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.tqat(output.length() - 1) == (QChar)'\n') if (output.at(output.length() - 1) == (QChar)'\n')
flush(); flush();
return *this; return *this;
} }

@ -248,7 +248,7 @@ void KExtendedSocket::setSocketStatus(int newstatus)
void KExtendedSocket::setError(int errorcode, int syserror) void KExtendedSocket::setError(int errorcode, int syserror)
{ {
seStatus(errorcode); setStatus(errorcode);
d->syserror = syserror; d->syserror = syserror;
} }

@ -287,7 +287,7 @@ void KGlobalAccelPrivate::fakeKeyPressed(unsigned int keyCode) {
for( CodeModMap::ConstIterator it = m_rgCodeModToAction.begin(); it != m_rgCodeModToAction.end(); ++it ) { for( CodeModMap::ConstIterator it = m_rgCodeModToAction.begin(); it != m_rgCodeModToAction.end(); ++it ) {
KAccelAction* pAction = *it; KAccelAction* pAction = *it;
kdDebug(125) << "\tcode: " << TQString::number(it.key().code, 16) << " mod: " << TQString::number(it.key().mod, 16) kdDebug(125) << "\tcode: " << TQString::number(it.key().code, 16) << " mod: " << TQString::number(it.key().mod, 16)
<< (pAction ? TQString(" name: \"%1\" shortcut: %2").tqarg(pAction->name()).tqarg(pAction->shortcut().toStringInternal()) : TQString()) << (pAction ? TQString(" name: \"%1\" shortcut: %2").arg(pAction->name()).arg(pAction->shortcut().toStringInternal()) : TQString())
<< endl; << endl;
} }
#endif #endif
@ -365,7 +365,7 @@ bool KGlobalAccelPrivate::x11KeyPress( const XEvent *pEvent )
for( CodeModMap::ConstIterator it = m_rgCodeModToAction.begin(); it != m_rgCodeModToAction.end(); ++it ) { for( CodeModMap::ConstIterator it = m_rgCodeModToAction.begin(); it != m_rgCodeModToAction.end(); ++it ) {
KAccelAction* pAction = *it; KAccelAction* pAction = *it;
kdDebug(125) << "\tcode: " << TQString::number(it.key().code, 16) << " mod: " << TQString::number(it.key().mod, 16) kdDebug(125) << "\tcode: " << TQString::number(it.key().code, 16) << " mod: " << TQString::number(it.key().mod, 16)
<< (pAction ? TQString(" name: \"%1\" shortcut: %2").tqarg(pAction->name()).tqarg(pAction->shortcut().toStringInternal()) : TQString()) << (pAction ? TQString(" name: \"%1\" shortcut: %2").arg(pAction->name()).arg(pAction->shortcut().toStringInternal()) : TQString())
<< endl; << endl;
} }
#endif #endif

@ -451,7 +451,7 @@ TQFont KGlobalSettings::taskbarFont()
TQFont KGlobalSettings::largeFont(const TQString &text) TQFont KGlobalSettings::largeFont(const TQString &text)
{ {
TQFontDatabase db; TQFontDatabase db;
TQStringList fam = db.tqfamilies(); TQStringList fam = db.families();
// Move a bunch of preferred fonts to the front. // Move a bunch of preferred fonts to the front.
if (fam.remove("Arial")) if (fam.remove("Arial"))

@ -742,7 +742,7 @@ KIconEffect::visualActivate(TQWidget * widget, TQRect rect)
TQPainter p(widget); TQPainter p(widget);
// Use NotROP to avoid having to tqrepaint the pixmap each time. // Use NotROP to avoid having to repaint the pixmap each time.
p.setPen(TQPen(Qt::black, 2, Qt::DotLine)); p.setPen(TQPen(Qt::black, 2, Qt::DotLine));
p.setRasterOp(TQt::NotROP); p.setRasterOp(TQt::NotROP);

@ -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.tqat( l ); buffer[index++] = s.at( 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.tqat( format_index )).tqunicode()) == '%' ) if ( (TQChar(rst.at( format_index )).tqunicode()) == '%' )
escape = true; escape = true;
else else
buffer.append(rst.tqat(format_index)); buffer.append(rst.at(format_index));
} }
else else
{ {
switch ( TQChar(rst.tqat( format_index )).tqunicode() ) switch ( TQChar(rst.at( 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.tqat(format_index)); buffer.append(rst.at(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.tqat(pos).isDigit()) return -1; if (!str.at(pos).isDigit()) return -1;
int result = 0; int result = 0;
for (; str.length() > pos && str.tqat(pos).isDigit(); pos++) for (; str.length() > pos && str.at(pos).isDigit(); pos++)
{ {
result *= 10; result *= 10;
result += str.tqat(pos).digitValue(); result += str.at(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.tqat(fmtpos++); TQChar c = fmt.at(fmtpos++);
if (c != (QChar)'%') { if (c != (QChar)'%') {
if (c.isSpace() && str.tqat(strpos).isSpace()) if (c.isSpace() && str.at(strpos).isSpace())
strpos++; strpos++;
else if (c != str.tqat(strpos++)) else if (c != str.at(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.tqat(strpos).isSpace()) if (str.length() > strpos && str.at(strpos).isSpace())
strpos++; strpos++;
c = fmt.tqat(fmtpos++); c = fmt.at(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.tqat(Formatpos++); TQChar c = Format.at(Formatpos++);
if (c != (QChar)'%') if (c != (QChar)'%')
{ {
if (c.isSpace()) if (c.isSpace())
strpos++; strpos++;
else if (c != str.tqat(strpos++)) else if (c != str.at(strpos++))
goto error; goto error;
continue; continue;
} }
// remove space at the beginning // remove space at the beginning
if (str.length() > strpos && str.tqat(strpos).isSpace()) if (str.length() > strpos && str.at(strpos).isSpace())
strpos++; strpos++;
c = Format.tqat(Formatpos++); c = Format.at(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.tqat( format_index )).tqunicode()) == '%' ) if ( (TQChar(rst.at( format_index )).tqunicode()) == '%' )
escape = true; escape = true;
else else
buffer[index++] = rst.tqat( format_index ); buffer[index++] = rst.at( format_index );
} }
else else
{ {
switch ( TQChar(rst.tqat( format_index )).tqunicode() ) switch ( TQChar(rst.at( 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.tqat( format_index )).tqunicode()) == 'l' ) if ( (TQChar(rst.at( 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.tqat( format_index ); buffer[index++] = rst.at( 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.tqat(index); kolor *node = mKolorList.at(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.tqat(index); kolor *node = mKolorList.at(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.tqat(index); kolor *node = mKolorList.at(index);
if (!node) if (!node)
return -1; return -1;

@ -214,7 +214,7 @@ void KProcessController::slotDoHousekeeping()
if( waitpid( *uit, 0, WNOHANG ) > 0 ) if( waitpid( *uit, 0, WNOHANG ) > 0 )
{ {
uit = unixProcessList.remove( uit ); uit = unixProcessList.remove( uit );
deref(); // counterpart to addProcess, can tqinvalidate 'this' deref(); // counterpart to addProcess, can invalidate 'this'
} else } else
++uit; ++uit;
} }

@ -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.tqat(timeString.length() - 1)) { if ((QChar)'Z' == timeString.at(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.tqat(dir.length() - 1) != QChar('/')) if (dir.at(dir.length() - 1) != QChar('/'))
dir += QChar('/'); dir += QChar('/');
if (!prefixes.contains(dir)) { if (!prefixes.contains(dir)) {
@ -209,7 +209,7 @@ void KStandardDirs::addXdgConfigPrefix( const TQString& _dir, bool priority )
return; return;
TQString dir = _dir; TQString dir = _dir;
if (dir.tqat(dir.length() - 1) != QChar('/')) if (dir.at(dir.length() - 1) != QChar('/'))
dir += QChar('/'); dir += QChar('/');
if (!d->xdgconf_prefixes.contains(dir)) { if (!d->xdgconf_prefixes.contains(dir)) {
@ -229,7 +229,7 @@ void KStandardDirs::addXdgDataPrefix( const TQString& _dir, bool priority )
return; return;
TQString dir = _dir; TQString dir = _dir;
if (dir.tqat(dir.length() - 1) != QChar('/')) if (dir.at(dir.length() - 1) != QChar('/'))
dir += QChar('/'); dir += QChar('/');
if (!d->xdgdata_prefixes.contains(dir)) { if (!d->xdgdata_prefixes.contains(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.tqat(copy.length() - 1) != QChar('/')) if (copy.at(copy.length() - 1) != QChar('/'))
copy += QChar('/'); copy += QChar('/');
if (!rels->contains(copy)) { if (!rels->contains(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.tqat(copy.length() - 1) != QChar('/')) if (copy.at(copy.length() - 1) != QChar('/'))
copy += QChar('/'); copy += QChar('/');
if (!paths->contains(copy)) { if (!paths->contains(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.tqat(fullPath.length() - 1) != QChar('/')) { if (fullPath.at(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.tqat(path.length() - 1) == QChar('/') || path.tqat(path.length() - 1) == QChar('\\')); assert(path.at(path.length() - 1) == QChar('/') || path.at(path.length() - 1) == QChar('\\'));
#else #else
assert(path.tqat(path.length() - 1) == QChar('/')); assert(path.at(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.tqat(fn.length() - 1)).latin1() == TQChar('~').latin1()) if (fn == _dot || fn == _dotdot || TQChar(fn.at(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.tqat(prefix.length() - 1) == QChar('/') || prefix.tqat(prefix.length() - 1) == QChar('\\')); assert(prefix.at(prefix.length() - 1) == QChar('/') || prefix.at(prefix.length() - 1) == QChar('\\'));
#else #else
assert(prefix.tqat(prefix.length() - 1) == QChar('/')); assert(prefix.at(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.tqat(fn.length() - 1) == QChar('~')) if (fn == _dot || fn == _dotdot || fn.at(fn.length() - 1) == QChar('~'))
continue; continue;
if ( !pathExp.exactMatch(fn) ) if ( !pathExp.exactMatch(fn) )
@ -1130,7 +1130,7 @@ TQString KStandardDirs::saveLocation(const char *type,
if (KDE_stat(TQFile::encodeName(fullPath), &st) != 0 || !(S_ISDIR(st.st_mode))) { if (KDE_stat(TQFile::encodeName(fullPath), &st) != 0 || !(S_ISDIR(st.st_mode))) {
if(!create) { if(!create) {
#ifndef NDEBUG #ifndef NDEBUG
kdDebug() << TQString("save location %1 doesn't exist").tqarg(fullPath) << endl; kdDebug() << TQString("save location %1 doesn't exist").arg(fullPath) << endl;
#endif #endif
return fullPath; return fullPath;
} }
@ -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.tqat(len - 1) != QChar('/')) if (dir.at(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.tqat( pos); TQStringList::Iterator it = list.at( 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.tqat(pos) , word ); list.insert( list.at(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.tqat(pos) ) , word ); list.insert( list.remove( list.at(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.tqat( pos); TQStringList::Iterator it = list.at( 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.tqat( pos ) ); list.remove( list.at( pos ) );
// Rejoin // Rejoin
return list.join( " " ); return list.join( " " );

@ -230,7 +230,7 @@ void KSycoca::closeDatabase()
{ {
QIODevice *device = 0; QIODevice *device = 0;
if (m_str) if (m_str)
device = m_str->tqdevice(); device = m_str->device();
#ifdef HAVE_MMAP #ifdef HAVE_MMAP
if (device && m_sycoca_mmap) if (device && m_sycoca_mmap)
{ {
@ -288,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()->tqat(offset); m_str->device()->at(offset);
TQ_INT32 aType; TQ_INT32 aType;
(*m_str) >> aType; (*m_str) >> aType;
type = (KSycocaType) aType; type = (KSycocaType) aType;
@ -306,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()->tqat(0); m_str->device()->at(0);
TQ_INT32 aVersion; TQ_INT32 aVersion;
(*m_str) >> aVersion; (*m_str) >> aVersion;
if ( aVersion < KSYCOCA_VERSION ) if ( aVersion < KSYCOCA_VERSION )
@ -361,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()->tqat(aOffset); m_str->device()->at(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()->tqat(offset); str->device()->at(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()->tqat(offset); str->device()->at(offset);
(*str) >> mHashTableSize; (*str) >> mHashTableSize;
(*str) >> mHashList; (*str) >> mHashList;
mOffset = str->tqdevice()->tqat(); // Start of hashtable mOffset = str->device()->at(); // 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()->tqat( off ); mStr->device()->at( 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()->tqat(offset); mStr->device()->at(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()->tqat(); mOffset = str.device()->at();
//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()->tqat(); // mOffset points to start of hashTable mOffset = str.device()->at(); // 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()->tqat(mOffset); str.device()->at(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()->tqat(),8,16) << endl; //kdDebug(7011) << TQString("End of Hash Table, offset = %1").arg(str.device()->at(),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()->tqat(); hashTable[i].duplicate_offset = str.device()->at();
/*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()->tqat(),8,16) << endl; //kdDebug(7011) << TQString("End of Dict, offset = %1").arg(str.device()->at(),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()->tqat(); // store position in member variable mOffset = s.device()->at(); // 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()->tqat(); int saveOffset = m_str->device()->at();
// 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()->tqat(saveOffset); saveOffset = m_str->device()->at(saveOffset);
} }
} }
else else
@ -78,7 +78,7 @@ void
KSycocaFactory::saveHeader(TQDataStream &str) KSycocaFactory::saveHeader(TQDataStream &str)
{ {
// Write header // Write header
str.tqdevice()->tqat(mOffset); str.device()->at(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()->tqat(); // store position in member variable mOffset = str.device()->at(); // 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()->tqat(); m_beginEntryOffset = str.device()->at();
// 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()->tqat(); m_endEntryOffset = str.device()->at();
// Write indices... // Write indices...
// Linear index // Linear index
@ -124,16 +124,16 @@ KSycocaFactory::save(TQDataStream &str)
} }
// Dictionary index // Dictionary index
m_sycocaDictOffset = str.tqdevice()->tqat(); m_sycocaDictOffset = str.device()->at();
m_sycocaDict->save(str); m_sycocaDict->save(str);
int endOfFactoryData = str.tqdevice()->tqat(); int endOfFactoryData = str.device()->at();
// Update header (pass #2) // Update header (pass #2)
saveHeader(str); saveHeader(str);
// Seek to end. // Seek to end.
str.tqdevice()->tqat(endOfFactoryData); str.device()->at(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()->tqat(m_endEntryOffset); m_str->device()->at(m_endEntryOffset);
TQ_INT32 entryCount; TQ_INT32 entryCount;
(*m_str) >> entryCount; (*m_str) >> entryCount;

@ -85,7 +85,7 @@ int kde_malloc_is_used = 0;
calloc(size_t n_elements, size_t element_size); calloc(size_t n_elements, size_t element_size);
free(Void_t* p); free(Void_t* p);
realloc(Void_t* p, size_t n); realloc(Void_t* p, size_t n);
memalign(size_t tqalignment, size_t n); memalign(size_t alignment, size_t n);
valloc(size_t n); valloc(size_t n);
mallinfo() mallinfo()
mallopt(int parameter_number, int parameter_value) mallopt(int parameter_number, int parameter_value)
@ -107,7 +107,7 @@ int kde_malloc_is_used = 0;
You can adjust this by defining INTERNAL_SIZE_T You can adjust this by defining INTERNAL_SIZE_T
Alignment: 2 * sizeof(size_t) (default) Alignment: 2 * sizeof(size_t) (default)
(i.e., 8 byte tqalignment with 4byte size_t). This suffices for (i.e., 8 byte alignment with 4byte size_t). This suffices for
nearly all current machines and C compilers. However, you can nearly all current machines and C compilers. However, you can
define MALLOC_ALIGNMENT to be wider than this if necessary. define MALLOC_ALIGNMENT to be wider than this if necessary.
@ -146,7 +146,7 @@ int kde_malloc_is_used = 0;
default used to obtain memory from system) accepts signed default used to obtain memory from system) accepts signed
arguments, and may not be able to handle size_t-wide arguments arguments, and may not be able to handle size_t-wide arguments
with negative sign bit. Generally, values that would with negative sign bit. Generally, values that would
appear as negative after accounting for overhead and tqalignment appear as negative after accounting for overhead and alignment
are supported only via mmap(), which does not have this are supported only via mmap(), which does not have this
limitation. limitation.
@ -394,7 +394,7 @@ extern "C" {
expense of not being able to handle more than 2^32 of malloced expense of not being able to handle more than 2^32 of malloced
space. If this limitation is acceptable, you are encouraged to set space. If this limitation is acceptable, you are encouraged to set
this unless you are on a platform requiring 16byte alignments. In this unless you are on a platform requiring 16byte alignments. In
this case the tqalignment requirements turn out to negate any this case the alignment requirements turn out to negate any
potential advantages of decreasing size_t word size. potential advantages of decreasing size_t word size.
Implementors: Beware of the possible combinations of: Implementors: Beware of the possible combinations of:
@ -419,11 +419,11 @@ extern "C" {
/* /*
MALLOC_ALIGNMENT is the minimum tqalignment for malloc'ed chunks. MALLOC_ALIGNMENT is the minimum alignment for malloc'ed chunks.
It must be a power of two at least 2 * SIZE_SZ, even on machines It must be a power of two at least 2 * SIZE_SZ, even on machines
for which smaller alignments would suffice. It may be defined as for which smaller alignments would suffice. It may be defined as
larger than this though. Note however that code and data structures larger than this though. Note however that code and data structures
are optimized for the case of 8-byte tqalignment. are optimized for the case of 8-byte alignment.
*/ */
@ -957,13 +957,13 @@ Void_t* public_rEALLOc();
#endif #endif
/* /*
memalign(size_t tqalignment, size_t n); memalign(size_t alignment, size_t n);
Returns a pointer to a newly allocated chunk of n bytes, aligned Returns a pointer to a newly allocated chunk of n bytes, aligned
in accord with the tqalignment argument. in accord with the alignment argument.
The tqalignment argument should be a power of two. If the argument is The alignment argument should be a power of two. If the argument is
not a power of two, the nearest greater power is used. not a power of two, the nearest greater power is used.
8-byte tqalignment is guaranteed by normal malloc calls, so don't 8-byte alignment is guaranteed by normal malloc calls, so don't
bother calling memalign with an argument of 8 or less. bother calling memalign with an argument of 8 or less.
Overreliance on memalign is a sure way to fragment space. Overreliance on memalign is a sure way to fragment space.
@ -1228,7 +1228,7 @@ int public_mTRIm();
Returns the number of bytes you can actually use in Returns the number of bytes you can actually use in
an allocated chunk, which may be more than you requested (although an allocated chunk, which may be more than you requested (although
often not) due to tqalignment and minimum size constraints. often not) due to alignment and minimum size constraints.
You can use this many bytes without worrying about You can use this many bytes without worrying about
overwriting other allocated objects. This is not a particularly great overwriting other allocated objects. This is not a particularly great
programming practice. malloc_usable_size can be more useful in programming practice. malloc_usable_size can be more useful in
@ -1252,8 +1252,8 @@ size_t public_mUSABLe();
number of bytes allocated via malloc (or realloc, etc) but not yet number of bytes allocated via malloc (or realloc, etc) but not yet
freed. Note that this is the number of bytes allocated, not the freed. Note that this is the number of bytes allocated, not the
number requested. It will be larger than the number requested number requested. It will be larger than the number requested
because of tqalignment and bookkeeping overhead. Because it includes because of alignment and bookkeeping overhead. Because it includes
tqalignment wastage as being in use, this figure may be greater than alignment wastage as being in use, this figure may be greater than
zero even when no user-level chunks are allocated. zero even when no user-level chunks are allocated.
The reported current and maximum system memory can be inaccurate if The reported current and maximum system memory can be inaccurate if
@ -1290,7 +1290,7 @@ void public_mSTATs();
fragmentation without improving speed. fragmentation without improving speed.
M_MXFAST is set in REQUEST size units. It is internally used in M_MXFAST is set in REQUEST size units. It is internally used in
chunksize units, which adds padding and tqalignment. You can reduce chunksize units, which adds padding and alignment. You can reduce
M_MXFAST to 0 to disable all use of fastbins. This causes the malloc M_MXFAST to 0 to disable all use of fastbins. This causes the malloc
algorithm to be a closer approximation of fifo-best-fit in all cases, algorithm to be a closer approximation of fifo-best-fit in all cases,
not just for larger requests, but will generally cause it to be not just for larger requests, but will generally cause it to be
@ -1434,7 +1434,7 @@ void public_mSTATs();
1. The space cannot be reclaimed, consolidated, and then 1. The space cannot be reclaimed, consolidated, and then
used to service later requests, as happens with normal chunks. used to service later requests, as happens with normal chunks.
2. It can lead to more wastage because of mmap page tqalignment 2. It can lead to more wastage because of mmap page alignment
requirements requirements
3. It causes malloc performance to be more dependent on host 3. It causes malloc performance to be more dependent on host
system memory management support routines which may vary in system memory management support routines which may vary in
@ -1614,12 +1614,12 @@ Void_t* public_rEALLOc(Void_t* m, size_t bytes) {
return m; return m;
} }
Void_t* public_mEMALIGn(size_t tqalignment, size_t bytes) { Void_t* public_mEMALIGn(size_t alignment, size_t bytes) {
Void_t* m; Void_t* m;
if (MALLOC_PREACTION != 0) { if (MALLOC_PREACTION != 0) {
return 0; return 0;
} }
m = mEMALIGn(tqalignment, bytes); m = mEMALIGn(alignment, bytes);
if (MALLOC_POSTACTION != 0) { if (MALLOC_POSTACTION != 0) {
} }
return m; return m;
@ -1956,7 +1956,7 @@ nextchunk-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
*/ */
/* /*
---------- Size and tqalignment checks and conversions ---------- ---------- Size and alignment checks and conversions ----------
*/ */
/* conversion from malloc headers to user pointers, and back */ /* conversion from malloc headers to user pointers, and back */
@ -1972,7 +1972,7 @@ nextchunk-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
#define MINSIZE \ #define MINSIZE \
(unsigned long)(((MIN_CHUNK_SIZE+MALLOC_ALIGN_MASK) & ~MALLOC_ALIGN_MASK)) (unsigned long)(((MIN_CHUNK_SIZE+MALLOC_ALIGN_MASK) & ~MALLOC_ALIGN_MASK))
/* Check if m has acceptable tqalignment */ /* Check if m has acceptable alignment */
#define aligned_OK(m) (((unsigned long)((m)) & (MALLOC_ALIGN_MASK)) == 0) #define aligned_OK(m) (((unsigned long)((m)) & (MALLOC_ALIGN_MASK)) == 0)
@ -2641,7 +2641,7 @@ static void do_check_remalloced_chunk(p, s) mchunkptr p; INTERNAL_SIZE_T s;
/* Legal size ... */ /* Legal size ... */
assert((sz & MALLOC_ALIGN_MASK) == 0); assert((sz & MALLOC_ALIGN_MASK) == 0);
assert((unsigned long)(sz) >= MINSIZE); assert((unsigned long)(sz) >= MINSIZE);
/* ... and tqalignment */ /* ... and alignment */
assert(aligned_OK(chunk2mem(p))); assert(aligned_OK(chunk2mem(p)));
/* chunk is less than MINSIZE more than request */ /* chunk is less than MINSIZE more than request */
assert((long)(sz) - (long)(s) >= 0); assert((long)(sz) - (long)(s) >= 0);
@ -2704,7 +2704,7 @@ static void do_check_malloc_state()
/* internal size_t must be no wider than pointer type */ /* internal size_t must be no wider than pointer type */
assert(sizeof(INTERNAL_SIZE_T) <= sizeof(char*)); assert(sizeof(INTERNAL_SIZE_T) <= sizeof(char*));
/* tqalignment is a power of 2 */ /* alignment is a power of 2 */
assert((MALLOC_ALIGNMENT & (MALLOC_ALIGNMENT-1)) == 0); assert((MALLOC_ALIGNMENT & (MALLOC_ALIGNMENT-1)) == 0);
/* cannot run remaining checks until fully initialized */ /* cannot run remaining checks until fully initialized */
@ -3209,7 +3209,7 @@ static Void_t* sYSMALLOc(nb, av) INTERNAL_SIZE_T nb; mstate av;
/* /*
The offset to the start of the mmapped region is stored The offset to the start of the mmapped region is stored
in the prev_size field of the chunk. This allows us to adjust in the prev_size field of the chunk. This allows us to adjust
returned start address to meet tqalignment requirements here returned start address to meet alignment requirements here
and in memalign(), and still be able to compute proper and in memalign(), and still be able to compute proper
address argument for later munmap in free() and realloc(). address argument for later munmap in free() and realloc().
*/ */
@ -3288,7 +3288,7 @@ static Void_t* sYSMALLOc(nb, av) INTERNAL_SIZE_T nb; mstate av;
Round to a multiple of page size. Round to a multiple of page size.
If MORECORE is not contiguous, this ensures that we only call it If MORECORE is not contiguous, this ensures that we only call it
with whole-page arguments. And if MORECORE is contiguous and with whole-page arguments. And if MORECORE is contiguous and
this is not first time through, this preserves page-tqalignment of this is not first time through, this preserves page-alignment of
previous calls. Otherwise, we correct to page-align below. previous calls. Otherwise, we correct to page-align below.
*/ */
@ -3384,7 +3384,7 @@ static Void_t* sYSMALLOc(nb, av) INTERNAL_SIZE_T nb; mstate av;
/* handle contiguous cases */ /* handle contiguous cases */
if (contiguous(av)) { if (contiguous(av)) {
/* Guarantee tqalignment of first new chunk made from this space */ /* Guarantee alignment of first new chunk made from this space */
front_misalign = (INTERNAL_SIZE_T)chunk2mem(brk) & MALLOC_ALIGN_MASK; front_misalign = (INTERNAL_SIZE_T)chunk2mem(brk) & MALLOC_ALIGN_MASK;
if (front_misalign > 0) { if (front_misalign > 0) {
@ -3554,7 +3554,7 @@ Void_t* mALLOc(size_t bytes)
/* /*
Convert request size to internal form by adding SIZE_SZ bytes Convert request size to internal form by adding SIZE_SZ bytes
overhead plus possibly more to obtain necessary tqalignment and/or overhead plus possibly more to obtain necessary alignment and/or
to obtain a size of at least MINSIZE, the smallest allocatable to obtain a size of at least MINSIZE, the smallest allocatable
size. Also, checked_request2size traps (returning 0) request sizes size. Also, checked_request2size traps (returning 0) request sizes
that are so large that they wrap around zero when padded and that are so large that they wrap around zero when padded and
@ -4127,54 +4127,54 @@ Void_t* rEALLOc(oldmem, bytes) Void_t* oldmem; size_t bytes;
INLINE INLINE
#if __STD_C #if __STD_C
Void_t* mEMALIGn(size_t tqalignment, size_t bytes) Void_t* mEMALIGn(size_t alignment, size_t bytes)
#else #else
Void_t* mEMALIGn(tqalignment, bytes) size_t tqalignment; size_t bytes; Void_t* mEMALIGn(alignment, bytes) size_t alignment; size_t bytes;
#endif #endif
{ {
INTERNAL_SIZE_T nb; /* padded request size */ INTERNAL_SIZE_T nb; /* padded request size */
char* m; /* memory returned by malloc call */ char* m; /* memory returned by malloc call */
mchunkptr p; /* corresponding chunk */ mchunkptr p; /* corresponding chunk */
char* brk; /* tqalignment point within p */ char* brk; /* alignment point within p */
mchunkptr newp; /* chunk to return */ mchunkptr newp; /* chunk to return */
INTERNAL_SIZE_T newsize; /* its size */ INTERNAL_SIZE_T newsize; /* its size */
INTERNAL_SIZE_T leadsize; /* leading space before tqalignment point */ INTERNAL_SIZE_T leadsize; /* leading space before alignment point */
mchunkptr remainder; /* spare room at end to split off */ mchunkptr remainder; /* spare room at end to split off */
unsigned long remainder_size; /* its size */ unsigned long remainder_size; /* its size */
INTERNAL_SIZE_T size; INTERNAL_SIZE_T size;
/* If need less tqalignment than we give anyway, just relay to malloc */ /* If need less alignment than we give anyway, just relay to malloc */
if (tqalignment <= MALLOC_ALIGNMENT) return mALLOc(bytes); if (alignment <= MALLOC_ALIGNMENT) return mALLOc(bytes);
/* Otherwise, ensure that it is at least a minimum chunk size */ /* Otherwise, ensure that it is at least a minimum chunk size */
if (tqalignment < MINSIZE) tqalignment = MINSIZE; if (alignment < MINSIZE) alignment = MINSIZE;
/* Make sure tqalignment is power of 2 (in case MINSIZE is not). */ /* Make sure alignment is power of 2 (in case MINSIZE is not). */
if ((tqalignment & (tqalignment - 1)) != 0) { if ((alignment & (alignment - 1)) != 0) {
size_t a = MALLOC_ALIGNMENT * 2; size_t a = MALLOC_ALIGNMENT * 2;
while ((unsigned long)a < (unsigned long)tqalignment) a <<= 1; while ((unsigned long)a < (unsigned long)alignment) a <<= 1;
tqalignment = a; alignment = a;
} }
checked_request2size(bytes, nb); checked_request2size(bytes, nb);
/* /*
Strategy: find a spot within that chunk that meets the tqalignment Strategy: find a spot within that chunk that meets the alignment
request, and then possibly free the leading and trailing space. request, and then possibly free the leading and trailing space.
*/ */
/* Call malloc with worst case padding to hit tqalignment. */ /* Call malloc with worst case padding to hit alignment. */
m = (char*)(mALLOc(nb + tqalignment + MINSIZE)); m = (char*)(mALLOc(nb + alignment + MINSIZE));
if (m == 0) return 0; /* propagate failure */ if (m == 0) return 0; /* propagate failure */
p = mem2chunk(m); p = mem2chunk(m);
if ((((unsigned long)(m)) % tqalignment) != 0) { /* misaligned */ if ((((unsigned long)(m)) % alignment) != 0) { /* misaligned */
/* /*
Find an aligned spot inside chunk. Since we need to give back Find an aligned spot inside chunk. Since we need to give back
@ -4184,10 +4184,10 @@ Void_t* mEMALIGn(tqalignment, bytes) size_t tqalignment; size_t bytes;
total room so that this is always possible. total room so that this is always possible.
*/ */
brk = (char*)mem2chunk(((unsigned long)(m + tqalignment - 1)) & brk = (char*)mem2chunk(((unsigned long)(m + alignment - 1)) &
-((signed long) tqalignment)); -((signed long) alignment));
if ((unsigned long)(brk - (char*)(p)) < MINSIZE) if ((unsigned long)(brk - (char*)(p)) < MINSIZE)
brk += tqalignment; brk += alignment;
newp = (mchunkptr)brk; newp = (mchunkptr)brk;
leadsize = brk - (char*)(p); leadsize = brk - (char*)(p);
@ -4208,7 +4208,7 @@ Void_t* mEMALIGn(tqalignment, bytes) size_t tqalignment; size_t bytes;
p = newp; p = newp;
assert (newsize >= nb && assert (newsize >= nb &&
(((unsigned long)(chunk2mem(p))) % tqalignment) == 0); (((unsigned long)(chunk2mem(p))) % alignment) == 0);
} }
/* Also give back spare room at the end */ /* Also give back spare room at the end */
@ -4375,7 +4375,7 @@ static Void_t** iALLOc(n_elements, sizes, opts, chunks) size_t n_elements; size_
contents_size += request2size(sizes[i]); contents_size += request2size(sizes[i]);
} }
/* subtract out tqalignment bytes from total to minimize overallocation */ /* subtract out alignment bytes from total to minimize overallocation */
size = contents_size + array_size - MALLOC_ALIGN_MASK; size = contents_size + array_size - MALLOC_ALIGN_MASK;
/* /*
@ -5356,7 +5356,7 @@ History:
and Anonymous. and Anonymous.
* Allow override of MALLOC_ALIGNMENT (Thanks to Ruud Waij for * Allow override of MALLOC_ALIGNMENT (Thanks to Ruud Waij for
helping test this.) helping test this.)
* memalign: check tqalignment arg * memalign: check alignment arg
* realloc: don't try to shift chunks backwards, since this * realloc: don't try to shift chunks backwards, since this
leads to more fragmentation in some programs and doesn't leads to more fragmentation in some programs and doesn't
seem to help in any others. seem to help in any others.
@ -5409,7 +5409,7 @@ History:
* Support another case of realloc via move into top * Support another case of realloc via move into top
* Fix error occurring when initial sbrk_base not word-aligned. * Fix error occurring when initial sbrk_base not word-aligned.
* Rely on page size for units instead of SBRK_UNIT to * Rely on page size for units instead of SBRK_UNIT to
avoid surprises about sbrk tqalignment conventions. avoid surprises about sbrk alignment conventions.
* Add mallinfo, mallopt. Thanks to Raymond Nijssen * Add mallinfo, mallopt. Thanks to Raymond Nijssen
(raymond@es.ele.tue.nl) for the suggestion. (raymond@es.ele.tue.nl) for the suggestion.
* Add `pad' argument to malloc_trim and top_pad mallopt parameter. * Add `pad' argument to malloc_trim and top_pad mallopt parameter.
@ -5569,7 +5569,7 @@ Void_t* public_rEALLOc(Void_t* m, size_t bytes) {
#endif #endif
} }
Void_t* public_mEMALIGn(size_t tqalignment, size_t bytes) { Void_t* public_mEMALIGn(size_t alignment, size_t bytes) {
#ifndef KDE_MALLOC_FULL #ifndef KDE_MALLOC_FULL
if( malloc_type == 1 ) if( malloc_type == 1 )
{ {
@ -5578,16 +5578,16 @@ Void_t* public_mEMALIGn(size_t tqalignment, size_t bytes) {
if (MALLOC_PREACTION != 0) { if (MALLOC_PREACTION != 0) {
return 0; return 0;
} }
m = mEMALIGn(tqalignment, bytes); m = mEMALIGn(alignment, bytes);
if (MALLOC_POSTACTION != 0) { if (MALLOC_POSTACTION != 0) {
} }
return m; return m;
#ifndef KDE_MALLOC_FULL #ifndef KDE_MALLOC_FULL
} }
if( malloc_type == 2 ) if( malloc_type == 2 )
return libc_memalign( tqalignment, bytes ); return libc_memalign( alignment, bytes );
init_malloc_type(); init_malloc_type();
return public_mEMALIGn( tqalignment, bytes ); return public_mEMALIGn( alignment, bytes );
#endif #endif
} }
@ -5728,7 +5728,7 @@ int public_mALLOPt(int p, int v) {
#endif #endif
int int
posix_memalign (void **memptr, size_t tqalignment, size_t size) posix_memalign (void **memptr, size_t alignment, size_t size)
{ {
void *mem; void *mem;
@ -5737,7 +5737,7 @@ posix_memalign (void **memptr, size_t tqalignment, size_t size)
if (size % sizeof (void *) != 0 || (size & (size - 1)) != 0) if (size % sizeof (void *) != 0 || (size & (size - 1)) != 0)
return EINVAL; return EINVAL;
mem = memalign (tqalignment, size); mem = memalign (alignment, size);
if (mem != NULL) { if (mem != NULL) {
*memptr = mem; *memptr = mem;

@ -270,7 +270,7 @@ public:
{ {
addr.generic = 0L; addr.generic = 0L;
curlen = 0; curlen = 0;
tqinvalidate(); invalidate();
} }
~KSocketAddressData() ~KSocketAddressData()
@ -282,7 +282,7 @@ public:
inline bool invalid() const inline bool invalid() const
{ return reallen == 0; } { return reallen == 0; }
inline void tqinvalidate() inline void invalidate()
{ reallen = 0; } { reallen = 0; }
void dup(const sockaddr* sa, TQ_UINT16 len, bool clear = true); void dup(const sockaddr* sa, TQ_UINT16 len, bool clear = true);
@ -348,7 +348,7 @@ void KSocketAddressData::dup(const sockaddr* sa, TQ_UINT16 len, bool clear)
if (len < MIN_SOCKADDR_LEN) if (len < MIN_SOCKADDR_LEN)
{ {
// certainly invalid // certainly invalid
tqinvalidate(); invalidate();
return; return;
} }
@ -359,7 +359,7 @@ void KSocketAddressData::dup(const sockaddr* sa, TQ_UINT16 len, bool clear)
(sa->sa_family == AF_UNIX && len < MIN_SOCKADDR_UN_LEN))) (sa->sa_family == AF_UNIX && len < MIN_SOCKADDR_UN_LEN)))
{ {
// also invalid // also invalid
tqinvalidate(); invalidate();
return; return;
} }
@ -444,7 +444,7 @@ KSocketAddress& KSocketAddress::operator =(const KSocketAddress& other)
if (other.d && !other.d->invalid()) if (other.d && !other.d->invalid())
d->dup(other.d->addr.generic, other.d->reallen); d->dup(other.d->addr.generic, other.d->reallen);
else else
d->tqinvalidate(); d->invalidate();
return *this; return *this;
} }
@ -467,7 +467,7 @@ KSocketAddress& KSocketAddress::setAddress(const sockaddr* sa, TQ_UINT16 len)
if (sa != 0L && len >= MIN_SOCKADDR_LEN) if (sa != 0L && len >= MIN_SOCKADDR_LEN)
d->dup(sa, len); d->dup(sa, len);
else else
d->tqinvalidate(); d->invalidate();
return *this; return *this;
} }
@ -788,7 +788,7 @@ KInetSocketAddress& KInetSocketAddress::setHost(const KIpAddress& ip)
default: default:
// empty // empty
d->tqinvalidate(); d->invalidate();
} }
return *this; return *this;
@ -832,7 +832,7 @@ KInetSocketAddress& KInetSocketAddress::setPort(TQ_UINT16 port)
#endif #endif
default: default:
d->tqinvalidate(); // setting the port on something else d->invalidate(); // setting the port on something else
} }
return *this; return *this;
@ -897,7 +897,7 @@ void KInetSocketAddress::update()
return; return;
#endif #endif
else else
d->tqinvalidate(); d->invalidate();
} }
KUnixSocketAddress::KUnixSocketAddress() KUnixSocketAddress::KUnixSocketAddress()
@ -908,7 +908,7 @@ KUnixSocketAddress::KUnixSocketAddress(const sockaddr* sa, TQ_UINT16 len)
: KSocketAddress(sa, len) : KSocketAddress(sa, len)
{ {
if (!d->invalid() && d->addr.un->sun_family != AF_UNIX) if (!d->invalid() && d->addr.un->sun_family != AF_UNIX)
d->tqinvalidate(); d->invalidate();
} }
KUnixSocketAddress::KUnixSocketAddress(const KUnixSocketAddress& other) KUnixSocketAddress::KUnixSocketAddress(const KUnixSocketAddress& other)

@ -511,7 +511,7 @@ public:
* buffer to fit needs. This function should not be used except for handling * buffer to fit needs. This function should not be used except for handling
* unknown socket address structures. * unknown socket address structures.
* *
* Also note that this function may tqinvalidate the socket if a known * Also note that this function may invalidate the socket if a known
* family is set (Internet or Unix socket) and the new length would be * family is set (Internet or Unix socket) and the new length would be
* too small to hold the system's sockaddr_* structure. If unsure, reset * too small to hold the system's sockaddr_* structure. If unsure, reset
* the family: * the family:
@ -535,7 +535,7 @@ public:
/** /**
* Sets the family of this object. * Sets the family of this object.
* *
* Note: setting the family will probably tqinvalidate any address data * Note: setting the family will probably invalidate any address data
* contained in this object. Use this function with care. * contained in this object. Use this function with care.
* *
* @param family the new family to set * @param family the new family to set

@ -309,7 +309,7 @@ int KActiveSocketBase::putch(int ch)
void KActiveSocketBase::setError(int status, SocketError error) void KActiveSocketBase::setError(int status, SocketError error)
{ {
KSocketBase::setError(error); KSocketBase::setError(error);
seStatus(status); setStatus(status);
} }
void KActiveSocketBase::resetError() void KActiveSocketBase::resetError()

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

@ -225,9 +225,9 @@ printf("[FIXME] *current = matrix * *current locks up under Qt4; bypassing for n
TQPtrList<TQDomNamedNodeMap> applyList; TQPtrList<TQDomNamedNodeMap> applyList;
applyList.setAutoDelete(true); applyList.setAutoDelete(true);
TQDomNode tqshape = node.parentNode(); TQDomNode shape = node.parentNode();
for(; !tqshape.isNull() ; tqshape = tqshape.parentNode()) for(; !shape.isNull() ; shape = shape.parentNode())
applyList.prepend(new TQDomNamedNodeMap(tqshape.attributes())); applyList.prepend(new TQDomNamedNodeMap(shape.attributes()));
// Apply parent attributes // Apply parent attributes
for(TQDomNamedNodeMap *map = applyList.first(); map != 0; map = applyList.next()) for(TQDomNamedNodeMap *map = applyList.first(); map != 0; map = applyList.next())

@ -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.tqat(tmpurl.length() - 1) == '/') if ( tmpurl.at(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()->tqat(); m_nameDictOffset = str.device()->at();
m_nameDict->save(str); m_nameDict->save(str);
m_relNameDictOffset = str.tqdevice()->tqat(); m_relNameDictOffset = str.device()->at();
m_relNameDict->save(str); m_relNameDict->save(str);
saveOfferList(str); saveOfferList(str);
saveInitList(str); saveInitList(str);
m_menuIdDictOffset = str.tqdevice()->tqat(); m_menuIdDictOffset = str.device()->at();
m_menuIdDict->save(str); m_menuIdDict->save(str);
int endOfFactoryData = str.tqdevice()->tqat(); int endOfFactoryData = str.device()->at();
// Update header (pass #3) // Update header (pass #3)
saveHeader(str); saveHeader(str);
// Seek to end. // Seek to end.
str.tqdevice()->tqat(endOfFactoryData); str.device()->at(endOfFactoryData);
} }
void void
KBuildServiceFactory::saveOfferList(TQDataStream &str) KBuildServiceFactory::saveOfferList(TQDataStream &str)
{ {
m_offerListOffset = str.tqdevice()->tqat(); m_offerListOffset = str.device()->at();
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()->tqat(); m_initListOffset = str.device()->at();
KService::List initList; KService::List initList;

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

@ -152,13 +152,13 @@ KBuildServiceTypeFactory::save(TQDataStream &str)
savePatternLists(str); savePatternLists(str);
int endOfFactoryData = str.tqdevice()->tqat(); int endOfFactoryData = str.device()->at();
// Update header (pass #3) // Update header (pass #3)
saveHeader(str); saveHeader(str);
// Seek to end. // Seek to end.
str.tqdevice()->tqat(endOfFactoryData); str.device()->at(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()->tqat(); m_fastPatternOffset = str.device()->at();
// Write out fastPatternHeader (Pass #1) // Write out fastPatternHeader (Pass #1)
str.tqdevice()->tqat(m_fastPatternOffset); str.device()->at(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()->tqat(); int start = str.device()->at();
// 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()->tqat() - start; entrySize = str.device()->at() - start;
nrOfEntries++; nrOfEntries++;
} }
// store position // store position
m_otherPatternOffset = str.tqdevice()->tqat(); m_otherPatternOffset = str.device()->at();
// Write out fastPatternHeader (Pass #2) // Write out fastPatternHeader (Pass #2)
str.tqdevice()->tqat(m_fastPatternOffset); str.device()->at(m_fastPatternOffset);
str << nrOfEntries; str << nrOfEntries;
str << entrySize; str << entrySize;
// For the other patterns // For the other patterns
str.tqdevice()->tqat(m_otherPatternOffset); str.device()->at(m_otherPatternOffset);
it = otherPatterns.begin(); it = otherPatterns.begin();
for ( ; it != otherPatterns.end() ; ++it ) for ( ; it != otherPatterns.end() ; ++it )

@ -500,7 +500,7 @@ bool KBuildSycoca::recreate()
if( build()) // Parse dirs if( build()) // Parse dirs
{ {
save(); // Save database save(); // Save database
if (m_str->tqdevice()->status()) if (m_str->device()->status())
database->abort(); // Error database->abort(); // Error
m_str = 0L; m_str = 0L;
if (!database->close()) if (!database->close())
@ -541,7 +541,7 @@ bool KBuildSycoca::recreate()
void KBuildSycoca::save() void KBuildSycoca::save()
{ {
// Write header (#pass 1) // Write header (#pass 1)
m_str->tqdevice()->tqat(0); m_str->device()->at(0);
(*m_str) << (TQ_INT32) KSycoca::version(); (*m_str) << (TQ_INT32) KSycoca::version();
KSycocaFactory * servicetypeFactory = 0L; KSycocaFactory * servicetypeFactory = 0L;
@ -575,14 +575,14 @@ void KBuildSycoca::save()
factory = m_lstFactories->next()) factory = m_lstFactories->next())
{ {
factory->save(*m_str); factory->save(*m_str);
if (m_str->tqdevice()->status()) if (m_str->device()->status())
return; // error return; // error
} }
int endOfData = m_str->tqdevice()->tqat(); int endOfData = m_str->device()->at();
// Write header (#pass 2) // Write header (#pass 2)
m_str->tqdevice()->tqat(0); m_str->device()->at(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()->tqat(endOfData); m_str->device()->at(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()->tqat(); m_dictOffset = str.device()->at();
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()->tqat(); int endOfFactoryData = str.device()->at();
saveHeader(str); saveHeader(str);
str.tqdevice()->tqat(endOfFactoryData); str.device()->at(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()->tqat(m_dictOffset); m_str->device()->at(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.tqat(fn.length() - 1)).latin1() == '~') if (fn == _dot || fn == _dotdot || TQChar(fn.at(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.tqat(fn.length() - 1)).latin1() == '~') if (fn == _dot || fn == _dotdot || TQChar(fn.at(fn.length() - 1)).latin1() == '~')
continue; continue;
TQString pathfn = dir + fn; TQString pathfn = dir + fn;

@ -1110,7 +1110,7 @@ TQImage& KImageEffect::blend(const TQColor& clr, TQImage& dst, float opacity)
TQ_UINT32 *data = reinterpret_cast<TQ_UINT32*>( dst.bits() ); TQ_UINT32 *data = reinterpret_cast<TQ_UINT32*>( dst.bits() );
// Check how many pixels we need to process to achieve 16 byte tqalignment // Check how many pixels we need to process to achieve 16 byte alignment
int offset = (16 - (TQ_UINT32( data ) & 0x0f)) / 4; int offset = (16 - (TQ_UINT32( data ) & 0x0f)) / 4;
// The main loop processes 8 pixels / iteration // The main loop processes 8 pixels / iteration
@ -1358,7 +1358,7 @@ TQImage& KImageEffect::blend(TQImage& src, TQImage& dst, float opacity)
TQ_UINT32 *data1 = reinterpret_cast<TQ_UINT32*>( src.bits() ); TQ_UINT32 *data1 = reinterpret_cast<TQ_UINT32*>( src.bits() );
TQ_UINT32 *data2 = reinterpret_cast<TQ_UINT32*>( dst.bits() ); TQ_UINT32 *data2 = reinterpret_cast<TQ_UINT32*>( dst.bits() );
// Check how many pixels we need to process to achieve 16 byte tqalignment // Check how many pixels we need to process to achieve 16 byte alignment
int offset = (16 - (TQ_UINT32( data2 ) & 0x0f)) / 4; int offset = (16 - (TQ_UINT32( data2 ) & 0x0f)) / 4;
// The main loop processes 4 pixels / iteration // The main loop processes 4 pixels / iteration

@ -264,8 +264,8 @@ void KStyle::polish( TQWidget* widget )
if ( d->useFilledFrameWorkaround ) if ( d->useFilledFrameWorkaround )
{ {
if ( TQFrame *frame = ::tqqt_cast< TQFrame* >( widget ) ) { if ( TQFrame *frame = ::tqqt_cast< TQFrame* >( widget ) ) {
TQFrame::Shape tqshape = frame->frameShape(); TQFrame::Shape shape = frame->frameShape();
if (tqshape == TQFrame::ToolBarPanel || tqshape == TQFrame::MenuBarPanel) if (shape == TQFrame::ToolBarPanel || shape == TQFrame::MenuBarPanel)
widget->installEventFilter(this); widget->installEventFilter(this);
} }
} }
@ -285,8 +285,8 @@ void KStyle::unPolish( TQWidget* widget )
if ( d->useFilledFrameWorkaround ) if ( d->useFilledFrameWorkaround )
{ {
if ( TQFrame *frame = ::tqqt_cast< TQFrame* >( widget ) ) { if ( TQFrame *frame = ::tqqt_cast< TQFrame* >( widget ) ) {
TQFrame::Shape tqshape = frame->frameShape(); TQFrame::Shape shape = frame->frameShape();
if (tqshape == TQFrame::ToolBarPanel || tqshape == TQFrame::MenuBarPanel) if (shape == TQFrame::ToolBarPanel || shape == TQFrame::MenuBarPanel)
widget->removeEventFilter(this); widget->removeEventFilter(this);
} }
} }
@ -627,9 +627,9 @@ void KStyle::tqdrawPrimitive( TQ_PrimitiveElement pe,
} }
XRenderFillRectangle( XRenderFillRectangle(
p->tqdevice()->x11Display(), p->device()->x11Display(),
PictOpOver, PictOpOver,
p->tqdevice()->x11RenderHandle(), p->device()->x11RenderHandle(),
&clr, &clr,
rect.x() + point.x(), rect.x() + point.x(),
rect.y() + point.y(), rect.y() + point.y(),
@ -668,7 +668,7 @@ void KStyle::drawControl( TQ_ControlElement element,
// ------------------------------------------------------------------------ // ------------------------------------------------------------------------
case CE_TabBarTab: { case CE_TabBarTab: {
const TQTabBar* tb = (const TQTabBar*) widget; const TQTabBar* tb = (const TQTabBar*) widget;
TQTabBar::Shape tbs = tb->tqshape(); TQTabBar::Shape tbs = tb->shape();
bool selected = flags & Style_Selected; bool selected = flags & Style_Selected;
int x = r.x(), y=r.y(), bottom=r.bottom(), right=r.right(); int x = r.x(), y=r.y(), bottom=r.bottom(), right=r.right();
@ -1010,8 +1010,8 @@ int KStyle::pixelMetric(PixelMetric m, const TQWidget* widget) const
case PM_TabBarTabVSpace: { case PM_TabBarTabVSpace: {
const TQTabBar * tb = (const TQTabBar *) widget; const TQTabBar * tb = (const TQTabBar *) widget;
if ( tb->tqshape() == TQTabBar::RoundedAbove || if ( tb->shape() == TQTabBar::RoundedAbove ||
tb->tqshape() == TQTabBar::RoundedBelow ) tb->shape() == TQTabBar::RoundedBelow )
return 10; return 10;
else else
return 4; return 4;
@ -1019,7 +1019,7 @@ int KStyle::pixelMetric(PixelMetric m, const TQWidget* widget) const
case PM_TabBarTabOverlap: { case PM_TabBarTabOverlap: {
const TQTabBar* tb = (const TQTabBar*)widget; const TQTabBar* tb = (const TQTabBar*)widget;
TQTabBar::Shape tbs = tb->tqshape(); TQTabBar::Shape tbs = tb->shape();
if ( (tbs == TQTabBar::RoundedAbove) || if ( (tbs == TQTabBar::RoundedAbove) ||
(tbs == TQTabBar::RoundedBelow) ) (tbs == TQTabBar::RoundedBelow) )
@ -1897,7 +1897,7 @@ bool KStyle::eventFilter( TQObject* object, TQEvent* event )
// ensure that the filled frame contents are properly painted. // ensure that the filled frame contents are properly painted.
// We essentially modify the paintEvent's rect to include the // We essentially modify the paintEvent's rect to include the
// panel border, which also paints the widget's interior. // panel border, which also paints the widget's interior.
// This is nasty, but I see no other way to properly tqrepaint // This is nasty, but I see no other way to properly repaint
// filled frames in all QMenuBars and QToolBars. // filled frames in all QMenuBars and QToolBars.
// -- Karol. // -- Karol.
TQFrame *frame = 0; TQFrame *frame = 0;

@ -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_.tqat(); index = locs_.at();
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_.tqat(index); CupsLocation *loc = locs_.at(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_.tqat(resource_->currentItem()); loc->resource_ = conf_->resources_.at(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());

@ -51,7 +51,7 @@ void ImagePreview::setParameters(int brightness, int hue, int saturation, int ga
hue_ = hue; hue_ = hue;
saturation_ = saturation; saturation_ = saturation;
gamma_ = gamma; gamma_ = gamma;
tqrepaint(); repaint();
} }
void ImagePreview::paintEvent(TQPaintEvent*){ void ImagePreview::paintEvent(TQPaintEvent*){

@ -192,7 +192,7 @@ KPImagePage::KPImagePage(DrMain *driver, TQWidget *parent, const char *name)
TQString whatsThisPreviewPositionImagePage = i18n( " <qt> " TQString whatsThisPreviewPositionImagePage = i18n( " <qt> "
" <p><b>Position Preview Thumbnail</b></p> " " <p><b>Position Preview Thumbnail</b></p> "
" <p>This position preview thumbnail indicates the position of the image on the paper sheet. " " <p>This position preview thumbnail indicates the position of the image on the paper sheet. "
" <p>Click on horizontal and vertical radio buttons to move image tqalignment on paper around. Options are: " " <p>Click on horizontal and vertical radio buttons to move image alignment on paper around. Options are: "
" <ul> " " <ul> "
" <li> center </li>" " <li> center </li>"
" <li> top </li>" " <li> top </li>"

@ -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.tqat(choicenum)->name()); setValueText(m_choices.at(choicenum)->name());
} }
} }

@ -133,7 +133,7 @@ bool DriverItem::updateConflict()
m_conflict = (m_item->conflict()); m_conflict = (m_item->conflict());
} }
} }
tqrepaint(); repaint();
return m_conflict; return m_conflict;
} }

@ -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.tqat(i)->isDiscarded()) if (m_jobs.at(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.tqat(i); KMPrinter *prt = m_printers.at(i);
if (prt->isDiscarded()) if (prt->isDiscarded())
{ {
m_printers.remove(i); m_printers.remove(i);

@ -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()->tqat(m_pagesize->currentItem()); DrBase *ch = opt->choices()->at(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()->tqat(m_papertype->currentItem()); DrBase *ch = opt->choices()->at(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()->tqat(m_inputslot->currentItem()); DrBase *ch = opt->choices()->at(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();
} }

@ -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()->tqat(m_pagesize->currentItem()); DrBase *ch = opt->choices()->at(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();

@ -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_OBJECT_NAME_STRING))); TQTabWidget *tabs = static_cast<TQTabWidget*>(TQT_TQWIDGET(d->m_dummy->child("TabWidget", TQTABWIDGET_OBJECT_NAME_STRING)));
for (uint i=0; i<d->m_pages.count(); i++) for (uint i=0; i<d->m_pages.count(); i++)
if (d->m_pages.tqat(i)->onlyRealPrinters()) if (d->m_pages.at(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_OBJECT_NAME_STRING))); TQTabWidget *tabs = static_cast<TQTabWidget*>(TQT_TQWIDGET(d->m_dummy->child("TabWidget", TQTABWIDGET_OBJECT_NAME_STRING)));
tabs->setTabEnabled( d->m_pages.tqat( index ), flag ); tabs->setTabEnabled( d->m_pages.at( index ), flag );
} }
else else
d->m_pages.tqat( 0 )->setEnabled( flag ); d->m_pages.at( 0 )->setEnabled( flag );
} }
void KPrintDialog::slotOpenFileDialog() void KPrintDialog::slotOpenFileDialog()

@ -72,7 +72,7 @@ KMPrinter::PrinterState LpcHelper::state(KMPrinter *prt) const
return state(prt->printerName()); return state(prt->printerName());
} }
void LpcHelper::parseStatusLPR(TQTextStream &t) void LpcHelper::parsetStatusLPR(TQTextStream &t)
{ {
TQString printer, line; TQString printer, line;
int p(-1); int p(-1);
@ -107,7 +107,7 @@ void LpcHelper::parseStatusLPR(TQTextStream &t)
} }
} }
void LpcHelper::parseStatusLPRng(TQTextStream& t) void LpcHelper::parsetStatusLPRng(TQTextStream& t)
{ {
TQStringList l; TQStringList l;
int p(-1); int p(-1);
@ -152,10 +152,10 @@ void LpcHelper::updateStates()
{ {
default: default:
case LprSettings::LPR: case LprSettings::LPR:
parseStatusLPR(t); parsetStatusLPR(t);
break; break;
case LprSettings::LPRng: case LprSettings::LPRng:
parseStatusLPRng(t); parsetStatusLPRng(t);
break; break;
} }
proc.close(); proc.close();

@ -46,8 +46,8 @@ public:
protected: protected:
bool changeState(const TQString&, const TQString&, TQString&); bool changeState(const TQString&, const TQString&, TQString&);
void parseStatusLPR(TQTextStream&); void parsetStatusLPR(TQTextStream&);
void parseStatusLPRng(TQTextStream&); void parsetStatusLPRng(TQTextStream&);
int parseStateChangeLPR(const TQString&, const TQString&); int parseStateChangeLPR(const TQString&, const TQString&);
int parseStateChangeLPRng(const TQString&, const TQString&); int parseStateChangeLPRng(const TQString&, const TQString&);

@ -56,7 +56,7 @@ void PrintcapReader::unputLine(const TQString& s)
PrintcapEntry* PrintcapReader::nextEntry() PrintcapEntry* PrintcapReader::nextEntry()
{ {
if (!m_stream.tqdevice()) if (!m_stream.device())
return NULL; return NULL;
TQString line, comment, name, fields, buf; TQString line, comment, name, fields, buf;

@ -114,7 +114,7 @@ void KMIconViewItem::updatePrinter(KMPrinter *p, int mode)
setPixmap(SmallIcon(m_pixmap, 0, iconstate)); setPixmap(SmallIcon(m_pixmap, 0, iconstate));
} }
//if (update) //if (update)
// tqrepaint(); // repaint();
setDiscarded(false); setDiscarded(false);
} }
@ -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.tqat(i)->isDiscarded()) if (m_items.at(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.tqat(i)->isDiscarded()) if (m_items.at(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.tqat(prID); KMPrinter *p = m_printers.at(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.tqat(prID-1)->printerName()); TQString prname = (prID == 0 ? i18n("All Printers") : m_printers.at(prID-1)->printerName());
emit printerChanged(this, prname); emit printerChanged(this, prname);
} }
} }

@ -89,7 +89,7 @@ void KMListViewItem::updatePrinter(KMPrinter *p)
} }
setDiscarded(false); setDiscarded(false);
if (update) if (update)
tqrepaint(); repaint();
} }
void KMListViewItem::paintCell(TQPainter *p, const TQColorGroup& cg, int c, int w, int a) void KMListViewItem::paintCell(TQPainter *p, const TQColorGroup& cg, int c, int w, int a)
@ -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.tqat(i)->isDiscarded()) if (m_items.at(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

@ -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->tqat(index); KMDBEntry *entry = m_entries->at(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->tqat(index)->drivercomment.isEmpty()) if (m_entries && index >=0 && index < (int)(m_entries->count()) && !m_entries->at(index)->drivercomment.isEmpty())
KMessageBox::information(this, m_entries->tqat(index)->drivercomment, TQString::null, TQString::null, KMessageBox::AllowLink); KMessageBox::information(this, m_entries->at(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.tqat(i)->setText(s); m_labels.at(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.tqat(i)->setText(s); m_edits.at(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.tqat(i)->text(); return m_edits.at(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.tqat(i)->selectAll(); m_edits.at(i)->selectAll();
m_edits.tqat(i)->setFocus(); m_edits.at(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.tqat( i ); return m_edits.at( i );
else else
return NULL; return NULL;
} }

@ -78,7 +78,7 @@ void drawFonts( TQPainter *p )
// //
// This function draws some tqshapes // This function draws some shapes
// //
void drawShapes( TQPainter *p ) void drawShapes( TQPainter *p )
@ -115,7 +115,7 @@ struct DrawThing {
DrawThing ourDrawFunctions[] = { DrawThing ourDrawFunctions[] = {
{ drawColorWheel, "Draw color wheel" }, { drawColorWheel, "Draw color wheel" },
{ drawFonts, "Draw fonts" }, { drawFonts, "Draw fonts" },
{ drawShapes, "Draw tqshapes" }, { drawShapes, "Draw shapes" },
{ 0, 0 } }; { 0, 0 } };

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

@ -890,7 +890,7 @@ void KAboutContainer::addPerson( const TQString &_name, const TQString &_email,
} }
void KAboutContainer::addTitle( const TQString &title, int tqalignment, void KAboutContainer::addTitle( const TQString &title, int alignment,
bool showFrame, bool showBold ) bool showFrame, bool showBold )
{ {
@ -905,11 +905,11 @@ void KAboutContainer::addTitle( const TQString &title, int tqalignment,
{ {
label->setFrameStyle(TQFrame::Panel | TQFrame::Raised); label->setFrameStyle(TQFrame::Panel | TQFrame::Raised);
} }
label->setAlignment( tqalignment ); label->setAlignment( alignment );
} }
void KAboutContainer::addImage( const TQString &fileName, int tqalignment ) void KAboutContainer::addImage( const TQString &fileName, int alignment )
{ {
if( fileName.isNull() ) if( fileName.isNull() )
{ {
@ -924,7 +924,7 @@ void KAboutContainer::addImage( const TQString &fileName, int tqalignment )
pix = logo; pix = logo;
label->setPixmap( pix ); label->setPixmap( pix );
} }
label->setAlignment( tqalignment ); label->setAlignment( alignment );
} }
#if 0 #if 0

@ -62,9 +62,9 @@ class KDEUI_EXPORT KAboutContainer : public TQFrame
const TQString &url, const TQString &task, const TQString &url, const TQString &task,
bool showHeader = false, bool showframe = false, bool showHeader = false, bool showframe = false,
bool showBold = false ); bool showBold = false );
void addTitle( const TQString &title, int tqalignment=AlignLeft, void addTitle( const TQString &title, int alignment=AlignLeft,
bool showframe = false, bool showBold = false ); bool showframe = false, bool showBold = false );
void addImage( const TQString &fileName, int tqalignment=AlignLeft ); void addImage( const TQString &fileName, int alignment=AlignLeft );
virtual TQSize sizeHint( void ) const; virtual TQSize sizeHint( void ) const;
virtual TQSize minimumSizeHint( void ) const; virtual TQSize minimumSizeHint( void ) const;

@ -628,7 +628,7 @@ void KSelectAction::updateItems( int id )
for( ; it != lst.end(); ++it ) for( ; it != lst.end(); ++it )
cb->insertItem( *it ); cb->insertItem( *it );
// qt caches and never recalculates the sizeHint() // qt caches and never recalculates the sizeHint()
// qcombobox.cpp recommends calling setFont to tqinvalidate the sizeHint // qcombobox.cpp recommends calling setFont to invalidate the sizeHint
// setFont sets own_font = True, so we're a bit mean and calll // setFont sets own_font = True, so we're a bit mean and calll
// unsetFont which calls setFont and then overwrites the own_font // unsetFont which calls setFont and then overwrites the own_font
cb->unsetFont(); cb->unsetFont();

@ -250,8 +250,8 @@ void KActionCollection::removeWidget( TQWidget* w )
} }
delete pKAccel; delete pKAccel;
d->m_widgetList.remove( d->m_widgetList.tqat( i ) ); d->m_widgetList.remove( d->m_widgetList.at( i ) );
d->m_kaccelList.remove( d->m_kaccelList.tqat( i ) ); d->m_kaccelList.remove( d->m_kaccelList.at( 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.tqat( index ); // return d->m_actions.at( index );
} }
bool KActionCollection::readShortcutSettings( const TQString& sConfigGroup, KConfigBase* pConfig ) bool KActionCollection::readShortcutSettings( const TQString& sConfigGroup, KConfigBase* pConfig )

@ -74,7 +74,7 @@ void KAnimWidget::stop()
{ {
d->current_frame = 0; d->current_frame = 0;
d->timer.stop(); d->timer.stop();
tqrepaint(); repaint();
} }
void KAnimWidget::setSize( int size ) void KAnimWidget::setSize( int size )
@ -162,7 +162,7 @@ void KAnimWidget::slotTimerUpdate()
// We have to clear the widget when repainting a transparent image // We have to clear the widget when repainting a transparent image
// By doing it like this we get a bit of flicker though. A better // By doing it like this we get a bit of flicker though. A better
// way might be to merge it with the background in drawContents. // way might be to merge it with the background in drawContents.
tqrepaint(d->transparent); repaint(d->transparent);
} }
void KAnimWidget::drawContents( TQPainter *p ) void KAnimWidget::drawContents( TQPainter *p )

@ -49,7 +49,7 @@ void KArrowButton::setArrowType(Qt::ArrowType a)
{ {
if (d->arrow != a) { if (d->arrow != a) {
d->arrow = a; d->arrow = a;
tqrepaint(); repaint();
} }
} }
Qt::ArrowType KArrowButton::arrowType() const Qt::ArrowType KArrowButton::arrowType() const

@ -28,7 +28,7 @@ class KArrowButtonPrivate;
* @short Draws a button with an arrow. * @short Draws a button with an arrow.
* *
* Draws a button which shows an arrow pointing into a certain direction. The * Draws a button which shows an arrow pointing into a certain direction. The
* arrow's tqalignment on the button depends on the direction it's pointing to, * arrow's alignment on the button depends on the direction it's pointing to,
* e.g. a left arrow is aligned at the left border, a upwards arrow at the top * e.g. a left arrow is aligned at the left border, a upwards arrow at the top
* border. This class honors the currently configured KStyle when drawing * border. This class honors the currently configured KStyle when drawing
* the arrow. * the arrow.
@ -72,7 +72,7 @@ class KDEUI_EXPORT KArrowButton : public TQPushButton
void setArrowTp( int tp ) { setArrowType( (Qt::ArrowType) tp ); } void setArrowTp( int tp ) { setArrowType( (Qt::ArrowType) tp ); }
public slots: public slots:
/** /**
* Defines in what direction the arrow is pointing to. Will tqrepaint the * Defines in what direction the arrow is pointing to. Will repaint the
* button if necessary. * button if necessary.
* *
* @param a The direction this arrow should be pointing in * @param a The direction this arrow should be pointing in

@ -493,7 +493,7 @@ void KCharSelect::fillFontCombo()
fontDataBase = new TQFontDatabase(); fontDataBase = new TQFontDatabase();
qAddPostRoutine( cleanupFontDatabase ); qAddPostRoutine( cleanupFontDatabase );
} }
fontList=fontDataBase->tqfamilies(); fontList=fontDataBase->families();
fontCombo->insertStringList( fontList ); fontCombo->insertStringList( fontList );
} }

@ -85,7 +85,7 @@ void KColorButton::setColor( const TQColor &c )
{ {
if ( col != c ) { if ( col != c ) {
col = c; col = c;
tqrepaint( false ); repaint( false );
emit changed( col ); emit changed( col );
} }
} }

@ -1479,7 +1479,7 @@ void KColorDialog::showColor( const KColor &color, const TQString &name )
d->valuePal->setValue( v ); d->valuePal->setValue( v );
d->valuePal->updateContents(); d->valuePal->updateContents();
d->valuePal->blockSignals(false); d->valuePal->blockSignals(false);
d->valuePal->tqrepaint( false ); d->valuePal->repaint( false );
d->bRecursion = false; d->bRecursion = false;
} }

@ -485,7 +485,7 @@ void KCompletionBox::setItems( const TQStringList& items )
} }
else { else {
//Keep track of whether we need to change anything, //Keep track of whether we need to change anything,
//so we can avoid a tqrepaint for identical updates, //so we can avoid a repaint for identical updates,
//to reduce flicker //to reduce flicker
bool dirty = false; bool dirty = false;

@ -33,7 +33,7 @@ class TQWidget;
* *
* A wrapper around TQCursor that allows for "themed" cursors. * A wrapper around TQCursor that allows for "themed" cursors.
* *
* Currently, the only themed cursor is a hand tqshaped cursor. * Currently, the only themed cursor is a hand shaped cursor.
* *
* A typical usage would be * A typical usage would be
* \code * \code

@ -815,7 +815,7 @@ KDateInternalMonthPicker::contentsMouseMoveEvent(TQMouseEvent *e)
updateCell( row, col /*, false */ ); // mark the new active cell updateCell( row, col /*, false */ ); // mark the new active cell
} }
} }
if ( tmpRow > -1 ) // tqrepaint the former active cell if ( tmpRow > -1 ) // repaint the former active cell
updateCell( tmpRow, tmpCol /*, true */ ); updateCell( tmpRow, tmpCol /*, true */ );
} }
} }
@ -1006,7 +1006,7 @@ int
KPopupFrame::exec(TQPoint pos) KPopupFrame::exec(TQPoint pos)
{ {
popup(pos); popup(pos);
tqrepaint(); repaint();
d->exec = true; d->exec = true;
const TQGuardedPtr<TQObject> that = TQT_TQOBJECT(this); const TQGuardedPtr<TQObject> that = TQT_TQOBJECT(this);
tqApp->enter_loop(); tqApp->enter_loop();

@ -100,7 +100,7 @@ class KDialogBaseTile;
* signals that are related to the standard action buttons will be used * signals that are related to the standard action buttons will be used
* when you don't use these buttons. * when you don't use these buttons.
* *
* <b>Dialog tqshapes:</b>\n * <b>Dialog shapes:</b>\n
* *
* You can either use one of the prebuilt, easy to use, faces or * You can either use one of the prebuilt, easy to use, faces or
* define your own main widget. The dialog provides ready to use * define your own main widget. The dialog provides ready to use
@ -733,7 +733,7 @@ class KDEUI_EXPORT KDialogBase : public KDialog
* Sets the page with @p index to be displayed. * Sets the page with @p index to be displayed.
* *
* This method will only * This method will only
* work when the dialog is using the predefined tqshape of TreeList, * work when the dialog is using the predefined shape of TreeList,
* IconList or Tabbed. * IconList or Tabbed.
* *
* @param index Index of the page to be shown. * @param index Index of the page to be shown.
@ -745,7 +745,7 @@ class KDEUI_EXPORT KDialogBase : public KDialog
* Returns the index of the active page. * Returns the index of the active page.
* *
* This method will only work when the dialog is using the * This method will only work when the dialog is using the
* predefined tqshape of Tabbed, TreeList or IconList. * predefined shape of Tabbed, TreeList or IconList.
* *
* @return The page index or -1 if there is no active page. * @return The page index or -1 if there is no active page.
*/ */
@ -1167,7 +1167,7 @@ class KDEUI_EXPORT KDialogBase : public KDialog
* set it as a minimum size for the resulting dialog. * set it as a minimum size for the resulting dialog.
* *
* You should not need to use this method and never if you use one of * You should not need to use this method and never if you use one of
* the predefined tqshapes. * the predefined shapes.
* *
* @param w The width of you special widget. * @param w The width of you special widget.
* @param h The height of you special widget. * @param h The height of you special widget.

@ -1497,7 +1497,7 @@ void KDockWidget::setDockTabName( KDockTabGroup* tab )
tab->parentWidget()->setName( listOfName.utf8() ); tab->parentWidget()->setName( listOfName.utf8() );
tab->parentWidget()->setCaption( listOfCaption ); tab->parentWidget()->setCaption( listOfCaption );
tab->parentWidget()->tqrepaint( false ); // KDockWidget->tqrepaint tab->parentWidget()->repaint( false ); // KDockWidget->repaint
if ( tab->parentWidget()->parent() ) if ( tab->parentWidget()->parent() )
if ( tab->parentWidget()->parent()->inherits("KDockSplitter") ) if ( tab->parentWidget()->parent()->inherits("KDockSplitter") )
((KDockSplitter*)(tab->parentWidget()->parent()))->updateName(); ((KDockSplitter*)(tab->parentWidget()->parent()))->updateName();
@ -1570,7 +1570,7 @@ void KDockWidget::loseFormerBrotherDockWidget()
TQObject::disconnect( formerBrotherDockWidget, TQT_SIGNAL(iMBeingClosed()), TQObject::disconnect( formerBrotherDockWidget, TQT_SIGNAL(iMBeingClosed()),
this, TQT_SLOT(loseFormerBrotherDockWidget()) ); this, TQT_SLOT(loseFormerBrotherDockWidget()) );
formerBrotherDockWidget = 0L; formerBrotherDockWidget = 0L;
tqrepaint(); repaint();
} }
void KDockWidget::dockBack() void KDockWidget::dockBack()
@ -1910,7 +1910,7 @@ void KDockManager::findChildDockWidget( TQWidget*& ww, const TQWidget* p, const
while ( it.current() ) { while ( it.current() ) {
if ( it.current()->isWidgetType() ) { if ( it.current()->isWidgetType() ) {
w = (TQWidget*)it.current(); w = (TQWidget*)it.current();
if ( w->isVisible() && w->tqgeometry().contains(pos) ) { if ( w->isVisible() && w->geometry().contains(pos) ) {
if ( w->inherits("KDockWidget") ) ww = w; if ( w->inherits("KDockWidget") ) ww = w;
findChildDockWidget( ww, w, w->mapFromParent(pos) ); findChildDockWidget( ww, w, w->mapFromParent(pos) );
return; return;
@ -2950,7 +2950,7 @@ void KDockManager::slotMenuPopup()
void KDockManager::slotMenuActivated( int id ) void KDockManager::slotMenuActivated( int id )
{ {
MenuDockData* data = menuData->tqat( id ); MenuDockData* data = menuData->at( id );
data->dock->changeHideShowState(); data->dock->changeHideShowState();
} }
@ -3121,7 +3121,7 @@ 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())->tqat(i); // TQObject *obj=((TQPtrList<TQObject*>)children())->at(i);
TQObject *obj=children()->getFirst(); TQObject *obj=children()->getFirst();
if (split = tqt_dynamic_cast<KDockSplitter*>(obj)) if (split = tqt_dynamic_cast<KDockSplitter*>(obj))
{ {
@ -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.tqat(i)); // names.remove(m_children.at(i));
// } // }
} }

@ -513,7 +513,7 @@ bool KDockSplitter::eventFilter(TQObject *o, TQEvent *e)
if (tmp_xpos != xpos) { if (tmp_xpos != xpos) {
xpos = tmp_xpos; xpos = tmp_xpos;
resizeEvent(0); resizeEvent(0);
divider->tqrepaint(true); divider->repaint(true);
} }
} }
} else { } else {
@ -529,7 +529,7 @@ bool KDockSplitter::eventFilter(TQObject *o, TQEvent *e)
if (tmp_xpos != xpos) { if (tmp_xpos != xpos) {
xpos = tmp_xpos; xpos = tmp_xpos;
resizeEvent(0); resizeEvent(0);
divider->tqrepaint(true); divider->repaint(true);
} }
} }
} }
@ -546,7 +546,7 @@ bool KDockSplitter::eventFilter(TQObject *o, TQEvent *e)
} }
xpos = factor* checkValue( mapFromGlobal(mev->globalPos()).y() ) / height(); xpos = factor* checkValue( mapFromGlobal(mev->globalPos()).y() ) / height();
resizeEvent(0); resizeEvent(0);
divider->tqrepaint(true); divider->repaint(true);
} else { } else {
if ((fixedWidth0!=-1) || (fixedWidth1!=-1)) if ((fixedWidth0!=-1) || (fixedWidth1!=-1))
{ {
@ -554,7 +554,7 @@ bool KDockSplitter::eventFilter(TQObject *o, TQEvent *e)
} }
xpos = factor* checkValue( mapFromGlobal(mev->globalPos()).x() ) / width(); xpos = factor* checkValue( mapFromGlobal(mev->globalPos()).x() ) / width();
resizeEvent(0); resizeEvent(0);
divider->tqrepaint(true); divider->repaint(true);
} }
handled= true; handled= true;
break; break;
@ -587,7 +587,7 @@ void KDockSplitter::updateName()
TQString new_name = TQString( child0->name() ) + "," + child1->name(); TQString new_name = TQString( child0->name() ) + "," + child1->name();
parentWidget()->setName( new_name.latin1() ); parentWidget()->setName( new_name.latin1() );
parentWidget()->setCaption( child0->caption() + "," + child1->caption() ); parentWidget()->setCaption( child0->caption() + "," + child1->caption() );
parentWidget()->tqrepaint( false ); parentWidget()->repaint( false );
((KDockWidget*)parentWidget())->firstName = child0->name(); ((KDockWidget*)parentWidget())->firstName = child0->name();
((KDockWidget*)parentWidget())->lastName = child1->name(); ((KDockWidget*)parentWidget())->lastName = child1->name();
@ -661,13 +661,13 @@ void KDockButton_Private::drawButton( TQPainter* p )
void KDockButton_Private::enterEvent( TQEvent * ) void KDockButton_Private::enterEvent( TQEvent * )
{ {
moveMouse = true; moveMouse = true;
tqrepaint(); repaint();
} }
void KDockButton_Private::leaveEvent( TQEvent * ) void KDockButton_Private::leaveEvent( TQEvent * )
{ {
moveMouse = false; moveMouse = false;
tqrepaint(); repaint();
} }
/*************************************************************************/ /*************************************************************************/

@ -112,7 +112,7 @@ TQSize KDualColorButton::sizeHint() const
void KDualColorButton::setForeground(const TQColor &c) void KDualColorButton::setForeground(const TQColor &c)
{ {
fg = TQBrush(c, Qt::SolidPattern); fg = TQBrush(c, Qt::SolidPattern);
tqrepaint(false); repaint(false);
emit fgChanged(fg.color()); emit fgChanged(fg.color());
} }
@ -120,7 +120,7 @@ void KDualColorButton::setForeground(const TQColor &c)
void KDualColorButton::setBackground(const TQColor &c) void KDualColorButton::setBackground(const TQColor &c)
{ {
bg = TQBrush(c, Qt::SolidPattern); bg = TQBrush(c, Qt::SolidPattern);
tqrepaint(false); repaint(false);
emit bgChanged(bg.color()); emit bgChanged(bg.color());
} }
@ -131,13 +131,13 @@ void KDualColorButton::setCurrentColor(const TQColor &c)
bg = TQBrush(c, Qt::SolidPattern); bg = TQBrush(c, Qt::SolidPattern);
else else
fg = TQBrush(c, Qt::SolidPattern); fg = TQBrush(c, Qt::SolidPattern);
tqrepaint(false); repaint(false);
} }
void KDualColorButton::setCurrent(DualColor s) void KDualColorButton::setCurrent(DualColor s)
{ {
curColor = s; curColor = s;
tqrepaint(false); repaint(false);
} }
void KDualColorButton::metrics(TQRect &fgRect, TQRect &bgRect) void KDualColorButton::metrics(TQRect &fgRect, TQRect &bgRect)
@ -181,7 +181,7 @@ void KDualColorButton::dropEvent(TQDropEvent *ev)
bg.setColor(c); bg.setColor(c);
emit(bgChanged(c)); emit(bgChanged(c));
} }
tqrepaint(false); repaint(false);
} }
} }
@ -217,7 +217,7 @@ void KDualColorButton::mousePressEvent(TQMouseEvent *ev)
emit bgChanged(bg.color()); emit bgChanged(bg.color());
miniCtlFlag = true; miniCtlFlag = true;
} }
tqrepaint(false); repaint(false);
} }
@ -270,7 +270,7 @@ void KDualColorButton::mouseReleaseEvent(TQMouseEvent *ev)
} }
} }
} }
tqrepaint(false); repaint(false);
dragFlag = false; dragFlag = false;
} }
else else

@ -104,7 +104,7 @@ KEdit::insertText(TQTextStream *stream)
// MS: read everything at once if file <= 1MB, // MS: read everything at once if file <= 1MB,
// else read in 5000-line chunks to keep memory usage acceptable. // else read in 5000-line chunks to keep memory usage acceptable.
TQIODevice *dev=stream->tqdevice(); TQIODevice *dev=stream->device();
if (dev && dev->size()>(1024*1024)) { if (dev && dev->size()>(1024*1024)) {
while(1) { while(1) {
int i; int i;
@ -128,7 +128,7 @@ KEdit::insertText(TQTextStream *stream)
setCursorPosition(saveline, savecol); setCursorPosition(saveline, savecol);
// setAutoUpdate(true); // setAutoUpdate(true);
// tqrepaint(); // repaint();
setModified(true); setModified(true);
setFocus(); setFocus();
@ -200,7 +200,7 @@ KEdit::cleanWhiteSpace()
{ {
deselect(); deselect();
d->autoUpdate = true; d->autoUpdate = true;
tqrepaint(); repaint();
return; return;
} }
if (wordWrap() == NoWrap) if (wordWrap() == NoWrap)
@ -225,7 +225,7 @@ KEdit::cleanWhiteSpace()
insert(newText); insert(newText);
d->autoUpdate = true; d->autoUpdate = true;
tqrepaint(); repaint();
setModified(true); setModified(true);
setFocus(); setFocus();

@ -641,7 +641,7 @@ void KFontChooser::setupDisplay()
void KFontChooser::getFontList( TQStringList &list, uint fontListCriteria) void KFontChooser::getFontList( TQStringList &list, uint fontListCriteria)
{ {
TQFontDatabase dbase; TQFontDatabase dbase;
TQStringList lstSys(dbase.tqfamilies()); TQStringList lstSys(dbase.families());
// if we have criteria; then check fonts before adding // if we have criteria; then check fonts before adding
if (fontListCriteria) if (fontListCriteria)

@ -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.tqat(i); TQObject *o = l.at(i);
if( o->isWidgetType() ) if( o->isWidgetType() )
{ {
((TQWidget*)o)->hide(); ((TQWidget*)o)->hide();

@ -106,7 +106,7 @@ void KKeyButton::captureShortcut()
KShortcut cut; KShortcut cut;
m_bEditing = true; m_bEditing = true;
tqrepaint(); repaint();
{ {
KShortcutDialog dlg( m_cut, d->bQtShortcut, this ); KShortcutDialog dlg( m_cut, d->bQtShortcut, this );
@ -117,7 +117,7 @@ void KKeyButton::captureShortcut()
emit capturedShortcut( cut ); emit capturedShortcut( cut );
m_bEditing = false; m_bEditing = false;
tqrepaint(); repaint();
} }
void KKeyButton::drawButton( TQPainter *painter ) void KKeyButton::drawButton( TQPainter *painter )

@ -532,7 +532,7 @@ void KKeyChooser::updateButtons()
d->pbtnShortcut->setShortcut( pItem->shortcut(), bQtShortcut ); d->pbtnShortcut->setShortcut( pItem->shortcut(), bQtShortcut );
//item->setText( 1, keyStrCfg ); //item->setText( 1, keyStrCfg );
pItem->tqrepaint(); pItem->repaint();
d->lInfo->setText( i18n("Default key:") + TQString(" %1").arg(keyStrDef.isEmpty() ? i18n("None") : keyStrDef) ); d->lInfo->setText( i18n("Default key:") + TQString(" %1").arg(keyStrDef.isEmpty() ? i18n("None") : keyStrDef) );
// Select the appropriate radio button. // Select the appropriate radio button.

@ -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->tqat( index ); TQString id = *m_ids->at( 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->tqat( index ); TQString id = *m_ids->at( 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->tqat( currentItem() ); return *m_ids->at( 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->tqat( i ); return *m_ids->at( i );
} }

@ -51,7 +51,7 @@ KLed::KLed(TQWidget *parent, const char *name)
: TQWidget( parent, name), : TQWidget( parent, name),
led_state(On), led_state(On),
led_look(Raised), led_look(Raised),
led_tqshape(Circular) led_shape(Circular)
{ {
TQColor col(green); TQColor col(green);
d = new KLed::KLedPrivate; d = new KLed::KLedPrivate;
@ -68,7 +68,7 @@ KLed::KLed(const TQColor& col, TQWidget *parent, const char *name)
: TQWidget( parent, name), : TQWidget( parent, name),
led_state(On), led_state(On),
led_look(Raised), led_look(Raised),
led_tqshape(Circular) led_shape(Circular)
{ {
d = new KLed::KLedPrivate; d = new KLed::KLedPrivate;
d->dark_factor = 300; d->dark_factor = 300;
@ -81,11 +81,11 @@ KLed::KLed(const TQColor& col, TQWidget *parent, const char *name)
} }
KLed::KLed(const TQColor& col, KLed::State state, KLed::KLed(const TQColor& col, KLed::State state,
KLed::Look look, KLed::Shape tqshape, TQWidget *parent, const char *name ) KLed::Look look, KLed::Shape shape, TQWidget *parent, const char *name )
: TQWidget(parent, name), : TQWidget(parent, name),
led_state(state), led_state(state),
led_look(look), led_look(look),
led_tqshape(tqshape) led_shape(shape)
{ {
d = new KLed::KLedPrivate; d = new KLed::KLedPrivate;
d->dark_factor = 300; d->dark_factor = 300;
@ -93,7 +93,7 @@ KLed::KLed(const TQColor& col, KLed::State state,
d->off_map = 0; d->off_map = 0;
d->on_map = 0; d->on_map = 0;
//setShape(tqshape); //setShape(shape);
setColor(col); setColor(col);
} }
@ -114,7 +114,7 @@ KLed::paintEvent(TQPaintEvent *)
t.start(); t.start();
for (int i=0; i<rounds; i++) { for (int i=0; i<rounds; i++) {
#endif #endif
switch(led_tqshape) switch(led_shape)
{ {
case Rectangular: case Rectangular:
switch (led_look) switch (led_look)
@ -525,9 +525,9 @@ KLed::state() const
} }
KLed::Shape KLed::Shape
KLed::tqshape() const KLed::shape() const
{ {
return led_tqshape; return led_shape;
} }
TQColor TQColor
@ -561,9 +561,9 @@ KLed::toggleState()
void void
KLed::setShape(KLed::Shape s) KLed::setShape(KLed::Shape s)
{ {
if(led_tqshape!=s) if(led_shape!=s)
{ {
led_tqshape = s; led_shape = s;
update(); update();
} }
} }

@ -47,7 +47,7 @@ class KDEUI_EXPORT KLed : public TQWidget
Q_OBJECT Q_OBJECT
Q_ENUMS( State Shape Look ) Q_ENUMS( State Shape Look )
Q_PROPERTY( State state READ state WRITE setState ) Q_PROPERTY( State state READ state WRITE setState )
Q_PROPERTY( Shape tqshape READ tqshape WRITE setShape ) Q_PROPERTY( Shape shape READ shape WRITE setShape )
Q_PROPERTY( Look look READ look WRITE setLook ) Q_PROPERTY( Look look READ look WRITE setLook )
Q_PROPERTY( TQColor color READ color WRITE setColor ) Q_PROPERTY( TQColor color READ color WRITE setColor )
Q_PROPERTY( int darkFactor READ darkFactor WRITE setDarkFactor ) Q_PROPERTY( int darkFactor READ darkFactor WRITE setDarkFactor )
@ -62,7 +62,7 @@ public:
/** /**
* Shades of the lamp. * Shades of the lamp.
* @short LED tqshape * @short LED shape
*/ */
enum Shape { Rectangular, Circular }; enum Shape { Rectangular, Circular };
@ -114,12 +114,12 @@ public:
* @param col Initial color of the LED. * @param col Initial color of the LED.
* @param state Sets the State. * @param state Sets the State.
* @param look Sets the Look. * @param look Sets the Look.
* @param tqshape Sets the Shape (rectangular or circular) * @param shape Sets the Shape (rectangular or circular)
* @param parent Will be handed over to TQWidget. * @param parent Will be handed over to TQWidget.
* @param name Will be handed over to TQWidget. * @param name Will be handed over to TQWidget.
* @short Constructor * @short Constructor
*/ */
KLed(const TQColor& col, KLed::State state, KLed::Look look, KLed::Shape tqshape, KLed(const TQColor& col, KLed::State state, KLed::Look look, KLed::Shape shape,
TQWidget *parent=0, const char *name=0); TQWidget *parent=0, const char *name=0);
@ -137,7 +137,7 @@ public:
*/ */
State state() const; State state() const;
Shape tqshape() const; Shape shape() const;
/** /**
* Returns the color of the widget * Returns the color of the widget
@ -175,7 +175,7 @@ public:
void setState( State state ); void setState( State state );
/** /**
* Set the tqshape of the LED to @p s. * Set the shape of the LED to @p s.
*/ */
void setShape(Shape s); void setShape(Shape s);
/** /**
@ -317,7 +317,7 @@ private:
State led_state; State led_state;
TQColor led_color; TQColor led_color;
Look led_look; Look led_look;
Shape led_tqshape; Shape led_shape;
protected: protected:
virtual void virtual_hook( int id, void* data ); virtual void virtual_hook( int id, void* data );

@ -716,7 +716,7 @@ void KListView::focusInEvent( TQFocusEvent *fe )
&& (currentItem())) && (currentItem()))
{ {
currentItem()->setSelected(true); currentItem()->setSelected(true);
currentItem()->tqrepaint(); currentItem()->repaint();
emit selectionChanged(); emit selectionChanged();
}; };
} }
@ -736,7 +736,7 @@ void KListView::focusOutEvent( TQFocusEvent *fe )
&& (!d->editor->isVisible())) && (!d->editor->isVisible()))
{ {
currentItem()->setSelected(false); currentItem()->setSelected(false);
currentItem()->tqrepaint(); currentItem()->repaint();
emit selectionChanged(); emit selectionChanged();
}; };
@ -776,7 +776,7 @@ void KListView::contentsMousePressEvent( TQMouseEvent *e )
if (currentItem()) if (currentItem())
{ {
currentItem()->setSelected(false); currentItem()->setSelected(false);
currentItem()->tqrepaint(); currentItem()->repaint();
// emit selectionChanged(); // emit selectionChanged();
} }
} }
@ -1008,7 +1008,7 @@ void KListView::contentsDragMoveEvent(TQDragMoveEvent *event)
{ {
cleanDropVisualizer(); cleanDropVisualizer();
d->mOldDropVisualizer=tmpRect; d->mOldDropVisualizer=tmpRect;
viewport()->tqrepaint(tmpRect); viewport()->repaint(tmpRect);
} }
} }
if (dropHighlighter()) if (dropHighlighter())
@ -1018,7 +1018,7 @@ void KListView::contentsDragMoveEvent(TQDragMoveEvent *event)
{ {
cleanItemHighlighter(); cleanItemHighlighter();
d->mOldDropHighlighter=tmpRect; d->mOldDropHighlighter=tmpRect;
viewport()->tqrepaint(tmpRect); viewport()->repaint(tmpRect);
} }
} }
} }
@ -1045,7 +1045,7 @@ void KListView::cleanDropVisualizer()
{ {
TQRect rect=d->mOldDropVisualizer; TQRect rect=d->mOldDropVisualizer;
d->mOldDropVisualizer = TQRect(); d->mOldDropVisualizer = TQRect();
viewport()->tqrepaint(rect, true); viewport()->repaint(rect, true);
} }
} }
@ -1371,7 +1371,7 @@ void KListView::cleanItemHighlighter ()
{ {
TQRect rect=d->mOldDropHighlighter; TQRect rect=d->mOldDropHighlighter;
d->mOldDropHighlighter = TQRect(); d->mOldDropHighlighter = TQRect();
viewport()->tqrepaint(rect, true); viewport()->repaint(rect, true);
} }
} }
@ -1482,7 +1482,7 @@ void KListView::activateAutomaticSelection()
if (currentItem()) if (currentItem())
{ {
currentItem()->setSelected(true); currentItem()->setSelected(true);
currentItem()->tqrepaint(); currentItem()->repaint();
emit selectionChanged(); emit selectionChanged();
}; };
} }
@ -1816,12 +1816,12 @@ void KListView::fileManagerKeyPressEvent (TQKeyEvent* e)
{ // rectangle to be repainted { // rectangle to be repainted
if ( ir.x() < 0 ) if ( ir.x() < 0 )
ir.moveBy( -ir.x(), 0 ); ir.moveBy( -ir.x(), 0 );
viewport()->tqrepaint( ir, false ); viewport()->repaint( ir, false );
} }
/*if (repaintItem1) /*if (repaintItem1)
repaintItem1->tqrepaint(); repaintItem1->repaint();
if (repaintItem2) if (repaintItem2)
repaintItem2->tqrepaint();*/ repaintItem2->repaint();*/
update(); update();
if (emitSelectionChanged) if (emitSelectionChanged)
emit selectionChanged(); emit selectionChanged();
@ -2001,13 +2001,13 @@ const TQColor &KListView::alternateBackground() const
void KListView::setAlternateBackground(const TQColor &c) void KListView::setAlternateBackground(const TQColor &c)
{ {
d->alternateBackground = c; d->alternateBackground = c;
tqrepaint(); repaint();
} }
void KListView::setShadeSortColumn(bool shadeSortColumn) void KListView::setShadeSortColumn(bool shadeSortColumn)
{ {
d->shadeSortColumn = shadeSortColumn; d->shadeSortColumn = shadeSortColumn;
tqrepaint(); repaint();
} }
bool KListView::shadeSortColumn() const bool KListView::shadeSortColumn() const
@ -2335,7 +2335,7 @@ bool KListViewItem::isAlternate()
return false; return false;
} }
void KListViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int tqalignment) void KListViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment)
{ {
TQColorGroup _cg = cg; TQColorGroup _cg = cg;
TQListView* lv = listView(); TQListView* lv = listView();
@ -2353,7 +2353,7 @@ void KListViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column,
TQColorGroup::Background : TQColorGroup::Base, TQColorGroup::Background : TQColorGroup::Base,
backgroundColor(column)); backgroundColor(column));
} }
TQListViewItem::paintCell(p, _cg, column, width, tqalignment); TQListViewItem::paintCell(p, _cg, column, width, alignment);
} }
void KListView::virtual_hook( int, void* ) void KListView::virtual_hook( int, void* )

@ -1070,7 +1070,7 @@ public:
TQColor backgroundColor(int column); TQColor backgroundColor(int column);
virtual void paintCell(TQPainter *p, const TQColorGroup &cg, virtual void paintCell(TQPainter *p, const TQColorGroup &cg,
int column, int width, int tqalignment); int column, int width, int alignment);
private: private:
void init(); void init();

@ -86,7 +86,7 @@ void KNumInput::init()
m_label = 0; m_label = 0;
m_slider = 0; m_slider = 0;
m_tqalignment = 0; m_alignment = 0;
} }
KNumInput::~KNumInput() KNumInput::~KNumInput()
@ -103,17 +103,17 @@ void KNumInput::setLabel(const TQString & label, int a)
if(label.isEmpty()) { if(label.isEmpty()) {
delete m_label; delete m_label;
m_label = 0; m_label = 0;
m_tqalignment = 0; m_alignment = 0;
} }
else { else {
if (m_label) m_label->setText(label); if (m_label) m_label->setText(label);
else m_label = new TQLabel(label, this, "KNumInput::TQLabel"); else m_label = new TQLabel(label, this, "KNumInput::TQLabel");
m_label->setAlignment((a & (~(AlignTop|AlignBottom|AlignVCenter))) m_label->setAlignment((a & (~(AlignTop|AlignBottom|AlignVCenter)))
| AlignVCenter); | AlignVCenter);
// if no vertical tqalignment set, use Top tqalignment // if no vertical alignment set, use Top alignment
if(!(a & (AlignTop|AlignBottom|AlignVCenter))) if(!(a & (AlignTop|AlignBottom|AlignVCenter)))
a |= AlignTop; a |= AlignTop;
m_tqalignment = a; m_alignment = a;
} }
layout(true); layout(true);
@ -133,7 +133,7 @@ void KNumInput::layout(bool deep)
// label sizeHint // label sizeHint
m_sizeLabel = (m_label ? m_label->sizeHint() : TQSize(0,0)); m_sizeLabel = (m_label ? m_label->sizeHint() : TQSize(0,0));
if(m_label && (m_tqalignment & AlignVCenter)) if(m_label && (m_alignment & AlignVCenter))
m_colw1 = m_sizeLabel.width() + 4; m_colw1 = m_sizeLabel.width() + 4;
else else
m_colw1 = 0; m_colw1 = 0;
@ -422,7 +422,7 @@ TQSize KIntNumInput::minimumSizeHint() const
h = 2 + QMAX(m_sizeSpin.height(), m_sizeSlider.height()); h = 2 + QMAX(m_sizeSpin.height(), m_sizeSlider.height());
// if in extra row, then count it here // if in extra row, then count it here
if(m_label && (m_tqalignment & (AlignBottom|AlignTop))) if(m_label && (m_alignment & (AlignBottom|AlignTop)))
h += 4 + m_sizeLabel.height(); h += 4 + m_sizeLabel.height();
else else
// label is in the same row as the other widgets // label is in the same row as the other widgets
@ -431,7 +431,7 @@ TQSize KIntNumInput::minimumSizeHint() const
w = m_slider ? m_slider->sizeHint().width() + 8 : 0; w = m_slider ? m_slider->sizeHint().width() + 8 : 0;
w += m_colw1 + m_colw2; w += m_colw1 + m_colw2;
if(m_tqalignment & (AlignTop|AlignBottom)) if(m_alignment & (AlignTop|AlignBottom))
w = QMAX(w, m_sizeLabel.width() + 4); w = QMAX(w, m_sizeLabel.width() + 4);
return TQSize(w, h); return TQSize(w, h);
@ -451,12 +451,12 @@ void KIntNumInput::resizeEvent(TQResizeEvent* e)
int w = m_colw1; int w = m_colw1;
int h = 0; int h = 0;
if(m_label && (m_tqalignment & AlignTop)) { if(m_label && (m_alignment & AlignTop)) {
m_label->setGeometry(0, 0, e->size().width(), m_sizeLabel.height()); m_label->setGeometry(0, 0, e->size().width(), m_sizeLabel.height());
h += m_sizeLabel.height() + KDialog::spacingHint(); h += m_sizeLabel.height() + KDialog::spacingHint();
} }
if(m_label && (m_tqalignment & AlignVCenter)) if(m_label && (m_alignment & AlignVCenter))
m_label->setGeometry(0, 0, w, m_sizeSpin.height()); m_label->setGeometry(0, 0, w, m_sizeSpin.height());
if (tqApp->reverseLayout()) if (tqApp->reverseLayout())
@ -477,7 +477,7 @@ void KIntNumInput::resizeEvent(TQResizeEvent* e)
h += m_sizeSpin.height() + 2; h += m_sizeSpin.height() + 2;
if(m_label && (m_tqalignment & AlignBottom)) if(m_label && (m_alignment & AlignBottom))
m_label->setGeometry(0, h, m_sizeLabel.width(), m_sizeLabel.height()); m_label->setGeometry(0, h, m_sizeLabel.width(), m_sizeLabel.height());
} }
@ -663,7 +663,7 @@ TQSize KDoubleNumInput::minimumSizeHint() const
h = 2 + QMAX(m_sizeEdit.height(), m_sizeSlider.height()); h = 2 + QMAX(m_sizeEdit.height(), m_sizeSlider.height());
// if in extra row, then count it here // if in extra row, then count it here
if(m_label && (m_tqalignment & (AlignBottom|AlignTop))) if(m_label && (m_alignment & (AlignBottom|AlignTop)))
h += 4 + m_sizeLabel.height(); h += 4 + m_sizeLabel.height();
else else
// label is in the same row as the other widgets // label is in the same row as the other widgets
@ -672,7 +672,7 @@ TQSize KDoubleNumInput::minimumSizeHint() const
w = m_slider ? m_slider->sizeHint().width() + 8 : 0; w = m_slider ? m_slider->sizeHint().width() + 8 : 0;
w += m_colw1 + m_colw2; w += m_colw1 + m_colw2;
if(m_tqalignment & (AlignTop|AlignBottom)) if(m_alignment & (AlignTop|AlignBottom))
w = QMAX(w, m_sizeLabel.width() + 4); w = QMAX(w, m_sizeLabel.width() + 4);
return TQSize(w, h); return TQSize(w, h);
@ -683,12 +683,12 @@ void KDoubleNumInput::resizeEvent(TQResizeEvent* e)
int w = m_colw1; int w = m_colw1;
int h = 0; int h = 0;
if(m_label && (m_tqalignment & AlignTop)) { if(m_label && (m_alignment & AlignTop)) {
m_label->setGeometry(0, 0, e->size().width(), m_sizeLabel.height()); m_label->setGeometry(0, 0, e->size().width(), m_sizeLabel.height());
h += m_sizeLabel.height() + 4; h += m_sizeLabel.height() + 4;
} }
if(m_label && (m_tqalignment & AlignVCenter)) if(m_label && (m_alignment & AlignVCenter))
m_label->setGeometry(0, 0, w, m_sizeEdit.height()); m_label->setGeometry(0, 0, w, m_sizeEdit.height());
if (tqApp->reverseLayout()) if (tqApp->reverseLayout())
@ -713,7 +713,7 @@ void KDoubleNumInput::resizeEvent(TQResizeEvent* e)
h += m_sizeEdit.height() + 2; h += m_sizeEdit.height() + 2;
if(m_label && (m_tqalignment & AlignBottom)) if(m_label && (m_alignment & AlignBottom))
m_label->setGeometry(0, h, m_sizeLabel.width(), m_sizeLabel.height()); m_label->setGeometry(0, h, m_sizeLabel.width(), m_sizeLabel.height());
} }

@ -68,7 +68,7 @@ public:
~KNumInput(); ~KNumInput();
/** /**
* Sets the text and tqalignment of the main description label. * Sets the text and alignment of the main description label.
* *
* @param label The text of the label. * @param label The text of the label.
* Use TQString::null to remove an existing one. * Use TQString::null to remove an existing one.
@ -77,7 +77,7 @@ public:
* @p AlignTop, @p AlignVCenter, @p AlignBottom. * @p AlignTop, @p AlignVCenter, @p AlignBottom.
* default is @p AlignLeft | @p AlignTop. * default is @p AlignLeft | @p AlignTop.
* *
* The vertical tqalignment flags have special meaning with this * The vertical alignment flags have special meaning with this
* widget: * widget:
* *
* @li @p AlignTop The label is placed above the edit/slider * @li @p AlignTop The label is placed above the edit/slider
@ -144,7 +144,7 @@ protected:
TQSlider* m_slider; TQSlider* m_slider;
TQSize m_sizeSlider, m_sizeLabel; TQSize m_sizeSlider, m_sizeLabel;
int m_tqalignment; int m_alignment;
private: private:
void init(); void init();
@ -314,7 +314,7 @@ public:
/** /**
* This method returns the minimum size necessary to display the * This method returns the minimum size necessary to display the
* control. The minimum size is enough to show all the labels * control. The minimum size is enough to show all the labels
* in the current font (font change may tqinvalidate the return value). * in the current font (font change may invalidate the return value).
* *
* @return the minimum size necessary to show the control * @return the minimum size necessary to show the control
*/ */

@ -47,7 +47,7 @@ KPanelApplet::KPanelApplet(const TQString& configFile, Type type,
: TQFrame(parent, name, f) : TQFrame(parent, name, f)
, _type(type) , _type(type)
, _position( pBottom ) , _position( pBottom )
, _tqalignment( LeftTop ) , _alignment( LeftTop )
, _config(0) , _config(0)
, _actions(actions) , _actions(actions)
, d(new KPanelApplet::KPanelAppletPrivate()) , d(new KPanelApplet::KPanelAppletPrivate())
@ -80,8 +80,8 @@ void KPanelApplet::setPosition( Position p )
void KPanelApplet::setAlignment( Alignment a ) void KPanelApplet::setAlignment( Alignment a )
{ {
if( _tqalignment == a ) return; if( _alignment == a ) return;
_tqalignment = a; _alignment = a;
alignmentChange( a ); alignmentChange( a );
} }

@ -308,9 +308,9 @@ protected:
**/ **/
Position position() const { return _position; } Position position() const { return _position; }
/** /**
* @return the applet's tqalignment. (top/left, center, or bottom/right) * @return the applet's alignment. (top/left, center, or bottom/right)
**/ **/
Alignment tqalignment() const { return _tqalignment; } Alignment alignment() const { return _alignment; }
/** /**
* The panel on which this applet resides has changed its position. * The panel on which this applet resides has changed its position.
@ -320,7 +320,7 @@ protected:
virtual void positionChange( Position p ); virtual void positionChange( Position p );
/** /**
* The panel on which this applet resides has changed its tqalignment. * The panel on which this applet resides has changed its alignment.
* Reimplement this change handler in order to adjust the look of your * Reimplement this change handler in order to adjust the look of your
* applet. * applet.
**/ **/
@ -383,7 +383,7 @@ protected:
private: private:
Type _type; Type _type;
Position _position; Position _position;
Alignment _tqalignment; Alignment _alignment;
KConfig* _config; KConfig* _config;
int _actions; int _actions;
protected: protected:

@ -49,7 +49,7 @@ KPanelExtension::KPanelExtension(const TQString& configFile, Type type,
: TQFrame(parent, name) : TQFrame(parent, name)
, _type(type) , _type(type)
, _position( Top ) , _position( Top )
, _tqalignment( LeftTop ) , _alignment( LeftTop )
, _config(0) , _config(0)
, _actions(actions) , _actions(actions)
{ {
@ -73,8 +73,8 @@ void KPanelExtension::setPosition( Position p )
void KPanelExtension::setAlignment( Alignment a ) void KPanelExtension::setAlignment( Alignment a )
{ {
if( _tqalignment == a ) return; if( _alignment == a ) return;
_tqalignment = a; _alignment = a;
alignmentChange( a ); alignmentChange( a );
} }

@ -282,9 +282,9 @@ protected:
Position position() const { return _position; } Position position() const { return _position; }
/** /**
* @return the extension's tqalignment. (left/top, center, or right/bottom) * @return the extension's alignment. (left/top, center, or right/bottom)
**/ **/
Alignment tqalignment() const { return _tqalignment; } Alignment alignment() const { return _alignment; }
/** /**
* @return the extensions orientation. (horizontal or vertical) * @return the extensions orientation. (horizontal or vertical)
@ -305,7 +305,7 @@ protected:
virtual void positionChange( Position ) {} virtual void positionChange( Position ) {}
/** /**
* This extension has changed its tqalignment. * This extension has changed its alignment.
* Reimplement this change handler in order to adjust the look of your * Reimplement this change handler in order to adjust the look of your
* applet. * applet.
**/ **/
@ -333,7 +333,7 @@ protected:
private: private:
Type _type; Type _type;
Position _position; Position _position;
Alignment _tqalignment; Alignment _alignment;
KConfig* _config; KConfig* _config;
int _actions; int _actions;
protected: protected:

@ -68,7 +68,7 @@ void KRootPixmap::init()
m_bCustomPaint = false; m_bCustomPaint = false;
connect(kapp, TQT_SIGNAL(backgroundChanged(int)), TQT_SLOT(slotBackgroundChanged(int))); connect(kapp, TQT_SIGNAL(backgroundChanged(int)), TQT_SLOT(slotBackgroundChanged(int)));
connect(m_pTimer, TQT_SIGNAL(timeout()), TQT_SLOT(tqrepaint())); connect(m_pTimer, TQT_SIGNAL(timeout()), TQT_SLOT(repaint()));
#ifdef Q_WS_X11 #ifdef Q_WS_X11
connect(m_pPixmap, TQT_SIGNAL(done(bool)), TQT_SLOT(slotDone(bool))); connect(m_pPixmap, TQT_SIGNAL(done(bool)), TQT_SLOT(slotDone(bool)));
@ -115,7 +115,7 @@ void KRootPixmap::start()
return; return;
} }
if (m_bInit) if (m_bInit)
tqrepaint(true); repaint(true);
} }
@ -136,7 +136,7 @@ void KRootPixmap::setFadeEffect(double fade, const TQColor &color)
m_Fade = fade; m_Fade = fade;
m_FadeColor = color; m_FadeColor = color;
if ( m_bActive && m_bInit ) tqrepaint(true); if ( m_bActive && m_bInit ) repaint(true);
} }
void KRootPixmap::setBlurEffect(double radius, double sigma) void KRootPixmap::setBlurEffect(double radius, double sigma)
@ -191,7 +191,7 @@ void KRootPixmap::desktopChanged(int desktop)
if (KWin::windowInfo(m_pWidget->topLevelWidget()->winId()).desktop() == NET::OnAllDesktops && if (KWin::windowInfo(m_pWidget->topLevelWidget()->winId()).desktop() == NET::OnAllDesktops &&
pixmapName(m_Desk) != pixmapName(desktop)) pixmapName(m_Desk) != pixmapName(desktop))
#endif #endif
tqrepaint(true); repaint(true);
} }
void KRootPixmap::desktopChanged( WId window, unsigned int properties ) void KRootPixmap::desktopChanged( WId window, unsigned int properties )
@ -203,16 +203,16 @@ void KRootPixmap::desktopChanged( WId window, unsigned int properties )
#endif #endif
kdDebug() << k_funcinfo << endl; kdDebug() << k_funcinfo << endl;
tqrepaint(true); repaint(true);
} }
void KRootPixmap::tqrepaint() void KRootPixmap::repaint()
{ {
tqrepaint(false); repaint(false);
} }
void KRootPixmap::tqrepaint(bool force) void KRootPixmap::repaint(bool force)
{ {
TQPoint p1 = m_pWidget->mapToGlobal(m_pWidget->rect().topLeft()); TQPoint p1 = m_pWidget->mapToGlobal(m_pWidget->rect().topLeft());
TQPoint p2 = m_pWidget->mapToGlobal(m_pWidget->rect().bottomRight()); TQPoint p2 = m_pWidget->mapToGlobal(m_pWidget->rect().bottomRight());
@ -341,7 +341,7 @@ void KRootPixmap::slotBackgroundChanged(int desk)
return; return;
if (desk == m_Desk) if (desk == m_Desk)
tqrepaint(true); repaint(true);
} }
#include "krootpixmap.moc" #include "krootpixmap.moc"

@ -159,16 +159,16 @@ public slots:
* Repaints the widget background. Normally, you shouldn't need this * Repaints the widget background. Normally, you shouldn't need this
* as it is handled automatically. * as it is handled automatically.
* *
* @param force Force a tqrepaint, even if the contents did not change. * @param force Force a repaint, even if the contents did not change.
*/ */
void tqrepaint( bool force ); void repaint( bool force );
/** /**
* Repaints the widget background. Normally, you shouldn't need this * Repaints the widget background. Normally, you shouldn't need this
* as it is handled automatically. This is equivalent to calling * as it is handled automatically. This is equivalent to calling
* tqrepaint( false ). * repaint( false ).
*/ */
void tqrepaint(); void repaint();
/** /**
* Enables custom handling of the background painting. If custom * Enables custom handling of the background painting. If custom

@ -550,16 +550,16 @@ KRuler::slotNewValue(int _value)
return; return;
} }
// get the rectangular of the old and the new ruler pointer // get the rectangular of the old and the new ruler pointer
// and tqrepaint only him // and repaint only him
if (dir == Qt::Horizontal) { if (dir == Qt::Horizontal) {
TQRect oldrec(-5+oldvalue,10, 11,6); TQRect oldrec(-5+oldvalue,10, 11,6);
TQRect newrec(-5+_value,10, 11,6); TQRect newrec(-5+_value,10, 11,6);
tqrepaint( oldrec.unite(newrec) ); repaint( oldrec.unite(newrec) );
} }
else { else {
TQRect oldrec(10,-5+oldvalue, 6,11); TQRect oldrec(10,-5+oldvalue, 6,11);
TQRect newrec(10,-5+_value, 6,11); TQRect newrec(10,-5+_value, 6,11);
tqrepaint( oldrec.unite(newrec) ); repaint( oldrec.unite(newrec) );
} }
} }
@ -569,7 +569,7 @@ KRuler::slotNewOffset(int _offset)
if (offset_ != _offset) { if (offset_ != _offset) {
//setOffset(_offset); //setOffset(_offset);
offset_ = _offset; offset_ = _offset;
tqrepaint(contentsRect()); repaint(contentsRect());
} }
} }
@ -586,7 +586,7 @@ KRuler::slotEndOffset(int offset)
} }
if (d->endOffset_length != tmp) { if (d->endOffset_length != tmp) {
d->endOffset_length = tmp; d->endOffset_length = tmp;
tqrepaint(contentsRect()); repaint(contentsRect());
} }
} }

@ -55,12 +55,12 @@
* To receive mouse clicks or mouse moves, * To receive mouse clicks or mouse moves,
* the class has to be overloaded. * the class has to be overloaded.
* *
* For performance reasons, the public methods don't call TQWidget::tqrepaint(). * For performance reasons, the public methods don't call TQWidget::repaint().
* (Slots do, see documentation below.) * (Slots do, see documentation below.)
* All the changed settings will be painted once after leaving * All the changed settings will be painted once after leaving
* to the main event loop. * to the main event loop.
* For performance painting the slot methods should be used, * For performance painting the slot methods should be used,
* they do a fast TQWidget::tqrepaint() call after changing the values. * they do a fast TQWidget::repaint() call after changing the values.
* For setting multiple values like minValue(), maxValue(), offset() etc. * For setting multiple values like minValue(), maxValue(), offset() etc.
* using the public methods is recommended * using the public methods is recommended
* so the widget will be painted only once when entering the main event loop. * so the widget will be painted only once when entering the main event loop.
@ -428,7 +428,7 @@ public slots:
* Sets the pointer to a new position. * Sets the pointer to a new position.
* *
* The offset is NOT updated. * The offset is NOT updated.
* TQWidget::tqrepaint() is called afterwards. * TQWidget::repaint() is called afterwards.
**/ **/
void slotNewValue(int); void slotNewValue(int);
@ -436,7 +436,7 @@ public slots:
* Sets the ruler marks to a new position. * Sets the ruler marks to a new position.
* *
* The pointer is NOT updated. * The pointer is NOT updated.
* TQWidget::tqrepaint() is called afterwards. * TQWidget::repaint() is called afterwards.
**/ **/
void slotNewOffset(int); void slotNewOffset(int);

@ -135,7 +135,7 @@ void KXYSelector::paintEvent( TQPaintEvent *ev )
} }
else if (paintRect.intersects(cursorRect)) else if (paintRect.intersects(cursorRect))
{ {
tqrepaint( cursorRect, false); repaint( cursorRect, false);
} }
painter.end(); painter.end();
@ -392,11 +392,11 @@ void KSelector::drawArrow( TQPainter *painter, bool show, const TQPoint &pos )
{ {
if ( orientation() == Qt::Vertical ) if ( orientation() == Qt::Vertical )
{ {
tqrepaint(pos.x(), pos.y()-5, 6, 11, true); repaint(pos.x(), pos.y()-5, 6, 11, true);
} }
else else
{ {
tqrepaint(pos.x()-5, pos.y(), 11, 6, true); repaint(pos.x()-5, pos.y(), 11, 6, true);
} }
} }
} }

@ -102,7 +102,7 @@ bool KSharedPixmap::loadFromShared(const TQString & name, const TQRect & rect)
// already active // already active
return false; return false;
TQPixmap::resize(0, 0); // tqinvalidate TQPixmap::resize(0, 0); // invalidate
TQString str = TQString("KDESHPIXMAP:%1").arg(name); TQString str = TQString("KDESHPIXMAP:%1").arg(name);
d->selection = XInternAtom(qt_xdisplay(), str.latin1(), true); d->selection = XInternAtom(qt_xdisplay(), str.latin1(), true);

@ -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.tqat(origbuffer.length()-1)!='\n') if (origbuffer.at(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?

@ -87,7 +87,7 @@
<property name="text"> <property name="text">
<string>... the &lt;b&gt;misspelled&lt;/b&gt; word shown in context ...</string> <string>... the &lt;b&gt;misspelled&lt;/b&gt; word shown in context ...</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>WordBreak|AlignCenter</set> <set>WordBreak|AlignCenter</set>
</property> </property>
<property name="toolTip" stdset="0"> <property name="toolTip" stdset="0">

@ -73,11 +73,11 @@ void KSqueezedTextLabel::squeezeTextToLabel() {
} }
} }
void KSqueezedTextLabel::setAlignment( int tqalignment ) void KSqueezedTextLabel::setAlignment( int alignment )
{ {
// save fullText and restore it // save fullText and restore it
TQString tmpFull(fullText); TQString tmpFull(fullText);
TQLabel::setAlignment(tqalignment); TQLabel::setAlignment(alignment);
fullText = tmpFull; fullText = tmpFull;
} }

@ -167,7 +167,7 @@ public:
void changeItem( const TQString& text, int id ); void changeItem( const TQString& text, int id );
/** /**
* Sets the tqalignment of item @p id. By default all fields are aligned * Sets the alignment of item @p id. By default all fields are aligned
* @p AlignHCenter | @p AlignVCenter. See TQLabel::setAlignment for details. * @p AlignHCenter | @p AlignVCenter. See TQLabel::setAlignment for details.
* *
*/ */

@ -96,7 +96,7 @@ KSystemTray::KSystemTray( TQWidget* parent, const char* name )
d->on_all_desktops = false; d->on_all_desktops = false;
} }
setCaption( KGlobal::instance()->aboutData()->programName()); setCaption( KGlobal::instance()->aboutData()->programName());
setAlignment( tqalignment() | Qt::AlignVCenter | Qt::AlignHCenter ); setAlignment( alignment() | Qt::AlignVCenter | Qt::AlignHCenter );
// Handle the possibility that the requested system tray size is something other than 22x22 pixels, per the Free Desktop specifications // Handle the possibility that the requested system tray size is something other than 22x22 pixels, per the Free Desktop specifications
setScaledContents(true); setScaledContents(true);

@ -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->tqat( count()-2 ); t = tablist->at( count()-2 );
else { else {
int index = indexOf( id ); int index = indexOf( id );
index += ( index+1 == count() ) ? -1 : 1; index += ( index+1 == count() ) ? -1 : 1;
@ -80,7 +80,7 @@ void KTabBar::setTabEnabled( int id, bool enabled )
emit selected( t->identifier() ); emit selected( t->identifier() );
} }
} }
tqrepaint( r ); repaint( r );
} }
} }
} }
@ -253,7 +253,7 @@ void KTabBar::dragMoveEvent( TQDragMoveEvent *e )
TQTab *tab = selectTab( e->pos() ); TQTab *tab = selectTab( e->pos() );
if( tab ) { if( tab ) {
bool accept = false; bool accept = false;
// The tqreceivers of the testCanDecode() signal has to adjust // The receivers of the testCanDecode() signal has to adjust
// 'accept' accordingly. // 'accept' accordingly.
emit testCanDecode( e, accept); emit testCanDecode( e, accept);
if ( accept && tab != TQTabBar::tab( currentTab() ) ) { if ( accept && tab != TQTabBar::tab( currentTab() ) ) {
@ -294,7 +294,7 @@ void KTabBar::setTabColor( int id, const TQColor& color )
TQTab *t = tab( id ); TQTab *t = tab( id );
if ( t ) { if ( t ) {
mTabColors.insert( id, color ); mTabColors.insert( id, color );
tqrepaint( t->rect(), false ); repaint( t->rect(), false );
} }
} }

@ -56,8 +56,8 @@ void KTabCtl::resizeEvent(TQResizeEvent *)
for (i=0; i<(int)pages.size(); i++) { for (i=0; i<(int)pages.size(); i++) {
pages[i]->setGeometry(r); pages[i]->setGeometry(r);
} }
if( ( tabs->tqshape() == TQTabBar::RoundedBelow ) || if( ( tabs->shape() == TQTabBar::RoundedBelow ) ||
( tabs->tqshape() == TQTabBar::TriangularBelow ) ) { ( tabs->shape() == TQTabBar::TriangularBelow ) ) {
tabs->move( 0, height()-tabs->height()-4 ); tabs->move( 0, height()-tabs->height()-4 );
} }
} }
@ -184,9 +184,9 @@ void KTabCtl::setBorder( bool state )
blBorder = state; blBorder = state;
} }
void KTabCtl::setShape( TQTabBar::Shape tqshape ) void KTabCtl::setShape( TQTabBar::Shape shape )
{ {
tabs->setShape( tqshape ); tabs->setShape( shape );
} }
TQSize TQSize
@ -273,8 +273,8 @@ void KTabCtl::paintEvent(TQPaintEvent *)
TQRect KTabCtl::getChildRect() const TQRect KTabCtl::getChildRect() const
{ {
if( ( tabs->tqshape() == TQTabBar::RoundedBelow ) || if( ( tabs->shape() == TQTabBar::RoundedBelow ) ||
( tabs->tqshape() == TQTabBar::TriangularBelow ) ) { ( tabs->shape() == TQTabBar::TriangularBelow ) ) {
return TQRect(2, 1, width() - 4, return TQRect(2, 1, width() - 4,
height() - tabs->height() - 4); height() - tabs->height() - 4);
} else { } else {

@ -61,7 +61,7 @@ public:
bool isTabEnabled(const TQString& ); bool isTabEnabled(const TQString& );
void setTabEnabled(const TQString&, bool); void setTabEnabled(const TQString&, bool);
void setBorder(bool); void setBorder(bool);
void setShape( TQTabBar::Shape tqshape ); void setShape( TQTabBar::Shape shape );
virtual TQSize sizeHint() const; virtual TQSize sizeHint() const;
protected: protected:

@ -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.tqat( index ), tab->text() ); d->m_tabNames.insert( d->m_tabNames.at( index ), tab->text() );
resizeTabs( index ); resizeTabs( index );
} }
} }
@ -301,7 +301,7 @@ void KTabWidget::dragMoveEvent( TQDragMoveEvent *e )
{ {
if ( isEmptyTabbarSpace( e->pos() ) ) { if ( isEmptyTabbarSpace( e->pos() ) ) {
bool accept = false; bool accept = false;
// The tqreceivers of the testCanDecode() signal has to adjust // The receivers of the testCanDecode() signal has to adjust
// 'accept' accordingly. // 'accept' accordingly.
emit testCanDecode( e, accept); emit testCanDecode( e, accept);
e->accept( accept ); e->accept( accept );
@ -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.tqat( to ), TQString::null ); d->m_tabNames.insert( d->m_tabNames.at( 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.tqat( index ) ); d->m_tabNames.remove( d->m_tabNames.at( index ) );
} }
TQTabWidget::removePage( w ); TQTabWidget::removePage( w );
if ( d->m_automaticResizeTabs ) if ( d->m_automaticResizeTabs )

@ -734,7 +734,7 @@ int KToolBar::itemIndex (int id)
int KToolBar::idAt (int index) int KToolBar::idAt (int index)
{ {
TQWidget *w = widgets.tqat(index); TQWidget *w = widgets.at(index);
return widget2id[w]; return widget2id[w];
} }
@ -1263,7 +1263,7 @@ void KToolBar::rebuildLayout()
if ( stretchableWidget ) if ( stretchableWidget )
l->setStretchFactor( stretchableWidget, 10 ); l->setStretchFactor( stretchableWidget, 10 );
} }
l->tqinvalidate(); l->invalidate();
TQApplication::postEvent( this, new TQEvent( TQEvent::LayoutHint ) ); TQApplication::postEvent( this, new TQEvent( TQEvent::LayoutHint ) );
} }
@ -1740,7 +1740,7 @@ void KToolBar::slotRepaint()
resizeEvent(&ev); resizeEvent(&ev);
TQApplication::sendPostedEvents( this, TQEvent::LayoutHint ); TQApplication::sendPostedEvents( this, TQEvent::LayoutHint );
setUpdatesEnabled( true ); setUpdatesEnabled( true );
tqrepaint( true ); repaint( true );
} }
void KToolBar::toolBarPosChanged( TQToolBar *tb ) void KToolBar::toolBarPosChanged( TQToolBar *tb )

@ -91,7 +91,7 @@ private:
* Once you have a KToolBar object, you can insert items into it with the * Once you have a KToolBar object, you can insert items into it with the
* insert... methods, or remove them with the removeItem() method. This * insert... methods, or remove them with the removeItem() method. This
* can be done at any time; the toolbar will be automatically updated. * can be done at any time; the toolbar will be automatically updated.
* There are also many methods to set per-child properties like tqalignment * There are also many methods to set per-child properties like alignment
* and toggle behavior. * and toggle behavior.
* *
* KToolBar uses a global config group to load toolbar settings on * KToolBar uses a global config group to load toolbar settings on

@ -376,7 +376,7 @@ void KToolBarButton::leaveEvent(TQEvent *)
{ {
d->m_isRaised = false; d->m_isRaised = false;
d->m_isActive = false; d->m_isActive = false;
tqrepaint(false); repaint(false);
} }
emit highlighted(d->m_id, false); emit highlighted(d->m_id, false);
@ -398,7 +398,7 @@ void KToolBarButton::enterEvent(TQEvent *)
d->m_isActive = false; d->m_isActive = false;
} }
tqrepaint(false); repaint(false);
} }
emit highlighted(d->m_id, true); emit highlighted(d->m_id, true);
} }
@ -634,7 +634,7 @@ void KToolBarButton::paletteChange(const TQPalette &)
if(!d->m_isSeparator) if(!d->m_isSeparator)
{ {
modeChange(); modeChange();
tqrepaint(false); // no need to delete it first therefore only false repaint(false); // no need to delete it first therefore only false
} }
} }
@ -698,7 +698,7 @@ void KToolBarButton::setNoStyle(bool no_style)
modeChange(); modeChange();
d->m_iconText = KToolBar::IconTextRight; d->m_iconText = KToolBar::IconTextRight;
tqrepaint(false); repaint(false);
} }
void KToolBarButton::setRadio (bool f) void KToolBarButton::setRadio (bool f)
@ -716,13 +716,13 @@ void KToolBarButton::on(bool flag)
setDown(flag); setDown(flag);
leaveEvent((TQEvent *) 0); leaveEvent((TQEvent *) 0);
} }
tqrepaint(); repaint();
} }
void KToolBarButton::toggle() void KToolBarButton::toggle()
{ {
setOn(!isOn()); setOn(!isOn());
tqrepaint(); repaint();
} }
void KToolBarButton::setToggle(bool flag) void KToolBarButton::setToggle(bool flag)

@ -407,7 +407,7 @@ TQRect KURLLabel::activeRect() const
TQRect r( contentsRect() ); TQRect r( contentsRect() );
if (text().isEmpty() || (!d->MarginAltered && sizePolicy() == TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed))) if (text().isEmpty() || (!d->MarginAltered && sizePolicy() == TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed)))
return r; //fixed size is sometimes used with pixmap return r; //fixed size is sometimes used with pixmap
int hAlign = TQApplication::horizontalAlignment( tqalignment() ); int hAlign = TQApplication::horizontalAlignment( alignment() );
int indentX = (hAlign && indent()>0) ? indent() : 0; int indentX = (hAlign && indent()>0) ? indent() : 0;
TQFontMetrics fm(font()); TQFontMetrics fm(font());
r.setWidth( QMIN(fm.width(text()), r.width())); r.setWidth( QMIN(fm.width(text()), r.width()));

@ -35,7 +35,7 @@ KWordWrap* KWordWrap::formatText( TQFontMetrics &fm, const TQRect & r, int /*fla
{ {
KWordWrap* kw = new KWordWrap( r ); KWordWrap* kw = new KWordWrap( r );
// The wordwrap algorithm // The wordwrap algorithm
// The variable names and the global tqshape of the algorithm are inspired // The variable names and the global shape of the algorithm are inspired
// from QTextFormatterBreakWords::format(). // from QTextFormatterBreakWords::format().
//kdDebug() << "KWordWrap::formatText " << str << " r=" << r.x() << "," << r.y() << " " << r.width() << "x" << r.height() << endl; //kdDebug() << "KWordWrap::formatText " << str << " r=" << r.x() << "," << r.y() << " " << r.width() << "x" << r.height() << endl;
int height = fm.height(); int height = fm.height();
@ -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.tqat( tl - n + i ) ); TQString s( t.at( tl - n + i ) );
p->drawText( x, y, s ); p->drawText( x, y, s );
x += fm.width( s ); x += fm.width( s );
} }

@ -91,12 +91,12 @@ public:
/** /**
* Draw the text that has been previously wrapped, at position x,y. * Draw the text that has been previously wrapped, at position x,y.
* Flags are for tqalignment, e.g. Qt::AlignHCenter. Default is * Flags are for alignment, e.g. Qt::AlignHCenter. Default is
* Qt::AlignAuto. * Qt::AlignAuto.
* @param painter the TQPainter to use. * @param painter the TQPainter to use.
* @param x the horizontal position of the text * @param x the horizontal position of the text
* @param y the vertical position of the text * @param y the vertical position of the text
* @param flags the ORed text tqalignment flags from the Qt namespace, * @param flags the ORed text alignment flags from the Qt namespace,
* ORed with FadeOut if you want the text to fade out if it * ORed with FadeOut if you want the text to fade out if it
* does not fit (the @p painter's background must be set * does not fit (the @p painter's background must be set
* accordingly) * accordingly)

@ -23,7 +23,7 @@ KDesatWidget::KDesatWidget(TQWidget *parent, const char *name)
void KDesatWidget::change(double) { void KDesatWidget::change(double) {
desat_value = slide->value(); desat_value = slide->value();
tqrepaint(false); repaint(false);
} }
void KDesatWidget::paintEvent(TQPaintEvent */*ev*/) void KDesatWidget::paintEvent(TQPaintEvent */*ev*/)

@ -242,7 +242,7 @@ void PixmapView::setPixmap( const TQPixmap &pix )
{ {
pixmap = pix; pixmap = pix;
resizeContents( pixmap.size().width(), pixmap.size().height() ); resizeContents( pixmap.size().width(), pixmap.size().height() );
viewport()->tqrepaint( true ); viewport()->repaint( true );
} }
void PixmapView::drawContents( TQPainter *p, int, int, int, int ) void PixmapView::drawContents( TQPainter *p, int, int, int, int )

@ -50,14 +50,14 @@ KLedTest::KLedTest(TQWidget* parent)
} }
else { else {
y=Grid; index=0; y=Grid; index=0;
for( int tqshape=0; (int)tqshape<2; tqshape=(KLed::Shape)(tqshape+1)) { for( int shape=0; (int)shape<2; shape=(KLed::Shape)(shape+1)) {
x=Grid; x=Grid;
for( int look=0; (int)look<3; look=(KLed::Look)(look+1)) { for( int look=0; (int)look<3; look=(KLed::Look)(look+1)) {
for(state=KLed::Off; (int)state<2; state=(KLed::State)(state+1)) for(state=KLed::Off; (int)state<2; state=(KLed::State)(state+1))
{ {
leds[index]=new KLed(Qt::yellow, state, leds[index]=new KLed(Qt::yellow, state,
(KLed::Look)(look+1), (KLed::Look)(look+1),
(KLed::Shape)(tqshape+1), this); (KLed::Shape)(shape+1), this);
leds[index]->setGeometry(x, y, LedWidth, LedHeight); leds[index]->setGeometry(x, y, LedWidth, LedHeight);
++index; ++index;
x+=Grid+LedWidth; x+=Grid+LedWidth;
@ -108,7 +108,7 @@ KLedTest::nextLook() {
ledlook = static_cast<KLed::Look>(tmp); ledlook = static_cast<KLed::Look>(tmp);
l->setLook(ledlook); l->setLook(ledlook);
//qDebug("painting look %i", ledlook); //qDebug("painting look %i", ledlook);
//l->tqrepaint(); //l->repaint();
} }

@ -15,7 +15,7 @@ protected:
const int LedWidth; const int LedWidth;
const int LedHeight; const int LedHeight;
const int Grid; const int Grid;
KLed::Shape tqshape; KLed::Shape shape;
KLed::Look look; KLed::Look look;
KLed::State state; KLed::State state;
int x, y, index; int x, y, index;

@ -73,9 +73,9 @@ Test::Test( TQWidget* parent, const char *name )
gridlayout->addWidget( mTabsBottom, 3, 0 ); gridlayout->addWidget( mTabsBottom, 3, 0 );
connect( mTabsBottom, TQT_SIGNAL( toggled(bool) ), TQT_SLOT( toggleTabPosition(bool) ) ); connect( mTabsBottom, TQT_SIGNAL( toggled(bool) ), TQT_SLOT( toggleTabPosition(bool) ) );
TQCheckBox * tabtqshape = new TQCheckBox( "Triangular tab tqshape", grid ); TQCheckBox * tabshape = new TQCheckBox( "Triangular tab shape", grid );
gridlayout->addWidget( tabtqshape, 3, 1 ); gridlayout->addWidget( tabshape, 3, 1 );
connect( tabtqshape, TQT_SIGNAL( toggled(bool) ), TQT_SLOT( toggleTabShape(bool) ) ); connect( tabshape, TQT_SIGNAL( toggled(bool) ), TQT_SLOT( toggleTabShape(bool) ) );
TQCheckBox *tabClose = new TQCheckBox( "Close button on icon hover", grid ); TQCheckBox *tabClose = new TQCheckBox( "Close button on icon hover", grid );
gridlayout->addWidget( tabClose, 4, 0 ); gridlayout->addWidget( tabClose, 4, 0 );

@ -159,7 +159,7 @@ void myTopWidget::rebalance()
if ((otime - itime )> 500) if ((otime - itime )> 500)
{ {
grds->tqrepaint(false); grds->repaint(false);
itime = time.elapsed(); itime = time.elapsed();
} }
} }

@ -148,10 +148,10 @@ void HelpProtocol::get( const KURL& url )
doc = url.path(); doc = url.path();
if ( !mGhelp ) { if ( !mGhelp ) {
if (doc.tqat(0) != '/') if (doc.at(0) != '/')
doc = doc.prepend('/'); doc = doc.prepend('/');
if (doc.tqat(doc.length() - 1) == '/') if (doc.at(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.tqat(start_index - 1) != '>') start_index++; while (parsed.at(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.findRev("</FILENAME>"); int endindex = filedata.findRev("</FILENAME>");
while (filedata.tqat(endindex) != '>') endindex++; while (filedata.at(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.tqat( 0 ) == '/' ); assert( filename.at( 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.tqat( i )).tqunicode() ); res.sprintf( "&#%d;", TQChar(part.at( 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->tqat(num); } StyleBaseImpl *item(unsigned long num) const { return m_lstChildren->at(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.tqat( index ); } CSSRuleImpl *item ( unsigned long index ) { return m_lstCSSRules.at( 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->tqat(i)->nonCSSHint) if (!m_lstValues->at(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->tqat(index)) if(m_lstValues && index < m_lstValues->count() && m_lstValues->at(index))
return getPropertyName(m_lstValues->tqat(index)->m_id); return getPropertyName(m_lstValues->at(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.tqat(index); } CSSValueImpl *item ( unsigned long index ) { return m_values.at(index); }
virtual bool isValueList() const { return true; } virtual bool isValueList() const { return true; }

@ -522,7 +522,7 @@ bool CSSParser::parseValue( int propId, bool important )
valid_primitive = true; valid_primitive = true;
break; break;
case CSS_PROP_CLIP: // <tqshape> | auto | inherit case CSS_PROP_CLIP: // <shape> | auto | inherit
if ( id == CSS_VAL_AUTO ) if ( id == CSS_VAL_AUTO )
valid_primitive = true; valid_primitive = true;
else if ( value->unit == Value::Function ) else if ( value->unit == Value::Function )

@ -742,7 +742,7 @@ void CSSStyleSelector::adjustRenderStyle(RenderStyle* style, DOM::ElementImpl *e
style->adjustBackgroundLayers(); style->adjustBackgroundLayers();
// Only use slow repaints if we actually have a background image. // Only use slow repaints if we actually have a background image.
// FIXME: We only need to tqinvalidate the fixed regions when scrolling. It's total overkill to // FIXME: We only need to invalidate the fixed regions when scrolling. It's total overkill to
// prevent the entire view from blitting on a scroll. // prevent the entire view from blitting on a scroll.
if (style->hasFixedBackgroundImage() && view) if (style->hasFixedBackgroundImage() && view)
view->useSlowRepaints(); view->useSlowRepaints();
@ -786,7 +786,7 @@ unsigned int CSSStyleSelector::addInlineDeclarations(DOM::ElementImpl* e,
if (i == firstLen) if (i == firstLen)
values = addValues; values = addValues;
CSSProperty *prop = values->tqat(i >= firstLen ? i - firstLen : i); CSSProperty *prop = values->at(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->tqat(j), count()); CSSOrderedRule *rule = new CSSOrderedRule(r, s->at(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->tqat( j ), count() ); styleRule, s->at( 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->tqat(i); CSSProperty *prop = values->at(i);
Source source = regular; Source source = regular;
if( prop->m_important ) source = important; if( prop->m_important ) source = important;

@ -633,7 +633,7 @@ class RectImpl;
/** /**
* The \c Rect interface is used to represent any <a * The \c Rect interface is used to represent any <a
* href="http://www.w3.org/TR/REC-CSS2/visufx.html#value-def-tqshape"> * href="http://www.w3.org/TR/REC-CSS2/visufx.html#value-def-shape">
* rect </a> value. This interface reflects the values in the * rect </a> value. This interface reflects the values in the
* underlying style property. Hence, modifications made through this * underlying style property. Hence, modifications made through this
* interface modify the style property. * interface modify the style property.

@ -105,7 +105,7 @@ public:
~HTMLDivElement(); ~HTMLDivElement();
/** /**
* Horizontal text tqalignment. See the <a * Horizontal text alignment. See the <a
* href="http://www.w3.org/TR/REC-html40/present/graphics.html#adef-align"> * href="http://www.w3.org/TR/REC-html40/present/graphics.html#adef-align">
* align attribute definition </a> in HTML 4.0. This attribute is * align attribute definition </a> in HTML 4.0. This attribute is
* deprecated in HTML 4.0. * deprecated in HTML 4.0.
@ -231,7 +231,7 @@ public:
~HTMLHeadingElement(); ~HTMLHeadingElement();
/** /**
* Horizontal text tqalignment. See the <a * Horizontal text alignment. See the <a
* href="http://www.w3.org/TR/REC-html40/present/graphics.html#adef-align"> * href="http://www.w3.org/TR/REC-html40/present/graphics.html#adef-align">
* align attribute definition </a> in HTML 4.0. This attribute is * align attribute definition </a> in HTML 4.0. This attribute is
* deprecated in HTML 4.0. * deprecated in HTML 4.0.
@ -272,7 +272,7 @@ public:
~HTMLParagraphElement(); ~HTMLParagraphElement();
/** /**
* Horizontal text tqalignment. See the <a * Horizontal text alignment. See the <a
* href="http://www.w3.org/TR/REC-html40/present/graphics.html#adef-align"> * href="http://www.w3.org/TR/REC-html40/present/graphics.html#adef-align">
* align attribute definition </a> in HTML 4.0. This attribute is * align attribute definition </a> in HTML 4.0. This attribute is
* deprecated in HTML 4.0. * deprecated in HTML 4.0.

@ -798,7 +798,7 @@ public:
void setAccessKey( const DOMString & ); void setAccessKey( const DOMString & );
/** /**
* Text tqalignment relative to \c FIELDSET . See the <a * Text alignment relative to \c FIELDSET . See the <a
* href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-align-LEGEND"> * href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-align-LEGEND">
* align attribute definition </a> in HTML 4.0. This attribute is * align attribute definition </a> in HTML 4.0. This attribute is
* deprecated in HTML 4.0. * deprecated in HTML 4.0.

@ -122,7 +122,7 @@ void HTMLAreaElement::setNoHref( bool _noHref )
} }
} }
DOMString HTMLAreaElement::tqshape() const DOMString HTMLAreaElement::shape() const
{ {
if(!impl) return DOMString(); if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_SHAPE); return ((ElementImpl *)impl)->getAttribute(ATTR_SHAPE);

@ -90,7 +90,7 @@ public:
/** /**
* Comma-separated list of lengths, defining an active region * Comma-separated list of lengths, defining an active region
* geometry. See also \c tqshape for the tqshape of the * geometry. See also \c shape for the shape of the
* region. See the <a * region. See the <a
* href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-coords"> * href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-coords">
* coords attribute definition </a> in HTML 4.0. * coords attribute definition </a> in HTML 4.0.
@ -131,16 +131,16 @@ public:
void setNoHref( bool ); void setNoHref( bool );
/** /**
* The tqshape of the active area. The coordinates are given by * The shape of the active area. The coordinates are given by
* \c coords . See the <a * \c coords . See the <a
* href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-tqshape"> * href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-shape">
* tqshape attribute definition </a> in HTML 4.0. * shape attribute definition </a> in HTML 4.0.
* *
*/ */
DOMString tqshape() const; DOMString shape() const;
/** /**
* see tqshape * see shape
*/ */
void setShape( const DOMString & ); void setShape( const DOMString & );

@ -148,7 +148,7 @@ void HTMLAnchorElement::setRev( const DOMString &value )
if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_REV, value); if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_REV, value);
} }
DOMString HTMLAnchorElement::tqshape() const DOMString HTMLAnchorElement::shape() const
{ {
if(!impl) return DOMString(); if(!impl) return DOMString();
return ((ElementImpl *)impl)->getAttribute(ATTR_SHAPE); return ((ElementImpl *)impl)->getAttribute(ATTR_SHAPE);

@ -89,7 +89,7 @@ public:
/** /**
* Comma-separated list of lengths, defining an active region * Comma-separated list of lengths, defining an active region
* geometry. See also \c tqshape for the tqshape of the * geometry. See also \c shape for the shape of the
* region. See the <a * region. See the <a
* href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-coords"> * href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-coords">
* coords attribute definition </a> in HTML 4.0. * coords attribute definition </a> in HTML 4.0.
@ -168,16 +168,16 @@ public:
void setRev( const DOMString & ); void setRev( const DOMString & );
/** /**
* The tqshape of the active area. The coordinates are given by * The shape of the active area. The coordinates are given by
* \c coords . See the <a * \c coords . See the <a
* href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-tqshape"> * href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-shape">
* tqshape attribute definition </a> in HTML 4.0. * shape attribute definition </a> in HTML 4.0.
* *
*/ */
DOMString tqshape() const; DOMString shape() const;
/** /**
* see tqshape * see shape
*/ */
void setShape( const DOMString & ); void setShape( const DOMString & );

@ -63,7 +63,7 @@ public:
~HTMLTableCaptionElement(); ~HTMLTableCaptionElement();
/** /**
* Caption tqalignment with respect to the table. See the <a * Caption alignment with respect to the table. See the <a
* href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-align-CAPTION"> * href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-align-CAPTION">
* align attribute definition </a> in HTML 4.0. This attribute is * align attribute definition </a> in HTML 4.0. This attribute is
* deprecated in HTML 4.0. * deprecated in HTML 4.0.
@ -134,7 +134,7 @@ public:
void setAbbr( const DOMString & ); void setAbbr( const DOMString & );
/** /**
* Horizontal tqalignment of data in cell. See the <a * Horizontal alignment of data in cell. See the <a
* href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-align-TD"> * href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-align-TD">
* align attribute definition </a> in HTML 4.0. * align attribute definition </a> in HTML 4.0.
* *
@ -187,7 +187,7 @@ public:
void setCh( const DOMString & ); void setCh( const DOMString & );
/** /**
* Offset of tqalignment character. See the <a * Offset of alignment character. See the <a
* href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-charoff"> * href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-charoff">
* charoff attribute definition </a> in HTML 4.0. * charoff attribute definition </a> in HTML 4.0.
* *
@ -281,7 +281,7 @@ public:
void setScope( const DOMString & ); void setScope( const DOMString & );
/** /**
* Vertical tqalignment of data in cell. See the <a * Vertical alignment of data in cell. See the <a
* href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-valign"> * href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-valign">
* valign attribute definition </a> in HTML 4.0. * valign attribute definition </a> in HTML 4.0.
* *
@ -338,7 +338,7 @@ public:
~HTMLTableColElement(); ~HTMLTableColElement();
/** /**
* Horizontal tqalignment of cell data in column. See the <a * Horizontal alignment of cell data in column. See the <a
* href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-align-TD"> * href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-align-TD">
* align attribute definition </a> in HTML 4.0. * align attribute definition </a> in HTML 4.0.
* *
@ -364,7 +364,7 @@ public:
void setCh( const DOMString & ); void setCh( const DOMString & );
/** /**
* Offset of tqalignment character. See the <a * Offset of alignment character. See the <a
* href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-charoff"> * href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-charoff">
* charoff attribute definition </a> in HTML 4.0. * charoff attribute definition </a> in HTML 4.0.
* *
@ -391,7 +391,7 @@ public:
void setSpan( long ); void setSpan( long );
/** /**
* Vertical tqalignment of cell data in column. See the <a * Vertical alignment of cell data in column. See the <a
* href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-valign"> * href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-valign">
* valign attribute definition </a> in HTML 4.0. * valign attribute definition </a> in HTML 4.0.
* *
@ -790,7 +790,7 @@ public:
void setCells( const HTMLCollection & ); void setCells( const HTMLCollection & );
/** /**
* Horizontal tqalignment of data within cells of this row. See the * Horizontal alignment of data within cells of this row. See the
* <a * <a
* href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-align-TD"> * href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-align-TD">
* align attribute definition </a> in HTML 4.0. * align attribute definition </a> in HTML 4.0.
@ -831,7 +831,7 @@ public:
void setCh( const DOMString & ); void setCh( const DOMString & );
/** /**
* Offset of tqalignment character. See the <a * Offset of alignment character. See the <a
* href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-charoff"> * href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-charoff">
* charoff attribute definition </a> in HTML 4.0. * charoff attribute definition </a> in HTML 4.0.
* *
@ -844,7 +844,7 @@ public:
void setChOff( const DOMString & ); void setChOff( const DOMString & );
/** /**
* Vertical tqalignment of data within cells of this row. See the <a * Vertical alignment of data within cells of this row. See the <a
* href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-valign"> * href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-valign">
* valign attribute definition </a> in HTML 4.0. * valign attribute definition </a> in HTML 4.0.
* *
@ -913,7 +913,7 @@ public:
~HTMLTableSectionElement(); ~HTMLTableSectionElement();
/** /**
* Horizontal tqalignment of data in cells. See the \c align * Horizontal alignment of data in cells. See the \c align
* attribute for HTMLTheadElement for details. * attribute for HTMLTheadElement for details.
* *
*/ */
@ -938,7 +938,7 @@ public:
void setCh( const DOMString & ); void setCh( const DOMString & );
/** /**
* Offset of tqalignment character. See the <a * Offset of alignment character. See the <a
* href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-charoff"> * href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-charoff">
* charoff attribute definition </a> in HTML 4.0. * charoff attribute definition </a> in HTML 4.0.
* *
@ -951,7 +951,7 @@ public:
void setChOff( const DOMString & ); void setChOff( const DOMString & );
/** /**
* Vertical tqalignment of data in cells. See the \c valign * Vertical alignment of data in cells. See the \c valign
* attribute for HTMLTheadElement for details. * attribute for HTMLTheadElement for details.
* *
*/ */

@ -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.tqat(m_sourceSel->currentItem()); SourceFile *sourceFile = m_sourceSelFiles.at(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.tqat(sourceSelIndex); SourceFile *sourceFile = m_sourceSelFiles.at(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.tqat(sourceSelIndex)) if (m_sourceFragments[ctx.sourceId()]->sourceFile == m_sourceSelFiles.at(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.tqat(m_sourceSel->currentItem()); SourceFile *sourceFile = m_sourceSelFiles.at(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.tqat(index) == sourceFile) if (m_sourceSelFiles.at(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.tqat(i) == sourceFile) { if (m_sourceSelFiles.at(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.tqat(i) == sourceFile) if (m_sourceSelFiles.at(i) == sourceFile)
m_sourceSel->setCurrentItem(i); m_sourceSel->setCurrentItem(i);
displaySourceFile(sourceFile,false); displaySourceFile(sourceFile,false);
} }

@ -896,7 +896,7 @@ const ClassInfo* KJS::HTMLElement::classInfo() const
rel KJS::HTMLElement::AnchorRel DontDelete rel KJS::HTMLElement::AnchorRel DontDelete
rev KJS::HTMLElement::AnchorRev DontDelete rev KJS::HTMLElement::AnchorRev DontDelete
search KJS::HTMLElement::AnchorSearch DontDelete search KJS::HTMLElement::AnchorSearch DontDelete
tqshape KJS::HTMLElement::AnchorShape DontDelete shape KJS::HTMLElement::AnchorShape DontDelete
tabIndex KJS::HTMLElement::AnchorTabIndex DontDelete tabIndex KJS::HTMLElement::AnchorTabIndex DontDelete
target KJS::HTMLElement::AnchorTarget DontDelete target KJS::HTMLElement::AnchorTarget DontDelete
text KJS::HTMLElement::AnchorText DontDelete|ReadOnly text KJS::HTMLElement::AnchorText DontDelete|ReadOnly
@ -981,7 +981,7 @@ const ClassInfo* KJS::HTMLElement::classInfo() const
protocol KJS::HTMLElement::AreaProtocol DontDelete|ReadOnly protocol KJS::HTMLElement::AreaProtocol DontDelete|ReadOnly
search KJS::HTMLElement::AreaSearch DontDelete|ReadOnly search KJS::HTMLElement::AreaSearch DontDelete|ReadOnly
noHref KJS::HTMLElement::AreaNoHref DontDelete noHref KJS::HTMLElement::AreaNoHref DontDelete
tqshape KJS::HTMLElement::AreaShape DontDelete shape KJS::HTMLElement::AreaShape DontDelete
tabIndex KJS::HTMLElement::AreaTabIndex DontDelete tabIndex KJS::HTMLElement::AreaTabIndex DontDelete
target KJS::HTMLElement::AreaTarget DontDelete target KJS::HTMLElement::AreaTarget DontDelete
@end @end
@ -1599,7 +1599,7 @@ Value KJS::HTMLElement::getValueProperty(ExecState *exec, int token) const
case AnchorName: return String(anchor.name()); case AnchorName: return String(anchor.name());
case AnchorRel: return String(anchor.rel()); case AnchorRel: return String(anchor.rel());
case AnchorRev: return String(anchor.rev()); case AnchorRev: return String(anchor.rev());
case AnchorShape: return String(anchor.tqshape()); case AnchorShape: return String(anchor.shape());
case AnchorTabIndex: return Number(anchor.tabIndex()); case AnchorTabIndex: return Number(anchor.tabIndex());
case AnchorTarget: return String(anchor.target()); case AnchorTarget: return String(anchor.target());
// Not specified in http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/a.asp // Not specified in http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/a.asp
@ -1735,7 +1735,7 @@ Value KJS::HTMLElement::getValueProperty(ExecState *exec, int token) const
} }
} }
case AreaNoHref: return Boolean(area.noHref()); case AreaNoHref: return Boolean(area.noHref());
case AreaShape: return String(area.tqshape()); case AreaShape: return String(area.shape());
case AreaTabIndex: return Number(area.tabIndex()); case AreaTabIndex: return Number(area.tabIndex());
case AreaTarget: return String(area.target()); case AreaTarget: return String(area.target());
} }

@ -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->tqat(i) ) ); return Value( new Plugin( exec, plugins->at(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->tqat(i) ) ); return Value( new Plugin( exec, base->plugins->at(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->tqat(i) ) ); return Value( new MimeType( exec, mimes->at(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->tqat(i) ) ); return Value( new MimeType( exec, base->mimes->at(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.tqat(i)->type << endl; //kdDebug(6070) << "returning mimetype " << m_info->mimes.at(i)->type << endl;
return Value(new MimeType(exec, m_info->mimes.tqat(i))); return Value(new MimeType(exec, m_info->mimes.at(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.tqat(i) ) ); return Value( new MimeType( exec, plugin->pluginInfo()->mimes.at(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.tqat(i); KParts::ReadOnlyPart* frame = frames.at(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.tqat(i); frame = frames.at(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.

@ -226,7 +226,7 @@ void HTMLDocumentImpl::slotHistoryChanged()
return; return;
recalcStyle( Force ); recalcStyle( Force );
m_render->tqrepaint(); m_render->repaint();
} }
HTMLMapElementImpl* HTMLDocumentImpl::getMap(const DOMString& _url) HTMLMapElementImpl* HTMLDocumentImpl::getMap(const DOMString& _url)

@ -620,32 +620,32 @@ void HTMLElementImpl::setInnerText( const DOMString &text, int& exceptioncode )
appendChild( t, exceptioncode ); appendChild( t, exceptioncode );
} }
void HTMLElementImpl::addHTMLAlignment( DOMString tqalignment ) void HTMLElementImpl::addHTMLAlignment( DOMString alignment )
{ {
//qDebug("tqalignment is %s", tqalignment.string().latin1() ); //qDebug("alignment is %s", alignment.string().latin1() );
// vertical tqalignment with respect to the current baseline of the text // vertical alignment with respect to the current baseline of the text
// right or left means floating images // right or left means floating images
int propfloat = -1; int propfloat = -1;
int propvalign = -1; int propvalign = -1;
if ( strcasecmp( tqalignment, "absmiddle" ) == 0 ) { if ( strcasecmp( alignment, "absmiddle" ) == 0 ) {
propvalign = CSS_VAL_MIDDLE; propvalign = CSS_VAL_MIDDLE;
} else if ( strcasecmp( tqalignment, "absbottom" ) == 0 ) { } else if ( strcasecmp( alignment, "absbottom" ) == 0 ) {
propvalign = CSS_VAL_BOTTOM; propvalign = CSS_VAL_BOTTOM;
} else if ( strcasecmp( tqalignment, "left" ) == 0 ) { } else if ( strcasecmp( alignment, "left" ) == 0 ) {
propfloat = CSS_VAL_LEFT; propfloat = CSS_VAL_LEFT;
propvalign = CSS_VAL_TOP; propvalign = CSS_VAL_TOP;
} else if ( strcasecmp( tqalignment, "right" ) == 0 ) { } else if ( strcasecmp( alignment, "right" ) == 0 ) {
propfloat = CSS_VAL_RIGHT; propfloat = CSS_VAL_RIGHT;
propvalign = CSS_VAL_TOP; propvalign = CSS_VAL_TOP;
} else if ( strcasecmp( tqalignment, "top" ) == 0 ) { } else if ( strcasecmp( alignment, "top" ) == 0 ) {
propvalign = CSS_VAL_TOP; propvalign = CSS_VAL_TOP;
} else if ( strcasecmp( tqalignment, "middle" ) == 0 ) { } else if ( strcasecmp( alignment, "middle" ) == 0 ) {
propvalign = CSS_VAL__KHTML_BASELINE_MIDDLE; propvalign = CSS_VAL__KHTML_BASELINE_MIDDLE;
} else if ( strcasecmp( tqalignment, "center" ) == 0 ) { } else if ( strcasecmp( alignment, "center" ) == 0 ) {
propvalign = CSS_VAL_MIDDLE; propvalign = CSS_VAL_MIDDLE;
} else if ( strcasecmp( tqalignment, "bottom" ) == 0 ) { } else if ( strcasecmp( alignment, "bottom" ) == 0 ) {
propvalign = CSS_VAL_BASELINE; propvalign = CSS_VAL_BASELINE;
} else if ( strcasecmp ( tqalignment, "texttop") == 0 ) { } else if ( strcasecmp ( alignment, "texttop") == 0 ) {
propvalign = CSS_VAL_TEXT_TOP; propvalign = CSS_VAL_TEXT_TOP;
} }

@ -68,7 +68,7 @@ public:
protected: protected:
// for IMG, OBJECT and APPLET // for IMG, OBJECT and APPLET
void addHTMLAlignment( DOMString tqalignment ); void addHTMLAlignment( DOMString alignment );
}; };
class HTMLGenericElementImpl : public HTMLElementImpl class HTMLGenericElementImpl : public HTMLElementImpl

@ -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.tqat(pos); TQChar c = s.at(pos);
switch(c.tqunicode()) switch(c.tqunicode())
{ {
case '\n': case '\n':

@ -441,7 +441,7 @@ HTMLAreaElementImpl::HTMLAreaElementImpl(DocumentImpl *doc)
m_coords=0; m_coords=0;
m_coordsLen = 0; m_coordsLen = 0;
nohref = false; nohref = false;
tqshape = Unknown; shape = Unknown;
lasth = lastw = -1; lasth = lastw = -1;
} }
@ -461,13 +461,13 @@ void HTMLAreaElementImpl::parseAttribute(AttributeImpl *attr)
{ {
case ATTR_SHAPE: case ATTR_SHAPE:
if ( strcasecmp( attr->value(), "default" ) == 0 ) if ( strcasecmp( attr->value(), "default" ) == 0 )
tqshape = Default; shape = Default;
else if ( strcasecmp( attr->value(), "circle" ) == 0 ) else if ( strcasecmp( attr->value(), "circle" ) == 0 )
tqshape = Circle; shape = Circle;
else if ( strcasecmp( attr->value(), "poly" ) == 0 || strcasecmp( attr->value(), "polygon" ) == 0 ) else if ( strcasecmp( attr->value(), "poly" ) == 0 || strcasecmp( attr->value(), "polygon" ) == 0 )
tqshape = Poly; shape = Poly;
else if ( strcasecmp( attr->value(), "rect" ) == 0 ) else if ( strcasecmp( attr->value(), "rect" ) == 0 )
tqshape = Rect; shape = Rect;
break; break;
case ATTR_COORDS: case ATTR_COORDS:
delete [] m_coords; delete [] m_coords;
@ -530,7 +530,7 @@ TQRegion HTMLAreaElementImpl::getRegion(int width_, int height_) const
// what the HTML author tried to tell us. // what the HTML author tried to tell us.
// a Poly needs at least 3 points (6 coords), so this is correct // a Poly needs at least 3 points (6 coords), so this is correct
if ((tqshape==Poly || tqshape==Unknown) && m_coordsLen > 5) { if ((shape==Poly || shape==Unknown) && m_coordsLen > 5) {
// make sure its even // make sure its even
int len = m_coordsLen >> 1; int len = m_coordsLen >> 1;
TQPointArray points(len); TQPointArray points(len);
@ -539,19 +539,19 @@ TQRegion HTMLAreaElementImpl::getRegion(int width_, int height_) const
m_coords[(i<<1)+1].minWidth(height_)); m_coords[(i<<1)+1].minWidth(height_));
region = TQRegion(points); region = TQRegion(points);
} }
else if (tqshape==Circle && m_coordsLen>=3 || tqshape==Unknown && m_coordsLen == 3) { else if (shape==Circle && m_coordsLen>=3 || shape==Unknown && m_coordsLen == 3) {
int r = kMin(m_coords[2].minWidth(width_), m_coords[2].minWidth(height_)); int r = kMin(m_coords[2].minWidth(width_), m_coords[2].minWidth(height_));
region = TQRegion(m_coords[0].minWidth(width_)-r, region = TQRegion(m_coords[0].minWidth(width_)-r,
m_coords[1].minWidth(height_)-r, 2*r, 2*r,TQRegion::Ellipse); m_coords[1].minWidth(height_)-r, 2*r, 2*r,TQRegion::Ellipse);
} }
else if (tqshape==Rect && m_coordsLen>=4 || tqshape==Unknown && m_coordsLen == 4) { else if (shape==Rect && m_coordsLen>=4 || shape==Unknown && m_coordsLen == 4) {
int x0 = m_coords[0].minWidth(width_); int x0 = m_coords[0].minWidth(width_);
int y0 = m_coords[1].minWidth(height_); int y0 = m_coords[1].minWidth(height_);
int x1 = m_coords[2].minWidth(width_); int x1 = m_coords[2].minWidth(width_);
int y1 = m_coords[3].minWidth(height_); int y1 = m_coords[3].minWidth(height_);
region = TQRegion(x0,y0,x1-x0,y1-y0); region = TQRegion(x0,y0,x1-x0,y1-y0);
} }
else if (tqshape==Default) else if (shape==Default)
region = TQRegion(0,0,width_,height_); region = TQRegion(0,0,width_,height_);
// else // else
// return null region // return null region

@ -102,7 +102,7 @@ public:
virtual void parseAttribute(AttributeImpl *attr); virtual void parseAttribute(AttributeImpl *attr);
bool isDefault() const { return tqshape==Default; } bool isDefault() const { return shape==Default; }
bool mapMouseEvent(int x_, int y_, int width_, int height_, bool mapMouseEvent(int x_, int y_, int width_, int height_,
khtml::RenderObject::NodeInfo& info); khtml::RenderObject::NodeInfo& info);
@ -117,7 +117,7 @@ protected:
khtml::Length* m_coords; khtml::Length* m_coords;
int m_coordsLen; int m_coordsLen;
int lastw, lasth; int lastw, lasth;
Shape tqshape : 3; Shape shape : 3;
bool nohref : 1; bool nohref : 1;
}; };

@ -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.tqat( i )->isEnumeratable()) if (l.at( 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.tqat( i ); return l.at( 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.tqat( i )->isEnumeratable() ) if ( l.at( 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.tqat(currentNamePos); HTMLGenericFormElementImpl* el = l.at(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.tqat(currentNameImgPos); HTMLImageElementImpl* el = il.at(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.tqat(0)=='\"') if (value.at(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);

@ -168,7 +168,7 @@ void KJavaProcess::storeSize( TQByteArray* buff )
const char* size_ptr = size_str.latin1(); const char* size_ptr = size_str.latin1();
for( int i = 0; i < 8; ++i ) for( int i = 0; i < 8; ++i )
buff->tqat(i) = size_ptr[i]; buff->at(i) = size_ptr[i];
} }
void KJavaProcess::sendBuffer( TQByteArray* buff ) void KJavaProcess::sendBuffer( TQByteArray* buff )
@ -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->tqat(i) == (char)0 ) // if( buf->at(i) == (char)0 )
// kdDebug(6100) << "<SEP>"; // kdDebug(6100) << "<SEP>";
// else if( buf->tqat(i) > 0 && buf->tqat(i) < 10 ) // else if( buf->at(i) > 0 && buf->at(i) < 10 )
// kdDebug(6100) << "<CMD " << (int) buf->tqat(i) << ">"; // kdDebug(6100) << "<CMD " << (int) buf->at(i) << ">";
// else // else
// kdDebug(6100) << buf->tqat(i); // kdDebug(6100) << buf->at(i);
// } // }
// kdDebug(6100) << "<<" << endl; // kdDebug(6100) << "<<" << endl;

@ -775,7 +775,7 @@ void CaretBoxLine::addCreatedFlowBoxInside(InlineFlowBox *flowBox, const TQFontM
caret_boxes.append(caretBox); caret_boxes.append(caretBox);
// afaik an inner flow box can only have the width 0, therefore we don't // afaik an inner flow box can only have the width 0, therefore we don't
// have to care for rtl or tqalignment // have to care for rtl or alignment
// ### can empty inline elements have a width? css 2 spec isn't verbose about it // ### can empty inline elements have a width? css 2 spec isn't verbose about it
caretBox->_y += flowBox->baseline() - fm.ascent(); caretBox->_y += flowBox->baseline() - fm.ascent();
@ -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->tqat(i); RenderTableCell *cell = row->row->at(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->tqat(index); RenderTableCell *cell = row->row->at(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->tqat(j); RenderTableCell *c = row->row->at(j);
if (c == directCell) return i; if (c == directCell) return i;
}/*next j*/ }/*next j*/

@ -95,8 +95,8 @@ 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()->device()->flush();
m_file->dataStream()->tqdevice()->tqat(0); m_file->dataStream()->device()->at(0);
} }
} }

@ -2286,7 +2286,7 @@ void KHTMLPart::checkCompleted()
} }
// the view will emit completed on our behalf, // the view will emit completed on our behalf,
// either now or at next tqrepaint if one is pending // either now or at next repaint if one is pending
//kdDebug(6050) << this << " asks the view to emit completed. pendingAction=" << pendingAction << endl; //kdDebug(6050) << this << " asks the view to emit completed. pendingAction=" << pendingAction << endl;
d->m_view->complete( pendingAction ); d->m_view->complete( pendingAction );
@ -6877,7 +6877,7 @@ void KHTMLPart::slotActiveFrameChanged( KParts::Part *part )
if (frame->frameStyle() != TQFrame::NoFrame) if (frame->frameStyle() != TQFrame::NoFrame)
{ {
frame->setFrameStyle( TQFrame::StyledPanel | TQFrame::Sunken); frame->setFrameStyle( TQFrame::StyledPanel | TQFrame::Sunken);
frame->tqrepaint(); frame->repaint();
} }
} }
@ -6905,7 +6905,7 @@ void KHTMLPart::slotActiveFrameChanged( KParts::Part *part )
if (frame->frameStyle() != TQFrame::NoFrame) if (frame->frameStyle() != TQFrame::NoFrame)
{ {
frame->setFrameStyle( TQFrame::StyledPanel | TQFrame::Plain); frame->setFrameStyle( TQFrame::StyledPanel | TQFrame::Plain);
frame->tqrepaint(); frame->repaint();
} }
kdDebug(6050) << "new active frame " << d->m_activeFrame << endl; kdDebug(6050) << "new active frame " << d->m_activeFrame << endl;
} }

@ -878,7 +878,7 @@ const TQString &KHTMLSettings::availableFamilies()
if ( !avFamilies ) { if ( !avFamilies ) {
avFamilies = new TQString; avFamilies = new TQString;
TQFontDatabase db; TQFontDatabase db;
TQStringList families = db.tqfamilies(); TQStringList families = db.families();
TQStringList s; TQStringList s;
TQRegExp foundryExp(" \\[.+\\]"); TQRegExp foundryExp(" \\[.+\\]");

@ -867,7 +867,7 @@ void KHTMLView::layout()
} }
#if 0 #if 0
ElementImpl *listitem = m_part->xmlDocImpl()->getElementById("__test_element__"); ElementImpl *listitem = m_part->xmlDocImpl()->getElementById("__test_element__");
if (listitem) kdDebug(6000) << "after layout, before tqrepaint" << endl; if (listitem) kdDebug(6000) << "after layout, before repaint" << endl;
if (listitem) dumpLineBoxes(static_cast<RenderFlow *>(listitem->renderer())); if (listitem) dumpLineBoxes(static_cast<RenderFlow *>(listitem->renderer()));
#endif #endif
#ifndef KHTML_NO_CARET #ifndef KHTML_NO_CARET
@ -2284,7 +2284,7 @@ void KHTMLView::displayAccessKeys( KHTMLView* caller, KHTMLView* origview, TQVal
TQRect rec=en->getRect(); TQRect rec=en->getRect();
TQLabel *lab=new TQLabel(accesskey,viewport(),0,(WFlags)WDestructiveClose); TQLabel *lab=new TQLabel(accesskey,viewport(),0,(WFlags)WDestructiveClose);
connect( origview, TQT_SIGNAL(hideAccessKeys()), lab, TQT_SLOT(close()) ); connect( origview, TQT_SIGNAL(hideAccessKeys()), lab, TQT_SLOT(close()) );
connect( this, TQT_SIGNAL(repaintAccessKeys()), lab, TQT_SLOT(tqrepaint())); connect( this, TQT_SIGNAL(repaintAccessKeys()), lab, TQT_SLOT(repaint()));
lab->setPalette(TQToolTip::palette()); lab->setPalette(TQToolTip::palette());
lab->setLineWidth(2); lab->setLineWidth(2);
lab->setFrameStyle(TQFrame::Box | TQFrame::Plain); lab->setFrameStyle(TQFrame::Box | TQFrame::Plain);
@ -2937,7 +2937,7 @@ void KHTMLView::print(bool quick)
root->layer()->paint(p, TQRect(0, top, pageWidth, pageHeight)); root->layer()->paint(p, TQRect(0, top, pageWidth, pageHeight));
// m_part->xmlDocImpl()->renderer()->layer()->paint(p, TQRect(0, top, pageWidth, pageHeight)); // m_part->xmlDocImpl()->renderer()->layer()->paint(p, TQRect(0, top, pageWidth, pageHeight));
// root->tqrepaint(); // root->repaint();
// p->flush(); // p->flush();
kdDebug(6000) << "printed: page " << page <<" bottom At = " << bottom << endl; kdDebug(6000) << "printed: page " << page <<" bottom At = " << bottom << endl;
@ -2983,7 +2983,7 @@ void KHTMLView::paint(TQPainter *p, const TQRect &rc, int yOff, bool *more)
khtml::RenderCanvas *root = static_cast<khtml::RenderCanvas *>(m_part->xmlDocImpl()->renderer()); khtml::RenderCanvas *root = static_cast<khtml::RenderCanvas *>(m_part->xmlDocImpl()->renderer());
if(!root) return; if(!root) return;
m_part->xmlDocImpl()->setPaintDevice(p->tqdevice()); m_part->xmlDocImpl()->setPaintDevice(p->device());
root->setPagedMode(true); root->setPagedMode(true);
root->setStaticMode(true); root->setStaticMode(true);
root->setWidth(rc.width()); root->setWidth(rc.width());
@ -3510,12 +3510,12 @@ void KHTMLView::timerEvent ( TQTimerEvent *e )
setStaticBackground(d->useSlowRepaints); setStaticBackground(d->useSlowRepaints);
// kdDebug() << "scheduled tqrepaint "<< d->repaintTimerId << endl; // kdDebug() << "scheduled repaint "<< d->repaintTimerId << endl;
killTimer(d->repaintTimerId); killTimer(d->repaintTimerId);
d->repaintTimerId = 0; d->repaintTimerId = 0;
TQRect updateRegion; TQRect updateRegion;
TQMemArray<TQRect> rects = d->updateRegion.tqrects(); TQMemArray<TQRect> rects = d->updateRegion.rects();
d->updateRegion = TQRegion(); d->updateRegion = TQRegion();
@ -3645,10 +3645,10 @@ void KHTMLView::complete( bool pendingAction )
KHTMLViewPrivate::CSActionPending : KHTMLViewPrivate::CSFull; KHTMLViewPrivate::CSActionPending : KHTMLViewPrivate::CSFull;
} }
// is there a tqrepaint pending? // is there a repaint pending?
if (d->repaintTimerId) if (d->repaintTimerId)
{ {
// kdDebug() << "requesting tqrepaint now" << endl; // kdDebug() << "requesting repaint now" << endl;
// do it now // do it now
killTimer(d->repaintTimerId); killTimer(d->repaintTimerId);
d->repaintTimerId = startTimer( 20 ); d->repaintTimerId = startTimer( 20 );
@ -3702,7 +3702,7 @@ void KHTMLView::initCaret(bool keepSelection)
}/*end if*/ }/*end if*/
// kdDebug(6200) << "d->m_selectionStart " << m_part->d->m_selectionStart.handle() // kdDebug(6200) << "d->m_selectionStart " << m_part->d->m_selectionStart.handle()
// << " d->m_selectionEnd " << m_part->d->m_selectionEnd.handle() << endl; // << " d->m_selectionEnd " << m_part->d->m_selectionEnd.handle() << endl;
// ### does not tqrepaint the selection on keepSelection!=false // ### does not repaint the selection on keepSelection!=false
moveCaretTo(m_part->d->caretNode().handle(), m_part->d->caretOffset(), !keepSelection); moveCaretTo(m_part->d->caretNode().handle(), m_part->d->caretOffset(), !keepSelection);
// kdDebug(6200) << "d->m_selectionStart " << m_part->d->m_selectionStart.handle() // kdDebug(6200) << "d->m_selectionStart " << m_part->d->m_selectionStart.handle()
// << " d->m_selectionEnd " << m_part->d->m_selectionEnd.handle() << endl; // << " d->m_selectionEnd " << m_part->d->m_selectionEnd.handle() << endl;
@ -3877,7 +3877,7 @@ void KHTMLView::hideCaret()
if (d->m_caretViewContext->visible) { if (d->m_caretViewContext->visible) {
// kdDebug(6200) << "redraw caret hidden" << endl; // kdDebug(6200) << "redraw caret hidden" << endl;
d->m_caretViewContext->visible = false; d->m_caretViewContext->visible = false;
// force tqrepaint, otherwise the event won't be handled // force repaint, otherwise the event won't be handled
// before the focus leaves the window // before the focus leaves the window
repaintContents(d->m_caretViewContext->x, d->m_caretViewContext->y, repaintContents(d->m_caretViewContext->x, d->m_caretViewContext->y,
d->m_caretViewContext->width, d->m_caretViewContext->width,

@ -384,8 +384,8 @@ private:
* *
* These operations are executed unconditionally, regardless of the * These operations are executed unconditionally, regardless of the
* focus, and the caret display policy. * focus, and the caret display policy.
* @param forceRepaint @p true to force an immediate tqrepaint, otherwise * @param forceRepaint @p true to force an immediate repaint, otherwise
* do a scheduled tqrepaint * do a scheduled repaint
*/ */
void showCaret(bool forceRepaint = false); void showCaret(bool forceRepaint = false);
/** makes the caret invisible, but does not influence the frequency timer. /** makes the caret invisible, but does not influence the frequency timer.

@ -51,7 +51,7 @@ public:
Q_ASSERT( !m_lineComplete ); Q_ASSERT( !m_lineComplete );
if ( storeNewline || c != '\n' ) { if ( storeNewline || c != '\n' ) {
int sz = m_currentLine.size(); int sz = m_currentLine.size();
m_currentLine.tqresize( sz+1, TQGArray::SpeedOptim ); m_currentLine.resize( sz+1, TQGArray::SpeedOptim );
m_currentLine[sz] = c; m_currentLine[sz] = c;
} }
if ( c == '\n' ) if ( c == '\n' )
@ -68,7 +68,7 @@ public:
reset(); reset();
} }
void reset() { void reset() {
m_currentLine.tqresize( 0, TQGArray::SpeedOptim ); m_currentLine.resize( 0, TQGArray::SpeedOptim );
m_lineComplete = false; m_lineComplete = false;
} }
private: private:

@ -143,7 +143,7 @@ void* ArenaAllocate(ArenaPool *pool, unsigned int nb)
assert((nb & pool->mask) == 0); assert((nb & pool->mask) == 0);
#endif #endif
nb = (uword)ARENA_ALIGN(pool, nb); /* force tqalignment */ nb = (uword)ARENA_ALIGN(pool, nb); /* force alignment */
/* attempt to allocate from arenas at pool->current */ /* attempt to allocate from arenas at pool->current */
{ {
@ -197,7 +197,7 @@ void* ArenaAllocate(ArenaPool *pool, unsigned int nb)
} else } else
#endif #endif
sz = pool->arenasize > nb ? pool->arenasize : nb; sz = pool->arenasize > nb ? pool->arenasize : nb;
sz += sizeof *a + pool->mask; /* header and tqalignment slop */ sz += sizeof *a + pool->mask; /* header and alignment slop */
pool->cumul += sz; pool->cumul += sz;
#ifdef DEBUG_ARENA_MALLOC #ifdef DEBUG_ARENA_MALLOC
i++; i++;

@ -188,7 +188,7 @@ struct spool_attr_t
char spool_attr_str42[sizeof("rules")]; char spool_attr_str42[sizeof("rules")];
char spool_attr_str43[sizeof("compact")]; char spool_attr_str43[sizeof("compact")];
char spool_attr_str44[sizeof("rev")]; char spool_attr_str44[sizeof("rev")];
char spool_attr_str45[sizeof("tqshape")]; char spool_attr_str45[sizeof("shape")];
char spool_attr_str46[sizeof("charset")]; char spool_attr_str46[sizeof("charset")];
char spool_attr_str47[sizeof("charoff")]; char spool_attr_str47[sizeof("charoff")];
char spool_attr_str48[sizeof("lang")]; char spool_attr_str48[sizeof("lang")];
@ -343,7 +343,7 @@ static const struct spool_attr_t spool_attr_contents =
"rules", "rules",
"compact", "compact",
"rev", "rev",
"tqshape", "shape",
"charset", "charset",
"charoff", "charoff",
"lang", "lang",

@ -33,7 +33,7 @@ namespace khtml
const int UNDEFINED = -1; const int UNDEFINED = -1;
// tqalignment // alignment
enum VAlign { VNone=0, Bottom, VCenter, Top, Baseline }; enum VAlign { VNone=0, Bottom, VCenter, Top, Baseline };
enum HAlign { HDefault, Left, HCenter, Right, HNone = 0 }; enum HAlign { HDefault, Left, HCenter, Right, HNone = 0 };

@ -397,7 +397,7 @@ public:
void sendTo(TQDataSink* sink, int n) void sendTo(TQDataSink* sink, int n)
{ {
sink->receive((const uchar*)&buffer.tqat(pos), n); sink->receive((const uchar*)&buffer.at(pos), n);
pos += n; pos += n;
@ -787,7 +787,7 @@ void CachedImage::setShowAnimations( KHTMLSettings::KAnimationAdvice showAnimati
delete p; delete p;
p = new TQPixmap(m->framePixmap()); p = new TQPixmap(m->framePixmap());
m->disconnectUpdate( this, TQT_SLOT( movieUpdated( const TQRect &) )); m->disconnectUpdate( this, TQT_SLOT( movieUpdated( const TQRect &) ));
m->disconnecStatus( this, TQT_SLOT( movieStatus( int ) )); m->disconnectStatus( this, TQT_SLOT( movieStatus( int ) ));
m->disconnectResize( this, TQT_SLOT( movieResize( const TQSize& ) ) ); m->disconnectResize( this, TQT_SLOT( movieResize( const TQSize& ) ) );
TQTimer::singleShot(0, this, TQT_SLOT( deleteMovie())); TQTimer::singleShot(0, this, TQT_SLOT( deleteMovie()));
imgSource = 0; imgSource = 0;
@ -850,7 +850,7 @@ void CachedImage::data ( TQBuffer &_buffer, bool eof )
imgSource = new ImageSource( _buffer.buffer()); imgSource = new ImageSource( _buffer.buffer());
m = new TQMovie( imgSource, 8192 ); m = new TQMovie( imgSource, 8192 );
m->connectUpdate( this, TQT_SLOT( movieUpdated( const TQRect &) )); m->connectUpdate( this, TQT_SLOT( movieUpdated( const TQRect &) ));
m->connecStatus( this, TQT_SLOT( movieStatus(int))); m->connectStatus( this, TQT_SLOT( movieStatus(int)));
m->connectResize( this, TQT_SLOT( movieResize( const TQSize& ) ) ); m->connectResize( this, TQT_SLOT( movieResize( const TQSize& ) ) );
} }
} }

@ -70,7 +70,7 @@ private:
static inline unsigned int stupidHash(void* ptr) static inline unsigned int stupidHash(void* ptr)
{ {
unsigned long val = (unsigned long)ptr; unsigned long val = (unsigned long)ptr;
// remove tqalignment and multiply by a prime unlikely to be a factor of size // remove alignment and multiply by a prime unlikely to be a factor of size
val = (val >> 4) * 1237; val = (val >> 4) * 1237;
return val; return val;
} }

@ -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->tqat(sCurrMidpoint); nextMidpoint = smidpoints->at(sCurrMidpoint);
if (betweenMidpoints) { if (betweenMidpoints) {
if (!(haveNextMidpoint && nextMidpoint.obj == obj)) if (!(haveNextMidpoint && nextMidpoint.obj == obj))
return; return;

@ -88,7 +88,7 @@ void* RenderArena::allocate(size_t size)
#else #else
void* result = 0; void* result = 0;
// Ensure we have correct tqalignment for pointers. Important for Tru64 // Ensure we have correct alignment for pointers. Important for Tru64
size = KHTML_ROUNDUP(size, sizeof(void*)); size = KHTML_ROUNDUP(size, sizeof(void*));
// Check recyclers first // Check recyclers first
@ -130,7 +130,7 @@ void RenderArena::free(size_t size, void* ptr)
VALGRIND_MEMPOOL_FREE(findContainingArena(&m_pool, ptr)->base, ptr); VALGRIND_MEMPOOL_FREE(findContainingArena(&m_pool, ptr)->base, ptr);
#endif #endif
// Ensure we have correct tqalignment for pointers. Important for Tru64 // Ensure we have correct alignment for pointers. Important for Tru64
size = KHTML_ROUNDUP(size, sizeof(void*)); size = KHTML_ROUNDUP(size, sizeof(void*));
// See if it's a size that we recycle // See if it's a size that we recycle

@ -81,11 +81,11 @@ void RenderBody::paintBoxDecorations(PaintInfo& paintInfo, int _tx, int _ty)
} }
void RenderBody::tqrepaint(Priority p) void RenderBody::repaint(Priority p)
{ {
RenderObject *cb = containingBlock(); RenderObject *cb = containingBlock();
if(cb) if(cb)
cb->tqrepaint(p); cb->repaint(p);
} }
void RenderBody::layout() void RenderBody::layout()

@ -40,7 +40,7 @@ public:
virtual bool isBody() const { return true; } virtual bool isBody() const { return true; }
virtual const char *renderName() const { return "RenderBody"; } virtual const char *renderName() const { return "RenderBody"; }
virtual void tqrepaint(Priority p=NormalPriority); virtual void repaint(Priority p=NormalPriority);
virtual void layout(); virtual void layout();
virtual void setStyle(RenderStyle* style); virtual void setStyle(RenderStyle* style);

@ -622,7 +622,7 @@ void RenderBox::paintBackgroundExtended(TQPainter *p, const TQColor &c, const Ba
sy+=b.y()-cy; sy+=b.y()-cy;
cx=b.x();cy=b.y();cw=b.width();ch=b.height(); cx=b.x();cy=b.y();cw=b.width();ch=b.height();
} }
// restrict painting to tqrepaint-clip // restrict painting to repaint-clip
if (cy < clipy) { if (cy < clipy) {
ch -= (clipy - cy); ch -= (clipy - cy);
sy += (clipy - cy); sy += (clipy - cy);
@ -795,7 +795,7 @@ void RenderBox::position(InlineBox* box, int /*from*/, int /*len*/, bool /*rever
setPos( box->xPos(), box->yPos() ); setPos( box->xPos(), box->yPos() );
} }
void RenderBox::tqrepaint(Priority prior) void RenderBox::repaint(Priority prior)
{ {
int ow = style() ? style()->outlineSize() : 0; int ow = style() ? style()->outlineSize() : 0;
if( isInline() && !isReplaced() ) if( isInline() && !isReplaced() )

@ -87,7 +87,7 @@ public:
virtual int rightmostPosition(bool includeOverflowInterior=true, bool includeSelf=true) const; virtual int rightmostPosition(bool includeOverflowInterior=true, bool includeSelf=true) const;
virtual int leftmostPosition(bool includeOverflowInterior=true, bool includeSelf=true) const; virtual int leftmostPosition(bool includeOverflowInterior=true, bool includeSelf=true) const;
virtual void tqrepaint(Priority p=NormalPriority); virtual void repaint(Priority p=NormalPriority);
virtual void repaintRectangle(int x, int y, int w, int h, Priority p=NormalPriority, bool f=false); virtual void repaintRectangle(int x, int y, int w, int h, Priority p=NormalPriority, bool f=false);

@ -372,13 +372,13 @@ void RenderCanvas::scheduleDeferredRepaints()
if (!needsFullRepaint()) { if (!needsFullRepaint()) {
TQValueList<RenderObject*>::const_iterator it; TQValueList<RenderObject*>::const_iterator it;
for ( it = m_dirtyChildren.begin(); it != m_dirtyChildren.end(); ++it ) for ( it = m_dirtyChildren.begin(); it != m_dirtyChildren.end(); ++it )
(*it)->tqrepaint(); (*it)->repaint();
} }
//kdDebug(6040) << "scheduled deferred repaints: " << m_dirtyChildren.count() << " needed full tqrepaint: " << needsFullRepaint() << endl; //kdDebug(6040) << "scheduled deferred repaints: " << m_dirtyChildren.count() << " needed full repaint: " << needsFullRepaint() << endl;
m_dirtyChildren.clear(); m_dirtyChildren.clear();
} }
void RenderCanvas::tqrepaint(Priority p) void RenderCanvas::repaint(Priority p)
{ {
if (m_view && !m_staticMode) { if (m_view && !m_staticMode) {
if (p == RealtimePriority) { if (p == RealtimePriority) {
@ -567,7 +567,7 @@ void RenderCanvas::setSelection(RenderObject *s, int sp, RenderObject *e, int ep
TQRect updateRect; TQRect updateRect;
// Don't use tqrepaint() because it will cause all rects to // Don't use repaint() because it will cause all rects to
// be united (see khtmlview::scheduleRepaint()). Instead // be united (see khtmlview::scheduleRepaint()). Instead
// just draw damage rects for objects that have a change // just draw damage rects for objects that have a change
// in selection state. // in selection state.
@ -651,9 +651,9 @@ void RenderCanvas::clearSelection(bool doRepaint)
{ {
if (o->selectionState()!=SelectionNone) if (o->selectionState()!=SelectionNone)
if (doRepaint) if (doRepaint)
o->tqrepaint(); o->repaint();
o->setSelectionState(SelectionNone); o->setSelectionState(SelectionNone);
o->tqrepaint(); o->repaint();
RenderObject* no; RenderObject* no;
if ( !(no = o->firstChild()) ) if ( !(no = o->firstChild()) )
if ( !(no = o->nextSibling()) ) if ( !(no = o->nextSibling()) )
@ -669,7 +669,7 @@ void RenderCanvas::clearSelection(bool doRepaint)
if (m_selectionEnd) { if (m_selectionEnd) {
m_selectionEnd->setSelectionState(SelectionNone); m_selectionEnd->setSelectionState(SelectionNone);
if (doRepaint) if (doRepaint)
m_selectionEnd->tqrepaint(); m_selectionEnd->repaint();
} }
// set selection start & end to 0 // set selection start & end to 0

@ -61,7 +61,7 @@ public:
KHTMLView *view() const { return m_view; } KHTMLView *view() const { return m_view; }
virtual void tqrepaint(Priority p=NormalPriority); virtual void repaint(Priority p=NormalPriority);
virtual void repaintRectangle(int x, int y, int w, int h, Priority p=NormalPriority, bool f=false); virtual void repaintRectangle(int x, int y, int w, int h, Priority p=NormalPriority, bool f=false);
void repaintViewRectangle(int x, int y, int w, int h, bool asap=false); void repaintViewRectangle(int x, int y, int w, int h, bool asap=false);
bool needsFullRepaint() const; bool needsFullRepaint() const;

@ -170,11 +170,11 @@ RenderObject* RenderContainer::removeChildNode(RenderObject* oldChild)
KHTMLAssert(oldChild->parent() == this); KHTMLAssert(oldChild->parent() == this);
// So that we'll get the appropriate dirty bit set (either that a normal flow child got yanked or // So that we'll get the appropriate dirty bit set (either that a normal flow child got yanked or
// that a positioned child got yanked). We also tqrepaint, so that the area exposed when the child // that a positioned child got yanked). We also repaint, so that the area exposed when the child
// disappears gets repainted properly. // disappears gets repainted properly.
if ( document()->renderer() ) { if ( document()->renderer() ) {
oldChild->setNeedsLayoutAndMinMaxRecalc(); oldChild->setNeedsLayoutAndMinMaxRecalc();
oldChild->tqrepaint(); oldChild->repaint();
// Keep our layer hierarchy updated. // Keep our layer hierarchy updated.
oldChild->removeLayers(enclosingLayer()); oldChild->removeLayers(enclosingLayer());

@ -267,7 +267,7 @@ bool RenderFlow::hitTestLines(NodeInfo& i, int x, int y, int tx, int ty, HitTest
} }
void RenderFlow::tqrepaint(Priority prior) void RenderFlow::repaint(Priority prior)
{ {
if (isInlineFlow()) { if (isInlineFlow()) {
// Find our leftmost position. // Find our leftmost position.
@ -280,7 +280,7 @@ void RenderFlow::tqrepaint(Priority prior)
if (curr == firstLineBox() || curr->xPos() < left) if (curr == firstLineBox() || curr->xPos() < left)
left = curr->xPos(); left = curr->xPos();
// Now tqinvalidate a rectangle. // Now invalidate a rectangle.
int ow = style() ? style()->outlineSize() : 0; int ow = style() ? style()->outlineSize() : 0;
// We need to add in the relative position offsets of any inlines (including us) up to our // We need to add in the relative position offsets of any inlines (including us) up to our
@ -306,7 +306,7 @@ void RenderFlow::tqrepaint(Priority prior)
effectiveWidth()+ow*2, effectiveHeight()+ow*2, prior); effectiveWidth()+ow*2, effectiveHeight()+ow*2, prior);
} }
else else
return RenderBox::tqrepaint(prior); return RenderBox::repaint(prior);
} }
} }

@ -69,7 +69,7 @@ public:
void paintLines(PaintInfo& i, int _tx, int _ty); void paintLines(PaintInfo& i, int _tx, int _ty);
bool hitTestLines(NodeInfo& i, int x, int y, int tx, int ty, HitTestAction hitTestAction); bool hitTestLines(NodeInfo& i, int x, int y, int tx, int ty, HitTestAction hitTestAction);
virtual void tqrepaint(Priority p=NormalPriority); virtual void repaint(Priority p=NormalPriority);
virtual int highestPosition(bool includeOverflowInterior=true, bool includeSelf=true) const; virtual int highestPosition(bool includeOverflowInterior=true, bool includeSelf=true) const;
virtual int lowestPosition(bool includeOverflowInterior=true, bool includeSelf=true) const; virtual int lowestPosition(bool includeOverflowInterior=true, bool includeSelf=true) const;

@ -416,7 +416,7 @@ void RenderImage::notifyFinished(CachedObject *finishedObj)
if ( ( m_cachedImage == finishedObj || m_oldImage == finishedObj ) && m_oldImage ) { if ( ( m_cachedImage == finishedObj || m_oldImage == finishedObj ) && m_oldImage ) {
m_oldImage->deref( this ); m_oldImage->deref( this );
m_oldImage = 0; m_oldImage = 0;
tqrepaint(); repaint();
} }
RenderReplaced::notifyFinished(finishedObj); RenderReplaced::notifyFinished(finishedObj);

@ -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->tqat(i); RenderLayer* child = m_negZOrderList->at(i);
r += child->paintedRegion(rootLayer); r += child->paintedRegion(rootLayer);
} }
} }
@ -188,19 +188,19 @@ 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->tqat(i); RenderLayer* child = m_posZOrderList->at(i);
r += child->paintedRegion(rootLayer); r += child->paintedRegion(rootLayer);
} }
} }
return r; return r;
} }
void RenderLayer::tqrepaint( Priority p, bool markForRepaint ) void RenderLayer::repaint( Priority p, bool markForRepaint )
{ {
if (markForRepaint && m_markedForRepaint) if (markForRepaint && m_markedForRepaint)
return; return;
for (RenderLayer* child = firstChild(); child; child = child->nextSibling()) for (RenderLayer* child = firstChild(); child; child = child->nextSibling())
child->tqrepaint( p, markForRepaint ); child->repaint( p, markForRepaint );
TQRect layerBounds, damageRect, fgrect; TQRect layerBounds, damageRect, fgrect;
calculateRects(renderer()->canvas()->layer(), renderer()->viewRect(), layerBounds, damageRect, fgrect); calculateRects(renderer()->canvas()->layer(), renderer()->viewRect(), layerBounds, damageRect, fgrect);
m_visibleRect = damageRect.intersect( layerBounds ); m_visibleRect = damageRect.intersect( layerBounds );
@ -213,7 +213,7 @@ void RenderLayer::tqrepaint( Priority p, bool markForRepaint )
void RenderLayer::updateLayerPositions(RenderLayer* rootLayer, bool doFullRepaint, bool checkForRepaint) void RenderLayer::updateLayerPositions(RenderLayer* rootLayer, bool doFullRepaint, bool checkForRepaint)
{ {
if (doFullRepaint) { if (doFullRepaint) {
m_object->tqrepaint(); m_object->repaint();
checkForRepaint = doFullRepaint = false; checkForRepaint = doFullRepaint = false;
} }
@ -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->tqat(i); RenderLayer* child = m_posZOrderList->at(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);
@ -537,7 +537,7 @@ void RenderLayer::checkInlineRelOffset(const RenderObject* o, int& x, int& y)
y += sy; y += sy;
} }
void RenderLayer::scrollToOffset(int x, int y, bool updateScrollbars, bool tqrepaint) void RenderLayer::scrollToOffset(int x, int y, bool updateScrollbars, bool repaint)
{ {
if (renderer()->style()->overflowX() != OMARQUEE || !renderer()->hasOverflowClip()) { if (renderer()->style()->overflowX() != OMARQUEE || !renderer()->hasOverflowClip()) {
if (x < 0) x = 0; if (x < 0) x = 0;
@ -569,9 +569,9 @@ void RenderLayer::scrollToOffset(int x, int y, bool updateScrollbars, bool tqrep
// Fire the scroll DOM event. // Fire the scroll DOM event.
m_object->element()->dispatchHTMLEvent(EventImpl::SCROLL_EVENT, true, false); m_object->element()->dispatchHTMLEvent(EventImpl::SCROLL_EVENT, true, false);
// Just schedule a full tqrepaint of our object. // Just schedule a full repaint of our object.
if (tqrepaint) if (repaint)
m_object->tqrepaint(RealtimePriority); m_object->repaint(RealtimePriority);
if (updateScrollbars) { if (updateScrollbars) {
if (m_hBar) if (m_hBar)
@ -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->tqat(i); RenderLayer* child = m_negZOrderList->at(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->tqat(i); RenderLayer* child = m_posZOrderList->at(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->tqat(i); RenderLayer* child = m_posZOrderList->at(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->tqat(i); RenderLayer* child = m_negZOrderList->at(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->tqat(j); RenderLayer* elt = buffer->at(j);
RenderLayer* elt2 = buffer->tqat(j+1); RenderLayer* elt2 = buffer->at(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->tqat(mid-1); RenderLayer* elt = buffer->at(mid-1);
RenderLayer* elt2 = buffer->tqat(mid); RenderLayer* elt2 = buffer->at(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->tqat(i1); elt = buffer->at(i1);
elt2 = buffer->tqat(i2); elt2 = buffer->at(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->tqat(i1); elt = buffer->at(i1);
} }
else { else {
mergeBuffer->insert(mergeBuffer->count(), elt2); mergeBuffer->insert(mergeBuffer->count(), elt2);
i2++; i2++;
if (i2 < end) if (i2 < end)
elt2 = buffer->tqat(i2); elt2 = buffer->at(i2);
} }
} }
for (uint i = start; i < end; i++) for (uint i = start; i < end; i++)
buffer->insert(i, mergeBuffer->tqat(i-start)); buffer->insert(i, mergeBuffer->at(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->tqat(i), paintDirtyRect, indent ); writeLayers(ts, rootLayer, negList->at(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->tqat(i), paintDirtyRect, indent); writeLayers(ts, rootLayer, posList->at(i), paintDirtyRect, indent);
} }
} }

@ -190,7 +190,7 @@ public:
void checkInlineRelOffset(const RenderObject* o, int& x, int& y); void checkInlineRelOffset(const RenderObject* o, int& x, int& y);
short scrollXOffset() { return m_scrollX; } short scrollXOffset() { return m_scrollX; }
int scrollYOffset() { return m_scrollY; } int scrollYOffset() { return m_scrollY; }
void scrollToOffset(int x, int y, bool updateScrollbars = true, bool tqrepaint = true); void scrollToOffset(int x, int y, bool updateScrollbars = true, bool repaint = true);
void scrollToXOffset(int x) { scrollToOffset(x, m_scrollY); } void scrollToXOffset(int x) { scrollToOffset(x, m_scrollY); }
void scrollToYOffset(int y) { scrollToOffset(m_scrollX, y); } void scrollToYOffset(int y) { scrollToOffset(m_scrollX, y); }
void showScrollbar(Qt::Orientation, bool); void showScrollbar(Qt::Orientation, bool);
@ -202,7 +202,7 @@ public:
void paintScrollbars(RenderObject::PaintInfo& pI); void paintScrollbars(RenderObject::PaintInfo& pI);
void checkScrollbarsAfterLayout(); void checkScrollbarsAfterLayout();
void slotValueChanged(int); void slotValueChanged(int);
void tqrepaint(Priority p=NormalPriority, bool markForRepaint = false); void repaint(Priority p=NormalPriority, bool markForRepaint = false);
void updateScrollPositionFromScrollbars(); void updateScrollPositionFromScrollbars();
void updateLayerPosition(); void updateLayerPosition();

@ -535,9 +535,9 @@ bool RenderObject::hasStaticY() const
void RenderObject::setPixmap(const TQPixmap&, const TQRect& /*r*/, CachedImage* image) void RenderObject::setPixmap(const TQPixmap&, const TQRect& /*r*/, CachedImage* image)
{ {
//tqrepaint bg when it finished loading //repaint bg when it finished loading
if(image && parent() && style() && style()->backgroundLayers()->containsImage(image)) { if(image && parent() && style() && style()->backgroundLayers()->containsImage(image)) {
isBody() ? canvas()->tqrepaint() : tqrepaint(); isBody() ? canvas()->repaint() : repaint();
} }
} }
@ -1283,11 +1283,11 @@ void RenderObject::setStyle(RenderStyle *style)
m_style->outlineWidth() > style->outlineWidth() || m_style->outlineWidth() > style->outlineWidth() ||
(!m_style->hidesOverflow() && style->hidesOverflow()) || (!m_style->hidesOverflow() && style->hidesOverflow()) ||
( m_style->hasClip() && !(m_style->clip() == style->clip()) ) ) ) { ( m_style->hasClip() && !(m_style->clip() == style->clip()) ) ) ) {
// schedule a tqrepaint with the old style // schedule a repaint with the old style
if (layer() && !isInlineFlow()) if (layer() && !isInlineFlow())
layer()->tqrepaint(pri); layer()->repaint(pri);
else else
tqrepaint(pri); repaint(pri);
} }
if ( ( isFloating() && m_style->floating() != style->floating() ) || if ( ( isFloating() && m_style->floating() != style->floating() ) ||
@ -1345,7 +1345,7 @@ void RenderObject::setStyle(RenderStyle *style)
} }
setNeedsLayoutAndMinMaxRecalc(); setNeedsLayoutAndMinMaxRecalc();
} else if (!isText() && d >= RenderStyle::Visible) { } else if (!isText() && d >= RenderStyle::Visible) {
// a tqrepaint is enough // a repaint is enough
if (layer()) { if (layer()) {
if (canvas() && canvas()->needsWidgetMasks()) { if (canvas() && canvas()->needsWidgetMasks()) {
// update our widget masks // update our widget masks
@ -1357,9 +1357,9 @@ void RenderObject::setStyle(RenderStyle *style)
} }
} }
if (layer() && !isInlineFlow()) if (layer() && !isInlineFlow())
layer()->tqrepaint(pri); layer()->repaint(pri);
else else
tqrepaint(pri); repaint(pri);
} }
} }
} }
@ -1428,9 +1428,9 @@ void RenderObject::repaintDuringLayout()
if (canvas()->needsFullRepaint() || isText()) if (canvas()->needsFullRepaint() || isText())
return; return;
if (layer() && !isInlineFlow()) { if (layer() && !isInlineFlow()) {
layer()->tqrepaint( NormalPriority, true ); layer()->repaint( NormalPriority, true );
} else { } else {
tqrepaint(); repaint();
canvas()->deferredRepaint( this ); canvas()->deferredRepaint( this );
} }
} }
@ -1850,7 +1850,7 @@ short RenderObject::getVerticalPosition( bool firstLine, RenderObject* ref ) con
bool checkParent = ref->isInline() && !ref->isReplacedBlock() && bool checkParent = ref->isInline() && !ref->isReplacedBlock() &&
!( ref->style()->verticalAlign() == TOP || ref->style()->verticalAlign() == BOTTOM ); !( ref->style()->verticalAlign() == TOP || ref->style()->verticalAlign() == BOTTOM );
vpos = checkParent ? ref->verticalPositionHint( firstLine ) : 0; vpos = checkParent ? ref->verticalPositionHint( firstLine ) : 0;
// don't allow elements nested inside text-top to have a different vtqalignment. // don't allow elements nested inside text-top to have a different valignment.
if ( va == BASELINE ) if ( va == BASELINE )
return vpos; return vpos;
else if ( va == LENGTH ) else if ( va == LENGTH )

@ -441,7 +441,7 @@ public:
void layoutIfNeeded() { if (needsLayout()) layout(); } void layoutIfNeeded() { if (needsLayout()) layout(); }
// used for element state updates that can not be fixed with a // used for element state updates that can not be fixed with a
// tqrepaint and do not need a relayout // repaint and do not need a relayout
virtual void updateFromElement() {} virtual void updateFromElement() {}
// Called immediately after render-object is inserted // Called immediately after render-object is inserted
@ -681,8 +681,8 @@ public:
// Used by collapsed border tables. // Used by collapsed border tables.
virtual void collectBorders(TQValueList<CollapsedBorderValue>& borderStyles); virtual void collectBorders(TQValueList<CollapsedBorderValue>& borderStyles);
// force a complete tqrepaint // force a complete repaint
virtual void tqrepaint(Priority p = NormalPriority) { if(m_parent) m_parent->tqrepaint(p); } virtual void repaint(Priority p = NormalPriority) { if(m_parent) m_parent->repaint(p); }
virtual void repaintRectangle(int x, int y, int w, int h, Priority p=NormalPriority, bool f=false); virtual void repaintRectangle(int x, int y, int w, int h, Priority p=NormalPriority, bool f=false);
virtual unsigned int length() const { return 1; } virtual unsigned int length() const { return 1; }
@ -747,7 +747,7 @@ public:
virtual int leftmostPosition(bool /*includeOverflowInterior*/=true, bool /*includeSelf*/=true) const { return 0; } virtual int leftmostPosition(bool /*includeOverflowInterior*/=true, bool /*includeSelf*/=true) const { return 0; }
virtual int highestPosition(bool /*includeOverflowInterior*/=true, bool /*includeSelf*/=true) const { return 0; } virtual int highestPosition(bool /*includeOverflowInterior*/=true, bool /*includeSelf*/=true) const { return 0; }
// recursively tqinvalidate current layout // recursively invalidate current layout
// unused: void invalidateLayout(); // unused: void invalidateLayout();
virtual void calcVerticalMargins() {} virtual void calcVerticalMargins() {}

@ -183,7 +183,7 @@ bool RenderWidget::event( TQEvent *e )
return true; return true;
TQWidgetResizeEvent *re = static_cast<TQWidgetResizeEvent *>(e); TQWidgetResizeEvent *re = static_cast<TQWidgetResizeEvent *>(e);
m_widget->resize( re->w, re->h ); m_widget->resize( re->w, re->h );
tqrepaint(); repaint();
} }
// eat all events - except if this is a frame (in which case KHTMLView handles it all) // eat all events - except if this is a frame (in which case KHTMLView handles it all)
if ( ::tqqt_cast<KHTMLView *>( m_widget ) ) if ( ::tqqt_cast<KHTMLView *>( m_widget ) )
@ -543,10 +543,10 @@ static void copyWidget(const TQRect& r, TQPainter *p, TQWidget *widget, int tx,
} }
} }
} }
TQMemArray<TQRect> br = blit.tqrects(); TQMemArray<TQRect> br = blit.rects();
const int cnt = br.size(); const int cnt = br.size();
const bool external = p->tqdevice()->isExtDev(); const bool external = p->device()->isExtDev();
TQPixmap* const pm = PaintBuffer::grab( widget->size() ); TQPixmap* const pm = PaintBuffer::grab( widget->size() );
if (!pm) if (!pm)
{ {

@ -726,7 +726,7 @@ bool RenderStyle::inheritedNotEqual( RenderStyle *other ) const
CbLayout: The containing block of the object needs a relayout. CbLayout: The containing block of the object needs a relayout.
Layout: the RenderObject needs a relayout after the style change Layout: the RenderObject needs a relayout after the style change
Visible: The change is visible, but no relayout is needed Visible: The change is visible, but no relayout is needed
NonVisible: The object does need neither tqrepaint nor relayout after NonVisible: The object does need neither repaint nor relayout after
the change. the change.
### TODO: ### TODO:
@ -744,7 +744,7 @@ RenderStyle::Diff RenderStyle::diff( const RenderStyle *other ) const
// EUserInput _user_input : 2; as long as :enabled is not impl'd // EUserInput _user_input : 2; as long as :enabled is not impl'd
// ### this needs work to know more exactly if we need a relayout // ### this needs work to know more exactly if we need a relayout
// or just a tqrepaint // or just a repaint
// non-inherited attributes // non-inherited attributes
// DataRef<StyleBoxData> box; // DataRef<StyleBoxData> box;

@ -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.tqat(i)).width()); m += TQString("%1 ").arg((*borderStyles.at(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.tqat(i); InlineTextBox* s = m_lines.at(i);
if (s) if (s)
s->detach(arena); s->detach(arena);
m_lines.remove(i); m_lines.remove(i);
@ -1328,11 +1328,11 @@ short RenderText::width() const
return w; return w;
} }
void RenderText::tqrepaint(Priority p) void RenderText::repaint(Priority p)
{ {
RenderObject *cb = containingBlock(); RenderObject *cb = containingBlock();
if(cb) if(cb)
cb->tqrepaint(p); cb->repaint(p);
} }
bool RenderText::isFixedWidthFont() const bool RenderText::isFixedWidthFont() const
@ -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.tqat(i); TQChar c = s.at(i);
if (c == '\\') { if (c == '\\') {
result += "\\\\"; result += "\\\\";
} else if (c == '"') { } else if (c == '"') {

@ -247,7 +247,7 @@ public:
virtual short marginLeft() const { return style()->marginLeft().minWidth(0); } virtual short marginLeft() const { return style()->marginLeft().minWidth(0); }
virtual short marginRight() const { return style()->marginRight().minWidth(0); } virtual short marginRight() const { return style()->marginRight().minWidth(0); }
virtual void tqrepaint(Priority p=NormalPriority); virtual void repaint(Priority p=NormalPriority);
bool hasBreakableChar() const { return m_hasBreakableChar; } bool hasBreakableChar() const { return m_hasBreakableChar; }
const TQFontMetrics &metrics(bool firstLine) const; const TQFontMetrics &metrics(bool firstLine) const;

@ -4,14 +4,14 @@
</HEAD> </HEAD>
<BODY> <BODY>
<H1>Align Test 2</H1> <H1>Align Test 2</H1>
This page contains regression tests for vertical tqalignment of images. This page contains regression tests for vertical alignment of images.
Each test consist of a table with a colored background. Each test consist of a table with a colored background.
Within the table an empty image is shown with a border of 1 pixel around it. Within the table an empty image is shown with a border of 1 pixel around it.
<HR> <HR>
<TABLE width = 100%> <TABLE width = 100%>
<tr><td bgcolor="0000ff"> <tr><td bgcolor="0000ff">
<IMG SRC="unknown.gif" height=10 width=50 border=1> <IMG SRC="unknown.gif" height=10 width=50 border=1>
<FONT size=7>This image has no tqalignment</FONT> <FONT size=7>This image has no alignment</FONT>
</td></tr> </td></tr>
</TABLE> </TABLE>
<HR> <HR>
@ -39,7 +39,7 @@ Within the table an empty image is shown with a border of 1 pixel around it.
<TABLE width = 100%> <TABLE width = 100%>
<tr><td bgcolor="0000ff"> <tr><td bgcolor="0000ff">
<IMG SRC="unknown.gif" height=150 width=50 border=1> <IMG SRC="unknown.gif" height=150 width=50 border=1>
<FONT size=7>This image has no tqalignment</FONT> <FONT size=7>This image has no alignment</FONT>
<IMG SRC="unknown.gif" height=50 width=50 border=1> <IMG SRC="unknown.gif" height=50 width=50 border=1>
</td></tr> </td></tr>
</TABLE> </TABLE>
@ -68,7 +68,7 @@ Within the table an empty image is shown with a border of 1 pixel around it.
<TABLE width = 100%> <TABLE width = 100%>
<tr><td bgcolor="0000ff"> <tr><td bgcolor="0000ff">
<IMG SRC="unknown.gif" height=10 width=50 border=1> <IMG SRC="unknown.gif" height=10 width=50 border=1>
<FONT>This image has no tqalignment</FONT> <FONT>This image has no alignment</FONT>
</td></tr> </td></tr>
</TABLE> </TABLE>
<HR> <HR>
@ -96,7 +96,7 @@ Within the table an empty image is shown with a border of 1 pixel around it.
<TABLE width = 100%> <TABLE width = 100%>
<tr><td bgcolor="0000ff"> <tr><td bgcolor="0000ff">
<IMG SRC="unknown.gif" height=150 width=50 border=1> <IMG SRC="unknown.gif" height=150 width=50 border=1>
<FONT>This image has no tqalignment</FONT> <FONT>This image has no alignment</FONT>
<IMG SRC="unknown.gif" height=50 width=50 border=1> <IMG SRC="unknown.gif" height=50 width=50 border=1>
</td></tr> </td></tr>
</TABLE> </TABLE>

@ -13,11 +13,11 @@ Moving the mouse cursor over the image should show different destinations
<!-- =============== TOP IMAGE MAP =========== --> <!-- =============== TOP IMAGE MAP =========== -->
<MAP name="topbar"> <MAP name="topbar">
<AREA tqshape="rect" coords="90,0,120,18" href="http://www.kde.org/faq/kdefaq.html"> <AREA shape="rect" coords="90,0,120,18" href="http://www.kde.org/faq/kdefaq.html">
<AREA tqshape="rect" coords="130,0,205,18" href="ftp://ftp.kde.org/pub/kde/"> <AREA shape="rect" coords="130,0,205,18" href="ftp://ftp.kde.org/pub/kde/">
<AREA tqshape="rect" coords="215,0,295,18" href="http://www.kde.org/absolute_url.html"> <AREA shape="rect" coords="215,0,295,18" href="http://www.kde.org/absolute_url.html">
<AREA tqshape="rect" coords="305,0,355,18" href="relative_url_index.html"> <AREA shape="rect" coords="305,0,355,18" href="relative_url_index.html">
<AREA tqshape="default" nohref> <AREA shape="default" nohref>
</MAP> </MAP>
</BODY> </BODY>

@ -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.tqat( 0 ) == '\n' ) if ( text.at( 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;

@ -588,7 +588,7 @@ void NodeImpl::handleLocalEvents(EventImpl *evt, bool useCapture)
Event ev = evt; Event ev = evt;
// removeEventListener (e.g. called from a JS event listener) might // removeEventListener (e.g. called from a JS event listener) might
// tqinvalidate the item after the current iterator (which "it" is pointing to). // invalidate the item after the current iterator (which "it" is pointing to).
// So we make a copy of the list. // So we make a copy of the list.
TQValueList<RegisteredEventListener> listeners = *m_regdListeners.listeners; TQValueList<RegisteredEventListener> listeners = *m_regdListeners.listeners;
TQValueList<RegisteredEventListener>::iterator it; TQValueList<RegisteredEventListener>::iterator it;
@ -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->tqat(index); return m_contents->at(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()->tqat(); int offset = s.device()->at();
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()->tqat( offset ); s.device()->at( offset );
offset += size; offset += size;
// Load face from stream. // Load face from stream.
@ -964,7 +964,7 @@ KDE_EXPORT void kimgio_dds_read( TQImageIO *io )
if( fourcc != FOURCC_DDS ) { if( fourcc != FOURCC_DDS ) {
kdDebug(399) << "This is not a DDS file." << endl; kdDebug(399) << "This is not a DDS file." << endl;
io->setImage( TQImage() ); io->setImage( TQImage() );
io->seStatus( -1 ); io->setStatus( -1 );
return; return;
} }
@ -976,7 +976,7 @@ KDE_EXPORT void kimgio_dds_read( TQImageIO *io )
if( s.atEnd() || !IsValid( header ) ) { if( s.atEnd() || !IsValid( header ) ) {
kdDebug(399) << "This DDS file is not valid." << endl; kdDebug(399) << "This DDS file is not valid." << endl;
io->setImage( TQImage() ); io->setImage( TQImage() );
io->seStatus( -1 ); io->setStatus( -1 );
return; return;
} }
@ -984,7 +984,7 @@ KDE_EXPORT void kimgio_dds_read( TQImageIO *io )
if( !IsSupported( header ) ) { if( !IsSupported( header ) ) {
kdDebug(399) << "This DDS file is not supported." << endl; kdDebug(399) << "This DDS file is not supported." << endl;
io->setImage( TQImage() ); io->setImage( TQImage() );
io->seStatus( -1 ); io->setStatus( -1 );
return; return;
} }
@ -1002,12 +1002,12 @@ KDE_EXPORT void kimgio_dds_read( TQImageIO *io )
if( result == false ) { if( result == false ) {
kdDebug(399) << "Error loading DDS file." << endl; kdDebug(399) << "Error loading DDS file." << endl;
io->setImage( TQImage() ); io->setImage( TQImage() );
io->seStatus( -1 ); io->setStatus( -1 );
return; return;
} }
io->setImage( img ); io->setImage( img );
io->seStatus( 0 ); io->setStatus( 0 );
} }

@ -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->tqat(ps_offset) ) // Get offset of PostScript code in the MS-DOS EPS file. if ( !io->at(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->tqat(ps_offset); io->at(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
@ -234,7 +234,7 @@ KDE_EXPORT void kimgio_eps_read (TQImageIO *image)
TQImage myimage; TQImage myimage;
if( myimage.load (tmpFile.name()) ) { if( myimage.load (tmpFile.name()) ) {
image->setImage (myimage); image->setImage (myimage);
image->seStatus (0); image->setStatus (0);
kdDebug(399) << "kimgio EPS: success!" << endl; kdDebug(399) << "kimgio EPS: success!" << endl;
} }
else else
@ -290,5 +290,5 @@ KDE_EXPORT void kimgio_eps_write( TQImageIO *imageio )
inFile.close(); inFile.close();
imageio->seStatus(0); imageio->setStatus(0);
} }

@ -148,7 +148,7 @@ KDE_EXPORT void kimgio_exr_read( TQImageIO *io )
} }
io->setImage( image ); io->setImage( image );
io->seStatus( 0 ); io->setStatus( 0 );
} }
catch (const std::exception &exc) catch (const std::exception &exc)
{ {

@ -127,7 +127,7 @@ namespace { // Private.
if (val != 2) if (val != 2)
{ {
s.tqdevice()->tqat( s.tqdevice()->tqat() - 1 ); s.device()->at( s.device()->at() - 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;
@ -225,7 +225,7 @@ KDE_EXPORT void kimgio_hdr_read( TQImageIO * io )
{ {
kdDebug(399) << "Unknown HDR format." << endl; kdDebug(399) << "Unknown HDR format." << endl;
io->setImage( TQImage() ); io->setImage( TQImage() );
io->seStatus( -1 ); io->setStatus( -1 );
return; return;
} }
@ -238,7 +238,7 @@ KDE_EXPORT void kimgio_hdr_read( TQImageIO * io )
{ {
kdDebug(399) << "Invalid HDR file." << endl; kdDebug(399) << "Invalid HDR file." << endl;
io->setImage( TQImage() ); io->setImage( TQImage() );
io->seStatus( -1 ); io->setStatus( -1 );
return; return;
} }
@ -249,12 +249,12 @@ KDE_EXPORT void kimgio_hdr_read( TQImageIO * io )
{ {
kdDebug(399) << "Error loading HDR file." << endl; kdDebug(399) << "Error loading HDR file." << endl;
io->setImage( TQImage() ); io->setImage( TQImage() );
io->seStatus( -1 ); io->setStatus( -1 );
return; return;
} }
io->setImage( img ); io->setImage( img );
io->seStatus( 0 ); io->setStatus( 0 );
} }

@ -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()->tqat(); TQIODevice::Offset offset = io->ioDevice()->at();
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()->tqat( offset + selected->offset ); io->ioDevice()->at( offset + selected->offset );
TQImage icon; TQImage icon;
if ( loadFromDIB( stream, *selected, icon ) ) if ( loadFromDIB( stream, *selected, icon ) )
{ {
@ -306,7 +306,7 @@ extern "C" KDE_EXPORT void kimgio_ico_read( TQImageIO* io )
icon.setText( "X-HotspotY", 0, TQString::number( selected->hotspotY ) ); icon.setText( "X-HotspotY", 0, TQString::number( selected->hotspotY ) );
} }
io->setImage(icon); io->setImage(icon);
io->seStatus(0); io->setStatus(0);
} }
} }
@ -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()->tqat(); uint hdrPos = dib.device()->at();
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()->tqat() + sizeof(rec.dibOffset); rec.dibOffset = ico.device()->at() + sizeof(rec.dibOffset);
ico << rec.dibOffset; ico << rec.dibOffset;
BMP_INFOHDR dibHeader; BMP_INFOHDR dibHeader;
dib.device()->tqat(0); dib.device()->at(0);
dib >> dibHeader; dib >> dibHeader;
dibHeader.biHeight = io->image().height() << 1; dibHeader.biHeight = io->image().height() << 1;
dib.device()->tqat(0); dib.device()->at(0);
dib << dibHeader; dib << dibHeader;
ico.writeRawBytes(dibData.data(), dibData.size()); ico.writeRawBytes(dibData.data(), dibData.size());

@ -163,7 +163,7 @@ kimgio_jp2_read( TQImageIO* io )
if( gs.altimage ) jas_image_destroy( gs.altimage ); if( gs.altimage ) jas_image_destroy( gs.altimage );
io->setImage( image ); io->setImage( image );
io->seStatus( 0 ); io->setStatus( 0 );
} // kimgio_jp2_read } // kimgio_jp2_read
@ -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->tqat( 0 ) ) { delete ktempf; return; } if( !in->at( 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 ) {
@ -309,7 +309,7 @@ kimgio_jp2_write( TQImageIO* io )
// everything went fine // everything went fine
io->seStatus( IO_Ok ); io->setStatus( IO_Ok );
} // kimgio_jp2_write } // kimgio_jp2_write
#endif // HAVE_JASPER #endif // HAVE_JASPER

@ -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()->tqat() < 128 ) while ( s.device()->at() < 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 ] = static_cast<const char>(pixbuf.tqat(x)) + ( 1 << i ); pixbuf[ x ] = static_cast<const char>(pixbuf.at(x)) + ( 1 << i );
} }
uchar *p = img.scanLine( y ); uchar *p = img.scanLine( y );
@ -267,9 +267,9 @@ KDE_EXPORT void kimgio_pcx_read( TQImageIO *io )
TQDataStream s( io->ioDevice() ); TQDataStream s( io->ioDevice() );
s.setByteOrder( TQDataStream::LittleEndian ); s.setByteOrder( TQDataStream::LittleEndian );
if ( s.tqdevice()->size() < 128 ) if ( s.device()->size() < 128 )
{ {
io->seStatus( -1 ); io->setStatus( -1 );
return; return;
} }
@ -279,7 +279,7 @@ KDE_EXPORT void kimgio_pcx_read( TQImageIO *io )
if ( header.Manufacturer != 10 || s.atEnd()) if ( header.Manufacturer != 10 || s.atEnd())
{ {
io->seStatus( -1 ); io->setStatus( -1 );
return; return;
} }
@ -323,11 +323,11 @@ KDE_EXPORT void kimgio_pcx_read( TQImageIO *io )
if ( !img.isNull() ) if ( !img.isNull() )
{ {
io->setImage( img ); io->setImage( img );
io->seStatus( 0 ); io->setStatus( 0 );
} }
else else
{ {
io->seStatus( -1 ); io->setStatus( -1 );
} }
} }
@ -343,7 +343,7 @@ static void writeLine( TQDataStream &s, TQByteArray &buf )
count = 1; count = 1;
byte = buf[ i++ ]; byte = buf[ i++ ];
while ( ( i < size ) && ( TQChar(byte) == buf.tqat(i) ) && ( count < 63 ) ) while ( ( i < size ) && ( TQChar(byte) == buf.at(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 ].tqat(x/8) | 1 << ( 7-x%8 ); buf[ i ][ x/8 ] = buf[ i ].at(x/8) | 1 << ( 7-x%8 );
} }
for ( int i=0; i<4; ++i ) for ( int i=0; i<4; ++i )
@ -526,7 +526,7 @@ KDE_EXPORT void kimgio_pcx_write( TQImageIO *io )
writeImage24( img, s, header ); writeImage24( img, s, header );
} }
io->seStatus( 0 ); io->setStatus( 0 );
} }
/* vim: et sw=2 ts=2 /* vim: et sw=2 ts=2

@ -119,15 +119,15 @@ namespace { // Private.
// Skip mode data. // Skip mode data.
s >> tmp; s >> tmp;
s.tqdevice()->tqat( s.tqdevice()->tqat() + tmp ); s.device()->at( s.device()->at() + tmp );
// Skip image resources. // Skip image resources.
s >> tmp; s >> tmp;
s.tqdevice()->tqat( s.tqdevice()->tqat() + tmp ); s.device()->at( s.device()->at() + tmp );
// Skip the reserved data. // Skip the reserved data.
s >> tmp; s >> tmp;
s.tqdevice()->tqat( s.tqdevice()->tqat() + tmp ); s.device()->at( s.device()->at() + tmp );
// Find out if the data is compressed. // Find out if the data is compressed.
// Known values: // Known values:
@ -250,7 +250,7 @@ void kimgio_psd_read( TQImageIO *io )
if( s.atEnd() || !IsValid( header ) ) { if( s.atEnd() || !IsValid( header ) ) {
kdDebug(399) << "This PSD file is not valid." << endl; kdDebug(399) << "This PSD file is not valid." << endl;
io->setImage( TQImage() ); io->setImage( TQImage() );
io->seStatus( -1 ); io->setStatus( -1 );
return; return;
} }
@ -258,7 +258,7 @@ void kimgio_psd_read( TQImageIO *io )
if( !IsSupported( header ) ) { if( !IsSupported( header ) ) {
kdDebug(399) << "This PSD file is not supported." << endl; kdDebug(399) << "This PSD file is not supported." << endl;
io->setImage( TQImage() ); io->setImage( TQImage() );
io->seStatus( -1 ); io->setStatus( -1 );
return; return;
} }
@ -266,12 +266,12 @@ void kimgio_psd_read( TQImageIO *io )
if( !LoadPSD(s, header, img) ) { if( !LoadPSD(s, header, img) ) {
kdDebug(399) << "Error loading PSD file." << endl; kdDebug(399) << "Error loading PSD file." << endl;
io->setImage( TQImage() ); io->setImage( TQImage() );
io->seStatus( -1 ); io->setStatus( -1 );
return; return;
} }
io->setImage( img ); io->setImage( img );
io->seStatus( 0 ); io->setStatus( 0 );
} }

@ -38,12 +38,12 @@ KDE_EXPORT void kimgio_rgb_read(TQImageIO *io)
if (!sgi.readImage(img)) { if (!sgi.readImage(img)) {
io->setImage(TQImage()); io->setImage(TQImage());
io->seStatus(-1); io->setStatus(-1);
return; return;
} }
io->setImage(img); io->setImage(img);
io->seStatus(0); io->setStatus(0);
} }
@ -53,9 +53,9 @@ KDE_EXPORT void kimgio_rgb_write(TQImageIO *io)
TQImage img = io->image(); TQImage img = io->image();
if (!sgi.writeImage(img)) if (!sgi.writeImage(img))
io->seStatus(-1); io->setStatus(-1);
io->seStatus(0); io->setStatus(0);
} }

@ -324,13 +324,13 @@ KDE_EXPORT void kimgio_tga_read( TQImageIO *io )
// Read image header. // Read image header.
TgaHeader tga; TgaHeader tga;
s >> tga; s >> tga;
s.tqdevice()->tqat( TgaHeader::SIZE + tga.id_length ); s.device()->at( TgaHeader::SIZE + tga.id_length );
// Check image file format. // Check image file format.
if( s.atEnd() ) { if( s.atEnd() ) {
kdDebug(399) << "This TGA file is not valid." << endl; kdDebug(399) << "This TGA file is not valid." << endl;
io->setImage( TQImage() ); io->setImage( TQImage() );
io->seStatus( -1 ); io->setStatus( -1 );
return; return;
} }
@ -338,7 +338,7 @@ KDE_EXPORT void kimgio_tga_read( TQImageIO *io )
if( !IsSupported(tga) ) { if( !IsSupported(tga) ) {
kdDebug(399) << "This TGA file is not supported." << endl; kdDebug(399) << "This TGA file is not supported." << endl;
io->setImage( TQImage() ); io->setImage( TQImage() );
io->seStatus( -1 ); io->setStatus( -1 );
return; return;
} }
@ -349,13 +349,13 @@ KDE_EXPORT void kimgio_tga_read( TQImageIO *io )
if( result == false ) { if( result == false ) {
kdDebug(399) << "Error loading TGA file." << endl; kdDebug(399) << "Error loading TGA file." << endl;
io->setImage( TQImage() ); io->setImage( TQImage() );
io->seStatus( -1 ); io->setStatus( -1 );
return; return;
} }
io->setImage( img ); io->setImage( img );
io->seStatus( 0 ); io->setStatus( 0 );
} }
@ -385,6 +385,6 @@ KDE_EXPORT void kimgio_tga_write( TQImageIO *io )
s << TQ_UINT8( tqAlpha( color ) ); s << TQ_UINT8( tqAlpha( color ) );
} }
io->seStatus( 0 ); io->setStatus( 0 );
} }

@ -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->tqat(); off += dev->at();
else if ( whence == SEEK_END ) else if ( whence == SEEK_END )
off += dev->size(); off += dev->size();
if ( !dev->tqat( off ) ) if ( !dev->at( off ) )
return ( toff_t )-1; return ( toff_t )-1;
return dev->tqat(); return dev->at();
} }
static toff_t tiff_size( thandle_t handle ) static toff_t tiff_size( thandle_t handle )
@ -140,7 +140,7 @@ KDE_EXPORT void kimgio_tiff_read( TQImageIO *io )
TIFFClose( tiff ); TIFFClose( tiff );
io->setImage( image ); io->setImage( image );
io->seStatus ( 0 ); io->setStatus ( 0 );
} }
KDE_EXPORT void kimgio_tiff_write( TQImageIO * ) KDE_EXPORT void kimgio_tiff_write( TQImageIO * )

@ -42,7 +42,7 @@ KDE_EXPORT void kimgio_xcf_read(TQImageIO *io)
KDE_EXPORT void kimgio_xcf_write(TQImageIO *io) KDE_EXPORT void kimgio_xcf_write(TQImageIO *io)
{ {
kdDebug(399) << "XCF: write support not implemented" << endl; kdDebug(399) << "XCF: write support not implemented" << endl;
io->seStatus(-1); io->setStatus(-1);
} }
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
@ -127,14 +127,14 @@ void XCFImageFormat::readXCF(TQImageIO *io)
char tag[14]; char tag[14];
xcf_io.readRawBytes(tag, sizeof(tag)); xcf_io.readRawBytes(tag, sizeof(tag));
if (xcf_io.tqdevice()->status() != IO_Ok) { if (xcf_io.device()->status() != IO_Ok) {
kdDebug(399) << "XCF: read failure on header tag" << endl; kdDebug(399) << "XCF: read failure on header tag" << endl;
return; return;
} }
xcf_io >> xcf_image.width >> xcf_image.height >> xcf_image.type; xcf_io >> xcf_image.width >> xcf_image.height >> xcf_image.type;
if (xcf_io.tqdevice()->status() != IO_Ok) { if (xcf_io.device()->status() != IO_Ok) {
kdDebug(399) << "XCF: read failure on image info" << endl; kdDebug(399) << "XCF: read failure on image info" << endl;
return; return;
} }
@ -156,7 +156,7 @@ kdDebug() << tag << " " << xcf_image.width << " " << xcf_image.height << " " <<
xcf_io >> layer_offset; xcf_io >> layer_offset;
if (xcf_io.tqdevice()->status() != IO_Ok) { if (xcf_io.device()->status() != IO_Ok) {
kdDebug(399) << "XCF: read failure on layer offsets" << endl; kdDebug(399) << "XCF: read failure on layer offsets" << endl;
return; return;
} }
@ -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()->tqat(layer_offset); xcf_io.device()->at(layer_offset);
if (!loadLayer(xcf_io, xcf_image)) if (!loadLayer(xcf_io, xcf_image))
return; return;
@ -190,7 +190,7 @@ kdDebug() << tag << " " << xcf_image.width << " " << xcf_image.height << " " <<
} }
io->setImage(xcf_image.image); io->setImage(xcf_image.image);
io->seStatus(0); io->setStatus(0);
} }
@ -294,7 +294,7 @@ bool XCFImageFormat::loadProperty(TQDataStream& xcf_io, PropType& type, TQByteAr
xcf_io >> foo; xcf_io >> foo;
type=PropType(foo); // TODO urks type=PropType(foo); // TODO urks
if (xcf_io.tqdevice()->status() != IO_Ok) { if (xcf_io.device()->status() != IO_Ok) {
kdDebug(399) << "XCF: read failure on property type" << type << endl; kdDebug(399) << "XCF: read failure on property type" << type << endl;
return false; return false;
} }
@ -309,7 +309,7 @@ bool XCFImageFormat::loadProperty(TQDataStream& xcf_io, PropType& type, TQByteAr
if (type == PROP_COLORMAP) { if (type == PROP_COLORMAP) {
xcf_io >> size; xcf_io >> size;
if (xcf_io.tqdevice()->status() != IO_Ok) { if (xcf_io.device()->status() != IO_Ok) {
kdDebug(399) << "XCF: read failure on property " << type << " size" << endl; kdDebug(399) << "XCF: read failure on property " << type << " size" << endl;
return false; return false;
} }
@ -329,7 +329,7 @@ bool XCFImageFormat::loadProperty(TQDataStream& xcf_io, PropType& type, TQByteAr
xcf_io >> size >> factor >> digits; xcf_io >> size >> factor >> digits;
if (xcf_io.tqdevice()->status() != IO_Ok) { if (xcf_io.device()->status() != IO_Ok) {
kdDebug(399) << "XCF: read failure on property " << type << endl; kdDebug(399) << "XCF: read failure on property " << type << endl;
return false; return false;
} }
@ -337,7 +337,7 @@ bool XCFImageFormat::loadProperty(TQDataStream& xcf_io, PropType& type, TQByteAr
for (int i = 0; i < 5; i++) { for (int i = 0; i < 5; i++) {
xcf_io >> unit_strings; xcf_io >> unit_strings;
if (xcf_io.tqdevice()->status() != IO_Ok) { if (xcf_io.device()->status() != IO_Ok) {
kdDebug(399) << "XCF: read failure on property " << type << endl; kdDebug(399) << "XCF: read failure on property " << type << endl;
return false; return false;
} }
@ -354,7 +354,7 @@ bool XCFImageFormat::loadProperty(TQDataStream& xcf_io, PropType& type, TQByteAr
xcf_io.readRawBytes(data, size); xcf_io.readRawBytes(data, size);
} }
if (xcf_io.tqdevice()->status() != IO_Ok) { if (xcf_io.device()->status() != IO_Ok) {
kdDebug(399) << "XCF: read failure on property " << type << " data, size " << size << endl; kdDebug(399) << "XCF: read failure on property " << type << " data, size " << size << endl;
return false; return false;
} }
@ -382,7 +382,7 @@ bool XCFImageFormat::loadLayer(TQDataStream& xcf_io, XCFImage& xcf_image)
xcf_io >> layer.width >> layer.height >> layer.type >> layer.name; xcf_io >> layer.width >> layer.height >> layer.type >> layer.name;
if (xcf_io.tqdevice()->status() != IO_Ok) { if (xcf_io.device()->status() != IO_Ok) {
kdDebug(399) << "XCF: read failure on layer" << endl; kdDebug(399) << "XCF: read failure on layer" << endl;
return false; return false;
} }
@ -405,7 +405,7 @@ bool XCFImageFormat::loadLayer(TQDataStream& xcf_io, XCFImage& xcf_image)
// If there are any more layers, merge them into the final TQImage. // If there are any more layers, merge them into the final TQImage.
xcf_io >> layer.hierarchy_offset >> layer.mask_offset; xcf_io >> layer.hierarchy_offset >> layer.mask_offset;
if (xcf_io.tqdevice()->status() != IO_Ok) { if (xcf_io.device()->status() != IO_Ok) {
kdDebug(399) << "XCF: read failure on layer image offsets" << endl; kdDebug(399) << "XCF: read failure on layer image offsets" << endl;
return false; return false;
} }
@ -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()->tqat(layer.hierarchy_offset); xcf_io.device()->at(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()->tqat(layer.mask_offset); xcf_io.device()->at(layer.mask_offset);
if (!loadMask(xcf_io, layer)) if (!loadMask(xcf_io, layer))
return false; return false;
@ -739,7 +739,7 @@ bool XCFImageFormat::loadHierarchy(TQDataStream& xcf_io, Layer& layer)
xcf_io >> width >> height >> bpp >> offset; xcf_io >> width >> height >> bpp >> offset;
if (xcf_io.tqdevice()->status() != IO_Ok) { if (xcf_io.device()->status() != IO_Ok) {
kdDebug(399) << "XCF: read failure on layer " << layer.name << " image header" << endl; kdDebug(399) << "XCF: read failure on layer " << layer.name << " image header" << endl;
return false; return false;
} }
@ -752,19 +752,19 @@ bool XCFImageFormat::loadHierarchy(TQDataStream& xcf_io, Layer& layer)
do { do {
xcf_io >> junk; xcf_io >> junk;
if (xcf_io.tqdevice()->status() != IO_Ok) { if (xcf_io.device()->status() != IO_Ok) {
kdDebug(399) << "XCF: read failure on layer " << layer.name << " level offsets" << endl; kdDebug(399) << "XCF: read failure on layer " << layer.name << " level offsets" << endl;
return false; return false;
} }
} while (junk != 0); } while (junk != 0);
TQIODevice::Offset saved_pos = xcf_io.tqdevice()->tqat(); TQIODevice::Offset saved_pos = xcf_io.device()->at();
xcf_io.tqdevice()->tqat(offset); xcf_io.device()->at(offset);
if (!loadLevel(xcf_io, layer, bpp)) if (!loadLevel(xcf_io, layer, bpp))
return false; return false;
xcf_io.tqdevice()->tqat(saved_pos); xcf_io.device()->at(saved_pos);
return true; return true;
} }
@ -785,7 +785,7 @@ bool XCFImageFormat::loadLevel(TQDataStream& xcf_io, Layer& layer, TQ_INT32 bpp)
xcf_io >> width >> height >> offset; xcf_io >> width >> height >> offset;
if (xcf_io.tqdevice()->status() != IO_Ok) { if (xcf_io.device()->status() != IO_Ok) {
kdDebug(399) << "XCF: read failure on layer " << layer.name << " level info" << endl; kdDebug(399) << "XCF: read failure on layer " << layer.name << " level info" << endl;
return false; return false;
} }
@ -801,11 +801,11 @@ bool XCFImageFormat::loadLevel(TQDataStream& xcf_io, Layer& layer, TQ_INT32 bpp)
return false; return false;
} }
TQIODevice::Offset saved_pos = xcf_io.tqdevice()->tqat(); TQIODevice::Offset saved_pos = xcf_io.device()->at();
TQ_UINT32 offset2; TQ_UINT32 offset2;
xcf_io >> offset2; xcf_io >> offset2;
if (xcf_io.tqdevice()->status() != IO_Ok) { if (xcf_io.device()->status() != IO_Ok) {
kdDebug(399) << "XCF: read failure on layer " << layer.name << " level offset look-ahead" << endl; kdDebug(399) << "XCF: read failure on layer " << layer.name << " level offset look-ahead" << endl;
return false; return false;
} }
@ -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()->tqat(offset); xcf_io.device()->at(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,10 +827,10 @@ bool XCFImageFormat::loadLevel(TQDataStream& xcf_io, Layer& layer, TQ_INT32 bpp)
layer.assignBytes(layer, i, j); layer.assignBytes(layer, i, j);
xcf_io.tqdevice()->tqat(saved_pos); xcf_io.device()->at(saved_pos);
xcf_io >> offset; xcf_io >> offset;
if (xcf_io.tqdevice()->status() != IO_Ok) { if (xcf_io.device()->status() != IO_Ok) {
kdDebug(399) << "XCF: read failure on layer " << layer.name << " level offset" << endl; kdDebug(399) << "XCF: read failure on layer " << layer.name << " level offset" << endl;
return false; return false;
} }
@ -855,7 +855,7 @@ bool XCFImageFormat::loadMask(TQDataStream& xcf_io, Layer& layer)
xcf_io >> width >> height >> name; xcf_io >> width >> height >> name;
if (xcf_io.tqdevice()->status() != IO_Ok) { if (xcf_io.device()->status() != IO_Ok) {
kdDebug(399) << "XCF: read failure on mask info" << endl; kdDebug(399) << "XCF: read failure on mask info" << endl;
return false; return false;
} }
@ -868,12 +868,12 @@ bool XCFImageFormat::loadMask(TQDataStream& xcf_io, Layer& layer)
TQ_UINT32 hierarchy_offset; TQ_UINT32 hierarchy_offset;
xcf_io >> hierarchy_offset; xcf_io >> hierarchy_offset;
if (xcf_io.tqdevice()->status() != IO_Ok) { if (xcf_io.device()->status() != IO_Ok) {
kdDebug(399) << "XCF: read failure on mask image offset" << endl; kdDebug(399) << "XCF: read failure on mask image offset" << endl;
return false; return false;
} }
xcf_io.tqdevice()->tqat(hierarchy_offset); xcf_io.device()->at(hierarchy_offset);
layer.assignBytes = assignMaskBytes; layer.assignBytes = assignMaskBytes;
if (!loadHierarchy(xcf_io, layer)) if (!loadHierarchy(xcf_io, layer))
@ -919,7 +919,7 @@ bool XCFImageFormat::loadTileRLE(TQDataStream& xcf_io, uchar* tile, int image_si
xcf_io.readRawBytes((char*)xcfdata, data_length); xcf_io.readRawBytes((char*)xcfdata, data_length);
if (xcf_io.tqdevice()->status() != IO_Ok) { if (xcf_io.device()->status() != IO_Ok) {
delete[] xcfodata; delete[] xcfodata;
kdDebug(399) << "XCF: read failure on tile" << endl; kdDebug(399) << "XCF: read failure on tile" << endl;
return false; return false;

@ -94,7 +94,7 @@ KDE_EXPORT void kimgio_xv_read( TQImageIO *_imageio )
} }
_imageio->setImage( image ); _imageio->setImage( image );
_imageio->seStatus( 0 ); _imageio->setStatus( 0 );
free(block); free(block);
return; return;
@ -164,6 +164,6 @@ KDE_EXPORT void kimgio_xv_write( TQImageIO *imageio )
} }
delete[] buffer; delete[] buffer;
imageio->seStatus( 0 ); imageio->setStatus( 0 );
} }

@ -148,7 +148,7 @@ KACLListViewItem::KACLListViewItem( TQListView* parent,
qualifier( _qualifier ), isPartial( false ) qualifier( _qualifier ), isPartial( false )
{ {
m_pACLListView = dynamic_cast<KACLListView*>( parent ); m_pACLListView = dynamic_cast<KACLListView*>( parent );
tqrepaint(); repaint();
} }
@ -192,7 +192,7 @@ TQString KACLListViewItem::key( int, bool ) const
} }
void KACLListViewItem::paintCell( TQPainter* p, const TQColorGroup &cg, void KACLListViewItem::paintCell( TQPainter* p, const TQColorGroup &cg,
int column, int width, int tqalignment ) int column, int width, int alignment )
{ {
TQColorGroup mycg = cg; TQColorGroup mycg = cg;
if ( isDefault ) { if ( isDefault ) {
@ -204,7 +204,7 @@ void KACLListViewItem::paintCell( TQPainter* p, const TQColorGroup &cg,
mycg.setColor( TQColorGroup::Text, TQColor( 100, 100, 100 ) ); mycg.setColor( TQColorGroup::Text, TQColor( 100, 100, 100 ) );
p->setFont( font ); p->setFont( font );
} }
KListViewItem::paintCell( p, mycg, column, width, tqalignment ); KListViewItem::paintCell( p, mycg, column, width, alignment );
KACLListViewItem *below =0; KACLListViewItem *below =0;
if ( itemBelow() ) if ( itemBelow() )
@ -247,7 +247,7 @@ void KACLListViewItem::updatePermPixmaps()
setPixmap( 4, TQPixmap() ); setPixmap( 4, TQPixmap() );
} }
void KACLListViewItem::tqrepaint() void KACLListViewItem::repaint()
{ {
int idx = 0; int idx = 0;
switch ( type ) switch ( type )
@ -527,7 +527,7 @@ void EditACLEntryDialog::slotOk()
} }
if ( m_defaultCB ) if ( m_defaultCB )
m_item->isDefault = m_defaultCB->isChecked(); m_item->isDefault = m_defaultCB->isChecked();
m_item->tqrepaint(); m_item->repaint();
KDialogBase::slotOk(); KDialogBase::slotOk();
} }
@ -1019,7 +1019,7 @@ void KACLListView::slotRemoveEntry()
delete item; delete item;
} else { } else {
item->value = 0; item->value = 0;
item->tqrepaint(); item->repaint();
} }
if ( !itemWasDefault ) if ( !itemWasDefault )
calculateEffectiveRights(); calculateEffectiveRights();
@ -1030,7 +1030,7 @@ void KACLListView::slotRemoveEntry()
|| item->type == Group || item->type == Group
|| item->type == Others ) ) { || item->type == Others ) ) {
item->value = 0; item->value = 0;
item->tqrepaint(); item->repaint();
} else { } else {
delete item; delete item;
} }

@ -186,10 +186,10 @@ public:
void togglePerm( acl_perm_t perm ); void togglePerm( acl_perm_t perm );
virtual void paintCell( TQPainter *p, const TQColorGroup &cg, virtual void paintCell( TQPainter *p, const TQColorGroup &cg,
int column, int width, int tqalignment ); int column, int width, int alignment );
void updatePermPixmaps(); void updatePermPixmaps();
void tqrepaint(); void repaint();
KACLListView::EntryType type; KACLListView::EntryType type;
unsigned short value; unsigned short value;

@ -391,7 +391,7 @@ void KDirSelectDialog::slotComboTextChanged( const TQString& text )
{ {
item->setSelected( false ); item->setSelected( false );
// 2002/12/27, deselected item is not repainted, so force it // 2002/12/27, deselected item is not repainted, so force it
item->tqrepaint(); item->repaint();
} }
} }

@ -170,7 +170,7 @@ KEncodingFileDialog::Result KEncodingFileDialog::getSaveFileNameAndEncoding(cons
TQWidget *parent, TQWidget *parent,
const TQString& caption) const TQString& caption)
{ {
bool specialDir = dir.tqat(0) == ':'; bool specialDir = dir.at(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.tqat(0) == ':'; bool specialDir = dir.at(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);

@ -317,7 +317,7 @@ void KFileDetailView::updateView( const KFileItem *i )
item->init(); item->init();
setSortingKey( item, i ); setSortingKey( item, i );
//item->tqrepaint(); // only repaints if visible //item->repaint(); // only repaints if visible
} }
void KFileDetailView::setSortingKey( KFileListViewItem *item, void KFileDetailView::setSortingKey( KFileListViewItem *item,

@ -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.tqat(0) == ':'; bool specialDir = dir.at(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.tqat(0) == ':'; bool specialDir = dir.at(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.tqat(0) == ':'; bool specialDir = dir.at(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.tqat (0) == '.') if (nativeExtension.at (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.tqat( 0 ) == '*' && pattern.find( '*' , 1 ) == -1 ) if ( !pattern.isEmpty() && pattern.at( 0 ) == '*' && pattern.find( '*' , 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.tqat(currentItem()); f = *filters.at(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
} }

@ -338,7 +338,7 @@ void KFileIconView::insertItem( KFileItem *i )
KFileView::insertItem( i ); KFileView::insertItem( 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 repaint,
// we disable updates on the IconView for a while. // we disable updates on the IconView for a while.
qview->setUpdatesEnabled( false ); qview->setUpdatesEnabled( false );
KFileIconViewItem *item = new KFileIconViewItem( qview, i ); KFileIconViewItem *item = new KFileIconViewItem( qview, i );
@ -450,7 +450,7 @@ void KFileIconView::updateView( bool b )
if ( !item->pixmapSize().isNull() ) if ( !item->pixmapSize().isNull() )
item->setPixmapSize( TQSize( 0, 0 ) ); item->setPixmapSize( TQSize( 0, 0 ) );
} }
// recalculate item parameters but avoid an in-place tqrepaint // recalculate item parameters but avoid an in-place repaint
item->setPixmap( (item->fileInfo())->pixmap( myIconSize ), true, false ); item->setPixmap( (item->fileInfo())->pixmap( myIconSize ), true, false );
item = static_cast<KFileIconViewItem *>(item->nextItem()); item = static_cast<KFileIconViewItem *>(item->nextItem());
} while ( item != 0L ); } while ( item != 0L );
@ -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.tqat( type.length() - 1 ) == '*' ) { if ( type.at( 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;
@ -763,7 +763,7 @@ void KFileIconView::initItem( KFileIconViewItem *item, const KFileItem *i,
if ( updateTextAndPixmap ) if ( updateTextAndPixmap )
{ {
// this causes a tqrepaint of the item, which we want to avoid during // this causes a repaint of the item, which we want to avoid during
// directory listing, when all items are created. We want to paint all // directory listing, when all items are created. We want to paint all
// items at once, not every single item in that case. // items at once, not every single item in that case.
item->setText( i->text() , false, false ); item->setText( i->text() , false, false );

@ -149,7 +149,7 @@ void KFilePreview::updateView(bool b)
{ {
left->updateView(b); left->updateView(b);
if(preview) if(preview)
preview->tqrepaint(b); preview->repaint(b);
} }
void KFilePreview::updateView(const KFileItem *i) void KFilePreview::updateView(const KFileItem *i)

@ -342,7 +342,7 @@ void KFileTreeView::slotAutoOpenFolder()
return; return;
m_dropItem->setOpen( true ); m_dropItem->setOpen( true );
m_dropItem->tqrepaint(); m_dropItem->repaint();
} }

@ -258,7 +258,7 @@ sort_by_name:
void KFileView::updateView(bool f) void KFileView::updateView(bool f)
{ {
widget()->tqrepaint(f); widget()->repaint(f);
} }
void KFileView::updateView(const KFileItem *) void KFileView::updateView(const KFileItem *)

@ -146,11 +146,11 @@ public:
virtual void clear(); virtual void clear();
/** /**
* does a tqrepaint of the view. * does a repaint of the view.
* *
* The default implementation calls * The default implementation calls
* \code * \code
* widget()->tqrepaint(f) * widget()->repaint(f)
* \endcode * \endcode
**/ **/
virtual void updateView(bool f = true); virtual void updateView(bool f = true);

@ -137,7 +137,7 @@ void KIconCanvas::slotLoadFiles()
{ {
// Calling kapp->processEvents() makes the iconview flicker like hell // Calling kapp->processEvents() makes the iconview flicker like hell
// (it's being repainted once for every new item), so we don't do this. // (it's being repainted once for every new item), so we don't do this.
// Instead, we directly tqrepaint the progress bar without going through // Instead, we directly repaint the progress bar without going through
// the event-loop. We do that just once for every 10th item so that // the event-loop. We do that just once for every 10th item so that
// the progress bar doesn't flicker in turn. (pfeiffer) // the progress bar doesn't flicker in turn. (pfeiffer)
if ( emitProgress >= 10 ) { if ( emitProgress >= 10 ) {
@ -631,8 +631,8 @@ void KIconDialog::slotProgress(int p)
{ {
mpProgress->setProgress(p); mpProgress->setProgress(p);
// commented out the following since setProgress already paints ther // commented out the following since setProgress already paints ther
// progress bar. ->tqrepaint() only makes it flicker // progress bar. ->repaint() only makes it flicker
//mpProgress->tqrepaint(); //mpProgress->repaint();
} }
void KIconDialog::slotFinished() void KIconDialog::slotFinished()

@ -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.tqat(0) == '/' && KStandardDirs::exists( path ) ) if ( path.at(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.tqat(tmpurl.length() - 1) == '/') if ( tmpurl.at(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.tqat(0)=='*' && pattern.find('*',1)==-1) if (!pattern.isEmpty() && pattern.at(0)=='*' && pattern.find('*',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
{ {

@ -1010,7 +1010,7 @@ KURL KURLBarItemDialog::url() const
{ {
TQString text = m_urlEdit->url(); TQString text = m_urlEdit->url();
KURL u; KURL u;
if ( text.tqat(0) == '/' ) if ( text.at(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.tqat(0) == '/' ) //if ( url.at(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.tqat( id ); item = defaultList.at( id );
insertURLItem( item ); insertURLItem( item );
} }
} }

@ -273,7 +273,7 @@ void DefaultProgress::slotPercent( KIO::Job*, unsigned long percent )
void DefaultProgress::slotInfoMessage( KIO::Job*, const TQString & msg ) void DefaultProgress::slotInfoMessage( KIO::Job*, const TQString & msg )
{ {
speedLabel->setText( msg ); speedLabel->setText( msg );
speedLabel->setAlignment( speedLabel->tqalignment() & ~TQt::WordBreak ); speedLabel->setAlignment( speedLabel->alignment() & ~TQt::WordBreak );
} }

@ -1413,7 +1413,7 @@ void StoredTransferJob::slotStoredData( KIO::Job *, const TQByteArray &data )
if ( data.size() == 0 ) if ( data.size() == 0 )
return; return;
unsigned int oldSize = m_data.size(); unsigned int oldSize = m_data.size();
m_data.tqresize( oldSize + data.size(), TQGArray::SpeedOptim ); m_data.resize( oldSize + data.size(), TQGArray::SpeedOptim );
memcpy( m_data.data() + oldSize, data.data(), data.size() ); memcpy( m_data.data() + oldSize, data.data(), data.size() );
} }
@ -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.tqat(0); GetRequest *entry = m_waitQueue.at(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->tqat( dev->tqat() + (2 - (dev->tqat() % 2)) % 2 ); // Ar headers are padded to byte boundary dev->at( dev->at() + (2 - (dev->at() % 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->tqat( dev->tqat() + size ); dev->at( dev->at() + 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->tqat(), size); entry = new KArchiveFile(this, name, mode, date, /*uid*/ 0, /*gid*/ 0, 0, dev->at(), 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->tqat( dev->tqat() + size ); // Skip contents dev->at( dev->at() + size ); // Skip contents
} }
delete[] ar_longnames; delete[] ar_longnames;

@ -90,7 +90,7 @@ KArchive::~KArchive()
bool KArchive::open( int mode ) bool KArchive::open( int mode )
{ {
if ( m_dev && !m_dev->tqopen( mode ) ) if ( m_dev && !m_dev->open( mode ) )
return false; return false;
if ( m_open ) if ( m_open )
@ -491,7 +491,7 @@ int KArchiveFile::size() const
TQByteArray KArchiveFile::data() const TQByteArray KArchiveFile::data() const
{ {
archive()->device()->tqat( m_pos ); archive()->device()->at( m_pos );
// Read content // Read content
TQByteArray arr( m_size ); TQByteArray arr( m_size );

@ -1781,7 +1781,7 @@ void KDirListerCache::printDebug()
<< " rootItem: " << ( itu.current()->rootItem ? itu.current()->rootItem->url() : KURL() ) << " rootItem: " << ( itu.current()->rootItem ? itu.current()->rootItem->url() : KURL() )
<< " autoUpdates refcount: " << itu.current()->autoUpdates << " autoUpdates refcount: " << itu.current()->autoUpdates
<< " complete: " << itu.current()->complete << " complete: " << itu.current()->complete
<< ( itu.current()->lstItems ? TQString(" with %1 items.").tqarg(itu.current()->lstItems->count()) : TQString(" lstItems=NULL") ) << endl; << ( itu.current()->lstItems ? TQString(" with %1 items.").arg(itu.current()->lstItems->count()) : TQString(" lstItems=NULL") ) << endl;
} }
kdDebug(7004) << "urlsCurrentlyHeld: " << endl; kdDebug(7004) << "urlsCurrentlyHeld: " << endl;
@ -1814,7 +1814,7 @@ void KDirListerCache::printDebug()
for ( ; itc.current() ; ++itc ) for ( ; itc.current() ; ++itc )
kdDebug(7004) << " " << itc.currentKey() << " rootItem: " kdDebug(7004) << " " << itc.currentKey() << " rootItem: "
<< ( itc.current()->rootItem ? itc.current()->rootItem->url().prettyURL() : TQString("NULL") ) << ( itc.current()->rootItem ? itc.current()->rootItem->url().prettyURL() : TQString("NULL") )
<< ( itc.current()->lstItems ? TQString(" with %1 items.").tqarg(itc.current()->lstItems->count()) : TQString(" lstItems=NULL") ) << endl; << ( itc.current()->lstItems ? TQString(" with %1 items.").arg(itc.current()->lstItems->count()) : TQString(" lstItems=NULL") ) << endl;
} }
#endif #endif

@ -100,18 +100,18 @@ KImageIOFormat::callLibFunc( bool read, TQImageIO *iio)
{ {
if (mLib.isEmpty()) if (mLib.isEmpty())
{ {
iio->seStatus(1); // Error iio->setStatus(1); // Error
return; return;
} }
TQString libpath = KLibLoader::findLibrary(mLib.ascii()); TQString libpath = KLibLoader::findLibrary(mLib.ascii());
if ( libpath.isEmpty()) if ( libpath.isEmpty())
{ {
iio->seStatus(1); // Error iio->setStatus(1); // Error
return; return;
} }
lt_dlhandle libhandle = lt_dlopen( TQFile::encodeName(libpath) ); lt_dlhandle libhandle = lt_dlopen( TQFile::encodeName(libpath) );
if (libhandle == 0) { if (libhandle == 0) {
iio->seStatus(1); // error iio->setStatus(1); // error
kdWarning() << "KImageIOFormat::callLibFunc: couldn't dlopen " << mLib << "(" << lt_dlerror() << ")" << endl; kdWarning() << "KImageIOFormat::callLibFunc: couldn't dlopen " << mLib << "(" << lt_dlerror() << ")" << endl;
return; return;
} }
@ -123,7 +123,7 @@ KImageIOFormat::callLibFunc( bool read, TQImageIO *iio)
lt_ptr func = lt_dlsym(libhandle, funcName.ascii()); lt_ptr func = lt_dlsym(libhandle, funcName.ascii());
if (func == NULL) { if (func == NULL) {
iio->seStatus(1); // error iio->setStatus(1); // error
kdWarning() << "couln't find " << funcName << " (" << lt_dlerror() << ")" << endl; kdWarning() << "couln't find " << funcName << " (" << lt_dlerror() << ")" << endl;
} }
mReadFunc = (void (*)(TQImageIO *))func; mReadFunc = (void (*)(TQImageIO *))func;
@ -134,7 +134,7 @@ KImageIOFormat::callLibFunc( bool read, TQImageIO *iio)
lt_ptr func = lt_dlsym(libhandle, funcName.ascii()); lt_ptr func = lt_dlsym(libhandle, funcName.ascii());
if (func == NULL) { if (func == NULL) {
iio->seStatus(1); // error iio->setStatus(1); // error
kdWarning() << "couln't find " << funcName << " (" << lt_dlerror() << ")" << endl; kdWarning() << "couln't find " << funcName << " (" << lt_dlerror() << ")" << endl;
} }
mWriteFunc = (void (*)(TQImageIO *))func; mWriteFunc = (void (*)(TQImageIO *))func;
@ -145,12 +145,12 @@ KImageIOFormat::callLibFunc( bool read, TQImageIO *iio)
if (mReadFunc) if (mReadFunc)
mReadFunc(iio); mReadFunc(iio);
else else
iio->seStatus(1); // Error iio->setStatus(1); // Error
else else
if (mWriteFunc) if (mWriteFunc)
mWriteFunc(iio); mWriteFunc(iio);
else else
iio->seStatus(1); // Error iio->setStatus(1); // Error
} }
@ -256,7 +256,7 @@ KImageIOFactory::readImage( TQImageIO *iio)
} }
if (!format || !format->bRead) if (!format || !format->bRead)
{ {
iio->seStatus(1); // error iio->setStatus(1); // error
return; return;
} }
@ -283,7 +283,7 @@ KImageIOFactory::writeImage( TQImageIO *iio)
} }
if (!format || !format->bWrite) if (!format || !format->bWrite)
{ {
iio->seStatus(1); // error iio->setStatus(1); // error
return; return;
} }

@ -56,7 +56,7 @@ public:
else else
ok = m_dev->open( m ); ok = m_dev->open( m );
if ( ok )*/ if ( ok )*/
m_dev->tqat( m_start ); // No concurrent access ! m_dev->at( 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->tqat() - m_start; } virtual Offset at() const { return m_dev->at() - 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->tqat( m_start + pos ); return m_dev->at( m_start + pos );
} }
virtual bool atEnd() const { return m_dev->atEnd() || m_dev->tqat() >= m_start + m_length; } virtual bool atEnd() const { return m_dev->atEnd() || m_dev->at() >= 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()->tqat(); int saveOffset = m_str->device()->at();
// 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()->tqat(saveOffset); saveOffset = m_str->device()->at(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()->tqat(m_initListOffset); m_str->device()->at(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()->tqat( m_offerListOffset ); str->device()->at( 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()->tqat(); int savedPos = str->device()->at();
// 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()->tqat( savedPos ); str->device()->at( 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()->tqat(); int saveOffset = m_str->device()->at();
// 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()->tqat(saveOffset); m_str->device()->at(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()->tqat( m_fastPatternOffset ); str->device()->at( 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()->tqat( ); TQ_INT32 fastOffset = str->device()->at( );
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()->tqat( middle * entrySize + fastOffset ); str->device()->at( 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()->tqat( m_otherPatternOffset ); str->device()->at( 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->tqat(0); return file->at(0);
} }
@ -114,7 +114,7 @@ KShred::fillpattern(unsigned char *data, unsigned int size)
} }
if (!flush()) if (!flush())
return false; return false;
return file->tqat(0); return file->at(0);
} }
@ -140,7 +140,7 @@ KShred::fillrandom()
} }
if (!flush()) if (!flush())
return false; return false;
return file->tqat(0); return file->at(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->tqat(), size ); dev->at(), 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->tqat() << " rest=" << rest << " skipping " << skip << endl; //kdDebug(7041) << "KTar::openArchive, at()=" << dev->at() << " rest=" << rest << " skipping " << skip << endl;
if (! dev->tqat( dev->tqat() + skip ) ) if (! dev->at( dev->at() + 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->tqat() - n; // Remember end of archive d->tarEnd = dev->at() - 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()->tqat(d->tarEnd); // Go to end of archive as might have moved with a read if ( mode() & IO_ReadWrite ) device()->at(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()->tqat(); if ( mode() & IO_ReadWrite ) d->tarEnd = device()->at();
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
@ -633,10 +633,10 @@ bool KTar::prepareWriting( const TQString& name, const TQString& user, const TQS
bool KTar::doneWriting( uint size ) bool KTar::doneWriting( uint size )
{ {
// Write tqalignment // Write alignment
int rest = size % 0x200; int rest = size % 0x200;
if ( mode() & IO_ReadWrite ) if ( mode() & IO_ReadWrite )
d->tarEnd = device()->tqat() + (rest ? 0x200 - rest : 0); // Record our new end of archive d->tarEnd = device()->at() + (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()->tqat(d->tarEnd); // Go to end of archive as might have moved with a read if ( mode() & IO_ReadWrite ) device()->at(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()->tqat(d->tarEnd); // Go to end of archive as might have moved with a read if ( mode() & IO_ReadWrite ) device()->at(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()->tqat(); if ( mode() & IO_ReadWrite ) d->tarEnd = device()->at();
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()->tqat(d->tarEnd); // Go to end of archive as might have moved with a read if ( mode() & IO_ReadWrite ) device()->at(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()->tqat(); if ( mode() & IO_ReadWrite ) d->tarEnd = device()->at();
return retval; return retval;
} }

@ -750,7 +750,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().tqat(0) != '~' ) || url.file().at(0) != '~' )
return false; return false;
if ( !isListedURL( CTUser ) ) { if ( !isListedURL( CTUser ) ) {
@ -782,7 +782,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().tqat(0) != '$' ) if ( url.file().at(0) != '$' )
return false; return false;
if ( !isListedURL( CTEnv ) ) { if ( !isListedURL( CTEnv ) ) {
@ -861,7 +861,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().tqat(0) != '.'; bool no_hidden_files = url.file().at(0) != '.';
// List files if needed // List files if needed
// //
@ -921,7 +921,7 @@ bool KURLCompletion::systemexeCompletion(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().tqat(0) != '.'; bool no_hidden_files = url.file().at(0) != '.';
// List files if needed // List files if needed
// //
@ -995,7 +995,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().tqat(0) != '.' ); bool no_hidden_files = ( url.file().at(0) != '.' );
// List files if needed // List files if needed
// //
@ -1365,7 +1365,7 @@ void KURLCompletion::postProcessMatch( TQString *match ) const
void KURLCompletion::adjustMatch( TQString& match ) const void KURLCompletion::adjustMatch( TQString& match ) const
{ {
if ( match.tqat( match.length()-1 ) != '/' ) if ( match.at( 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.tqat(0) == '/' ) if ( url.at(0) == '/' )
u.setPath( url ); u.setPath( url );
else else
u = url; u = url;

@ -394,7 +394,7 @@ bool KZip::openArchive( int mode )
// ReadWrite mode still uses TQFile for now; we'd need to copy to the tempfile, in fact. // ReadWrite mode still uses TQFile for now; we'd need to copy to the tempfile, in fact.
if ( !m_filename.isEmpty() ) { if ( !m_filename.isEmpty() ) {
setDevice( TQT_TQIODEVICE(new TQFile( m_filename )) ); setDevice( TQT_TQIODEVICE(new TQFile( m_filename )) );
if ( !device()->tqopen( mode ) ) if ( !device()->open( mode ) )
return false; return false;
} }
break; // continued below break; // continued below
@ -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->tqat() now : " << dev->tqat() << endl; kdDebug(7040) << "dev->at() now : " << dev->at() << endl;
n = dev->readBlock( buffer, 4 ); n = dev->readBlock( buffer, 4 );
if (n < 4) if (n < 4)
@ -449,7 +449,7 @@ kdDebug(7040) << "dev->tqat() now : " << dev->tqat() << 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->tqat( dev->tqat() + 2 ); // skip 'version needed to extract' dev->at( dev->at() + 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->tqat() now : " << dev->tqat() << 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->tqat() + extralen; unsigned int extraFieldEnd = dev->at() + 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->tqat() now : " << dev->tqat() << endl;
} }
// jump to end of extra field // jump to end of extra field
dev->tqat( extraFieldEnd ); dev->at( 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->tqat() now : " << dev->tqat() << 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->tqat( dev->tqat() + 12 ); // skip the 'data_descriptor' dev->at( dev->at() + 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->tqat( dev->tqat() - 4 ); // go back 4 bytes, so that the magic bytes can be found... dev->at( dev->at() - 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->tqat( dev->tqat() - 3 ); dev->at( dev->at() - 3 );
} }
} }
@ -611,14 +611,14 @@ kdDebug(7040) << "dev->tqat() now : " << dev->tqat() << 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->tqat( dev->tqat() + 12 ); // skip the 'data_descriptor' dev->at( dev->at() + 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->tqat( dev->tqat() - 4 ); dev->at( dev->at() - 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->tqat() now : " << dev->tqat() << endl;
} }
else else
{ {
// kdDebug(7040) << "before interesting dev->tqat(): " << dev->tqat() << endl; // kdDebug(7040) << "before interesting dev->at(): " << dev->at() << endl;
bool success; bool success;
success = dev->tqat( dev->tqat() + compr_size ); // can this fail ??? success = dev->at( dev->at() + compr_size ); // can this fail ???
/* kdDebug(7040) << "after interesting dev->tqat(): " << dev->tqat() << endl; /* kdDebug(7040) << "after interesting dev->at(): " << dev->at() << 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->tqat() now : " << dev->tqat() << 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->tqat() - 4; offset = dev->at() - 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->tqat() now : " << dev->tqat() << endl;
//calculate offset to next entry //calculate offset to next entry
offset += 46 + commlen + extralen + namelen; offset += 46 + commlen + extralen + namelen;
bool b = dev->tqat(offset); bool b = dev->at(offset);
Q_ASSERT( b ); Q_ASSERT( b );
if ( !b ) if ( !b )
return false; return false;
@ -832,12 +832,12 @@ kdDebug(7040) << "dev->tqat() now : " << dev->tqat() << 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->tqat( dev->tqat() - 4 ); // go back 4 bytes, so that the magic bytes can be found... dev->at( dev->at() - 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->tqat( dev->tqat() - 3 ); dev->at( dev->at() - 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()->tqat(); TQ_LONG centraldiroffset = device()->at();
//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()->tqat( it.current()->headerStart() + 14 ) ) if ( !device()->at( 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()->tqat( atbackup ); device()->at( 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()->tqat(); TQ_LONG centraldirendoffset = device()->at();
//kdDebug(7040) << "closearchive: centraldirendoffset: " << centraldirendoffset << endl; //kdDebug(7040) << "closearchive: centraldirendoffset: " << centraldirendoffset << endl;
//kdDebug(7040) << "closearchive: device()->tqat(): " << device()->tqat() << endl; //kdDebug(7040) << "closearchive: device()->at(): " << device()->at() << 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()->tqat( d->m_offset ) ) { if ( !device()->at( 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()->tqat() + 30 + name.length(), // start name, device()->at() + 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()->tqat() ); e->setHeaderStart( device()->at() );
//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()->tqat() << endl; //kdDebug(7040) << "getpos (at): " << device()->at() << 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()->tqat() - int csize = device()->at() -
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()->tqat(); d->m_offset = device()->at();
return true; return true;
} }

@ -92,7 +92,7 @@ public:
* } * }
* \endcode * \endcode
* *
* Of course, your user interface will still process exposure/tqrepaint * Of course, your user interface will still process exposure/repaint
* events during the download. * events during the download.
* *
* If the download fails, lastError() and lastErrorString() will be set. * If the download fails, lastError() and lastErrorString() will be set.

@ -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.tqat(0); job = protInfo->joblist.at(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.tqat(i); job = protInfo->joblist.at(i);
slave = findIdleSlave(protInfo, job, exact); slave = findIdleSlave(protInfo, job, exact);
if (!firstSlave) if (!firstSlave)
{ {

@ -30,7 +30,7 @@
<property name="scaledContents"> <property name="scaledContents">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>WordBreak|AlignVCenter|AlignLeft</set> <set>WordBreak|AlignVCenter|AlignLeft</set>
</property> </property>
<property name="wordwrap" stdset="0"> <property name="wordwrap" stdset="0">

@ -24,7 +24,7 @@
<property name="text"> <property name="text">
<string>You must now provide a password for the certificate request. Please choose a very secure password as this will be used to encrypt your private key.</string> <string>You must now provide a password for the certificate request. Please choose a very secure password as this will be used to encrypt your private key.</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>WordBreak|AlignVCenter|AlignLeft</set> <set>WordBreak|AlignVCenter|AlignLeft</set>
</property> </property>
<property name="wordwrap" stdset="0"> <property name="wordwrap" stdset="0">

@ -246,7 +246,7 @@ TQString KSSLCertificate::getMD5DigestFromKDEKey(const TQString &k) {
int pos = k.findRev('('); int pos = k.findRev('(');
if (pos != -1) { if (pos != -1) {
unsigned int len = k.length(); unsigned int len = k.length();
if (k.tqat(len-1) == ')') { if (k.at(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.tqat(0)); KSSLCertificate thisCert = *(cl.at(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.tqat(i)) != 0L) { while ((j = cipherList.at(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.tqat(0) == '\'') { if (recipient.at(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.tqat(0) == '\'') if (subject.at(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.findRef(cert) == -1) { if (elem.findRef(cert) == -1) {
unsigned int n = 0; unsigned int n = 0;
for(; n < elem.size(); n++) { for(; n < elem.size(); n++) {
if (!elem.tqat(n)) { if (!elem.at(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.tqat(n); KSSLCertificate *cert = elem.at(n);
if (cert) { if (cert) {
rc.append(cert->getKDEKey()); rc.append(cert->getKDEKey());
} }

@ -58,7 +58,7 @@
<property name="textFormat"> <property name="textFormat">
<enum>RichText</enum> <enum>RichText</enum>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>WordBreak|AlignCenter</set> <set>WordBreak|AlignCenter</set>
</property> </property>
</widget> </widget>
@ -83,7 +83,7 @@
<property name="textFormat"> <property name="textFormat">
<enum>RichText</enum> <enum>RichText</enum>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>WordBreak|AlignVCenter</set> <set>WordBreak|AlignVCenter</set>
</property> </property>
</widget> </widget>
@ -233,7 +233,7 @@
<property name="text"> <property name="text">
<string>Enter a new password:</string> <string>Enter a new password:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
<property name="buddy" stdset="0"> <property name="buddy" stdset="0">
@ -250,7 +250,7 @@
<property name="text"> <property name="text">
<string>Verify password:</string> <string>Verify password:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
<property name="buddy" stdset="0"> <property name="buddy" stdset="0">
@ -376,7 +376,7 @@
<property name="text"> <property name="text">
<string></string> <string></string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>WordBreak|AlignVCenter|AlignRight</set> <set>WordBreak|AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -403,7 +403,7 @@
<property name="textFormat"> <property name="textFormat">
<enum>RichText</enum> <enum>RichText</enum>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>WordBreak|AlignVCenter</set> <set>WordBreak|AlignVCenter</set>
</property> </property>
</widget> </widget>

@ -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->tqat() << endl; kdDebug() << "dev.at = " << dev->at() << endl;
//kdDebug() << "f.at = " << f.tqat() << endl; //kdDebug() << "f.at = " << f.at() << 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 + static_cast<const char>(u.tqat(i))) % 2147483563; hash = (hash * 12211 + static_cast<const char>(u.at(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.tqat(i) ); KURL u ( info.digestURI.at(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.tqat(0) >= TQChar('0')) && (_fqdn.tqat(0) <= TQChar('9'))) if ((_fqdn.at(0) >= TQChar('0')) && (_fqdn.at(0) <= TQChar('9')))
{ {
if (_fqdn.find(TQRegExp(IP_ADDRESS_EXPRESSION)) > -1) if (_fqdn.find(TQRegExp(IP_ADDRESS_EXPRESSION)) > -1)
{ {

@ -407,8 +407,8 @@ void kio_isoProtocol::getFile( const KIsoFile *isoFileEntry, const TQString &pat
ptrblock_bytes = (nblocks+1) * 4; ptrblock_bytes = (nblocks+1) * 4;
pointer_block=isoFileEntry->data( hdr->header_size << 2, ptrblock_bytes ); pointer_block=isoFileEntry->data( hdr->header_size << 2, ptrblock_bytes );
if (pointer_block.size() == ptrblock_bytes && if (pointer_block.size() == ptrblock_bytes &&
inbuf.tqresize(block_size2) && inbuf.resize(block_size2) &&
outbuf.tqresize(block_size)) { outbuf.resize(block_size)) {
pptr = pointer_block.data(); pptr = pointer_block.data();
} else { } else {

@ -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->tqat(start<<11)) { if (dev->at(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,8 +42,8 @@ TQByteArray KIsoFile::data(long long pos, int count) const {
TQByteArray r; TQByteArray r;
int rlen; int rlen;
if ( archive()->device()->tqat(position()+pos) && if ( archive()->device()->at(position()+pos) &&
r.tqresize( ((pos+count) < size()) ? count : size()-pos) ) { r.resize( ((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);
else if (rlen != (int)r.size()) r.resize(rlen); else if (rlen != (int)r.size()) r.resize(rlen);

@ -52,7 +52,7 @@ extern int kjsyyparse();
using namespace KJS; using namespace KJS;
namespace KJS { namespace KJS {
/* work around some strict tqalignment requirements /* work around some strict alignment requirements
for double variables on some architectures (e.g. PA-RISC) */ for double variables on some architectures (e.g. PA-RISC) */
typedef union { unsigned char b[8]; double d; } kjs_double_t; typedef union { unsigned char b[8]; double d; } kjs_double_t;

@ -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->tqat(pos); KMultiTabBarTab *tab=tabs->at(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->tqat(pos); KMultiTabBarTab *tab=tabs->at(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.tqat(i),0,this,0); disconnect(m_toolViewActions.at(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.tqat(i)); addList.append(m_toolViewActions.at(i));
} }
else else
addList.append(m_toolMenu); addList.append(m_toolMenu);

@ -182,7 +182,7 @@ void TabWidget::insertTab ( TQWidget * child, const TQString & label, int index)
KTabWidget::insertTab(child,label,index); KTabWidget::insertTab(child,label,index);
showPage(child); showPage(child);
maybeShow(); maybeShow();
tabBar()->tqrepaint(); tabBar()->repaint();
} }
void TabWidget::insertTab ( TQWidget * child, const TQIconSet & iconset, const TQString & label, int index ) void TabWidget::insertTab ( TQWidget * child, const TQIconSet & iconset, const TQString & label, int index )
@ -190,7 +190,7 @@ void TabWidget::insertTab ( TQWidget * child, const TQIconSet & iconset, const T
KTabWidget::insertTab(child,iconset,label,index); KTabWidget::insertTab(child,iconset,label,index);
showPage(child); showPage(child);
maybeShow(); maybeShow();
tabBar()->tqrepaint(); tabBar()->repaint();
} }
void TabWidget::insertTab ( TQWidget * child, TQTab * tab, int index) void TabWidget::insertTab ( TQWidget * child, TQTab * tab, int index)
@ -198,7 +198,7 @@ void TabWidget::insertTab ( TQWidget * child, TQTab * tab, int index)
KTabWidget::insertTab(child,tab,index); KTabWidget::insertTab(child,tab,index);
showPage(child); showPage(child);
maybeShow(); maybeShow();
tabBar()->tqrepaint(); tabBar()->repaint();
} }
void TabWidget::removePage ( TQWidget * w ) void TabWidget::removePage ( TQWidget * w )

@ -694,7 +694,7 @@ void KMdiChildFrm::setCaption( const TQString& text )
void KMdiChildFrm::enableClose( bool bEnable ) void KMdiChildFrm::enableClose( bool bEnable )
{ {
m_pClose->setEnabled( bEnable ); m_pClose->setEnabled( bEnable );
m_pClose->tqrepaint( false ); m_pClose->repaint( false );
} }
//============ setIcon ==================// //============ setIcon ==================//

@ -182,7 +182,7 @@ void KMdiChildFrmCaption::setActive( bool bActive )
m_pParent->m_pManager->m_captionInactiveBackColor ); m_pParent->m_pManager->m_captionInactiveBackColor );
m_bActive = bActive; m_bActive = bActive;
tqrepaint( false ); repaint( false );
} }
//=============== setCaption ===============// //=============== setCaption ===============//
@ -190,7 +190,7 @@ void KMdiChildFrmCaption::setActive( bool bActive )
void KMdiChildFrmCaption::setCaption( const TQString& text ) void KMdiChildFrmCaption::setCaption( const TQString& text )
{ {
m_szCaption = text; m_szCaption = text;
tqrepaint( false ); repaint( false );
} }
//============== heightHint ===============// //============== heightHint ===============//

@ -826,7 +826,7 @@ void KMdiDockContainer::prevToolView()
if ( pos < 0 ) if ( pos < 0 )
pos = tabs->count() - 1; pos = tabs->count() - 1;
KMultiTabBarTab *tab = tabs->tqat( pos ); KMultiTabBarTab *tab = tabs->at( 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->tqat( pos ); KMultiTabBarTab *tab = tabs->at( pos );
if ( !tab ) if ( !tab )
return ; //can never happen here, but who knows return ; //can never happen here, but who knows

@ -54,7 +54,7 @@ void KMdiDocumentViewTabWidget::insertTab ( TQWidget * child, const TQString & l
KTabWidget::insertTab( child, label, index ); KTabWidget::insertTab( child, label, index );
showPage( child ); showPage( child );
TQTimer::singleShot(0, this, TQT_SLOT(maybeShow())); TQTimer::singleShot(0, this, TQT_SLOT(maybeShow()));
tabBar() ->tqrepaint(); tabBar() ->repaint();
} }
void KMdiDocumentViewTabWidget::insertTab ( TQWidget * child, const TQIconSet & iconset, const TQString & label, int index ) void KMdiDocumentViewTabWidget::insertTab ( TQWidget * child, const TQIconSet & iconset, const TQString & label, int index )
@ -62,7 +62,7 @@ void KMdiDocumentViewTabWidget::insertTab ( TQWidget * child, const TQIconSet &
KTabWidget::insertTab( child, iconset, label, index ); KTabWidget::insertTab( child, iconset, label, index );
showPage( child ); showPage( child );
TQTimer::singleShot(0, this, TQT_SLOT(maybeShow())); TQTimer::singleShot(0, this, TQT_SLOT(maybeShow()));
tabBar() ->tqrepaint(); tabBar() ->repaint();
} }
void KMdiDocumentViewTabWidget::insertTab ( TQWidget * child, TQTab * tab, int index ) void KMdiDocumentViewTabWidget::insertTab ( TQWidget * child, TQTab * tab, int index )
@ -70,7 +70,7 @@ void KMdiDocumentViewTabWidget::insertTab ( TQWidget * child, TQTab * tab, int i
KTabWidget::insertTab( child, tab, index ); KTabWidget::insertTab( child, tab, index );
showPage( child ); showPage( child );
TQTimer::singleShot(0, this, TQT_SLOT(maybeShow())); TQTimer::singleShot(0, this, TQT_SLOT(maybeShow()));
tabBar() ->tqrepaint(); tabBar() ->repaint();
} }
void KMdiDocumentViewTabWidget::removePage ( TQWidget * w ) void KMdiDocumentViewTabWidget::removePage ( TQWidget * w )

@ -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.tqat( i ), 0, this, 0 ); disconnect( m_toolViewActions.at( 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.tqat( i ) ); addList.append( m_toolViewActions.at( i ) );
else else
addList.append( m_toolMenu ); addList.append( m_toolMenu );
if ( m_mdiMode == KMdi::IDEAlMode ) if ( m_mdiMode == KMdi::IDEAlMode )

@ -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->tqat( id ); KMdiChildView *pView = m_pDocumentViews->at( 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->tqat( id ); KMdiChildView *pView = m_pDocumentViews->at( id );
if ( !pView ) if ( !pView )
return ; return ;
if ( pView->isMinimized() ) if ( pView->isMinimized() )

@ -142,7 +142,7 @@ public:
* use fakeSDIApplication() to fake it and isFakingSDIApplication() to query whether or not an SDI * use fakeSDIApplication() to fake it and isFakingSDIApplication() to query whether or not an SDI
* interface is being faked. * interface is being faked.
* *
* You can dynamically change the tqshape of the attached MDI views using setFrameDecorOfAttachedViews(). * You can dynamically change the shape of the attached MDI views using setFrameDecorOfAttachedViews().
* *
* Additionally, here's a hint how to restore the mainframe's settings from config file: * Additionally, here's a hint how to restore the mainframe's settings from config file:
* \code * \code

@ -36,7 +36,7 @@ Hello::Hello( const char *title, const char *text, TQWidget *parentWidget )
void Hello::animate() void Hello::animate()
{ {
b = (b + 1) & 15; b = (b + 1) & 15;
tqrepaint( false ); repaint( false );
} }

@ -182,9 +182,9 @@ void DownloadDialog::clear()
kdDebug() << "clear listviews in " << v << endl; kdDebug() << "clear listviews in " << v << endl;
if(v) if(v)
{ {
(*(v->tqat(0)))->clear(); (*(v->at(0)))->clear();
(*(v->tqat(1)))->clear(); (*(v->at(1)))->clear();
(*(v->tqat(2)))->clear(); (*(v->at(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]->tqat(0)); in = *(m_buttons[d->m_page]->at(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]->tqat(0)); in = *(m_buttons[d->m_page]->at(0));
de = *(m_buttons[d->m_page]->tqat(1)); de = *(m_buttons[d->m_page]->at(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]->tqat(0)); in = *(m_buttons[d->m_page]->at(0));
de = *(m_buttons[d->m_page]->tqat(1)); de = *(m_buttons[d->m_page]->at(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]->tqat(0)); lv_r = *(m_map[w]->at(0));
lv_d = *(m_map[w]->tqat(1)); lv_d = *(m_map[w]->at(1));
lv_l = *(m_map[w]->tqat(2)); lv_l = *(m_map[w]->at(2));
p = m_providers[w]; p = m_providers[w];
m_rt = m_rts[w]; m_rt = m_rts[w];

@ -55,7 +55,7 @@ unsigned int reverse_bits(register unsigned int x)
TQString exec(const char * cmd) { TQString exec(const char * cmd) {
TQString bashcommand = cmd; TQString bashcommand = cmd;
bashcommand = bashcommand.replace("\"", "\\\""); bashcommand = bashcommand.replace("\"", "\\\"");
bashcommand = TQString("/bin/bash -c \"%1\" 2>&1").tqarg(bashcommand); bashcommand = TQString("/bin/bash -c \"%1\" 2>&1").arg(bashcommand);
FILE* pipe = popen(bashcommand.ascii(), "r"); FILE* pipe = popen(bashcommand.ascii(), "r");
if (!pipe) return "ERROR"; if (!pipe) return "ERROR";
char buffer[128]; char buffer[128];
@ -1071,11 +1071,11 @@ TQPtrList<SingleScreenData> KRandrSimpleAPI::readCurrentDisplayConfiguration() {
if (cur_screen) { if (cur_screen) {
screendata->screen_connected = true; screendata->screen_connected = true;
for (int j = 0; j < cur_screen->numSizes(); j++) { for (int j = 0; j < cur_screen->numSizes(); j++) {
screendata->resolutions.append(i18n("%1 x %2").tqarg(cur_screen->pixelSize(j).width()).tqarg(cur_screen->pixelSize(j).height())); screendata->resolutions.append(i18n("%1 x %2").arg(cur_screen->pixelSize(j).width()).arg(cur_screen->pixelSize(j).height()));
} }
screendata->current_resolution_index = 0; screendata->current_resolution_index = 0;
if (current_crtc) { if (current_crtc) {
screendata->current_resolution_index = screendata->resolutions.findIndex(i18n("%1 x %2").tqarg(current_crtc->info->width).tqarg(current_crtc->info->height)); screendata->current_resolution_index = screendata->resolutions.findIndex(i18n("%1 x %2").arg(current_crtc->info->width).arg(current_crtc->info->height));
} }
if (screendata->current_resolution_index < 0) { if (screendata->current_resolution_index < 0) {
screendata->current_resolution_index = cur_screen->proposedSize(); screendata->current_resolution_index = cur_screen->proposedSize();

@ -691,7 +691,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.tqat(m_currentScreenIndex); m_currentScreen = m_screens.at(m_currentScreenIndex);
Q_ASSERT(m_currentScreen); Q_ASSERT(m_currentScreen);
} }
@ -719,7 +719,7 @@ int RandRDisplay::numScreens() const
RandRScreen* RandRDisplay::screen(int index) RandRScreen* RandRDisplay::screen(int index)
{ {
return m_screens.tqat(index); return m_screens.at(index);
} }
RandRScreen* RandRDisplay::currentScreen() RandRScreen* RandRDisplay::currentScreen()

@ -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.tqat( i ); Resource *resource = list.at( 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() );

@ -87,7 +87,7 @@
<property name="text"> <property name="text">
<string>... the &lt;b&gt;misspelled&lt;/b&gt; word shown in context ...</string> <string>... the &lt;b&gt;misspelled&lt;/b&gt; word shown in context ...</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>WordBreak|AlignCenter</set> <set>WordBreak|AlignCenter</set>
</property> </property>
<property name="toolTip" stdset="0"> <property name="toolTip" stdset="0">

@ -977,7 +977,7 @@ void AsteroidStyle::drawControl(TQ_ControlElement ce,
bool lastTab = (tb->indexOf( t->identifier() ) == tb->count()-1) ? bool lastTab = (tb->indexOf( t->identifier() ) == tb->count()-1) ?
TRUE : FALSE; TRUE : FALSE;
TQRect r2( r ); TQRect r2( r );
if ( tb->tqshape() == TQTabBar::RoundedAbove ) { if ( tb->shape() == TQTabBar::RoundedAbove ) {
p->setPen( cg.light() ); p->setPen( cg.light() );
p->drawLine( r2.left(), r2.bottom()-1, r2.right(), r2.bottom()-1 ); p->drawLine( r2.left(), r2.bottom()-1, r2.right(), r2.bottom()-1 );
if ( r2.left() == 0 ) if ( r2.left() == 0 )
@ -1015,7 +1015,7 @@ void AsteroidStyle::drawControl(TQ_ControlElement ce,
x2++; x2++;
p->drawLine( x2, r2.top() + 2, x2, r2.bottom() - p->drawLine( x2, r2.top() + 2, x2, r2.bottom() -
(selected ? (lastTab ? 0:1) :2)); (selected ? (lastTab ? 0:1) :2));
} else if ( tb->tqshape() == TQTabBar::RoundedBelow ) { } else if ( tb->shape() == TQTabBar::RoundedBelow ) {
bool rightAligned = styleHint( SH_TabBar_Alignment, tb ) == TQt::AlignRight; bool rightAligned = styleHint( SH_TabBar_Alignment, tb ) == TQt::AlignRight;
bool firstTab = tb->indexOf( t->identifier() ) == 0; bool firstTab = tb->indexOf( t->identifier() ) == 0;
if ( selected ) { if ( selected ) {
@ -1081,9 +1081,9 @@ void AsteroidStyle::drawControl(TQ_ControlElement ce,
tr.setBottom( tr.bottom() - tr.setBottom( tr.bottom() -
pixelMetric( TQStyle::PM_DefaultFrameWidth, tb ) ); pixelMetric( TQStyle::PM_DefaultFrameWidth, tb ) );
int tqalignment = TQt::AlignCenter | TQt::ShowPrefix; int alignment = TQt::AlignCenter | TQt::ShowPrefix;
if (!styleHint(SH_UnderlineAccelerator, w, TQStyleOption::Default, 0)) if (!styleHint(SH_UnderlineAccelerator, w, TQStyleOption::Default, 0))
tqalignment |= TQt::NoAccel; alignment |= TQt::NoAccel;
tr.setWidth(tr.width()+4); // Compensate for text appearing too far to the left tr.setWidth(tr.width()+4); // Compensate for text appearing too far to the left
// TQRect tr_offset = TQRect(tr.x()+ETCH_X_OFFSET, tr.y()+ETCH_Y_OFFSET, tr.width(), tr.height()); // TQRect tr_offset = TQRect(tr.x()+ETCH_X_OFFSET, tr.y()+ETCH_Y_OFFSET, tr.width(), tr.height());
TQRect tr_offset = TQRect(tr.x()+0, tr.y()+0, tr.width(), tr.height()); TQRect tr_offset = TQRect(tr.x()+0, tr.y()+0, tr.width(), tr.height());
@ -1098,7 +1098,7 @@ void AsteroidStyle::drawControl(TQ_ControlElement ce,
etchedcg.setColor( TQColorGroup::HighlightedText, cg.light() ); etchedcg.setColor( TQColorGroup::HighlightedText, cg.light() );
etchedcg.setColor( TQColorGroup::BrightText, cg.light() ); etchedcg.setColor( TQColorGroup::BrightText, cg.light() );
etchedcg.setColor( TQColorGroup::ButtonText, cg.light() ); etchedcg.setColor( TQColorGroup::ButtonText, cg.light() );
drawItem( p, tr_offset, tqalignment, etchedcg, enabled, 0, t->text() ); drawItem( p, tr_offset, alignment, etchedcg, enabled, 0, t->text() );
p->setPen( cg.dark() ); p->setPen( cg.dark() );
etchedcg.setColor( TQColorGroup::Text, cg.dark() ); etchedcg.setColor( TQColorGroup::Text, cg.dark() );
etchedcg.setColor( TQColorGroup::Mid, cg.dark() ); etchedcg.setColor( TQColorGroup::Mid, cg.dark() );
@ -1107,11 +1107,11 @@ void AsteroidStyle::drawControl(TQ_ControlElement ce,
etchedcg.setColor( TQColorGroup::HighlightedText, cg.dark() ); etchedcg.setColor( TQColorGroup::HighlightedText, cg.dark() );
etchedcg.setColor( TQColorGroup::BrightText, cg.dark() ); etchedcg.setColor( TQColorGroup::BrightText, cg.dark() );
etchedcg.setColor( TQColorGroup::ButtonText, cg.dark() ); etchedcg.setColor( TQColorGroup::ButtonText, cg.dark() );
drawItem( p, tr, tqalignment, etchedcg, enabled, 0, t->text() ); drawItem( p, tr, alignment, etchedcg, enabled, 0, t->text() );
p->setPen(savePen); p->setPen(savePen);
} }
else { else {
drawItem( p, tr, tqalignment, cg, enabled, 0, t->text() ); drawItem( p, tr, alignment, cg, enabled, 0, t->text() );
} }
if ( (sf & Style_HasFocus) && !t->text().isEmpty() ) if ( (sf & Style_HasFocus) && !t->text().isEmpty() )
@ -1128,9 +1128,9 @@ void AsteroidStyle::drawControl(TQ_ControlElement ce,
const bool enabled = sf & Style_Enabled; const bool enabled = sf & Style_Enabled;
bool etchtext = styleHint( SH_EtchDisabledText ); bool etchtext = styleHint( SH_EtchDisabledText );
int tqalignment = TQApplication::reverseLayout() ? TQt::AlignRight : TQt::AlignLeft; int alignment = TQApplication::reverseLayout() ? TQt::AlignRight : TQt::AlignLeft;
if (!styleHint(SH_UnderlineAccelerator, w, TQStyleOption::Default, 0)) if (!styleHint(SH_UnderlineAccelerator, w, TQStyleOption::Default, 0))
tqalignment |= TQt::NoAccel; alignment |= TQt::NoAccel;
//TQRect r_offset = TQRect(r.x()+ETCH_X_OFFSET, r.y()+ETCH_Y_OFFSET, r.width(), r.height()); //TQRect r_offset = TQRect(r.x()+ETCH_X_OFFSET, r.y()+ETCH_Y_OFFSET, r.width(), r.height());
TQRect r_offset = TQRect(r.x()+0, r.y()+0, r.width(), r.height()); TQRect r_offset = TQRect(r.x()+0, r.y()+0, r.width(), r.height());
@ -1145,7 +1145,7 @@ void AsteroidStyle::drawControl(TQ_ControlElement ce,
etchedcg.setColor( TQColorGroup::HighlightedText, cg.light() ); etchedcg.setColor( TQColorGroup::HighlightedText, cg.light() );
etchedcg.setColor( TQColorGroup::BrightText, cg.light() ); etchedcg.setColor( TQColorGroup::BrightText, cg.light() );
etchedcg.setColor( TQColorGroup::ButtonText, cg.light() ); etchedcg.setColor( TQColorGroup::ButtonText, cg.light() );
drawItem(p, r_offset, tqalignment | TQt::AlignVCenter | TQt::ShowPrefix, etchedcg, sf & Style_Enabled, checkbox->pixmap(), checkbox->text()); drawItem(p, r_offset, alignment | TQt::AlignVCenter | TQt::ShowPrefix, etchedcg, sf & Style_Enabled, checkbox->pixmap(), checkbox->text());
p->setPen( cg.dark() ); p->setPen( cg.dark() );
etchedcg.setColor( TQColorGroup::Text, cg.dark() ); etchedcg.setColor( TQColorGroup::Text, cg.dark() );
etchedcg.setColor( TQColorGroup::Mid, cg.dark() ); etchedcg.setColor( TQColorGroup::Mid, cg.dark() );
@ -1154,11 +1154,11 @@ void AsteroidStyle::drawControl(TQ_ControlElement ce,
etchedcg.setColor( TQColorGroup::HighlightedText, cg.dark() ); etchedcg.setColor( TQColorGroup::HighlightedText, cg.dark() );
etchedcg.setColor( TQColorGroup::BrightText, cg.dark() ); etchedcg.setColor( TQColorGroup::BrightText, cg.dark() );
etchedcg.setColor( TQColorGroup::ButtonText, cg.dark() ); etchedcg.setColor( TQColorGroup::ButtonText, cg.dark() );
drawItem(p, r, tqalignment | TQt::AlignVCenter | TQt::ShowPrefix, etchedcg, sf & Style_Enabled, checkbox->pixmap(), checkbox->text()); drawItem(p, r, alignment | TQt::AlignVCenter | TQt::ShowPrefix, etchedcg, sf & Style_Enabled, checkbox->pixmap(), checkbox->text());
p->setPen(savePen); p->setPen(savePen);
} }
else { else {
drawItem(p, r, tqalignment | TQt::AlignVCenter | TQt::ShowPrefix, cg, sf & Style_Enabled, checkbox->pixmap(), checkbox->text()); drawItem(p, r, alignment | TQt::AlignVCenter | TQt::ShowPrefix, cg, sf & Style_Enabled, checkbox->pixmap(), checkbox->text());
} }
if (sf & Style_HasFocus) { if (sf & Style_HasFocus) {
@ -1177,9 +1177,9 @@ void AsteroidStyle::drawControl(TQ_ControlElement ce,
const bool enabled = sf & Style_Enabled; const bool enabled = sf & Style_Enabled;
bool etchtext = styleHint( SH_EtchDisabledText ); bool etchtext = styleHint( SH_EtchDisabledText );
int tqalignment = TQApplication::reverseLayout() ? TQt::AlignRight : TQt::AlignLeft; int alignment = TQApplication::reverseLayout() ? TQt::AlignRight : TQt::AlignLeft;
if (!styleHint(SH_UnderlineAccelerator, w, TQStyleOption::Default, 0)) if (!styleHint(SH_UnderlineAccelerator, w, TQStyleOption::Default, 0))
tqalignment |= TQt::NoAccel; alignment |= TQt::NoAccel;
// TQRect r_offset = TQRect(r.x()+ETCH_X_OFFSET, r.y()+ETCH_Y_OFFSET, r.width(), r.height()); // TQRect r_offset = TQRect(r.x()+ETCH_X_OFFSET, r.y()+ETCH_Y_OFFSET, r.width(), r.height());
TQRect r_offset = TQRect(r.x()+0, r.y()+0, r.width(), r.height()); TQRect r_offset = TQRect(r.x()+0, r.y()+0, r.width(), r.height());
@ -1194,7 +1194,7 @@ void AsteroidStyle::drawControl(TQ_ControlElement ce,
etchedcg.setColor( TQColorGroup::HighlightedText, cg.light() ); etchedcg.setColor( TQColorGroup::HighlightedText, cg.light() );
etchedcg.setColor( TQColorGroup::BrightText, cg.light() ); etchedcg.setColor( TQColorGroup::BrightText, cg.light() );
etchedcg.setColor( TQColorGroup::ButtonText, cg.light() ); etchedcg.setColor( TQColorGroup::ButtonText, cg.light() );
drawItem(p, r_offset, tqalignment | TQt::AlignVCenter | TQt::ShowPrefix, etchedcg, enabled, radiobutton->pixmap(), radiobutton->text()); drawItem(p, r_offset, alignment | TQt::AlignVCenter | TQt::ShowPrefix, etchedcg, enabled, radiobutton->pixmap(), radiobutton->text());
p->setPen( cg.dark() ); p->setPen( cg.dark() );
etchedcg.setColor( TQColorGroup::Text, cg.dark() ); etchedcg.setColor( TQColorGroup::Text, cg.dark() );
etchedcg.setColor( TQColorGroup::Mid, cg.dark() ); etchedcg.setColor( TQColorGroup::Mid, cg.dark() );
@ -1203,10 +1203,10 @@ void AsteroidStyle::drawControl(TQ_ControlElement ce,
etchedcg.setColor( TQColorGroup::HighlightedText, cg.dark() ); etchedcg.setColor( TQColorGroup::HighlightedText, cg.dark() );
etchedcg.setColor( TQColorGroup::BrightText, cg.dark() ); etchedcg.setColor( TQColorGroup::BrightText, cg.dark() );
etchedcg.setColor( TQColorGroup::ButtonText, cg.dark() ); etchedcg.setColor( TQColorGroup::ButtonText, cg.dark() );
drawItem(p, r, tqalignment | TQt::AlignVCenter | TQt::ShowPrefix, etchedcg, enabled, radiobutton->pixmap(), radiobutton->text()); drawItem(p, r, alignment | TQt::AlignVCenter | TQt::ShowPrefix, etchedcg, enabled, radiobutton->pixmap(), radiobutton->text());
p->setPen(savePen); p->setPen(savePen);
} }
drawItem(p, r, tqalignment | TQt::AlignVCenter | TQt::ShowPrefix, cg, enabled, radiobutton->pixmap(), radiobutton->text()); drawItem(p, r, alignment | TQt::AlignVCenter | TQt::ShowPrefix, cg, enabled, radiobutton->pixmap(), radiobutton->text());
if (sf & Style_HasFocus) { if (sf & Style_HasFocus) {
TQRect fr = visualRect(subRect(SR_RadioButtonFocusRect, w), w); TQRect fr = visualRect(subRect(SR_RadioButtonFocusRect, w), w);

@ -1926,7 +1926,7 @@ TQSize HighColorStyle::tqsizeFromContents( ContentsType contents,
} }
// Fix Qt's wacky image tqalignment // Fix Qt's wacky image alignment
TQPixmap HighColorStyle::stylePixmap(StylePixmap stylepixmap, TQPixmap HighColorStyle::stylePixmap(StylePixmap stylepixmap,
const TQWidget* widget, const TQWidget* widget,
const TQStyleOption& opt) const const TQStyleOption& opt) const
@ -1958,12 +1958,12 @@ bool HighColorStyle::eventFilter( TQObject *object, TQEvent *event )
if ( (event->type() == TQEvent::Enter) && if ( (event->type() == TQEvent::Enter) &&
(button->isEnabled()) ) { (button->isEnabled()) ) {
hoverWidget = button; hoverWidget = button;
button->tqrepaint( false ); button->repaint( false );
} }
else if ( (event->type() == TQEvent::Leave) && else if ( (event->type() == TQEvent::Leave) &&
(TQT_BASE_OBJECT(object) == TQT_BASE_OBJECT(hoverWidget)) ) { (TQT_BASE_OBJECT(object) == TQT_BASE_OBJECT(hoverWidget)) ) {
hoverWidget = 0L; hoverWidget = 0L;
button->tqrepaint( false ); button->repaint( false );
} }
} else if ( object->parent() && !qstrcmp( object->name(), kdeToolbarWidget ) ) } else if ( object->parent() && !qstrcmp( object->name(), kdeToolbarWidget ) )
{ {

@ -759,9 +759,9 @@ void HighContrastStyle::drawControl (TQ_ControlElement element,
drawRoundRect (p, r); drawRoundRect (p, r);
const TQTabBar *tb = static_cast< const TQTabBar * >(widget); const TQTabBar *tb = static_cast< const TQTabBar * >(widget);
TQTabBar::Shape tqshape = tb->tqshape(); TQTabBar::Shape shape = tb->shape();
if (tqshape == TQTabBar::TriangularBelow || if (shape == TQTabBar::TriangularBelow ||
tqshape == TQTabBar::RoundedBelow) { shape == TQTabBar::RoundedBelow) {
p->fillRect (r.left(), r.top(), p->fillRect (r.left(), r.top(),
r.width(), 2*basicLineWidth, r.width(), 2*basicLineWidth,
p->pen().color()); p->pen().color());
@ -1811,7 +1811,7 @@ bool HighContrastStyle::eventFilter (TQObject *object, TQEvent *event)
|| widget->inherits (TQSPINWIDGET_OBJECT_NAME_STRING))) || widget->inherits (TQSPINWIDGET_OBJECT_NAME_STRING)))
{ {
hoverWidget = widget; hoverWidget = widget;
widget->tqrepaint (false); widget->repaint (false);
} }
else if (event->type() == TQEvent::Leave else if (event->type() == TQEvent::Leave
&& (widget->inherits (TQBUTTON_OBJECT_NAME_STRING) && (widget->inherits (TQBUTTON_OBJECT_NAME_STRING)
@ -1820,7 +1820,7 @@ bool HighContrastStyle::eventFilter (TQObject *object, TQEvent *event)
{ {
if (TQT_BASE_OBJECT(object) == TQT_BASE_OBJECT(hoverWidget)) if (TQT_BASE_OBJECT(object) == TQT_BASE_OBJECT(hoverWidget))
hoverWidget = 0L; hoverWidget = 0L;
widget->tqrepaint (false); widget->repaint (false);
} }
// Make sure the focus rectangle is shown correctly. // Make sure the focus rectangle is shown correctly.
else if (event->type() == TQEvent::FocusIn || event->type() == TQEvent::FocusOut) else if (event->type() == TQEvent::FocusIn || event->type() == TQEvent::FocusOut)
@ -1834,9 +1834,9 @@ bool HighContrastStyle::eventFilter (TQObject *object, TQEvent *event)
} }
if (widgetparent) if (widgetparent)
widgetparent->tqrepaint (false); widgetparent->repaint (false);
else else
widget->tqrepaint (false); widget->repaint (false);
} }
} }

@ -956,7 +956,7 @@ void KeramikStyle::tqdrawPrimitive( TQ_PrimitiveElement pe,
if (kickerMode) if (kickerMode)
{ {
if (p->device() && p->device()->devType() == TQInternal::Widget && if (p->device() && p->device()->devType() == TQInternal::Widget &&
TQCString(static_cast<TQWidget*>(static_cast<QWidget*>(static_cast<QPaintDevice*>(p->tqdevice())))->className()) == "FittsLawFrame" ) TQCString(static_cast<TQWidget*>(static_cast<QWidget*>(static_cast<QPaintDevice*>(p->device())))->className()) == "FittsLawFrame" )
{ {
int x2 = x + r.width() - 1; int x2 = x + r.width() - 1;
int y2 = y + r.height() - 1; int y2 = y + r.height() - 1;
@ -1496,8 +1496,8 @@ void KeramikStyle::drawControl( TQ_ControlElement element,
{ {
const TQTabBar* tabBar = static_cast< const TQTabBar* >( widget ); const TQTabBar* tabBar = static_cast< const TQTabBar* >( widget );
bool bottom = tabBar->tqshape() == TQTabBar::RoundedBelow || bool bottom = tabBar->shape() == TQTabBar::RoundedBelow ||
tabBar->tqshape() == TQTabBar::TriangularBelow; tabBar->shape() == TQTabBar::TriangularBelow;
if ( flags & Style_Selected ) if ( flags & Style_Selected )
{ {
@ -1999,7 +1999,7 @@ void KeramikStyle::drawComplexControl( TQ_ComplexControl control,
//but that also alters height and not just width. //but that also alters height and not just width.
//readjust height to fake the other metrics (plus clear //readjust height to fake the other metrics (plus clear
//the other areas, as appropriate). The automasker //the other areas, as appropriate). The automasker
//will take care of the overall tqshape. //will take care of the overall shape.
if ( compact ) if ( compact )
{ {
forceSmallMode = true; forceSmallMode = true;
@ -2397,8 +2397,8 @@ int KeramikStyle::pixelMetric(PixelMetric m, const TQWidget *widget) const
const TQTabBar* tb = ::tqqt_cast<const TQTabBar*>(widget); const TQTabBar* tb = ::tqqt_cast<const TQTabBar*>(widget);
if (tb) if (tb)
{ {
if (tb->tqshape() == TQTabBar::RoundedBelow || if (tb->shape() == TQTabBar::RoundedBelow ||
tb->tqshape() == TQTabBar::TriangularBelow) tb->shape() == TQTabBar::TriangularBelow)
return 0; return 0;
} }
@ -2751,7 +2751,7 @@ bool KeramikStyle::eventFilter( TQObject* object, TQEvent* event )
{ {
TQWidget* button = TQT_TQWIDGET(object); TQWidget* button = TQT_TQWIDGET(object);
hoverWidget = 0; hoverWidget = 0;
button->tqrepaint( false ); button->repaint( false );
return false; return false;
} }
@ -2761,7 +2761,7 @@ bool KeramikStyle::eventFilter( TQObject* object, TQEvent* event )
if (event->type() == TQEvent::Enter && TQT_TQWIDGET(object)->isEnabled() ) if (event->type() == TQEvent::Enter && TQT_TQWIDGET(object)->isEnabled() )
{ {
hoverWidget = TQT_TQWIDGET(object); hoverWidget = TQT_TQWIDGET(object);
hoverWidget->tqrepaint( false ); hoverWidget->repaint( false );
} }
return false; return false;
} }
@ -2789,7 +2789,7 @@ bool KeramikStyle::eventFilter( TQObject* object, TQEvent* event )
switch (event->type()) switch (event->type())
{ {
#ifdef HAVE_X11_EXTENSIONS_SHAPE_H #ifdef HAVE_X11_EXTENSIONS_SHAPE_H
//Combo dropdowns are tqshaped //Combo dropdowns are shaped
case TQEvent::Resize: case TQEvent::Resize:
{ {
TQListBox* listbox = static_cast<TQListBox*>(TQT_TQWIDGET(object)); TQListBox* listbox = static_cast<TQListBox*>(TQT_TQWIDGET(object));

@ -2954,8 +2954,8 @@ void KLegacyStyle::drawTab(TQPainter *p, const TQTabBar *tabbar, TQTab *tab, boo
key.data.function = KLegacy::Extension; key.data.function = KLegacy::Extension;
key.data.state = (! selected) ? KLegacy::Active : KLegacy::Normal; key.data.state = (! selected) ? KLegacy::Active : KLegacy::Normal;
key.data.shadow = KLegacy::Out; key.data.shadow = KLegacy::Out;
key.data.gapSide = (tabbar->tqshape() == TQTabBar::RoundedAbove || key.data.gapSide = (tabbar->shape() == TQTabBar::RoundedAbove ||
tabbar->tqshape() == TQTabBar::TriangularAbove) ? tabbar->shape() == TQTabBar::TriangularAbove) ?
KLegacy::Bottom : KLegacy::Top; KLegacy::Bottom : KLegacy::Top;
int ry = tab->r.top(), rh = tab->r.height(); int ry = tab->r.top(), rh = tab->r.height();
@ -2963,8 +2963,8 @@ void KLegacyStyle::drawTab(TQPainter *p, const TQTabBar *tabbar, TQTab *tab, boo
if (! selected) { if (! selected) {
rh -= 2; rh -= 2;
if (tabbar->tqshape() == TQTabBar::RoundedAbove || if (tabbar->shape() == TQTabBar::RoundedAbove ||
tabbar->tqshape() == TQTabBar::TriangularAbove) tabbar->shape() == TQTabBar::TriangularAbove)
ry += 2; ry += 2;
} }
@ -3261,7 +3261,7 @@ bool KLegacyStyle::eventFilter(TQObject *obj, TQEvent *e) {
obj->inherits(TQSLIDER_OBJECT_NAME_STRING) || obj->inherits(TQSLIDER_OBJECT_NAME_STRING) ||
obj->inherits(TQSCROLLBAR_OBJECT_NAME_STRING)) { obj->inherits(TQSCROLLBAR_OBJECT_NAME_STRING)) {
priv->lastWidget = (TQWidget *) obj; priv->lastWidget = (TQWidget *) obj;
priv->lastWidget->tqrepaint(false); priv->lastWidget->repaint(false);
} else if (obj->inherits(TQRADIOBUTTON_OBJECT_NAME_STRING)) { } else if (obj->inherits(TQRADIOBUTTON_OBJECT_NAME_STRING)) {
TQWidget *w = (TQWidget *) obj; TQWidget *w = (TQWidget *) obj;
@ -3327,7 +3327,7 @@ bool KLegacyStyle::eventFilter(TQObject *obj, TQEvent *e) {
{ {
if (obj == priv->lastWidget) { if (obj == priv->lastWidget) {
priv->lastWidget = 0; priv->lastWidget = 0;
((TQWidget *) obj)->tqrepaint(false); ((TQWidget *) obj)->repaint(false);
} else if (obj->inherits(TQRADIOBUTTON_OBJECT_NAME_STRING) || } else if (obj->inherits(TQRADIOBUTTON_OBJECT_NAME_STRING) ||
obj->inherits(TQCHECKBOX_OBJECT_NAME_STRING)) { obj->inherits(TQCHECKBOX_OBJECT_NAME_STRING)) {
TQWidget *w = (TQWidget *) obj; TQWidget *w = (TQWidget *) obj;
@ -3335,7 +3335,7 @@ bool KLegacyStyle::eventFilter(TQObject *obj, TQEvent *e) {
if (! w->isTopLevel()) { if (! w->isTopLevel()) {
w->setBackgroundMode(TQWidget::X11ParentRelative); w->setBackgroundMode(TQWidget::X11ParentRelative);
w->setBackgroundOrigin(TQWidget::WidgetOrigin); w->setBackgroundOrigin(TQWidget::WidgetOrigin);
w->tqrepaint(true); w->repaint(true);
} }
} }
@ -3349,7 +3349,7 @@ bool KLegacyStyle::eventFilter(TQObject *obj, TQEvent *e) {
if (obj->inherits(TQSCROLLBAR_OBJECT_NAME_STRING) && if (obj->inherits(TQSCROLLBAR_OBJECT_NAME_STRING) &&
(! (me->state() & (LeftButton | MidButton | RightButton)))) { (! (me->state() & (LeftButton | MidButton | RightButton)))) {
priv->hovering = true; priv->hovering = true;
((TQWidget *) obj)->tqrepaint(false); ((TQWidget *) obj)->repaint(false);
priv->hovering = false; priv->hovering = false;
} }

@ -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.tqat( 0 ) == '#' ) if ( aValue.at( 0 ) == '#' )
{ {
aRetColor.setNamedColor( aValue ); aRetColor.setNamedColor( aValue );
} }

@ -650,7 +650,7 @@ void KThemeStyle::drawBaseButton( TQPainter *p, int x, int y, int w, int h,
if ( gradientHint( type ) == GrReverseBevel ) if ( gradientHint( type ) == GrReverseBevel )
{ {
int i; int i;
bitBlt( p->tqdevice(), x, y, TQT_TQPAINTDEVICE(scalePixmap( w, h, type )), 0, 0, w, h, bitBlt( p->device(), x, y, TQT_TQPAINTDEVICE(scalePixmap( w, h, type )), 0, 0, w, h,
TQt::CopyROP, true ); TQt::CopyROP, true );
p->setPen( g.text() ); p->setPen( g.text() );
for ( i = 0; i < borderWidth( type ); ++i, ++x, ++y, w -= 2, h -= 2 ) for ( i = 0; i < borderWidth( type ); ++i, ++x, ++y, w -= 2, h -= 2 )
@ -690,7 +690,7 @@ void KThemeStyle::drawBaseButton( TQPainter *p, int x, int y, int w, int h,
} }
if ( borderPixmap( type ) ) if ( borderPixmap( type ) )
{ {
bitBlt( p->tqdevice(), x, y, TQT_TQPAINTDEVICE(scaleBorder( w, h, type )), 0, 0, w, h, bitBlt( p->device(), x, y, TQT_TQPAINTDEVICE(scaleBorder( w, h, type )), 0, 0, w, h,
TQt::CopyROP, false ); TQt::CopyROP, false );
} }
else else
@ -1239,7 +1239,7 @@ void KThemeStyle::drawControl( ControlElement element,
case CE_TabBarTab: case CE_TabBarTab:
{ {
const TQTabBar* tb = ( const TQTabBar* ) widget; const TQTabBar* tb = ( const TQTabBar* ) widget;
TQTabBar::Shape tbs = tb->tqshape(); TQTabBar::Shape tbs = tb->shape();
bool selected = how & Style_Selected; bool selected = how & Style_Selected;
WidgetType widget = selected ? ActiveTab : InactiveTab; WidgetType widget = selected ? ActiveTab : InactiveTab;
const TQColorGroup *cg = colorGroup( tb->colorGroup(), widget ); const TQColorGroup *cg = colorGroup( tb->colorGroup(), widget );
@ -1315,8 +1315,8 @@ void KThemeStyle::drawControl( ControlElement element,
else else
p->fillRect( x, y, x2 - x + 1, y2 - y + 1, cg->background() ); p->fillRect( x, y, x2 - x + 1, y2 - y + 1, cg->background() );
} }
else if ( tb->tqshape() == TQTabBar::RoundedBelow || else if ( tb->shape() == TQTabBar::RoundedBelow ||
tb->tqshape() == TQTabBar::TriangularBelow ) tb->shape() == TQTabBar::TriangularBelow )
{ {
if ( widget == ActiveTab ) if ( widget == ActiveTab )
widget = RotActiveTab; widget = RotActiveTab;

@ -192,7 +192,7 @@ public:
* @param w The rectangle width. * @param w The rectangle width.
* @param h The rectangle height. * @param h The rectangle height.
* @param sunken Draws a sunken style if @p true. * @param sunken Draws a sunken style if @p true.
* @param rounded Draws a rounded tqshape if @p true. Requires bWidth to be * @param rounded Draws a rounded shape if @p true. Requires bWidth to be
* at least 1. * at least 1.
* @param hWidth The highlight width. * @param hWidth The highlight width.
* @param bWidth The border width. * @param bWidth The border width.

@ -635,7 +635,7 @@ void LightStyleV2::drawControl( TQ_ControlElement control,
tr.addCoords(0, 0, 0, -1); tr.addCoords(0, 0, 0, -1);
fr.addCoords(2, 2, -2, -2); fr.addCoords(2, 2, -2, -2);
if ( tb->tqshape() == TQTabBar::RoundedBelow || tb->tqshape() == TQTabBar::TriangularBelow) { if ( tb->shape() == TQTabBar::RoundedBelow || tb->shape() == TQTabBar::TriangularBelow) {
tr = r; tr.addCoords(0, 1, 0, 0); tr = r; tr.addCoords(0, 1, 0, 0);
fr = r; fr.addCoords(2, 2,-2, -4); fr = r; fr.addCoords(2, 2,-2, -4);
below = true; below = true;

@ -818,7 +818,7 @@ void LightStyleV3::drawControl( TQ_ControlElement control,
const TQTabBar *tb = (const TQTabBar *) widget; const TQTabBar *tb = (const TQTabBar *) widget;
TQRect br = r; TQRect br = r;
if ( tb->tqshape() == TQTabBar::RoundedAbove ) { if ( tb->shape() == TQTabBar::RoundedAbove ) {
if ( ! ( flags & Style_Selected ) ) { if ( ! ( flags & Style_Selected ) ) {
p->setPen( cg.background() ); p->setPen( cg.background() );
p->drawLine( br.left(), br.bottom(), p->drawLine( br.left(), br.bottom(),
@ -853,7 +853,7 @@ void LightStyleV3::drawControl( TQ_ControlElement control,
else else
br.addCoords( 1, 1, -1, 0 ); br.addCoords( 1, 1, -1, 0 );
p->fillRect( br, cg.background() ); p->fillRect( br, cg.background() );
} else if ( tb->tqshape() == TQTabBar::RoundedBelow ) { } else if ( tb->shape() == TQTabBar::RoundedBelow ) {
if ( ! ( flags & Style_Selected ) ) { if ( ! ( flags & Style_Selected ) ) {
p->setPen( cg.background() ); p->setPen( cg.background() );
p->drawLine( br.left(), br.top(), p->drawLine( br.left(), br.top(),

@ -885,8 +885,8 @@ void PlastikStyle::renderPanel(TQPainter *p,
r.coords(&x, &y, &x2, &y2); r.coords(&x, &y, &x2, &y2);
if (kickerMode && if (kickerMode &&
p->tqdevice() && p->tqdevice()->devType() == TQInternal::Widget && p->device() && p->device()->devType() == TQInternal::Widget &&
TQCString(static_cast<TQWidget*>(static_cast<QWidget*>(static_cast<QPaintDevice*>(p->tqdevice())))->className()) == "FittsLawFrame") { TQCString(static_cast<TQWidget*>(static_cast<QWidget*>(static_cast<QPaintDevice*>(p->device())))->className()) == "FittsLawFrame") {
// Stolen wholesale from Keramik. I don't like it, but oh well. // Stolen wholesale from Keramik. I don't like it, but oh well.
if (sunken) { if (sunken) {
const TQCOORD corners[] = { x2, y, x2, y2, x, y2, x, y }; const TQCOORD corners[] = { x2, y, x2, y2, x, y2, x, y };
@ -1483,7 +1483,7 @@ void PlastikStyle::tqdrawPrimitive(TQ_PrimitiveElement pe,
if(!kickerMode) { if(!kickerMode) {
// detect if this is the left most header item // detect if this is the left most header item
bool isFirst = false; bool isFirst = false;
TQHeader *header = dynamic_cast<TQHeader*>(p->tqdevice() ); TQHeader *header = dynamic_cast<TQHeader*>(p->device() );
if (header) { if (header) {
isFirst = header->mapToIndex(header->sectionAt(r.x() ) ) == 0; isFirst = header->mapToIndex(header->sectionAt(r.x() ) ) == 0;
} }
@ -1819,7 +1819,7 @@ void PlastikStyle::tqdrawPrimitive(TQ_PrimitiveElement pe,
// -------------- // --------------
case PE_Splitter: { case PE_Splitter: {
// highlight on mouse over // highlight on mouse over
TQColor color = (static_cast<QPaintDevice*>(static_cast<QWidget*>(hoverWidget)) == static_cast<QPaintDevice*>(p->tqdevice()))?TQColor(cg.background().light(100+_contrast)):cg.background(); TQColor color = (static_cast<QPaintDevice*>(static_cast<QWidget*>(hoverWidget)) == static_cast<QPaintDevice*>(p->device()))?TQColor(cg.background().light(100+_contrast)):cg.background();
p->fillRect(r, color); p->fillRect(r, color);
if (w > h) { if (w > h) {
if (h > 4) { if (h > 4) {
@ -1862,9 +1862,9 @@ void PlastikStyle::tqdrawPrimitive(TQ_PrimitiveElement pe,
bool isEnabled = true; bool isEnabled = true;
// panel is highlighted by default if it has focus, but if we have access to the // panel is highlighted by default if it has focus, but if we have access to the
// widget itself we can try to avoid highlighting in case it's readOnly or disabled. // widget itself we can try to avoid highlighting in case it's readOnly or disabled.
if (p->tqdevice() && dynamic_cast<TQLineEdit*>(p->tqdevice())) if (p->device() && dynamic_cast<TQLineEdit*>(p->device()))
{ {
TQLineEdit* lineEdit = dynamic_cast<TQLineEdit*>(p->tqdevice()); TQLineEdit* lineEdit = dynamic_cast<TQLineEdit*>(p->device());
isReadOnly = lineEdit->isReadOnly(); isReadOnly = lineEdit->isReadOnly();
isEnabled = lineEdit->isEnabled(); isEnabled = lineEdit->isEnabled();
} }
@ -1881,7 +1881,7 @@ void PlastikStyle::tqdrawPrimitive(TQ_PrimitiveElement pe,
// only thing we know is that khtml buffers its widgets into a pixmap. So // only thing we know is that khtml buffers its widgets into a pixmap. So
// when the paint device is a TQPixmap, chances are high that we are in khtml. // when the paint device is a TQPixmap, chances are high that we are in khtml.
// It's possible that this breaks other things, so let's see how it works... // It's possible that this breaks other things, so let's see how it works...
if (p->tqdevice() && dynamic_cast<TQPixmap*>(p->tqdevice() ) ) { if (p->device() && dynamic_cast<TQPixmap*>(p->device() ) ) {
contourFlags += Draw_AlphaBlend; contourFlags += Draw_AlphaBlend;
} }
@ -1942,7 +1942,7 @@ void PlastikStyle::tqdrawPrimitive(TQ_PrimitiveElement pe,
case PE_PanelMenuBar: case PE_PanelMenuBar:
case PE_PanelDockWindow: { case PE_PanelDockWindow: {
// fix for toolbar lag (from Mosfet Liquid) // fix for toolbar lag (from Mosfet Liquid)
TQWidget* w = dynamic_cast<TQWidget*>(p->tqdevice()); TQWidget* w = dynamic_cast<TQWidget*>(p->device());
if(w && w->backgroundMode() == PaletteButton) if(w && w->backgroundMode() == PaletteButton)
w->setBackgroundMode(PaletteBackground); w->setBackgroundMode(PaletteBackground);
p->fillRect(r, cg.brush(TQColorGroup::Background)); p->fillRect(r, cg.brush(TQColorGroup::Background));
@ -2301,7 +2301,7 @@ void PlastikStyle::drawControl(TQ_ControlElement element,
if(cw) if(cw)
cornerWidget = true; cornerWidget = true;
} }
TQTabBar::Shape tbs = tb->tqshape(); TQTabBar::Shape tbs = tb->shape();
bool selected = false; bool selected = false;
if (flags & Style_Selected) selected = true; if (flags & Style_Selected) selected = true;
TabPosition pos; TabPosition pos;
@ -3253,8 +3253,8 @@ int PlastikStyle::pixelMetric(PixelMetric m, const TQWidget *widget) const
// ---- // ----
case PM_TabBarTabVSpace: { case PM_TabBarTabVSpace: {
const TQTabBar * tb = (const TQTabBar *) widget; const TQTabBar * tb = (const TQTabBar *) widget;
if (tb->tqshape() == TQTabBar::RoundedAbove || if (tb->shape() == TQTabBar::RoundedAbove ||
tb->tqshape() == TQTabBar::RoundedBelow) tb->shape() == TQTabBar::RoundedBelow)
return 12; return 12;
else else
return 4; return 4;
@ -3464,14 +3464,14 @@ bool PlastikStyle::eventFilter(TQObject *obj, TQEvent *ev)
TQWidget* spinbox = widget->parentWidget(); TQWidget* spinbox = widget->parentWidget();
if ((ev->type() == TQEvent::FocusIn) || (ev->type() == TQEvent::FocusOut)) if ((ev->type() == TQEvent::FocusIn) || (ev->type() == TQEvent::FocusOut))
{ {
spinbox->tqrepaint(false); spinbox->repaint(false);
} }
return false; return false;
} }
if ((ev->type() == TQEvent::FocusIn) || (ev->type() == TQEvent::FocusOut)) if ((ev->type() == TQEvent::FocusIn) || (ev->type() == TQEvent::FocusOut))
{ {
widget->tqrepaint(false); widget->repaint(false);
} }
return false; return false;
} }
@ -3485,13 +3485,13 @@ bool PlastikStyle::eventFilter(TQObject *obj, TQEvent *ev)
{ {
TQWidget* button = TQT_TQWIDGET(obj); TQWidget* button = TQT_TQWIDGET(obj);
hoverWidget = button; hoverWidget = button;
button->tqrepaint(false); button->repaint(false);
} }
else if ((ev->type() == TQEvent::Leave) && (TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(hoverWidget)) ) else if ((ev->type() == TQEvent::Leave) && (TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(hoverWidget)) )
{ {
TQWidget* button = TQT_TQWIDGET(obj); TQWidget* button = TQT_TQWIDGET(obj);
hoverWidget = 0; hoverWidget = 0;
button->tqrepaint(false); button->repaint(false);
} }
return false; return false;
} }
@ -3501,7 +3501,7 @@ bool PlastikStyle::eventFilter(TQObject *obj, TQEvent *ev)
TQWidget* tabbar = TQT_TQWIDGET(obj); TQWidget* tabbar = TQT_TQWIDGET(obj);
hoverWidget = tabbar; hoverWidget = tabbar;
hoverTab = 0; hoverTab = 0;
tabbar->tqrepaint(false); tabbar->repaint(false);
} }
else if (ev->type() == TQEvent::MouseMove) else if (ev->type() == TQEvent::MouseMove)
{ {
@ -3512,15 +3512,15 @@ bool PlastikStyle::eventFilter(TQObject *obj, TQEvent *ev)
// avoid unnecessary repaints (which otherwise would occour on every // avoid unnecessary repaints (which otherwise would occour on every
// MouseMove event causing high cpu load). // MouseMove event causing high cpu load).
bool tqrepaint = true; bool repaint = true;
TQTab *tab = tabbar->selectTab(me->pos() ); TQTab *tab = tabbar->selectTab(me->pos() );
if (hoverTab == tab) if (hoverTab == tab)
tqrepaint = false; repaint = false;
hoverTab = tab; hoverTab = tab;
if (tqrepaint) if (repaint)
tabbar->tqrepaint(false); tabbar->repaint(false);
} }
} }
else if (ev->type() == TQEvent::Leave) else if (ev->type() == TQEvent::Leave)
@ -3528,7 +3528,7 @@ bool PlastikStyle::eventFilter(TQObject *obj, TQEvent *ev)
TQWidget* tabbar = TQT_TQWIDGET(obj); TQWidget* tabbar = TQT_TQWIDGET(obj);
hoverWidget = 0; hoverWidget = 0;
hoverTab = 0; hoverTab = 0;
tabbar->tqrepaint(false); tabbar->repaint(false);
} }
return false; return false;
} }

@ -303,12 +303,12 @@ WebStyle::eventFilter(TQObject * o, TQEvent * e)
if (e->type() == TQEvent::Enter) if (e->type() == TQEvent::Enter)
{ {
_highlightedButton = pb; _highlightedButton = pb;
pb->tqrepaint(false); pb->repaint(false);
} }
else if (e->type() == TQEvent::Leave) else if (e->type() == TQEvent::Leave)
{ {
_highlightedButton = 0; _highlightedButton = 0;
pb->tqrepaint(false); pb->repaint(false);
} }
return false; return false;
@ -754,7 +754,7 @@ WebStyle::drawExclusiveIndicator
p->setBrush(g.brush(TQColorGroup::Background)); p->setBrush(g.brush(TQColorGroup::Background));
// Avoid mistqshapen ellipses. Qt or X bug ? Who knows... // Avoid misshapen ellipses. Qt or X bug ? Who knows...
if (0 == w % 2) if (0 == w % 2)
--w; --w;
@ -1457,7 +1457,7 @@ WebStyle::drawTab
p->setPen(selected ? g.dark() : g.mid()); p->setPen(selected ? g.dark() : g.mid());
p->fillRect(r, g.brush(TQColorGroup::Background)); p->fillRect(r, g.brush(TQColorGroup::Background));
switch (tabBar->tqshape()) switch (tabBar->shape())
{ {
case TQTabBar::RoundedAbove: case TQTabBar::RoundedAbove:
case TQTabBar::TriangularAbove: case TQTabBar::TriangularAbove:

@ -416,7 +416,7 @@ void KCModuleProxy::rootExited()
/* Such that the "ordinary" module loads again */ /* Such that the "ordinary" module loads again */
d->rootMode = false; d->rootMode = false;
d->topLayout->tqinvalidate(); d->topLayout->invalidate();
TQShowEvent ev; TQShowEvent ev;
showEvent( &ev ); showEvent( &ev );

@ -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.tqat(i)->setStyle(m_style); m_tabs.at(i)->setStyle(m_style);
if ( (m_style==KMultiTabBar::KDEV3) || if ( (m_style==KMultiTabBar::KDEV3) ||
(m_style==KMultiTabBar::KDEV3ICON ) ) { (m_style==KMultiTabBar::KDEV3ICON ) ) {
@ -106,11 +106,11 @@ 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.tqat(i)); mainLayout->add(m_tabs.at(i));
mainLayout->setAutoAdd(true); mainLayout->setAutoAdd(true);
} }
viewport()->tqrepaint(); viewport()->repaint();
} }
void KMultiTabBarInternal::drawContents ( TQPainter * paint, int clipx, int clipy, int clipw, int cliph ) void KMultiTabBarInternal::drawContents ( TQPainter * paint, int clipx, int clipy, int clipw, int cliph )
@ -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.tqat(i2)->neededSize();\ uint l1=m_tabs.at(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.tqat(i)->neededSize(); tmp+=m_tabs.at(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.tqat(i); KMultiTabBarTab *tab=m_tabs.at(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.tqat(i)->neededSize()<<"/"<<lines*24<<")"<<endl; //kdDebug()<<"Placing line on line:"<<lines<<" pos: (x/y)=("<<tmp-m_tabs.at(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.tqat(i); KMultiTabBarTab *tab=m_tabs.at(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.tqat(i)->height():m_tabs.tqat(i)->width()); size+=(m_barMode==KMultiTabBar::Vertical?m_tabs.at(i)->height():m_tabs.at(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.tqat(i)->setSize(m_expandedTabSize); m_tabs.at(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.tqat(pos)->id()==id) if (m_tabs.at(pos)->id()==id)
{ {
m_tabs.remove(pos); m_tabs.remove(pos);
resizeEvent(0); resizeEvent(0);
@ -377,8 +377,8 @@ 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.tqat(i)->setTabsPosition(m_position); m_tabs.at(i)->setTabsPosition(m_position);
viewport()->tqrepaint(); viewport()->repaint();
} }
KMultiTabBarButton::KMultiTabBarButton(const TQPixmap& pic,const TQString& text, TQPopupMenu *popup, KMultiTabBarButton::KMultiTabBarButton(const TQPixmap& pic,const TQString& text, TQPopupMenu *popup,
@ -434,13 +434,13 @@ void KMultiTabBarButton::slotClicked()
void KMultiTabBarButton::setPosition(KMultiTabBar::KMultiTabBarPosition pos) void KMultiTabBarButton::setPosition(KMultiTabBar::KMultiTabBarPosition pos)
{ {
m_position=pos; m_position=pos;
tqrepaint(); repaint();
} }
void KMultiTabBarButton::setStyle(KMultiTabBar::KMultiTabBarStyle style) void KMultiTabBarButton::setStyle(KMultiTabBar::KMultiTabBarStyle style)
{ {
m_style=style; m_style=style;
tqrepaint(); repaint();
} }
void KMultiTabBarButton::hideEvent( TQHideEvent* he) { void KMultiTabBarButton::hideEvent( TQHideEvent* he) {
@ -525,7 +525,7 @@ void KMultiTabBarTab::setTabsPosition(KMultiTabBar::KMultiTabBarPosition pos)
} }
setPosition(pos); setPosition(pos);
// tqrepaint(); // repaint();
} }
void KMultiTabBarTab::setIcon(const TQString& icon) void KMultiTabBarTab::setIcon(const TQString& icon)
@ -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.tqat(pos)->id()==id) if (m_buttons.at(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.tqat(i)->setPosition(pos); m_buttons.at(i)->setPosition(pos);
} }
KMultiTabBar::KMultiTabBarPosition KMultiTabBar::position() const KMultiTabBar::KMultiTabBarPosition KMultiTabBar::position() const
@ -988,8 +988,8 @@ 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()->tqat(i)->resize(); tabs()->at(i)->resize();
tqrepaint(); repaint();
} }
TQPtrList<KMultiTabBarTab>* KMultiTabBar::tabs() {return m_internal->tabs();} TQPtrList<KMultiTabBarTab>* KMultiTabBar::tabs() {return m_internal->tabs();}

@ -238,7 +238,7 @@ signals:
* *
* Extra care must be taken to properly implement the "no prompt-on-replace" case. * Extra care must be taken to properly implement the "no prompt-on-replace" case.
* For instance highlight isn't emitted in that case (some code might rely on it), * For instance highlight isn't emitted in that case (some code might rely on it),
* and for performance reasons one should tqrepaint after replace() ONLY if * and for performance reasons one should repaint after replace() ONLY if
* prompt-on-replace was selected. * prompt-on-replace was selected.
* *
* @param text The text, in which the replacement has already been done. * @param text The text, in which the replacement has already been done.

@ -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] != static_cast<const char>(encrypted.tqat(sz - 20 + i))) { if (testhash[i] != static_cast<const char>(encrypted.at(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 = const_cast<MD5Digest&>(r).tqat(i); y = const_cast<MD5Digest&>(r).at(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->tqat(), sn ); list->insert( list->at(), sn );
else else
list->append( sn ); list->append( sn );
} }

Loading…
Cancel
Save