summaryrefslogtreecommitdiffstats
path: root/krita/ui/kis_perspective_grid_manager.cpp
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/ui/kis_perspective_grid_manager.cpp
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/ui/kis_perspective_grid_manager.cpp')
-rw-r--r--krita/ui/kis_perspective_grid_manager.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/krita/ui/kis_perspective_grid_manager.cpp b/krita/ui/kis_perspective_grid_manager.cpp
index 13c5cb13..8935eb7f 100644
--- a/krita/ui/kis_perspective_grid_manager.cpp
+++ b/krita/ui/kis_perspective_grid_manager.cpp
@@ -29,10 +29,10 @@
#include "kis_perspective_grid.h"
#include "kis_view.h"
-KisPerspectiveGridManager::KisPerspectiveGridManager(KisView * parent)
- : QObject()
+KisPerspectiveGridManager::KisPerspectiveGridManager(KisView * tqparent)
+ : TQObject()
, m_toggleEdition(false)
- , m_view(parent)
+ , m_view(tqparent)
{
}
@@ -57,10 +57,10 @@ void KisPerspectiveGridManager::updateGUI()
void KisPerspectiveGridManager::setup(KActionCollection * collection)
{
kdDebug() << "KisPerspectiveGridManager::setup(KActionCollection * collection)" << endl;
- m_toggleGrid = new KToggleAction(i18n("Show Perspective Grid"), "", this, SLOT(toggleGrid()), collection, "view_toggle_perspective_grid");
+ m_toggleGrid = new KToggleAction(i18n("Show Perspective Grid"), "", this, TQT_SLOT(toggleGrid()), collection, "view_toggle_perspective_grid");
m_toggleGrid->setCheckedState(KGuiItem(i18n("Hide Perspective Grid")));
m_toggleGrid->setChecked(false);
- m_gridClear = new KAction(i18n("Clear Perspective Grid"), 0, "", this, SLOT(clearPerspectiveGrid()), collection, "view_clear_perspective_grid");
+ m_gridClear = new KAction(i18n("Clear Perspective Grid"), 0, "", this, TQT_SLOT(clearPerspectiveGrid()), collection, "view_clear_perspective_grid");
}
void KisPerspectiveGridManager::setGridVisible(bool t)
@@ -125,7 +125,7 @@ void KisPerspectiveGridManager::stopEdition()
m_view->updateCanvas();
}
-void KisPerspectiveGridManager::drawGrid(QRect wr, QPainter *p, bool openGL )
+void KisPerspectiveGridManager::drawGrid(TQRect wr, TQPainter *p, bool openGL )
{
KisImageSP image = m_view->canvasSubject()->currentImg();
@@ -141,13 +141,13 @@ void KisPerspectiveGridManager::drawGrid(QRect wr, QPainter *p, bool openGL )
Q_ASSERT(p);
if (p) {
- gridDrawer = new QPainterGridDrawer(p);
+ gridDrawer = new TQPainterGridDrawer(p);
}
}
Q_ASSERT(gridDrawer != 0);
- for( QValueList<KisSubPerspectiveGrid*>::const_iterator it = pGrid->begin(); it != pGrid->end(); ++it)
+ for( TQValueList<KisSubPerspectiveGrid*>::const_iterator it = pGrid->begin(); it != pGrid->end(); ++it)
{
gridDrawer->drawPerspectiveGrid(image, wr, *it );
}