From 395a904bff7b4d6ead445c342f7ac0c5fbf29121 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 18 Jun 2011 17:00:31 +0000 Subject: TQt4 port kdeaddons This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1237404 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kate/snippets/CWidgetSnippetsBase.ui | 36 +++++++++++++++++----------------- kate/snippets/CWidgetSnippetsBase.ui.h | 2 +- kate/snippets/csnippet.cpp | 4 ++-- kate/snippets/csnippet.h | 3 ++- kate/snippets/cwidgetsnippets.cpp | 4 ++-- kate/snippets/cwidgetsnippets.h | 2 +- kate/snippets/plugin_katesnippets.cpp | 20 +++++++++---------- kate/snippets/plugin_katesnippets.h | 4 +++- 8 files changed, 39 insertions(+), 36 deletions(-) (limited to 'kate/snippets') diff --git a/kate/snippets/CWidgetSnippetsBase.ui b/kate/snippets/CWidgetSnippetsBase.ui index 7f370f9..b694158 100644 --- a/kate/snippets/CWidgetSnippetsBase.ui +++ b/kate/snippets/CWidgetSnippetsBase.ui @@ -1,6 +1,6 @@ CWidgetSnippetsBase - + CWidgetSnippetsBase @@ -29,14 +29,14 @@ 0 - + splitter13 Vertical - + Snippet @@ -91,9 +91,9 @@ A list of Snippets, what else - + - layout24 + tqlayout24 @@ -102,9 +102,9 @@ 0 - + - layout11 + tqlayout11 @@ -113,7 +113,7 @@ 0 - + btnNew @@ -124,7 +124,7 @@ image1 - + btnSave @@ -135,7 +135,7 @@ image2 - + btnDelete @@ -156,7 +156,7 @@ Expanding - + 200 20 @@ -165,7 +165,7 @@ - + teSnippetText @@ -201,14 +201,14 @@ CWidgetSnippetsBase.ui.h - + lalala() - - + + init() - + - insertItem( const QString& name, bool bRename ) + insertItem( const TQString& name, bool bRename ) - + diff --git a/kate/snippets/CWidgetSnippetsBase.ui.h b/kate/snippets/CWidgetSnippetsBase.ui.h index 539442a..4fdd814 100644 --- a/kate/snippets/CWidgetSnippetsBase.ui.h +++ b/kate/snippets/CWidgetSnippetsBase.ui.h @@ -2,7 +2,7 @@ ** ui.h extension file, included from the uic-generated form implementation. ** ** If you wish to add, delete or rename functions or slots use -** Qt Designer which will update this file, preserving your code. Create an +** TQt Designer which will update this file, preserving your code. Create an ** init() function in place of a constructor, and a destroy() function in ** place of a destructor. *****************************************************************************/ diff --git a/kate/snippets/csnippet.cpp b/kate/snippets/csnippet.cpp index 2aebb5d..c873949 100644 --- a/kate/snippets/csnippet.cpp +++ b/kate/snippets/csnippet.cpp @@ -9,8 +9,8 @@ ***************************************************************************/ #include "csnippet.h" -CSnippet::CSnippet(TQString sKey, TQString sValue, TQListViewItem *lvi, TQObject *parent, const char *name) - : TQObject(parent, name), _sKey(sKey), _sValue(sValue), _lvi(lvi) {} +CSnippet::CSnippet(TQString sKey, TQString sValue, TQListViewItem *lvi, TQObject *tqparent, const char *name) + : TQObject(tqparent, name), _sKey(sKey), _sValue(sValue), _lvi(lvi) {} CSnippet::~CSnippet() {} diff --git a/kate/snippets/csnippet.h b/kate/snippets/csnippet.h index 3c75db4..ae9bef6 100644 --- a/kate/snippets/csnippet.h +++ b/kate/snippets/csnippet.h @@ -21,8 +21,9 @@ class CSnippet : public TQObject { Q_OBJECT + TQ_OBJECT public: - CSnippet(TQString sKey, TQString sValue, TQListViewItem *lvi, TQObject *parent = 0, const char *name = 0); + CSnippet(TQString sKey, TQString sValue, TQListViewItem *lvi, TQObject *tqparent = 0, const char *name = 0); ~CSnippet(); TQString getKey() { return _sKey; } TQString getValue() { return _sValue; } diff --git a/kate/snippets/cwidgetsnippets.cpp b/kate/snippets/cwidgetsnippets.cpp index e58c15f..819bcaf 100644 --- a/kate/snippets/cwidgetsnippets.cpp +++ b/kate/snippets/cwidgetsnippets.cpp @@ -9,8 +9,8 @@ ***************************************************************************/ #include "cwidgetsnippets.h" -CWidgetSnippets::CWidgetSnippets( TQWidget* parent, const char* name, WFlags fl) - : CWidgetSnippetsBase(parent, name, fl) +CWidgetSnippets::CWidgetSnippets( TQWidget* tqparent, const char* name, WFlags fl) + : CWidgetSnippetsBase(tqparent, name, fl) { } diff --git a/kate/snippets/cwidgetsnippets.h b/kate/snippets/cwidgetsnippets.h index 831f335..f3962e1 100644 --- a/kate/snippets/cwidgetsnippets.h +++ b/kate/snippets/cwidgetsnippets.h @@ -17,7 +17,7 @@ */ class CWidgetSnippets : public CWidgetSnippetsBase { public: - CWidgetSnippets( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); + CWidgetSnippets( TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 ); ~CWidgetSnippets(); 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 + * Copyright (C) 2004 Stephan M�res */ #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(""), sSelection ); - sText.replace( TQRegExp(""), TQDate::currentDate().toString(Qt::LocalDate) ); - sText.replace( TQRegExp("