summaryrefslogtreecommitdiffstats
path: root/quanta/utility/tagaction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/utility/tagaction.cpp')
-rw-r--r--quanta/utility/tagaction.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/quanta/utility/tagaction.cpp b/quanta/utility/tagaction.cpp
index d532a8b8..c4c3b870 100644
--- a/quanta/utility/tagaction.cpp
+++ b/quanta/utility/tagaction.cpp
@@ -72,9 +72,9 @@ int MyProcess::commSetupDoneC()
return TDEProcess::commSetupDoneC();
}
-TagAction::TagAction( TQDomElement *element, KMainWindow *parentMainWindow, bool toggle)
- : KToggleAction(element->attribute("text").isEmpty() ? TQString("") : i18n(element->attribute("text").utf8()),
- KShortcut(element->attribute("shortcut")), 0, 0, parentMainWindow->actionCollection(), element->attribute("name").ascii()),
+TagAction::TagAction( TQDomElement *element, TDEMainWindow *parentMainWindow, bool toggle)
+ : TDEToggleAction(element->attribute("text").isEmpty() ? TQString("") : i18n(element->attribute("text").utf8()),
+ TDEShortcut(element->attribute("shortcut")), 0, 0, parentMainWindow->actionCollection(), element->attribute("name").ascii()),
//disable toggle now m_toggle(toggle)
m_toggle(false)
{
@@ -93,8 +93,8 @@ TagAction::TagAction( TQDomElement *element, KMainWindow *parentMainWindow, bool
m_file = 0L;
loopStarted = false;
#if TDE_VERSION >= TDE_MAKE_VERSION(3,4,0)
- connect(this, TQT_SIGNAL(activated(KAction::ActivationReason, TQt::ButtonState)),
- TQT_SLOT(slotActionActivated(KAction::ActivationReason, TQt::ButtonState)));
+ connect(this, TQT_SIGNAL(activated(TDEAction::ActivationReason, TQt::ButtonState)),
+ TQT_SLOT(slotActionActivated(TDEAction::ActivationReason, TQt::ButtonState)));
#else
connect(this, TQT_SIGNAL(activated()), TQT_SLOT(slotActionActivated()));
#endif
@@ -114,7 +114,7 @@ TQString TagAction::type()
}
#if TDE_VERSION >= TDE_MAKE_VERSION(3,4,0)
-bool TagAction::slotActionActivated(KAction::ActivationReason reason, TQt::ButtonState /*state*/)
+bool TagAction::slotActionActivated(TDEAction::ActivationReason reason, TQt::ButtonState /*state*/)
{
QuantaView *view = ViewManager::ref()->activeView();
if ( !view || !view->document())
@@ -182,7 +182,7 @@ bool TagAction::slotActionActivated(KAction::ActivationReason reason, TQt::Butto
kafkaCommon::getStartOfParagraph(start_node, start_offset);
kafkaCommon::getEndOfParagraph(end_node, end_offset);
}
- else if(reason != KAction::EmulatedActivation) // is between words: save the state and return
+ else if(reason != TDEAction::EmulatedActivation) // is between words: save the state and return
{
if(!toggled())
quantaApp->insertTagActionPoolItem(name());
@@ -488,7 +488,7 @@ bool TagAction::slotActionActivated(KAction::ActivationReason reason, TQt::Butto
#else
// hack to compile. moc doesn't check the "#ifdef" at the declaration and the compiler complains
// of no matching function.
-bool TagAction::slotActionActivated(KAction::ActivationReason /*reason*/, TQt::ButtonState /*state*/)
+bool TagAction::slotActionActivated(TDEAction::ActivationReason /*reason*/, TQt::ButtonState /*state*/)
{return true;}
#endif
@@ -954,7 +954,7 @@ TQString TagAction::closeXMLTagString() const
void TagAction::slotActivated()
{
// if(m_toggle)
- KToggleAction::slotActivated();
+ TDEToggleAction::slotActivated();
//Andras: Disable toggle behavior. It is just too broken.
setChecked(false);
/*