summaryrefslogtreecommitdiffstats
path: root/kate/htmltools
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
commit7346aee26bf190a7e70333c40fab4caca847cd27 (patch)
tree4b019b434f88dcc3eeaafe1d3f26240b4c4718e8 /kate/htmltools
parent23a3d3aa5b44cbdf305495919866d9dbf4f6da54 (diff)
downloadtdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.tar.gz
tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kate/htmltools')
-rw-r--r--kate/htmltools/plugin_katehtmltools.cpp28
-rw-r--r--kate/htmltools/plugin_katehtmltools.h12
2 files changed, 20 insertions, 20 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);
diff --git a/kate/htmltools/plugin_katehtmltools.h b/kate/htmltools/plugin_katehtmltools.h
index 8f134ce..695211c 100644
--- a/kate/htmltools/plugin_katehtmltools.h
+++ b/kate/htmltools/plugin_katehtmltools.h
@@ -18,7 +18,7 @@
#ifndef _PLUGIN_KANT_HTMLTOOLS_H
#define _PLUGIN_KANT_HTMLTOOLS_H
-#include <qstring.h>
+#include <tqstring.h>
#include <kate/plugin.h>
#include <kate/application.h>
@@ -33,18 +33,18 @@ class PluginKateHtmlTools : public Kate::Plugin, Kate::PluginViewInterface
Q_OBJECT
public:
- PluginKateHtmlTools( QObject* parent = 0, const char* name = 0, const QStringList& = QStringList() );
+ PluginKateHtmlTools( TQObject* parent = 0, const char* name = 0, const TQStringList& = TQStringList() );
virtual ~PluginKateHtmlTools();
void addView (Kate::MainWindow *win);
void removeView (Kate::MainWindow *win);
private:
- QPtrList<class PluginView> m_views;
+ TQPtrList<class PluginView> m_views;
- QString KatePrompt (const QString & strTitle, const QString &strPrompt,
- QWidget * that);
- void slipInHTMLtag (Kate::View & view, QString text);
+ TQString KatePrompt (const TQString & strTitle, const TQString &strPrompt,
+ TQWidget * that);
+ void slipInHTMLtag (Kate::View & view, TQString text);
public slots:
void slotEditHTMLtag();