diff options
author | Timothy Pearson <[email protected]> | 2013-01-26 13:17:21 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-01-26 13:17:21 -0600 |
commit | dfe289850f068f19ba4a83ab4e7e22a7e09c13c9 (patch) | |
tree | c297348a55df66c571de4525646e0b9762427353 /kparts/tests/plugin_spellcheck.cpp | |
parent | b7658a0d5eca24a9d37c6e04f88298ef02389db0 (diff) | |
download | tdelibs-dfe289850f068f19ba4a83ab4e7e22a7e09c13c9.tar.gz tdelibs-dfe289850f068f19ba4a83ab4e7e22a7e09c13c9.zip |
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'kparts/tests/plugin_spellcheck.cpp')
-rw-r--r-- | kparts/tests/plugin_spellcheck.cpp | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/kparts/tests/plugin_spellcheck.cpp b/kparts/tests/plugin_spellcheck.cpp deleted file mode 100644 index 5521bf22f..000000000 --- a/kparts/tests/plugin_spellcheck.cpp +++ /dev/null @@ -1,39 +0,0 @@ -#include "notepad.h" // this plugin applies to a notepad part -#include <tqmultilineedit.h> -#include "plugin_spellcheck.h" -#include <kaction.h> -#include <kgenericfactory.h> -#include <kmessagebox.h> -#include <klocale.h> -#include <kdebug.h> - -PluginSpellCheck::PluginSpellCheck( TQObject* parent, const char* name, - const TQStringList& ) - : Plugin( parent, name ) -{ - (void) new KAction( "&Select current line (plugin)", 0, this, TQT_SLOT(slotSpellCheck()), - actionCollection(), "spellcheck" ); -} - -PluginSpellCheck::~PluginSpellCheck() -{ -} - -void PluginSpellCheck::slotSpellCheck() -{ - kdDebug() << "Plugin parent : " << parent()->name() << " (" << parent()->className() << ")" << endl; - // The parent is assumed to be a NotepadPart - if ( !parent()->inherits("NotepadPart") ) - KMessageBox::error(0L,"You just called the spell-check action on a wrong part (not NotepadPart)"); - else - { - NotepadPart * part = (NotepadPart *) parent(); - TQMultiLineEdit * widget = (TQMultiLineEdit *) part->widget(); - widget->selectAll(); //selects current line ! - } -} - -K_EXPORT_COMPONENT_FACTORY( libspellcheckplugin, - KGenericFactory<PluginSpellCheck> ); - -#include <plugin_spellcheck.moc> |