From f008adb5a77e094eaf6abf3fc0f36958e66896a5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 25 Jun 2011 05:28:35 +0000 Subject: 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 --- krita/ui/kis_perspective_grid_manager.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'krita/ui/kis_perspective_grid_manager.cpp') 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::const_iterator it = pGrid->begin(); it != pGrid->end(); ++it) + for( TQValueList::const_iterator it = pGrid->begin(); it != pGrid->end(); ++it) { gridDrawer->drawPerspectiveGrid(image, wr, *it ); } -- cgit v1.2.1