summaryrefslogtreecommitdiffstats
path: root/krita/core/kis_transaction.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /krita/core/kis_transaction.cc
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'krita/core/kis_transaction.cc')
-rw-r--r--krita/core/kis_transaction.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/krita/core/kis_transaction.cc b/krita/core/kis_transaction.cc
index 10df1a8e..b755c597 100644
--- a/krita/core/kis_transaction.cc
+++ b/krita/core/kis_transaction.cc
@@ -27,13 +27,13 @@
class KisTransactionPrivate {
public:
- QString m_name;
+ TQString m_name;
KisPaintDeviceSP m_device;
KisMementoSP m_memento;
};
-KisTransaction::KisTransaction(const QString& name, KisPaintDeviceSP device)
+KisTransaction::KisTransaction(const TQString& name, KisPaintDeviceSP device)
{
m_private = new KisTransactionPrivate;
@@ -57,12 +57,12 @@ void KisTransaction::execute()
m_private->m_device->rollforward(m_private->m_memento);
- QRect rc;
- Q_INT32 x, y, width, height;
+ TQRect rc;
+ TQ_INT32 x, y, width, height;
m_private->m_memento->extent(x,y,width,height);
rc.setRect(x + m_private->m_device->getX(), y + m_private->m_device->getY(), width, height);
- KisLayerSP l = m_private->m_device->parentLayer();
+ KisLayerSP l = m_private->m_device->tqparentLayer();
if (l) l->setDirty(rc);
}
@@ -71,12 +71,12 @@ void KisTransaction::unexecute()
Q_ASSERT(m_private->m_memento != 0);
m_private->m_device->rollback(m_private->m_memento);
- QRect rc;
- Q_INT32 x, y, width, height;
+ TQRect rc;
+ TQ_INT32 x, y, width, height;
m_private->m_memento->extent(x,y,width,height);
rc.setRect(x + m_private->m_device->getX(), y + m_private->m_device->getY(), width, height);
- KisLayerSP l = m_private->m_device->parentLayer();
+ KisLayerSP l = m_private->m_device->tqparentLayer();
if (l) l->setDirty(rc);
}
@@ -88,7 +88,7 @@ void KisTransaction::unexecuteNoUpdate()
m_private->m_device->rollback(m_private->m_memento);
}
-QString KisTransaction::name() const
+TQString KisTransaction::name() const
{
return m_private->m_name;
}