summaryrefslogtreecommitdiffstats
path: root/src/tag.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 14:58:21 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 14:58:21 -0600
commit7864df7a5e0a69bb3e525ec3e47256bdcbf2832b (patch)
tree3aa53b371fc2482fb6bea9f8eca16b9524c1b332 /src/tag.cpp
parent3cedb6a5f7a9c3e0c04303289e025ce6fe91e164 (diff)
downloadbasket-7864df7a5e0a69bb3e525ec3e47256bdcbf2832b.tar.gz
basket-7864df7a5e0a69bb3e525ec3e47256bdcbf2832b.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'src/tag.cpp')
-rw-r--r--src/tag.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tag.cpp b/src/tag.cpp
index b7e9ea7..27327d1 100644
--- a/src/tag.cpp
+++ b/src/tag.cpp
@@ -223,7 +223,7 @@ Tag::Tag()
static int tagNumber = 0;
++tagNumber;
TQString sAction = "tag_shortcut_number_" + TQString::number(tagNumber);
- m_action = new KAction("FAKE TEXT", "FAKE ICON", KShortcut(), TQT_TQOBJECT(Global::bnpView), TQT_SLOT(activatedTagShortcut()), Global::bnpView->actionCollection(), sAction);
+ m_action = new TDEAction("FAKE TEXT", "FAKE ICON", TDEShortcut(), TQT_TQOBJECT(Global::bnpView), TQT_SLOT(activatedTagShortcut()), Global::bnpView->actionCollection(), sAction);
m_action->setShortcutConfigurable(false); // We do it in the tag properties dialog
m_inheritedBySiblings = false;
@@ -249,7 +249,7 @@ State* Tag::stateForId(const TQString &id)
return 0;
}
-Tag* Tag::tagForKAction(KAction *action)
+Tag* Tag::tagForTDEAction(TDEAction *action)
{
for (List::iterator it = all.begin(); it != all.end(); ++it)
if ((*it)->m_action == action)
@@ -293,7 +293,7 @@ TQMap<TQString, TQString> Tag::loadTags(const TQString &path/* = TQString()*//*,
TQString shortcut = XMLWork::getElementText(element, "shortcut");
TQString inherited = XMLWork::getElementText(element, "inherited", "false");
tag->setName(name);
- tag->setShortcut(KShortcut(shortcut));
+ tag->setShortcut(TDEShortcut(shortcut));
tag->setInheritedBySiblings(XMLWork::trueOrFalse(inherited));
// Load states:
TQDomNode subNode = element.firstChild();