From ee52bb567f32fefdcf06e083c76562ea40ccf174 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 15:12:18 -0600 Subject: Rename a number of classes to enhance compatibility with KDE4 --- kig/scripting/newscriptwizard.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'kig/scripting') diff --git a/kig/scripting/newscriptwizard.cc b/kig/scripting/newscriptwizard.cc index 67a0b9a4..c883a159 100644 --- a/kig/scripting/newscriptwizard.cc +++ b/kig/scripting/newscriptwizard.cc @@ -83,7 +83,7 @@ NewScriptWizard::NewScriptWizard( TQWidget* parent, ScriptModeBase* mode ) hli = dynamic_cast( document ); // displaying the left border with line numbers - KToggleAction *a = dynamic_cast( editor->actionCollection()->action("view_line_numbers") ); + TDEToggleAction *a = dynamic_cast( editor->actionCollection()->action("view_line_numbers") ); a->activate(); // saving the state of dynamic word wrap and disabling it @@ -94,14 +94,14 @@ NewScriptWizard::NewScriptWizard( TQWidget* parent, ScriptModeBase* mode ) noHlStyle = hli->hlMode(); // creating the popup menu - KPopupMenu* pm = new KPopupMenu( editor ); + TDEPopupMenu* pm = new TDEPopupMenu( editor ); // creating the actions for the code editor... - KActionCollection* ac = new KActionCollection( editor ); - KAction* undoAction = KStdAction::undo( TQT_TQOBJECT(this), TQT_SLOT( slotUndo() ), ac ); - KAction* redoAction = KStdAction::redo( TQT_TQOBJECT(this), TQT_SLOT( slotRedo() ), ac ); - KAction* cutAction = KStdAction::cut( TQT_TQOBJECT(this), TQT_SLOT( slotCut() ), ac ); - KAction* copyAction = KStdAction::copy( TQT_TQOBJECT(this), TQT_SLOT( slotCopy() ), ac ); - KAction* pasteAction = KStdAction::paste( TQT_TQOBJECT(this), TQT_SLOT( slotPaste() ), ac ); + TDEActionCollection* ac = new TDEActionCollection( editor ); + TDEAction* undoAction = KStdAction::undo( TQT_TQOBJECT(this), TQT_SLOT( slotUndo() ), ac ); + TDEAction* redoAction = KStdAction::redo( TQT_TQOBJECT(this), TQT_SLOT( slotRedo() ), ac ); + TDEAction* cutAction = KStdAction::cut( TQT_TQOBJECT(this), TQT_SLOT( slotCut() ), ac ); + TDEAction* copyAction = KStdAction::copy( TQT_TQOBJECT(this), TQT_SLOT( slotCopy() ), ac ); + TDEAction* pasteAction = KStdAction::paste( TQT_TQOBJECT(this), TQT_SLOT( slotPaste() ), ac ); // ... and plugging them into the popup menu (to build it, of course :) ) undoAction->plug( pm ); redoAction->plug( pm ); -- cgit v1.2.1