removed some debug code

Wed, 07 Mar 2018 12:04:06 +0200

author
Santeri Piippo
date
Wed, 07 Mar 2018 12:04:06 +0200
changeset 1274
b6ee4ae3f421
parent 1273
900f1dfae46b
child 1275
7b0979f65ff6

removed some debug code

src/canvas.cpp file | annotate | diff | comparison | revisions
--- a/src/canvas.cpp	Tue Mar 06 23:29:40 2018 +0200
+++ b/src/canvas.cpp	Wed Mar 07 12:04:06 2018 +0200
@@ -42,16 +42,6 @@
 	GLRenderer::overpaint(painter);
 	QFontMetrics metrics {QFont {}};
 
-#ifndef RELEASE
-	{
-		QString text = format("Rotation: %1\nPanning: (%2, %3), Zoom: %4", rotationMatrix(), panning(X), panning(Y), zoom());
-		QRect textSize = metrics.boundingRect(0, 0, width(), height(), Qt::AlignCenter, text);
-		painter.setPen(textPen());
-		painter.drawText((width() - textSize.width()) / 2, height() - textSize.height(), textSize.width(),
-		    textSize.height(), Qt::AlignCenter, text);
-	}
-#endif
-
 	if (camera() != Camera::Free)
 	{
 		// Paint the coordinates onto the screen.

mercurial