Browse Source

Remove additional unneeded tq method conversions

tags/r14.0.0
Timothy Pearson 8 years ago
parent
commit
a51cd9949c
100 changed files with 410 additions and 410 deletions
  1. +3
    -3
      KDE3PORTING.html
  2. +1
    -1
      arts/kde/kvideowidget.cpp
  3. +2
    -2
      dcop/KDE-ICE/ICElib.h
  4. +2
    -2
      dcop/KDE-ICE/ICEmsg.h
  5. +2
    -2
      dcop/KDE-ICE/shutdown.c
  6. +1
    -1
      dcop/client/dcop.cpp
  7. +1
    -1
      dcop/client/dcopfind.cpp
  8. +1
    -1
      dcop/dcopref.h
  9. +4
    -4
      dcop/dcopserver.cpp
  10. +1
    -1
      interfaces/khexedit/byteseditinterface.h
  11. +1
    -1
      interfaces/kimproxy/interface/kimiface.h
  12. +1
    -1
      interfaces/ktexteditor/editinterfaceext.h
  13. +1
    -1
      interfaces/ktexteditor/editorchooser.cpp
  14. +1
    -1
      interfaces/ktexteditor/editorchooser_ui.ui
  15. +1
    -1
      kab/addressbook.h
  16. +3
    -3
      kab/qconfigDB.cc
  17. +1
    -1
      kabc/formats/binaryformat.cpp
  18. +10
    -10
      kabc/kab2kabc.cpp
  19. +1
    -1
      kabc/resourceselectdialog.cpp
  20. +40
    -40
      kabc/tests/testaddresseelist.cpp
  21. +7
    -7
      kabc/vcard/AdrValue.cpp
  22. +1
    -1
      kabc/vcard/ContentLine.cpp
  23. +1
    -1
      kabc/vcard/LangValue.cpp
  24. +5
    -5
      kabc/vcard/NValue.cpp
  25. +1
    -1
      kabc/vcard/OrgValue.cpp
  26. +1
    -1
      kabc/vcard/TextListValue.cpp
  27. +1
    -1
      kabc/vcard/VCard.cpp
  28. +1
    -1
      kabc/vcardparser/vcardparser.cpp
  29. +1
    -1
      kabc/vcardtool.cpp
  30. +5
    -5
      kate/part/kateautoindent.cpp
  31. +5
    -5
      kate/part/katebookmarks.cpp
  32. +6
    -6
      kate/part/katebuffer.cpp
  33. +2
    -2
      kate/part/katebuffer.h
  34. +6
    -6
      kate/part/katecodefoldinghelpers.cpp
  35. +6
    -6
      kate/part/kateconfig.cpp
  36. +4
    -4
      kate/part/katedialogs.cpp
  37. +20
    -20
      kate/part/katedocument.cpp
  38. +1
    -1
      kate/part/katefactory.cpp
  39. +25
    -25
      kate/part/katefiletype.cpp
  40. +25
    -25
      kate/part/katehighlight.cpp
  41. +2
    -2
      kate/part/katejscript.cpp
  42. +1
    -1
      kate/part/kateprinter.cpp
  43. +2
    -2
      kate/part/katerenderer.cpp
  44. +7
    -7
      kate/part/kateschema.cpp
  45. +3
    -3
      kate/part/katesearch.cpp
  46. +5
    -5
      kate/part/katetemplatehandler.cpp
  47. +4
    -4
      kate/part/kateundo.cpp
  48. +3
    -3
      kate/part/kateview.cpp
  49. +2
    -2
      kate/part/kateviewinternal.cpp
  50. +1
    -1
      kate/plugins/autobookmarker/autobookmarker.cpp
  51. +2
    -2
      kate/plugins/insertfile/insertfileplugin.cpp
  52. +2
    -2
      kate/plugins/isearch/ISearchPlugin.cpp
  53. +4
    -4
      kate/plugins/kdatatool/kate_kdatatool.cpp
  54. +2
    -2
      kate/plugins/wordcompletion/docwordcompletion.cpp
  55. +1
    -1
      kcert/kcertpart.cc
  56. +7
    -7
      kded/kbuildservicefactory.cpp
  57. +3
    -3
      kded/kbuildservicegroupfactory.cpp
  58. +9
    -9
      kded/kbuildservicetypefactory.cpp
  59. +6
    -6
      kded/kbuildsycoca.cpp
  60. +4
    -4
      kded/kctimefactory.cpp
  61. +2
    -2
      kded/vfolder_menu.cpp
  62. +2
    -2
      kdoctools/kio_help.cpp
  63. +4
    -4
      kdoctools/xslt.cpp
  64. +1
    -1
      khtml/css/css_base.h
  65. +1
    -1
      khtml/css/css_ruleimpl.h
  66. +3
    -3
      khtml/css/css_valueimpl.cpp
  67. +1
    -1
      khtml/css/css_valueimpl.h
  68. +1
    -1
      khtml/css/cssparser.cpp
  69. +5
    -5
      khtml/css/cssstyleselector.cpp
  70. +1
    -1
      khtml/dom/css_value.h
  71. +3
    -3
      khtml/dom/html_block.h
  72. +1
    -1
      khtml/dom/html_form.h
  73. +1
    -1
      khtml/dom/html_image.cpp
  74. +6
    -6
      khtml/dom/html_image.h
  75. +1
    -1
      khtml/dom/html_inline.cpp
  76. +6
    -6
      khtml/dom/html_inline.h
  77. +13
    -13
      khtml/dom/html_table.h
  78. +7
    -7
      khtml/ecma/kjs_debugwin.cpp
  79. +4
    -4
      khtml/ecma/kjs_html.cpp
  80. +7
    -7
      khtml/ecma/kjs_navigator.cpp
  81. +2
    -2
      khtml/ecma/kjs_window.cpp
  82. +1
    -1
      khtml/html/html_documentimpl.cpp
  83. +12
    -12
      khtml/html/html_elementimpl.cpp
  84. +1
    -1
      khtml/html/html_elementimpl.h
  85. +1
    -1
      khtml/html/html_formimpl.cpp
  86. +9
    -9
      khtml/html/html_imageimpl.cpp
  87. +2
    -2
      khtml/html/html_imageimpl.h
  88. +5
    -5
      khtml/html/html_miscimpl.cpp
  89. +1
    -1
      khtml/java/kjavaappletviewer.cpp
  90. +5
    -5
      khtml/java/kjavaprocess.cpp
  91. +4
    -4
      khtml/khtml_caret.cpp
  92. +2
    -2
      khtml/khtml_pagecache.cpp
  93. +3
    -3
      khtml/khtml_part.cpp
  94. +1
    -1
      khtml/khtml_settings.cc
  95. +10
    -10
      khtml/khtmlview.cpp
  96. +2
    -2
      khtml/khtmlview.h
  97. +2
    -2
      khtml/kmultipart/kmultipart.cpp
  98. +2
    -2
      khtml/misc/arena.cpp
  99. +2
    -2
      khtml/misc/htmlattrs.c
  100. +1
    -1
      khtml/misc/khtmllayout.h

