diff options
| author | Slávek Banko <slavek.banko@axis.cz> | 2014-03-04 04:21:07 +0100 |
|---|---|---|
| committer | Slávek Banko <slavek.banko@axis.cz> | 2014-03-04 04:21:07 +0100 |
| commit | 462324fb8d4ff24c48599fb311aa1e26f9a4da53 (patch) | |
| tree | 51160e84bba9121cceacd6fcbab10658dec91f9f /kate/katesort/src/plugin_sort.cpp | |
| parent | d7401b1d182b94c4a849567aae7d4ef5580e0b6b (diff) | |
| download | tdeaddons-462324fb8d4ff24c48599fb311aa1e26f9a4da53.tar.gz tdeaddons-462324fb8d4ff24c48599fb311aa1e26f9a4da53.zip | |
Initial TDE conversion of katesort
Diffstat (limited to 'kate/katesort/src/plugin_sort.cpp')
| -rw-r--r-- | kate/katesort/src/plugin_sort.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kate/katesort/src/plugin_sort.cpp b/kate/katesort/src/plugin_sort.cpp index 95f53c6..01530ce 100644 --- a/kate/katesort/src/plugin_sort.cpp +++ b/kate/katesort/src/plugin_sort.cpp @@ -22,8 +22,8 @@ #include "plugin_sort.h" #include "sortdialog.h" -#include <kaction.h> -#include <klocale.h> +#include <tdeaction.h> +#include <tdelocale.h> #include <kstandarddirs.h> #include <map> #include <tqregexp.h> @@ -40,14 +40,14 @@ extern "C" { void* init_libsortplugin() { - KGlobal::locale()->insertCatalogue("katesort"); + TDEGlobal::locale()->insertCatalogue("katesort"); return new KatePluginFactory; } } KatePluginFactory::KatePluginFactory() { - s_instance = new KInstance( "kate" ); + s_instance = new TDEInstance( "kate" ); } KatePluginFactory::~KatePluginFactory() @@ -60,7 +60,7 @@ TQObject* KatePluginFactory::createObject( TQObject* parent, const char* name, c return new KatePluginSort( parent, name ); } -KInstance* KatePluginFactory::s_instance = 0L; +TDEInstance* KatePluginFactory::s_instance = 0L; KatePluginSort::KatePluginSort( TQObject* parent, const char* name ) : Kate::Plugin ( (Kate::Application*)parent, name ) @@ -76,11 +76,11 @@ void KatePluginSort::addView(Kate::MainWindow *win) /// @todo doesn't this have to be deleted? PluginView *view = new PluginView (); - (void) new KAction ( i18n("Sort"), 0, this, + (void) new TDEAction ( i18n("Sort"), 0, this, SLOT( slotSort() ), view->actionCollection(), "edit_insert_sort" ); - view->setInstance (new KInstance("kate")); + view->setInstance (new TDEInstance("kate")); view->setXMLFile("plugins/sort/plugin_sort.rc"); win->guiFactory()->addClient (view); view->win = win; |
