[Kstars-devel] KDE/kdeedu/kstars/kstars

Jason Harris kstars at 30doradus.org
Tue Mar 7 04:56:02 CET 2006


SVN commit 516424 by harris:

Fix X errors regarding bad cursor parameter.

Also, activate handler for "C" keypress (which centers display on 
clickedObject() )

CCMAIL: kstars-devel at kde.org


 M  +1 -3      skymap.cpp  
 M  +3 -4      skymapevents.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/skymap.cpp #516423:516424
@@ -1010,8 +1010,6 @@
 
 void SkyMap::setDefaultMouseCursor()
 {
-	mouseMoveCursor = false;	// no mousemove cursor
-	
 	QPainter p;
 	QPixmap cursorPix (32, 32); // size 32x32 (this size is compatible to all systems)
 // the center of the pixmap
@@ -1053,7 +1051,7 @@
 {
 	if (mouseButtonDown)
 	{
-		setCursor (9);	// cursor shape defined in qt
+		setCursor(Qt::SizeAllCursor);	// cursor shape defined in qt
 		mouseMoveCursor = true;
 	}
 }
--- trunk/KDE/kdeedu/kstars/kstars/skymapevents.cpp #516423:516424
@@ -269,10 +269,9 @@
 			kapp->processEvents();
 			break;
 
-			//FIXME: Uncomment after feature thaw!
-//		case Qt::Key_C: //Center clicked object object
-//			if ( clickedObject() ) slotCenter();
-//			break;
+		case Qt::Key_C: //Center clicked object object
+			if ( clickedObject() ) slotCenter();
+			break;
 
 		case Qt::Key_D: //Details window for Clicked/Centered object
 			if ( shiftPressed ) setClickedObject( focusObject() );


More information about the Kstars-devel mailing list