summaryrefslogtreecommitdiffstats
path: root/kate/snippets/plugin_katesnippets.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kate/snippets/plugin_katesnippets.cpp')
-rw-r--r--kate/snippets/plugin_katesnippets.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kate/snippets/plugin_katesnippets.cpp b/kate/snippets/plugin_katesnippets.cpp
index fd594e1..8e0d6cb 100644
--- a/kate/snippets/plugin_katesnippets.cpp
+++ b/kate/snippets/plugin_katesnippets.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2004 Stephan M�res <[email protected]>
+ * Copyright (C) 2004 Stephan M�res <[email protected]>
*/
#include "plugin_katesnippets.h"
@@ -95,12 +95,12 @@ KatePluginSnippetsView::~ KatePluginSnippetsView() {
/**
* ctor KatePluginSnippets
- * @param parent
+ * @param tqparent
* @param name
* @return
*/
-KatePluginSnippets::KatePluginSnippets( TQObject* parent, const char* name, const TQStringList& )
- : Kate::Plugin ( (Kate::Application*)parent, name ) {}
+KatePluginSnippets::KatePluginSnippets( TQObject* tqparent, const char* name, const TQStringList& )
+ : Kate::Plugin ( (Kate::Application*)tqparent, name ) {}
/**
* dtor KatePluginSnippets
@@ -170,9 +170,9 @@ void KatePluginSnippetsView::slot_lvSnippetsClicked (TQListViewItem * item) {
kv->keyDelete();
}
- sText.replace( TQRegExp("<mark/>"), sSelection );
- sText.replace( TQRegExp("<date/>"), TQDate::currentDate().toString(Qt::LocalDate) );
- sText.replace( TQRegExp("<time/>"), TQTime::currentTime().toString(Qt::LocalDate) );
+ sText.tqreplace( TQRegExp("<mark/>"), sSelection );
+ sText.tqreplace( TQRegExp("<date/>"), TQDate::tqcurrentDate().toString(Qt::LocalDate) );
+ sText.tqreplace( TQRegExp("<time/>"), TQTime::currentTime().toString(Qt::LocalDate) );
kv->insertText ( sText );
}
kv->setFocus();
@@ -254,7 +254,7 @@ void KatePluginSnippetsView::readConfig() {
lvi = insertItem(sKey, false);
- lSnippets.append( new CSnippet(sKey, sValue, lvi, this) );
+ lSnippets.append( new CSnippet(sKey, sValue, lvi, TQT_TQOBJECT(this)) );
}
// <defaults>
@@ -262,12 +262,12 @@ void KatePluginSnippetsView::readConfig() {
sKey = "DEBUG variable";
sValue = "## < DEBUG >\nout \"<pre>\\$<mark/> : \\\"$<mark/>\\\"\\n</pre>\"\n## </DEBUG >\n";
lvi = insertItem(sKey, false);
- lSnippets.append( new CSnippet(sKey, sValue, lvi, this) );
+ lSnippets.append( new CSnippet(sKey, sValue, lvi, TQT_TQOBJECT(this)) );
sKey = "proc-header";
sValue = "## [created : <date/>, <time/>]\n## Description:\n## ============\n## The function \"<mark/>\" ...\n##\n##\n##\n##\n## Input:\n## ======\n##\n##\n##\nproc <mark/> {args} {\n\n ## add your code here\n\n return \"\"\n}\n";
lvi = insertItem(sKey, false);
- lSnippets.append( new CSnippet(sKey, sValue, lvi, this) );
+ lSnippets.append( new CSnippet(sKey, sValue, lvi, TQT_TQOBJECT(this)) );
}
// </defaults>