summaryrefslogtreecommitdiffstats
path: root/kate/modeline/ModelinePlugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kate/modeline/ModelinePlugin.cpp')
-rw-r--r--kate/modeline/ModelinePlugin.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kate/modeline/ModelinePlugin.cpp b/kate/modeline/ModelinePlugin.cpp
index 9184f6a..e3d22a1 100644
--- a/kate/modeline/ModelinePlugin.cpp
+++ b/kate/modeline/ModelinePlugin.cpp
@@ -41,8 +41,8 @@ class PluginView : public KXMLGUIClient
K_EXPORT_COMPONENT_FACTORY( katemodelineplugin, KGenericFactory<ModelinePlugin>( "katemodeline" ) )
-ModelinePlugin::ModelinePlugin( TQObject* parent, const char* name, const TQStringList &args )
- : Kate::Plugin ( (Kate::Application *) parent, name )
+ModelinePlugin::ModelinePlugin( TQObject* tqparent, const char* name, const TQStringList &args )
+ : Kate::Plugin ( (Kate::Application *) tqparent, name )
{
}
@@ -97,25 +97,25 @@ void ModelinePlugin::applyModeline()
options = vim2.cap(1);
} else if( doc->searchText( 0, 0, vim1, &foundAtLine, &foundAtCol, &matchLen ) ) {
options = vim1.cap(1);
- options.replace( TQRegExp( ":" ), " " );
+ options.tqreplace( TQRegExp( ":" ), " " );
}
uint configFlags = doc->configFlags();
kdDebug() << "Found modeline: " << options << endl;
- if( options.find( TQRegExp( "\\bnoet\\b" ) ) >= 0 ) {
+ if( options.tqfind( TQRegExp( "\\bnoet\\b" ) ) >= 0 ) {
kdDebug() << "Clearing replace tabs" << endl;
configFlags &= ~Kate::Document::cfReplaceTabs;
- } else if( options.find( TQRegExp( "\\bet\\b" ) ) >= 0 ) {
+ } else if( options.tqfind( TQRegExp( "\\bet\\b" ) ) >= 0 ) {
kdDebug() << "Setting replace tabs" << endl;
configFlags |= Kate::Document::cfReplaceTabs;
}
TQRegExp ts( "ts=(\\d+)" );
- if( options.find( ts ) >= 0 ) {
+ if( options.tqfind( ts ) >= 0 ) {
uint tabWidth = ts.cap(1).toUInt();
kdDebug() << "Setting tab width " << tabWidth << endl;
view->setTabWidth( tabWidth );
}
TQRegExp tw( "tw=(\\d+)" );
- if( options.find( tw ) >= 0 ) {
+ if( options.tqfind( tw ) >= 0 ) {
uint textWidth = tw.cap(1).toUInt();
kdDebug() << "Setting text width " << textWidth << endl;
doc->setWordWrap( true );