src/gldraw.cpp

changeset 411
fd90677cec8d
parent 410
a5aebcf4a1c8
child 412
064b0467c8de
--- a/src/gldraw.cpp	Thu Aug 01 02:49:42 2013 +0300
+++ b/src/gldraw.cpp	Thu Aug 01 03:26:47 2013 +0300
@@ -92,24 +92,27 @@
 // =============================================================================
 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 // =============================================================================
-GLRenderer::GLRenderer (QWidget* parent) : QGLWidget (parent) {
-	m_picking = m_rangepick = false;
-	m_camera = (GL::Camera) gl_camera.value;
-	m_drawToolTip = false;
-	m_editMode = Select;
-	m_rectdraw = false;
-	m_panning = false;
-	setFile (null);
+GLRenderer::GLRenderer (QWidget* parent) :
+	QGLWidget (parent),
+	m_picking( false ),
+	m_rangepick( false ),
+	m_camera( (GL::Camera) gl_camera.value ),
+	m_drawToolTip( false ),
+	m_editMode( Select ),
+	m_rectdraw( false ),
+	m_panning( false ),
+	m_file( null ),
+	m_toolTipTimer( new QTimer( this )),
+	m_thickBorderPen( QPen( QColor( 0, 0, 0, 208 ), 2, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin )),
+	m_thinBorderPen( m_thickBorderPen ),
+	m_msglog( null )
+{
 	setDrawOnly (false);
 	resetAngles();
-	setMessageLog( null );
 	
-	m_toolTipTimer = new QTimer (this);
 	m_toolTipTimer->setSingleShot (true);
 	connect (m_toolTipTimer, SIGNAL (timeout()), this, SLOT (slot_toolTipTimer()));
 	
-	m_thickBorderPen = QPen (QColor (0, 0, 0, 208), 2, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin);
-	m_thinBorderPen = m_thickBorderPen;
 	m_thinBorderPen.setWidth (1);
 	
 	// Init camera icons

mercurial