summaryrefslogtreecommitdiffstats
path: root/src/svnfrontend/graphtree/pannerview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/svnfrontend/graphtree/pannerview.cpp')
-rw-r--r--src/svnfrontend/graphtree/pannerview.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/svnfrontend/graphtree/pannerview.cpp b/src/svnfrontend/graphtree/pannerview.cpp
index 5f14e82..c3a2586 100644
--- a/src/svnfrontend/graphtree/pannerview.cpp
+++ b/src/svnfrontend/graphtree/pannerview.cpp
@@ -18,46 +18,46 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#include "pannerview.h"
-#include <qpainter.h>
+#include <tqpainter.h>
-PannerView::PannerView(QWidget* parent, const char* name)
- : QCanvasView(parent, name,WNoAutoErase | WStaticContents )
+PannerView::PannerView(TQWidget* tqparent, const char* name)
+ : TQCanvasView(tqparent, name,WNoAutoErase | WStaticContents )
{
m_Moving = false;
- viewport()->setBackgroundMode(Qt::NoBackground);
- setBackgroundMode(Qt::NoBackground);
+ viewport()->setBackgroundMode(TQt::NoBackground);
+ setBackgroundMode(TQt::NoBackground);
}
PannerView::~PannerView()
{
}
-void PannerView::drawContents(QPainter* p, int clipx, int clipy, int clipw, int cliph)
+void PannerView::drawContents(TQPainter* p, int clipx, int clipy, int clipw, int cliph)
{
p->save();
- QCanvasView::drawContents(p,clipx,clipy,clipw,cliph);
+ TQCanvasView::drawContents(p,clipx,clipy,clipw,cliph);
p->restore();
if (m_ZoomRect.isValid()) {
p->setPen(red.dark());
p->drawRect(m_ZoomRect);
p->setPen( red);
- p->drawRect(QRect(m_ZoomRect.x()+1, m_ZoomRect.y()+1,
+ p->drawRect(TQRect(m_ZoomRect.x()+1, m_ZoomRect.y()+1,
m_ZoomRect.width()-2, m_ZoomRect.height()-2));
}
}
-void PannerView::setZoomRect(const QRect& theValue)
+void PannerView::setZoomRect(const TQRect& theValue)
{
- QRect oldRect = m_ZoomRect;
+ TQRect oldRect = m_ZoomRect;
m_ZoomRect = theValue;
updateContents(oldRect);
updateContents(m_ZoomRect);
}
/*!
- \fn PannerView::contentsMouseMoveEvent(QMouseEvent* e)
+ \fn PannerView::contentsMouseMoveEvent(TQMouseEvent* e)
*/
-void PannerView::contentsMouseMoveEvent(QMouseEvent* e)
+void PannerView::contentsMouseMoveEvent(TQMouseEvent* e)
{
if (m_Moving) {
emit zoomRectMoved(e->pos().x() - m_LastPos.x(), e->pos().y() - m_LastPos.y());
@@ -66,12 +66,12 @@ void PannerView::contentsMouseMoveEvent(QMouseEvent* e)
}
/*!
- \fn PannerView::contentsMousePressEvent(QMouseEvent* e)
+ \fn PannerView::contentsMousePressEvent(TQMouseEvent* e)
*/
-void PannerView::contentsMousePressEvent(QMouseEvent* e)
+void PannerView::contentsMousePressEvent(TQMouseEvent* e)
{
if (m_ZoomRect.isValid()) {
- if (!m_ZoomRect.contains(e->pos())) {
+ if (!m_ZoomRect.tqcontains(e->pos())) {
emit zoomRectMoved(e->pos().x() - m_ZoomRect.center().x(),
e->pos().y() - m_ZoomRect.center().y());
}
@@ -81,9 +81,9 @@ void PannerView::contentsMousePressEvent(QMouseEvent* e)
}
/*!
- \fn PannerView::contentsMouseReleaseEvent(QMouseEvent*)
+ \fn PannerView::contentsMouseReleaseEvent(TQMouseEvent*)
*/
-void PannerView::contentsMouseReleaseEvent(QMouseEvent*)
+void PannerView::contentsMouseReleaseEvent(TQMouseEvent*)
{
m_Moving = false;
emit zoomRectMoveFinished();