summaryrefslogtreecommitdiffstats
path: root/parts/classview/classviewpart.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/classview/classviewpart.cpp')
-rw-r--r--parts/classview/classviewpart.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/parts/classview/classviewpart.cpp b/parts/classview/classviewpart.cpp
index 24163bf4..eceb656f 100644
--- a/parts/classview/classviewpart.cpp
+++ b/parts/classview/classviewpart.cpp
@@ -72,13 +72,13 @@ class FunctionCompletion : public CustomCompleter {
TQString fScope;
int cutpos;
- if((cutpos = function.find('(')) != -1) {
+ if((cutpos = function.tqfind('(')) != -1) {
args = function.right( function.length() - cutpos );
function = function.left( cutpos );
} else {
return function;
}
- if((cutpos = function.findRev(':')) != -1 || (cutpos = function.findRev('.')) != -1) {
+ if((cutpos = function.tqfindRev(':')) != -1 || (cutpos = function.tqfindRev('.')) != -1) {
fScope = function.left( cutpos + 1 );
function = function.right( function.length() - cutpos - 1);
}
@@ -103,7 +103,7 @@ class FunctionCompletion : public CustomCompleter {
}
virtual void removeItem ( const TQString &item ) {
- FuncMap::iterator it = nameMap.find( item );
+ FuncMap::iterator it = nameMap.tqfind( item );
if( it != nameMap.end() ) {
KCompletion::removeItem( *it );
revNameMap.remove( *it );
@@ -118,7 +118,7 @@ class FunctionCompletion : public CustomCompleter {
}
virtual void postProcessMatch ( TQString *match ) const {
- FuncMap::const_iterator it = revNameMap.find( *match );
+ FuncMap::const_iterator it = revNameMap.tqfind( *match );
if( it != revNameMap.end() ) {
*match = *it;
}
@@ -142,9 +142,9 @@ typedef KDevGenericFactory<ClassViewPart> ClassViewFactory;
static const KDevPluginInfo data("kdevclassview");
K_EXPORT_COMPONENT_FACTORY( libkdevclassview, ClassViewFactory( data ) )
-ClassViewPart::ClassViewPart(TQObject *parent, const char *name, const TQStringList& )
- :/// KDevPlugin( &data, parent, name ? name : "ClassViewPart" ),
- KDevCodeBrowserFrontend( &data, parent, name ? name : "ClassViewPart" ),
+ClassViewPart::ClassViewPart(TQObject *tqparent, const char *name, const TQStringList& )
+ :/// KDevPlugin( &data, tqparent, name ? name : "ClassViewPart" ),
+ KDevCodeBrowserFrontend( &data, tqparent, name ? name : "ClassViewPart" ),
m_activeDocument(0), m_activeView(0), m_activeSelection(0), m_activeEditor(0), m_activeViewCursor(0), m_hierarchyDlg(0)
{
setInstance(ClassViewFactory::instance());
@@ -254,16 +254,16 @@ void ClassViewPart::activePartChanged( KParts::Part * part)
m_activeSelection = dynamic_cast<KTextEditor::SelectionInterface*>( part );
m_activeViewCursor = part ? dynamic_cast<KTextEditor::ViewCursorInterface*>( m_activeView ) : 0;
- m_activeFileName = TQString::null;
+ m_activeFileName = TQString();
if (m_activeDocument)
{
m_activeFileName = URLUtil::canonicalPath( m_activeDocument->url().path() );
navigator->refreshNavBars(m_activeFileName);
navigator->syncFunctionNavDelayed(200);
-/* if ( languageSupport()->mimeTypes().find(
+/* if ( languageSupport()->mimeTypes().tqfind(
KMimeType::findByPath(m_activeFileName)) != languageSupport()->mimeTypes().end() )
- m_activeFileName = TQString::null;*/
+ m_activeFileName = TQString();*/
}
if( m_activeViewCursor )
{