summaryrefslogtreecommitdiffstats
path: root/kolourpaint/kptool.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:12:51 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:12:51 -0600
commit65eca7929c22f0f0bc64135c02d85d1243df376c (patch)
tree5b47361590fb6693a0f6258d6a8d725856ef2ad9 /kolourpaint/kptool.cpp
parentcd6d514066c22206c388eddbb7fbec32648dbaeb (diff)
downloadtdegraphics-65eca7929c22f0f0bc64135c02d85d1243df376c.tar.gz
tdegraphics-65eca7929c22f0f0bc64135c02d85d1243df376c.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'kolourpaint/kptool.cpp')
-rw-r--r--kolourpaint/kptool.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kolourpaint/kptool.cpp b/kolourpaint/kptool.cpp
index 1aa58bf7..03cc651a 100644
--- a/kolourpaint/kptool.cpp
+++ b/kolourpaint/kptool.cpp
@@ -130,7 +130,7 @@ void kpTool::createAction ()
return;
}
- KActionCollection *ac = m_mainWindow->actionCollection ();
+ TDEActionCollection *ac = m_mainWindow->actionCollection ();
if (!ac)
{
kdError () << "kpTool::createAction() without ac" << endl;
@@ -188,7 +188,7 @@ void kpTool::setText (const TQString &text)
// public static
TQString kpTool::toolTipForTextAndShortcut (const TQString &text,
- const KShortcut &shortcut)
+ const TDEShortcut &shortcut)
{
for (int i = 0; i < (int) shortcut.count (); i++)
{
@@ -230,9 +230,9 @@ void kpTool::setKey (int key)
}
// public static
-KShortcut kpTool::shortcutForKey (int key)
+TDEShortcut kpTool::shortcutForKey (int key)
{
- KShortcut shortcut;
+ TDEShortcut shortcut;
if (key)
{
@@ -246,9 +246,9 @@ KShortcut kpTool::shortcutForKey (int key)
}
// public
-KShortcut kpTool::shortcut () const
+TDEShortcut kpTool::shortcut () const
{
- return m_action ? m_action->shortcut () : KShortcut ();
+ return m_action ? m_action->shortcut () : TDEShortcut ();
}
@@ -273,14 +273,14 @@ bool kpTool::containsSingleKeyTrigger (const KKeySequence &seq)
}
// public static
-bool kpTool::containsSingleKeyTrigger (const KShortcut &shortcut,
- KShortcut *shortcutWithoutSingleKeyTriggers)
+bool kpTool::containsSingleKeyTrigger (const TDEShortcut &shortcut,
+ TDEShortcut *shortcutWithoutSingleKeyTriggers)
{
if (shortcutWithoutSingleKeyTriggers)
*shortcutWithoutSingleKeyTriggers = shortcut;
- KShortcut newShortcut;
+ TDEShortcut newShortcut;
bool needNewShortcut = false;
for (int i = 0; i < (int) shortcut.count (); i++)