Use a busy cursor while compiling all

Sat, 17 Aug 2013 01:17:20 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Sat, 17 Aug 2013 01:17:20 +0300
changeset 448
9b854708a5c8
parent 447
b2bd8fb41781
child 449
f462f0bd3c51

Use a busy cursor while compiling all

src/gldraw.cpp file | annotate | diff | comparison | revisions
--- a/src/gldraw.cpp	Sat Aug 17 00:47:24 2013 +0300
+++ b/src/gldraw.cpp	Sat Aug 17 01:17:20 2013 +0300
@@ -671,6 +671,9 @@
 	if (!file())
 		return;
 	
+	// Compiling all is a big job, use a busy cursor
+	setCursor (Qt::BusyCursor);
+	
 	m_knownVerts.clear();
 	
 	for (LDObject* obj : file()->objs())
@@ -690,6 +693,8 @@
 	
 	glEnd();
 	glEndList();
+	
+	setCursor (Qt::ArrowCursor);
 }
 
 // =============================================================================

mercurial