+ 3
- 3
KDE3PORTING.html View File

@@ -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
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>

<p>The virtual methods orientationChange() and popupDirectionChange() are deprecated.
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
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
@@ -662,7 +662,7 @@ a future version.
<H4>KPanelExtension</H4>

<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>
<p>


+ 1
- 1
arts/kde/kvideowidget.cpp View File

@@ -147,7 +147,7 @@ void KVideoWidget::embed( Arts::VideoPlayObject vpo )
}

setBackgroundMode( PaletteBackground );
tqrepaint();
repaint();

// Resize GUI
videoWidth = 0;


+ 2
- 2
dcop/KDE-ICE/ICElib.h View File

@@ -89,7 +89,7 @@ typedef enum {
IceClosedASAP,
IceConnectionInUse,
IceStartedShutdownNegotiation
} IceCloseStatus;
} IceClosetStatus;

typedef enum {
IceProcessMessagesSuccess,
@@ -398,7 +398,7 @@ extern Bool IceCheckShutdownNegotiation (

#define IceCloseConnection KDE_IceCloseConnection

extern IceCloseStatus IceCloseConnection (
extern IceClosetStatus IceCloseConnection (
#if NeedFunctionPrototypes
IceConn /* iceConn */
#endif


+ 2
- 2
dcop/KDE-ICE/ICEmsg.h View File

@@ -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.
*/

@@ -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.
*/



+ 2
- 2
dcop/KDE-ICE/shutdown.c View File

@@ -102,14 +102,14 @@ IceConn iceConn;


IceCloseStatus
IceClosetStatus
IceCloseConnection (iceConn)

IceConn iceConn;

{
int refCountReachedZero;
IceCloseStatus status;
IceClosetStatus status;

/*
* If this connection object was never valid, we can close


+ 1
- 1
dcop/client/dcop.cpp View File

@@ -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)
{
partl.remove(partl.tqat(s));
partl.remove(partl.at(s));
}

lt = partl.join(" ");


+ 1
- 1
dcop/client/dcopfind.cpp View File

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

lt = partl.join(" ");


+ 1
- 1
dcop/dcopref.h View File

@@ -396,7 +396,7 @@ public:
* Flag for allowing entering the event loop if the call blocks too long.
* @p NoEventLoop disables entering the event loop.
* @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.
* @see DCOPClient::call()
*/


+ 4
- 4
dcop/dcopserver.cpp View File

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


+ 1
- 1
interfaces/khexedit/byteseditinterface.h View File

@@ -143,7 +143,7 @@ class BytesEditInterface
virtual bool isModified() const = 0;

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;
};



+ 1
- 1
interfaces/kimproxy/interface/kimiface.h View File

@@ -467,7 +467,7 @@ k_dcop_signals:
/**
* @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.
*
* Implementations just have to call this method with the appropriate


+ 1
- 1
interfaces/ktexteditor/editinterfaceext.h View File

@@ -44,7 +44,7 @@ class KTEXTEDITOR_EXPORT EditInterfaceExt
/**
* Begin an editing sequence. Edit commands during this sequence will be
* 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
* has an unterminated (no matching editEnd() call) editing sequence


+ 1
- 1
interfaces/ktexteditor/editorchooser.cpp View File

@@ -95,7 +95,7 @@ void EditorChooser::writeAppSetting(const TQString& postfix){
cfg->setGroup("KTEXTEDITOR:"+postfix);
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) ?
TQString::null : (*d->elements.tqat(d->chooser->editorCombo->currentItem()-1)));
TQString::null : (*d->elements.at(d->chooser->editorCombo->currentItem()-1)));
cfg->sync();
cfg->setGroup(previousGroup);



+ 1
- 1
interfaces/ktexteditor/editorchooser_ui.ui View File

@@ -40,7 +40,7 @@
<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>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignVCenter|AlignLeft</set>
</property>
</widget>


+ 1
- 1
kab/addressbook.h View File

@@ -127,7 +127,7 @@ class CategoriesMap : public TQMap<int, TQString>
* 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
* 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>
* kab watches file changes. If the opened file changes on disk, it is
* automatically reloaded and ::changed() is emitted.


+ 3
- 3
kab/qconfigDB.cc View File

@@ -1188,7 +1188,7 @@ KeyValueMap::insert(const TQCString& key, const TQStrList& values, bool force)
// ----- create coded string list:
for(count=0; count<values.count(); ++count)
{ // 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(temp.length()-1, 1); // the trailing "\""
value+=temp;
@@ -1231,7 +1231,7 @@ KeyValueMap::get(const TQCString& key, TQStringList& values) const
// ----- do the conversion:
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;
@@ -1252,7 +1252,7 @@ KeyValueMap::insert(const TQCString& key, const TQStringList& values, bool force
// ----- create TQCString list:
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;
return insert(key, utf8strings, force);


+ 1
- 1
kabc/formats/binaryformat.cpp View File

@@ -113,7 +113,7 @@ void BinaryFormat::saveAll( AddressBook*, Resource *resource, TQFile *file )
}

// set real number of entries
stream.tqdevice()->tqat( 2 * sizeof( TQ_UINT32 ) );
stream.device()->at( 2 * sizeof( TQ_UINT32 ) );
stream << counter;
}



+ 10
- 10
kabc/kab2kabc.cpp View File

@@ -57,12 +57,12 @@ void readKMailEntry( const TQString &kmailEntry, KABC::AddressBook *ab )
TQString name;
TQString comment;

if ( entry.tqat( entry.length() -1 ) == ')' ) {
if ( entry.at( entry.length() -1 ) == ')' ) {
int br = entry.findRev( '(' );
if ( br >= 0 ) {
comment = entry.mid( br + 1, entry.length() - br - 2 );
entry.truncate( br );
if ( entry.tqat( entry.length() - 1 ).isSpace() ) {
if ( entry.at( entry.length() - 1 ).isSpace() ) {
entry.truncate( br - 1 );
}
}
@@ -80,22 +80,22 @@ void readKMailEntry( const TQString &kmailEntry, KABC::AddressBook *ab )
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 );
}
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 );
}
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 );
}

if ( name.tqat( name.length() -1 ) == ')' ) {
if ( name.at( name.length() -1 ) == ')' ) {
int br = name.findRev( '(' );
if ( br >= 0 ) {
comment = name.mid( br + 1, name.length() - br - 2 ) + " " + comment;
name.truncate( br );
if ( name.tqat( name.length() - 1 ).isSpace() ) {
if ( name.at( name.length() - 1 ).isSpace() ) {
name.truncate( br - 1 );
}
}
@@ -148,16 +148,16 @@ void importKMailAddressBook( KABC::AddressBook *ab )

TQStringList::ConstIterator it;
for ( it = kmailEntries.begin(); it != kmailEntries.end(); ++it ) {
if ( (*it).tqat( 0 ) == '#' ) continue;
if ( (*it).at( 0 ) == '#' ) continue;
bool insideQuote = false;
int end = (*it).length() - 1;
for ( int i = end; i; i-- ) {
if ( (*it).tqat( i ) == '"' ) {
if ( (*it).at( i ) == '"' ) {
if ( insideQuote )
insideQuote = false;
else
insideQuote = true;
} else if ( (*it).tqat( i ) == ',' && !insideQuote ) {
} else if ( (*it).at( i ) == ',' && !insideQuote ) {
readKMailEntry( (*it).mid( i + 1, end - i ), ab );
end = i - 1;
}


+ 1
- 1
kabc/resourceselectdialog.cpp View File

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


+ 40
- 40
kabc/tests/testaddresseelist.cpp View File

@@ -64,12 +64,12 @@ int main(int /*argc*/,char /* **argv*/)
list.append(f);

list.sortBy(FamilyName);
if ( !( (*list.tqat(0)).uid()=="78ze"
&& (*list.tqat(1)).uid()=="Rsdf"
&& (*list.tqat(2)).uid()=="Fhwn"
&& (*list.tqat(3)).uid()=="kk45"
&& (*list.tqat(4)).uid()=="Asdf"
&& (*list.tqat(5)).uid()=="Z2hk"
if ( !( (*list.at(0)).uid()=="78ze"
&& (*list.at(1)).uid()=="Rsdf"
&& (*list.at(2)).uid()=="Fhwn"
&& (*list.at(3)).uid()=="kk45"
&& (*list.at(4)).uid()=="Asdf"
&& (*list.at(5)).uid()=="Z2hk"
) ) {
kdError() << "SORTING BY FAMILY NAME NOT CORRECT!" << endl;
kdDebug() << "list sorted by family name:" << endl;
@@ -79,12 +79,12 @@ int main(int /*argc*/,char /* **argv*/)
}
list.setReverseSorting(true);
list.sort();
if ( !( (*list.tqat(5)).uid()=="78ze"
&& (*list.tqat(4)).uid()=="Rsdf"
&& (*list.tqat(3)).uid()=="Fhwn"
&& (*list.tqat(2)).uid()=="kk45"
&& (*list.tqat(1)).uid()=="Asdf"
&& (*list.tqat(0)).uid()=="Z2hk"
if ( !( (*list.at(5)).uid()=="78ze"
&& (*list.at(4)).uid()=="Rsdf"
&& (*list.at(3)).uid()=="Fhwn"
&& (*list.at(2)).uid()=="kk45"
&& (*list.at(1)).uid()=="Asdf"
&& (*list.at(0)).uid()=="Z2hk"
) ) {
kdError() << "REVERSE SORTING BY FAMILY NAME NOT CORRECT!" << endl;
kdDebug() << "list reverse sorted by family name:" << endl;
@@ -95,12 +95,12 @@ int main(int /*argc*/,char /* **argv*/)

list.setReverseSorting(false);
list.sortBy(FormattedName);
if ( !( (*list.tqat(0)).uid()=="78ze"
&& (*list.tqat(1)).uid()=="Rsdf"
&& (*list.tqat(2)).uid()=="Fhwn"
&& (*list.tqat(3)).uid()=="kk45"
&& (*list.tqat(4)).uid()=="Z2hk"
&& (*list.tqat(5)).uid()=="Asdf"
if ( !( (*list.at(0)).uid()=="78ze"
&& (*list.at(1)).uid()=="Rsdf"
&& (*list.at(2)).uid()=="Fhwn"
&& (*list.at(3)).uid()=="kk45"
&& (*list.at(4)).uid()=="Z2hk"
&& (*list.at(5)).uid()=="Asdf"
) ) {
kdError() << "SORTING BY FORMATTED NAME NOT CORRECT!" << endl;
kdDebug() << "list sorted by formatted name:" << endl;
@@ -110,12 +110,12 @@ int main(int /*argc*/,char /* **argv*/)
}
list.setReverseSorting(true);
list.sort();
if ( !( (*list.tqat(5)).uid()=="78ze"
&& (*list.tqat(4)).uid()=="Rsdf"
&& (*list.tqat(3)).uid()=="Fhwn"
&& (*list.tqat(2)).uid()=="kk45"
&& (*list.tqat(1)).uid()=="Z2hk"
&& (*list.tqat(0)).uid()=="Asdf"
if ( !( (*list.at(5)).uid()=="78ze"
&& (*list.at(4)).uid()=="Rsdf"
&& (*list.at(3)).uid()=="Fhwn"
&& (*list.at(2)).uid()=="kk45"
&& (*list.at(1)).uid()=="Z2hk"
&& (*list.at(0)).uid()=="Asdf"
) ) {
kdError() << "REVERSE SORTING BY FORMATTED NAME NOT CORRECT!" << endl;
kdDebug() << "list reverse sorted by formatted name:" << endl;
@@ -127,12 +127,12 @@ int main(int /*argc*/,char /* **argv*/)

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


+ 7
- 7
kabc/vcard/AdrValue.cpp View File

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


+ 1
- 1
kabc/vcard/ContentLine.cpp View File

@@ -174,7 +174,7 @@ ContentLine::_parse()
return;
}
name_ = l.tqat(0);
name_ = l.at(0);

// Now we have the name, so the rest of 'l' is the params.
// Remove the name part.


+ 1
- 1
kabc/vcard/LangValue.cpp View File

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


+ 5
- 5
kabc/vcard/NValue.cpp View File

@@ -106,11 +106,11 @@ NValue::_parse()
for (unsigned int i = 0; i < l.count(); i++) {

switch (i) {
case 0: family_ = l.tqat(0); break;
case 1: given_ = l.tqat(1); break;
case 2: middle_ = l.tqat(2); break;
case 3: prefix_ = l.tqat(3); break;
case 4: suffix_ = l.tqat(4); break;
case 0: family_ = l.at(0); break;
case 1: given_ = l.at(1); break;
case 2: middle_ = l.at(2); break;
case 3: prefix_ = l.at(3); break;
case 4: suffix_ = l.at(4); break;
default: break;
}
}


+ 1
- 1
kabc/vcard/OrgValue.cpp View File

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


+ 1
- 1
kabc/vcard/TextListValue.cpp View File

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


+ 1
- 1
kabc/vcard/VCard.cpp View File

@@ -95,7 +95,7 @@ VCard::_parse()
}

// Get the first line
TQCString beginLine = TQCString(l.tqat(0)).stripWhiteSpace();
TQCString beginLine = TQCString(l.at(0)).stripWhiteSpace();

vDebug("Begin line == \"" + beginLine + "\"");



+ 1
- 1
kabc/vcardparser/vcardparser.cpp View File

@@ -144,7 +144,7 @@ VCard::List VCardParser::parseVCards( const TQString& text )
}
else if ( vCardLine.parameter( "encoding" ).lower() == "quoted-printable" ) {
// 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);
++it;
}


+ 1
- 1
kabc/vcardtool.cpp View File

@@ -36,7 +36,7 @@ static bool needsEncoding( const TQString &value )
{
uint length = value.length();
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 != '=' )
return true;
}


+ 5
- 5
kate/part/kateautoindent.cpp View File

@@ -223,7 +223,7 @@ void KateNormalIndent::updateConfig ()

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)
{
commentAttrib = i;
@@ -1411,7 +1411,7 @@ void KateXmlIndent::getLineInfo (uint line, uint &prevIndent, int &numTags,
uint pos, len = text.length();
bool seenOpen = false;
for(pos = 0; pos < len; ++pos) {
int ch = text.tqat(pos).tqunicode();
int ch = text.at(pos).tqunicode();
switch(ch) {
case '<':
seenOpen = true;
@@ -1467,11 +1467,11 @@ void KateXmlIndent::getLineInfo (uint line, uint &prevIndent, int &numTags,
if(unclosedTag) {
// find the start of the next attribute, so we can align with it
do {
lastCh = text.tqat(++attrCol).tqunicode();
lastCh = text.at(++attrCol).tqunicode();
}while(lastCh && lastCh != ' ' && lastCh != '\t');

while(lastCh == ' ' || lastCh == '\t') {
lastCh = text.tqat(++attrCol).tqunicode();
lastCh = text.at(++attrCol).tqunicode();
}

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++)
{
if ( items.tqat(i)->name.section( ':', 1 ) == val )
if ( items.at(i)->name.section( ':', 1 ) == val )
{
d->coupleAttrib = i;
break;


+ 5
- 5
kate/part/katebookmarks.cpp View File

@@ -128,7 +128,7 @@ void KateBookmarks::clearBookmarks ()

TQPtrList<KTextEditor::Mark> m = m_view->getDoc()->marks();
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 ;)
marksChanged ();
@@ -255,8 +255,8 @@ void KateBookmarks::goNext()
int found = -1;

for (uint z=0; z < m.count(); z++)
if ( (m.tqat(z)->line > line) && ((found == -1) || (uint(found) > m.tqat(z)->line)) )
found = m.tqat(z)->line;
if ( (m.at(z)->line > line) && ((found == -1) || (uint(found) > m.at(z)->line)) )
found = m.at(z)->line;

if (found != -1)
m_view->gotoLineNumber ( found );
@@ -272,8 +272,8 @@ void KateBookmarks::goPrevious()
int found = -1;

for (uint z=0; z < m.count(); z++)
if ((m.tqat(z)->line < line) && ((found == -1) || (uint(found) < m.tqat(z)->line)))
found = m.tqat(z)->line;
if ((m.at(z)->line < line) && ((found == -1) || (uint(found) < m.at(z)->line)))
found = m.at(z)->line;

if (found != -1)
m_view->gotoLineNumber ( found );


+ 6
- 6
kate/part/katebuffer.cpp View File

@@ -860,12 +860,12 @@ void KateBuffer::setHighlight(uint hlMode)
// aha, hl will change
if (h != m_highlight)
{
bool tqinvalidate = !h->noHighlighting();
bool invalidate = !h->noHighlighting();

if (m_highlight)
{
m_highlight->release();
tqinvalidate = true;
invalidate = true;
}

h->use();
@@ -880,7 +880,7 @@ void KateBuffer::setHighlight(uint hlMode)

m_highlight = h;

if (tqinvalidate)
if (invalidate)
invalidateHighlighting();

// 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
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 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)
{
{
@@ -1240,7 +1240,7 @@ bool KateBuffer::doHighlight (KateBufBlock *buf, uint startLine, uint endLine, b
buf->markDirty ();

// tag the changed lines !
if (tqinvalidate)
if (invalidate)
emit tagLines (startLine, current_line + buf->startLine());

// emit that we have changed the folding


+ 2
- 2
kate/part/katebuffer.h View File

@@ -116,7 +116,7 @@ class KateBufBlock
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
*/
void markDirty ();
@@ -611,7 +611,7 @@ class KateBuffer : public TQObject
* @returns true when the highlighting in the next block needs to be updated,
* false otherwise.
*/
bool doHighlight (KateBufBlock *buf, uint from, uint to, bool tqinvalidate);
bool doHighlight (KateBufBlock *buf, uint from, uint to, bool invalidate);

signals:
/**


+ 6
- 6
kate/part/katecodefoldinghelpers.cpp View File

@@ -1259,7 +1259,7 @@ void KateCodeFoldingTree::cleanupUnneededNodes(unsigned int line)

for (int i=0; i<(int)markedForDeleting.count(); i++)
{
KateCodeFoldingNode *node = markedForDeleting.tqat(i);
KateCodeFoldingNode *node = markedForDeleting.at(i);
if (node->deleteOpening)
kdDebug(13000)<<"DELETE OPENING SET"<<endl;
if (node->deleteEnding)
@@ -1335,7 +1335,7 @@ void KateCodeFoldingTree::toggleRegionVisibility(unsigned int line)
findAllNodesOpenedOrClosedAt(line);
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) )
{
nodesForLine.remove(i);
@@ -1346,10 +1346,10 @@ void KateCodeFoldingTree::toggleRegionVisibility(unsigned int line)
if (nodesForLine.isEmpty())
return;

nodesForLine.tqat(0)->visible = !nodesForLine.tqat(0)->visible;
nodesForLine.at(0)->visible = !nodesForLine.at(0)->visible;

if (!nodesForLine.tqat(0)->visible)
addHiddenLineBlock(nodesForLine.tqat(0),line);
if (!nodesForLine.at(0)->visible)
addHiddenLineBlock(nodesForLine.at(0),line);
else
{
for (TQValueList<KateHiddenLineBlock>::Iterator it=hiddenLines.begin(); it!=hiddenLines.end();++it)
@@ -1359,7 +1359,7 @@ void KateCodeFoldingTree::toggleRegionVisibility(unsigned int line)
break;
}

updateHiddenSubNodes(nodesForLine.tqat(0));
updateHiddenSubNodes(nodesForLine.at(0));
}

emit regionVisibilityChangedAt(line);


+ 6
- 6
kate/part/kateconfig.cpp View File

@@ -237,7 +237,7 @@ void KateDocumentConfig::updateConfig ()
{
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())
return false;

if (m_pluginsSet.tqat(index) || isGlobal())
return m_plugins.tqat(index);
if (m_pluginsSet.at(index) || isGlobal())
return m_plugins.at(index);

return s_global->plugin (index);
}
@@ -734,7 +734,7 @@ void KateViewConfig::updateConfig ()
{
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++)
{
KateFactory::self()->renderers()->tqat(z)->updateConfig ();
KateFactory::self()->renderers()->at(z)->updateConfig ();
}
}
}
@@ -1114,7 +1114,7 @@ void KateRendererConfig::reloadSchema()
{
if ( isGlobal() )
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 )
setSchemaInternal( m_schema );


+ 4
- 4
kate/part/katedialogs.cpp View File

@@ -712,7 +712,7 @@ KateViewDefaultsConfig::KateViewDefaultsConfig(TQWidget *parent)
"you to set a maximum width of the screen, as a percentage, after which "
"dynamically wrapped lines will no longer be vertically aligned. For "
"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>"));
TQWhatsThis::add(m_line,i18n(
"If this option is checked, every new view will display line numbers "
@@ -819,7 +819,7 @@ void KateEditKeyConfiguration::showEvent ( TQShowEvent * )
if (!m_ready)
{
(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_keyChooser = new KKeyChooser( m_ac, this, false );
connect( m_keyChooser, TQT_SIGNAL( keyChange() ), this, TQT_SLOT( slotChanged() ) );
@@ -1154,7 +1154,7 @@ void KatePartPluginConfigPage::apply ()
KateDocumentConfig::global()->configStart ();

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 ();
}
@@ -1243,7 +1243,7 @@ void KatePartPluginConfigPage::slotConfigure()

for( uint i=0; i<editorPages.count(); i++ )
{
editorPages.tqat( i )->apply();
editorPages.at( i )->apply();
}
}



+ 20
- 20
kate/part/katedocument.cpp View File

@@ -323,7 +323,7 @@ void KateDocument::enablePluginGUI (KTextEditor::Plugin *plugin)
if (!KTextEditor::pluginViewInterface(plugin)) return;

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)
@@ -347,7 +347,7 @@ void KateDocument::disablePluginGUI (KTextEditor::Plugin *plugin)
if (!KTextEditor::pluginViewInterface(plugin)) return;

for (uint i=0; i< m_views.count(); i++)
disablePluginGUI (plugin, m_views.tqat(i));
disablePluginGUI (plugin, m_views.at(i));
}
//END

@@ -641,7 +641,7 @@ bool KateDocument::setText(const TQString &s)
TQValueList<KTextEditor::Mark> msave;

for (uint i=0; i < m.count(); i++)
msave.append (*m.tqat(i));
msave.append (*m.at(i));

editStart ();

@@ -924,7 +924,7 @@ void KateDocument::editStart (bool withUndo)

for (uint z = 0; z < m_views.count(); z++)
{
m_views.tqat(z)->editStart ();
m_views.at(z)->editStart ();
}

m_buffer->editStart ();
@@ -1029,7 +1029,7 @@ void KateDocument::editEnd ()

// edit end for all views !!!!!!!!!
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())
{
@@ -2011,7 +2011,7 @@ void KateDocument::configDialog()

for (uint i=0; i<editorPages.count(); i++)
{
editorPages.tqat(i)->apply();
editorPages.at(i)->apply();
}

KateDocumentConfig::global()->configEnd ();
@@ -2869,7 +2869,7 @@ void KateDocument::setModified(bool m) {
void KateDocument::makeAttribs(bool needInvalidate)
{
for (uint z = 0; z < m_views.count(); z++)
m_views.tqat(z)->renderer()->updateAttributes ();
m_views.at(z)->renderer()->updateAttributes ();

if (needInvalidate)
m_buffer->invalidateHighlighting();
@@ -3981,9 +3981,9 @@ void KateDocument::transform( KateView *v, const KateTextCursor &c,
if ( ( ! start && ! p ) ||
( ( ln == selstart.line() || v->blockSelectionMode() ) &&
! 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++;
}
}
@@ -4096,7 +4096,7 @@ TQString KateDocument::getWord( const KateTextCursor& cursor ) {
void KateDocument::tagLines(int start, int end)
{
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)
@@ -4109,21 +4109,21 @@ void KateDocument::tagLines(KateTextCursor start, KateTextCursor end)
}

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)
{
for (uint z = 0; z < m_views.count(); z++)
m_views.tqat(z)->repaintText(paintOnlyDirty);
m_views.at(z)->repaintText(paintOnlyDirty);
}

void KateDocument::tagAll()
{
for (uint z = 0; z < m_views.count(); z++)
{
m_views.tqat(z)->tagAll();
m_views.tqat(z)->updateView (true);
m_views.at(z)->tagAll();
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++)
{
if ( (KateFactory::self()->documents()->tqat(z) != this) && (KateFactory::self()->documents()->tqat(z)->url().filename() == url().filename()) )
if ( KateFactory::self()->documents()->tqat(z)->m_docNameNumber > count )
count = KateFactory::self()->documents()->tqat(z)->m_docNameNumber;
if ( (KateFactory::self()->documents()->at(z) != this) && (KateFactory::self()->documents()->at(z)->url().filename() == url().filename()) )
if ( KateFactory::self()->documents()->at(z)->m_docNameNumber > count )
count = KateFactory::self()->documents()->at(z)->m_docNameNumber;
}

m_docNameNumber = count + 1;
@@ -4437,14 +4437,14 @@ void KateDocument::reloadFile()
TQValueList<int> lines, cols;
for ( uint i=0; i < m_views.count(); i++ )
{
lines.append( m_views.tqat( i )->cursorLine() );
cols.append( m_views.tqat( i )->cursorColumn() );
lines.append( m_views.at( i )->cursorLine() );
cols.append( m_views.at( i )->cursorColumn() );
}

KateDocument::openURL( url() );

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;



+ 1
- 1
kate/part/katefactory.cpp View File

@@ -267,7 +267,7 @@ KateIndentScript KateFactory::indentScript (const TQString &scriptname)
KateIndentScript result;
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;
}
return result;


+ 25
- 25
kate/part/katefiletype.cpp View File

@@ -106,20 +106,20 @@ void KateFileTypeManager::save (TQPtrList<KateFileType> *v)
TQStringList newg;
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 ("Wildcards", v->tqat(z)->wildcards, ';');
config.writeEntry ("Mimetypes", v->tqat(z)->mimetypes, ';');
config.writeEntry ("Priority", v->tqat(z)->priority);
config.writeEntry ("Section", v->at(z)->section);
config.writeEntry ("Wildcards", v->at(z)->wildcards, ';');
config.writeEntry ("Mimetypes", v->at(z)->mimetypes, ';');
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)
varLine.prepend ("kate: ");

config.writeEntry ("Variables", varLine);

newg << v->tqat(z)->name;
newg << v->at(z)->name;
}

TQStringList g (config.groupList());
@@ -187,8 +187,8 @@ int KateFileTypeManager::fileType (KateDocument *doc)

for (uint z=0; z < m_types.count(); z++)
{
if (m_types.tqat(z)->mimetypes.findIndex (mt->name()) > -1)
types.append (m_types.tqat(z));
if (m_types.at(z)->mimetypes.findIndex (mt->name()) > -1)
types.append (m_types.at(z));
}

if ( !types.isEmpty() )
@@ -218,13 +218,13 @@ int KateFileTypeManager::wildcardsFind (const TQString &fileName)

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
// would otherwise end up with the c hl
TQRegExp re(*it, true, true);
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)
{
if (number < m_types.count())
return m_types.tqat(number);
return m_types.at(number);

return 0;
}
@@ -373,7 +373,7 @@ void KateFileTypeConfigTab::reload()
{
KateFileType *type = new KateFileType ();

*type = *KateFactory::self()->fileTypeManager()->list()->tqat(z);
*type = *KateFactory::self()->fileTypeManager()->list()->at(z);

m_types.append (type);
}
@@ -398,10 +398,10 @@ void KateFileTypeConfigTab::update ()
typeCombo->clear ();

for( uint i = 0; i < m_types.count(); i++) {
if (m_types.tqat(i)->section.length() > 0)
typeCombo->insertItem(m_types.tqat(i)->section + TQString ("/") + m_types.tqat(i)->name);
if (m_types.at(i)->section.length() > 0)
typeCombo->insertItem(m_types.at(i)->section + TQString ("/") + m_types.at(i)->name);
else
typeCombo->insertItem(m_types.tqat(i)->name);
typeCombo->insertItem(m_types.at(i)->name);
}

typeCombo->setCurrentItem (0);
@@ -427,7 +427,7 @@ void KateFileTypeConfigTab::newType ()
TQString newN = i18n("New Filetype");

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);
typeChanged (i);
@@ -464,7 +464,7 @@ void KateFileTypeConfigTab::typeChanged (int type)
KateFileType *t = 0;

if ((type > -1) && ((uint)type < m_types.count()))
t = m_types.tqat(type);
t = m_types.at(type);

if (t)
{
@@ -536,8 +536,8 @@ void KateViewFileTypeAction::slotAboutToShow()

for (int z=0; z<count; z++)
{
TQString hlName = KateFactory::self()->fileTypeManager()->list()->tqat(z)->name;
TQString hlSection = KateFactory::self()->fileTypeManager()->list()->tqat(z)->section;
TQString hlName = KateFactory::self()->fileTypeManager()->list()->at(z)->name;
TQString hlSection = KateFactory::self()->fileTypeManager()->list()->at(z)->section;

if ( !hlSection.isEmpty() && (names.contains(hlName) < 1) )
{
@@ -551,7 +551,7 @@ void KateViewFileTypeAction::slotAboutToShow()

int m = subMenusName.findIndex (hlSection);
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)
{
@@ -564,8 +564,8 @@ void KateViewFileTypeAction::slotAboutToShow()

for (uint i=0;i<subMenus.count();i++)
{
for (uint i2=0;i2<subMenus.tqat(i)->count();i2++)
subMenus.tqat(i)->setItemChecked(subMenus.tqat(i)->idAt(i2),false);
for (uint i2=0;i2<subMenus.at(i)->count();i2++)
subMenus.at(i)->setItemChecked(subMenus.at(i)->idAt(i2),false);
}
popupMenu()->setItemChecked (0, false);

@@ -577,8 +577,8 @@ void KateViewFileTypeAction::slotAboutToShow()
if ((t = KateFactory::self()->fileTypeManager()->fileType (doc->fileType())))
{
int i = subMenusName.findIndex (t->section);
if (i >= 0 && subMenus.tqat(i))
subMenus.tqat(i)->setItemChecked (doc->fileType()+1, true);
if (i >= 0 && subMenus.at(i))
subMenus.at(i)->setItemChecked (doc->fileType()+1, true);
else
popupMenu()->setItemChecked (0, true);
}


+ 25
- 25
kate/part/katehighlight.cpp View File

@@ -815,7 +815,7 @@ int KateHlCOct::checkHgl(const TQString& text, int offset, int len)

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++;
len--;
@@ -1038,7 +1038,7 @@ static int checkEscapedChar(const TQString& text, int offset, int& len)
// replaced with something else but
// for right now they work
// 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++;
len--;
@@ -1051,7 +1051,7 @@ static int checkEscapedChar(const TQString& text, int offset, int& len)

case '0': case '1': case '2': case '3' :
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++;
len--;
@@ -1890,7 +1890,7 @@ void KateHighlighting::addToKateHlItemDataList()
int KateHighlighting::lookupAttrName(const TQString& name, KateHlItemDataList &iDl)
{
for (uint i = 0; i < iDl.count(); i++)
if (iDl.tqat(i)->name == buildPrefix+name)
if (iDl.at(i)->name == buildPrefix+name)
return i;

kdDebug(13010)<<"Couldn't resolve itemDataName:"<<name<<endl;
@@ -2885,13 +2885,13 @@ void KateHighlighting::clearAttributeArrays ()

for (uint z = 0; z < nAttribs; z++)
{
KateHlItemData *itemData = itemDataList.tqat(z);
KateAttribute n = *defaultStyleList.tqat(itemData->defStyleNum);
KateHlItemData *itemData = itemDataList.at(z);
KateAttribute n = *defaultStyleList.at(itemData->defStyleNum);

if (itemData && itemData->isSomethingSet())
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++)
{
KateHlItemData *itemData = itemDataList.tqat(z);
KateAttribute n = *defaultStyleList.tqat(itemData->defStyleNum);
KateHlItemData *itemData = itemDataList.at(z);
KateAttribute n = *defaultStyleList.at(itemData->defStyleNum);

if (itemData && itemData->isSomethingSet())
n += *itemData;

array->tqat(z) = n;
array->at(z) = n;
}

m_attributeArrays.insert(schema, array);
@@ -2946,7 +2946,7 @@ void KateHighlighting::getKateHlItemDataListCopy (uint schema, KateHlItemDataLis
outlist.clear ();
outlist.setAutoDelete (true);
for (uint z=0; z < itemDataList.count(); z++)
outlist.append (new KateHlItemData (*itemDataList.tqat(z)));
outlist.append (new KateHlItemData (*itemDataList.at(z)));
}

//END
@@ -2974,7 +2974,7 @@ KateHlManager::KateHlManager()
if (insert == hlList.count())
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() )
break;
}
@@ -3011,14 +3011,14 @@ KateHighlighting *KateHlManager::getHl(int n)
if (n < 0 || n >= (int) hlList.count())
n = 0;

return hlList.tqat(n);
return hlList.at(n);
}

int KateHlManager::nameFind(const TQString &name)
{
int z (hlList.count() - 1);
for (; z > 0; z--)
if (hlList.tqat(z)->name() == name)
if (hlList.at(z)->name() == name)
return z;

return z;
@@ -3269,7 +3269,7 @@ void KateHlManager::getDefaults(uint schema, KateAttributeList &list)

for (uint z = 0; z < defaultStyles(); z++)
{
KateAttribute *i = list.tqat(z);
KateAttribute *i = list.at(z);
TQStringList s = config->readListEntry(defaultStyleName(z));
if (!s.isEmpty())
{
@@ -3323,7 +3323,7 @@ void KateHlManager::setDefaults(uint schema, KateAttributeList &list)
for (uint z = 0; z < defaultStyles(); z++)
{
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::SelectedTextColor)?TQString::number(i->selectedTextColor().rgb(),16):"");
@@ -3348,22 +3348,22 @@ int KateHlManager::highlights()

TQString KateHlManager::hlName(int n)
{
return hlList.tqat(n)->name();
return hlList.at(n)->name();
}

TQString KateHlManager::hlNameTranslated(int n)
{
return hlList.tqat(n)->nameTranslated();
return hlList.at(n)->nameTranslated();
}

TQString KateHlManager::hlSection(int n)
{
return hlList.tqat(n)->section();
return hlList.at(n)->section();
}

bool KateHlManager::hlHidden(int n)
{
return hlList.tqat(n)->hidden();
return hlList.at(n)->hidden();
}

TQString KateHlManager::identifierForName(const TQString& name)
@@ -3433,7 +3433,7 @@ void KateViewHighlightAction::slotAboutToShow()

int m = subMenusName.findIndex (hlSection);
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)
{
@@ -3447,16 +3447,16 @@ void KateViewHighlightAction::slotAboutToShow()

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);

int i = subMenusName.findIndex (KateHlManager::self()->hlSection(doc->hlMode()));
if (i >= 0 && subMenus.tqat(i))
subMenus.tqat(i)->setItemChecked (doc->hlMode(), true);
if (i >= 0 && subMenus.at(i))
subMenus.at(i)->setItemChecked (doc->hlMode(), true);
else
popupMenu()->setItemChecked (0, true);
}


+ 2
- 2
kate/part/katejscript.cpp View File

@@ -416,10 +416,10 @@ KJS::Value KJS::KateJSDocumentProtoFunc::call(KJS::ExecState *exec, KJS::Object
return KJS::Null ();

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:
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:
return KJS::Boolean( doc->highlight()->canComment( args[0].toUInt32(exec), args[1].toUInt32(exec) ) );


+ 1
- 1
kate/part/kateprinter.cpp View File

@@ -505,7 +505,7 @@ bool KatePrinter::print (KateDocument *doc)
// use color of dsNormal for the title string and the hline
KateAttributeList _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!??
if ( useBox )
{


+ 2
- 2
kate/part/katerenderer.cpp View File

@@ -69,9 +69,9 @@ void KateRenderer::updateAttributes ()
KateAttribute* KateRenderer::attribute(uint pos)
{
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)


+ 7
- 7
kate/part/kateschema.cpp View File

@@ -643,14 +643,14 @@ void KateSchemaConfigFontColorTab::schemaChanged (uint schema)
p.setColor( TQColorGroup::Highlight,
KateFactory::self()->schemaManager()->schema(schema)->
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 );
m_defaultStyles->viewport()->setPalette( p );

// insert the default styles backwards to get them in the right order
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,
KateFactory::self()->schemaManager()->schema(m_schema)->
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 );
m_styles->viewport()->setPalette( p );

@@ -795,9 +795,9 @@ void KateSchemaConfigHighlightTab::schemaChanged (uint schema)
parent->setOpen(true);
prefixes.insert( prefix, parent );
}
new KateStyleListItem( parent, name, l->tqat(itemData->defStyleNum), itemData );
new KateStyleListItem( parent, name, l->at(itemData->defStyleNum), itemData );
} 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;
is = new KateAttribute( *ds );
updateStyle();
tqrepaint();
repaint();
}
}

@@ -1441,7 +1441,7 @@ void KateStyleListItem::setColor( int column )
break;
}

tqrepaint();
repaint();
}

void KateStyleListItem::unsetColor( int c )


+ 3
- 3
kate/part/katesearch.cpp View File

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


+ 5
- 5
kate/part/katetemplatehandler.cpp View File

@@ -173,7 +173,7 @@ void KateTemplateHandler::generateRangeTable( uint insertLine, uint insertCol, c
{
++col;

if ( insertString.tqat( colInText ) == '\n' )
if ( insertString.at( colInText ) == '\n' )
{
col = 0;
line++;
@@ -216,7 +216,7 @@ void KateTemplateHandler::slotTextInserted( int line, int col )

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(),
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++ )
{
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 )
{
@@ -297,9 +297,9 @@ bool KateTemplateHandler::operator() ( KKey key )
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() );
}


+ 4
- 4
kate/part/kateundo.cpp View File

@@ -296,9 +296,9 @@ void KateUndoGroup::undo ()
if (m_doc->activeView())
{
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;
}
}
@@ -319,9 +319,9 @@ void KateUndoGroup::redo ()
if (m_doc->activeView())
{
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;
}
}


+ 3
- 3
kate/part/kateview.cpp View File

@@ -1233,11 +1233,11 @@ void KateView::updateRendererConfig()

// update the text area
m_viewInternal->updateView (true);
m_viewInternal->tqrepaint ();
m_viewInternal->repaint ();

// update the left border right, for example linenumbers
m_viewInternal->leftBorder->updateFont();
m_viewInternal->leftBorder->tqrepaint ();
m_viewInternal->leftBorder->repaint ();

// @@ showIndentLines is not cached anymore.
// m_renderer->setShowIndentLines (m_renderer->config()->showIndentationLines());
@@ -1596,7 +1596,7 @@ void KateView::paste()
{
m_doc->paste( this );
emit selectionChanged();
m_viewInternal->tqrepaint();
m_viewInternal->repaint();
}

void KateView::cut()


+ 2
- 2
kate/part/kateviewinternal.cpp View File

@@ -89,7 +89,7 @@ KateViewInternal::KateViewInternal(KateView *view, KateDocument *doc)
// cursor
cursor.setMoveOnInsert (true);

// tqinvalidate selStartCached, or keyb selection is screwed initially
// invalidate selStartCached, or keyb selection is screwed initially
selStartCached.setLine( -1 );
//
// scrollbar for lines
@@ -2759,7 +2759,7 @@ void KateViewInternal::mousePressEvent( TQMouseEvent* e )
}
else
{
selStartCached.setLine( -1 ); // tqinvalidate
selStartCached.setLine( -1 ); // invalidate
}

if( !( e->state() & TQt::ShiftButton ) && isTargetSelected( e->pos() ) )


+ 1
- 1
kate/plugins/autobookmarker/autobookmarker.cpp View File

@@ -235,7 +235,7 @@ void ABGlobal::writeConfig()
// fill in the current list
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->writeEntry( "pattern", e->pattern );
config->writeEntry( "filemask", e->filemask, ';' );


+ 2
- 2
kate/plugins/insertfile/insertfileplugin.cpp View File

@@ -59,9 +59,9 @@ void InsertFilePlugin::addView(KTextEditor::View *view)
void InsertFilePlugin::removeView(KTextEditor::View *view)
{
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);
delete nview;
}


+ 2
- 2
kate/plugins/isearch/ISearchPlugin.cpp View File

@@ -485,9 +485,9 @@ void ISearchPlugin::removeView(KTextEditor::View *view)
{
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);
delete nview;
}


+ 4
- 4
kate/plugins/kdatatool/kate_kdatatool.cpp View File

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


+ 2
- 2
kate/plugins/wordcompletion/docwordcompletion.cpp View File

@@ -91,9 +91,9 @@ void DocWordCompletionPlugin::addView(KTextEditor::View *view)
void DocWordCompletionPlugin::removeView(KTextEditor::View *view)
{
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);
delete nview;
}


+ 1
- 1
kcert/kcertpart.cc View File

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



+ 7
- 7
kded/kbuildservicefactory.cpp View File

@@ -113,32 +113,32 @@ KBuildServiceFactory::save(TQDataStream &str)
{
KSycocaFactory::save(str);

m_nameDictOffset = str.tqdevice()->tqat();
m_nameDictOffset = str.device()->at();
m_nameDict->save(str);

m_relNameDictOffset = str.tqdevice()->tqat();
m_relNameDictOffset = str.device()->at();
m_relNameDict->save(str);

saveOfferList(str);
saveInitList(str);

m_menuIdDictOffset = str.tqdevice()->tqat();
m_menuIdDictOffset = str.device()->at();
m_menuIdDict->save(str);

int endOfFactoryData = str.tqdevice()->tqat();