summaryrefslogtreecommitdiffstats
path: root/kolourpaint/kptool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kolourpaint/kptool.cpp')
-rw-r--r--kolourpaint/kptool.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kolourpaint/kptool.cpp b/kolourpaint/kptool.cpp
index fea1cf58..a8b78672 100644
--- a/kolourpaint/kptool.cpp
+++ b/kolourpaint/kptool.cpp
@@ -151,13 +151,13 @@ void kpTool::createAction ()
m_action = new kpToolAction (text (), iconName (), shortcutForKey (m_key),
- this, TQT_SLOT (slotActionActivated ()),
+ this, TQ_SLOT (slotActionActivated ()),
m_mainWindow->actionCollection (), name ());
m_action->setExclusiveGroup (TQString::fromLatin1 ("Tool Box Actions"));
m_action->setWhatsThis (description ());
- connect (m_action, TQT_SIGNAL (toolTipChanged (const TQString &)),
- this, TQT_SLOT (slotActionToolTipChanged (const TQString &)));
+ connect (m_action, TQ_SIGNAL (toolTipChanged (const TQString &)),
+ this, TQ_SLOT (slotActionToolTipChanged (const TQString &)));
}
@@ -942,7 +942,7 @@ void kpTool::mousePressEvent (TQMouseEvent *e)
// state of all the buttons - not just the one that triggered the event (button())
TQt::ButtonState buttonState = e->stateAfter ();
- if (m_mainWindow && e->button () == Qt::MidButton)
+ if (m_mainWindow && e->button () == TQt::MidButton)
{
const TQString text = TQApplication::clipboard ()->text (TQClipboard::Selection);
#if DEBUG_KP_TOOL && 1
@@ -1046,7 +1046,7 @@ void kpTool::mouseMoveEvent (TQMouseEvent *e)
<< " viewUnderCursorTQt=" << (v1 ? v1->name () : "(none)")
<< " viewUnderStartPoint=" << (v2 ? v2->name () : "(none)")
<< endl;
- kdDebug () << "\tfocusWidget=" << kapp->focusWidget () << endl;
+ kdDebug () << "\tfocusWidget=" << tdeApp->focusWidget () << endl;
#endif
TQt::ButtonState buttonState = e->stateAfter ();
@@ -1133,7 +1133,7 @@ void kpTool::mouseReleaseEvent (TQMouseEvent *e)
endDrawInternal (m_currentPoint, TQRect (m_startPoint, m_currentPoint).normalize ());
}
- if ((e->stateAfter () & Qt::MouseButtonMask) == 0)
+ if ((e->stateAfter () & TQt::MouseButtonMask) == 0)
{
releasedAllButtons ();
}
@@ -1239,7 +1239,7 @@ void kpTool::keyPressEvent (TQKeyEvent *e)
// TODO: what about the modifiers
TQMouseEvent me (TQEvent::MouseButtonPress,
view->mapFromGlobal (TQCursor::pos ()),
- Qt::LeftButton,
+ TQt::LeftButton,
0);
mousePressEvent (&me);
e->accept ();
@@ -1336,8 +1336,8 @@ void kpTool::keyReleaseEvent (TQKeyEvent *e)
{
TQMouseEvent me (TQEvent::MouseButtonRelease,
view->mapFromGlobal (TQCursor::pos ()),
- Qt::LeftButton,
- Qt::LeftButton);
+ TQt::LeftButton,
+ TQt::LeftButton);
mouseReleaseEvent (&me);
e->accept ();
}
@@ -1469,17 +1469,17 @@ void kpTool::leaveEvent (TQEvent *)
int kpTool::mouseButton (const TQt::ButtonState &buttonState)
{
// we have nothing to do with mid-buttons
- if (buttonState & Qt::MidButton)
+ if (buttonState & TQt::MidButton)
return -1;
// both left & right together is quite meaningless...
- TQt::ButtonState bothButtons = (TQt::ButtonState) (Qt::LeftButton | Qt::RightButton);
+ TQt::ButtonState bothButtons = (TQt::ButtonState) (TQt::LeftButton | TQt::RightButton);
if ((buttonState & bothButtons) == bothButtons)
return -1;
- if (buttonState & Qt::LeftButton)
+ if (buttonState & TQt::LeftButton)
return 0;
- else if (buttonState & Qt::RightButton)
+ else if (buttonState & TQt::RightButton)
return 1;
else
return -1;