summaryrefslogtreecommitdiffstats
path: root/kmymoney2/plugins/kmymoneyplugin.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:01:10 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:01:10 -0600
commita6000c6f2f1a03b34f15d1948f63f0c894f09451 (patch)
tree59a9994e4bb71bc5a74704773e677f2d2474c017 /kmymoney2/plugins/kmymoneyplugin.cpp
parentdb89d6f6d944825a20ce69bb11c23b19b2935164 (diff)
downloadkmymoney-a6000c6f2f1a03b34f15d1948f63f0c894f09451.tar.gz
kmymoney-a6000c6f2f1a03b34f15d1948f63f0c894f09451.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'kmymoney2/plugins/kmymoneyplugin.cpp')
-rw-r--r--kmymoney2/plugins/kmymoneyplugin.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kmymoney2/plugins/kmymoneyplugin.cpp b/kmymoney2/plugins/kmymoneyplugin.cpp
index db57abd..202b996 100644
--- a/kmymoney2/plugins/kmymoneyplugin.cpp
+++ b/kmymoney2/plugins/kmymoneyplugin.cpp
@@ -40,12 +40,12 @@ KMyMoneyPlugin::Plugin::~Plugin()
{
}
-KAction* KMyMoneyPlugin::Plugin::action(const TQString& actionName) const
+TDEAction* KMyMoneyPlugin::Plugin::action(const TQString& actionName) const
{
- static KShortcut shortcut("");
- static KAction dummyAction(TQString("Dummy"), TQString(), shortcut, static_cast<const TQObject*>(this), 0, static_cast<KActionCollection*>(0), "");
+ static TDEShortcut shortcut("");
+ static TDEAction dummyAction(TQString("Dummy"), TQString(), shortcut, static_cast<const TQObject*>(this), 0, static_cast<TDEActionCollection*>(0), "");
- KAction* p = actionCollection()->action(actionName.latin1());
+ TDEAction* p = actionCollection()->action(actionName.latin1());
if(p)
return p;
@@ -53,17 +53,17 @@ KAction* KMyMoneyPlugin::Plugin::action(const TQString& actionName) const
return &dummyAction;
}
-KToggleAction* KMyMoneyPlugin::Plugin::toggleAction(const TQString& actionName) const
+TDEToggleAction* KMyMoneyPlugin::Plugin::toggleAction(const TQString& actionName) const
{
- static KShortcut shortcut("");
- static KToggleAction dummyAction(TQString("Dummy"), TQString(), shortcut, static_cast<const TQObject*>(this), 0, static_cast<KActionCollection*>(0), "");
+ static TDEShortcut shortcut("");
+ static TDEToggleAction dummyAction(TQString("Dummy"), TQString(), shortcut, static_cast<const TQObject*>(this), 0, static_cast<TDEActionCollection*>(0), "");
- KAction* q = actionCollection()->action(actionName.latin1());
+ TDEAction* q = actionCollection()->action(actionName.latin1());
if(q) {
- KToggleAction* p = dynamic_cast<KToggleAction*>(q);
+ TDEToggleAction* p = dynamic_cast<TDEToggleAction*>(q);
if(!p) {
- tqWarning("Action '%s' is not of type KToggleAction", actionName.latin1());
+ tqWarning("Action '%s' is not of type TDEToggleAction", actionName.latin1());
p = &dummyAction;
}
return p;