summaryrefslogtreecommitdiffstats
path: root/kate/htmltools/plugin_katehtmltools.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kate/htmltools/plugin_katehtmltools.cpp')
-rw-r--r--kate/htmltools/plugin_katehtmltools.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kate/htmltools/plugin_katehtmltools.cpp b/kate/htmltools/plugin_katehtmltools.cpp
index f0764f2..f66ef8e 100644
--- a/kate/htmltools/plugin_katehtmltools.cpp
+++ b/kate/htmltools/plugin_katehtmltools.cpp
@@ -36,7 +36,7 @@ class PluginView : public KXMLGUIClient
Kate::MainWindow *win;
};
-PluginKateHtmlTools::PluginKateHtmlTools( QObject* parent, const char* name, const QStringList& )
+PluginKateHtmlTools::PluginKateHtmlTools( TQObject* parent, const char* name, const TQStringList& )
: Kate::Plugin ( (Kate::Application *)parent, name )
{
}
@@ -51,7 +51,7 @@ void PluginKateHtmlTools::addView(Kate::MainWindow *win)
PluginView *view = new PluginView ();
(void) new KAction ( i18n("HT&ML Tag..."), /*"edit_HTML_tag",*/ ALT + Key_Minus, this,
- SLOT( slotEditHTMLtag() ), view->actionCollection(), "edit_HTML_tag" );
+ TQT_SLOT( slotEditHTMLtag() ), view->actionCollection(), "edit_HTML_tag" );
view->setInstance (new KInstance("kate"));
view->setXMLFile( "plugins/katehtmltools/ui.rc" );
@@ -82,9 +82,9 @@ void PluginKateHtmlTools::slotEditHTMLtag()
Kate::View *kv=application()->activeMainWindow()->viewManager()->activeView();
if (!kv) return;
- QString text ( KatePrompt ( i18n("HTML Tag"),
+ TQString text ( KatePrompt ( i18n("HTML Tag"),
i18n("Enter HTML tag contents (the <, >, and closing tag will be supplied):"),
- (QWidget *)kv)
+ (TQWidget *)kv)
);
if ( !text.isEmpty () )
@@ -93,17 +93,17 @@ void PluginKateHtmlTools::slotEditHTMLtag()
}
-QString PluginKateHtmlTools::KatePrompt
+TQString PluginKateHtmlTools::KatePrompt
(
- const QString & strTitle,
- const QString & strPrompt,
- QWidget * that
+ const TQString & strTitle,
+ const TQString & strPrompt,
+ TQWidget * that
)
{
// TODO: Make this a "memory edit" field with a combo box
// containing prior entries
- KLineEditDlg dlg(strPrompt, QString::null, that);
+ KLineEditDlg dlg(strPrompt, TQString::null, that);
dlg.setCaption(strTitle);
if (dlg.exec())
@@ -113,13 +113,13 @@ QString PluginKateHtmlTools::KatePrompt
}
-void PluginKateHtmlTools::slipInHTMLtag (Kate::View & view, QString text) // PCP
+void PluginKateHtmlTools::slipInHTMLtag (Kate::View & view, TQString text) // PCP
{
// We must add a heavy elaborate HTML markup system. Not!
- QStringList list = QStringList::split (' ', text);
- QString marked = view.getDoc()->selection ();
+ TQStringList list = TQStringList::split (' ', text);
+ TQString marked = view.getDoc()->selection ();
uint preDeleteLine = 0, preDeleteCol = 0;
view.cursorPosition (&preDeleteLine, &preDeleteCol);
@@ -127,8 +127,8 @@ void PluginKateHtmlTools::slipInHTMLtag (Kate::View & view, QString text) // P
view.keyDelete ();
uint line = 0, col = 0;
view.cursorPosition (&line, &col);
- QString pre ("<" + text + ">");
- QString post;
+ TQString pre ("<" + text + ">");
+ TQString post;
if (list.count () > 0) post = "</" + list[0] + ">";
view.insertText (pre + marked + post);