summaryrefslogtreecommitdiffstats
path: root/kolourpaint/kpviewmanager.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
commite69e8b1d09fb579316595b4e6a850e717358a8b1 (patch)
treea24fc20865f65772f530d16177520190594ffdd2 /kolourpaint/kpviewmanager.cpp
parenteecec9afb81fdebb0f22e9da22635874c403f854 (diff)
downloadtdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz
tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip
TQt4 port kdegraphics
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kolourpaint/kpviewmanager.cpp')
-rw-r--r--kolourpaint/kpviewmanager.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kolourpaint/kpviewmanager.cpp b/kolourpaint/kpviewmanager.cpp
index acff3413..e7a095fd 100644
--- a/kolourpaint/kpviewmanager.cpp
+++ b/kolourpaint/kpviewmanager.cpp
@@ -78,7 +78,7 @@ void kpViewManager::registerView (kpView *view)
#if DEBUG_KP_VIEW_MANAGER && 1
kdDebug () << "kpViewManager::registerView (" << view << ")" << endl;
#endif
- if (view && m_views.findRef (view) < 0)
+ if (view && m_views.tqfindRef (view) < 0)
{
#if DEBUG_KP_VIEW_MANAGER && 1
kdDebug () << "\tadded view" << endl;
@@ -152,7 +152,7 @@ void kpViewManager::setTempPixmap (const kpTempPixmap &tempPixmap)
}
// public
-void kpViewManager::invalidateTempPixmap ()
+void kpViewManager::tqinvalidateTempPixmap ()
{
if (!m_tempPixmap)
return;
@@ -463,13 +463,13 @@ void kpViewManager::unsetCursor ()
}
-kpView *kpViewManager::viewUnderCursor (bool usingQt) const
+kpView *kpViewManager::viewUnderCursor (bool usingTQt) const
{
- if (!usingQt)
+ if (!usingTQt)
{
kpViewManager *nonConstThis = const_cast <kpViewManager *> (this);
- if (m_viewUnderCursor && nonConstThis->m_views.findRef (m_viewUnderCursor) < 0)
+ if (m_viewUnderCursor && nonConstThis->m_views.tqfindRef (m_viewUnderCursor) < 0)
{
kdError () << "kpViewManager::viewUnderCursor(): invalid view" << endl;
nonConstThis->m_viewUnderCursor = 0;
@@ -628,7 +628,7 @@ void kpViewManager::updateView (kpView *v, const TQRect &viewRect)
if (!queueUpdates ())
{
if (fastUpdates ())
- v->repaint (viewRect, false/*no erase*/);
+ v->tqrepaint (viewRect, false/*no erase*/);
else
v->update (viewRect);
}
@@ -646,7 +646,7 @@ void kpViewManager::updateView (kpView *v, const TQRegion &viewRegion)
if (!queueUpdates ())
{
if (fastUpdates ())
- v->repaint (viewRegion, false/*no erase*/);
+ v->tqrepaint (viewRegion, false/*no erase*/);
else
v->update (viewRegion.boundingRect ());
}
@@ -719,7 +719,7 @@ void kpViewManager::updateViews (const TQRect &docRect)
{
TQRect viewRect = view->transformDocToView (docRect);
- int diff = qRound (double (QMAX (view->zoomLevelX (), view->zoomLevelY ())) / 100.0) + 1;
+ int diff = tqRound (double (TQMAX (view->zoomLevelX (), view->zoomLevelY ())) / 100.0) + 1;
TQRect newRect = TQRect (viewRect.x () - diff,
viewRect.y () - diff,