[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdegames/kolf
From:       Stefan Majewsky <majewsky () gmx ! net>
Date:       2010-11-10 23:29:41
Message-ID: 20101110232941.9D071AC89E () svn ! kde ! org
[Download RAW message or body]

SVN commit 1195397 by majewsky:

Enable editing of white ball.

 M  +6 -0      ball.cpp  
 M  +3 -0      ball.h  
 M  +1 -0      game.cpp  


--- trunk/KDE/kdegames/kolf/ball.cpp #1195396:1195397
@@ -19,6 +19,7 @@
 
 #include "ball.h"
 #include "game.h"
+#include "overlay.h"
 #include "shape.h"
 
 #include <QApplication>
@@ -188,3 +189,8 @@
 	EllipticalCanvasItem::setVisible(yes);
 	setState(state);
 }
+
+Kolf::Overlay* Ball::createOverlay()
+{
+	return new Kolf::Overlay(this, this);
+}
--- trunk/KDE/kdegames/kolf/ball.h #1195396:1195397
@@ -77,6 +77,9 @@
 public slots:
 	void update() { }
 
+protected:
+	virtual Kolf::Overlay* createOverlay();
+
 private:
 	BallState state;
 
--- trunk/KDE/kdegames/kolf/game.cpp #1195396:1195397
@@ -2622,6 +2622,7 @@
 	}
 
 	whiteBall->setVisible(editing);
+	whiteBall->editModeChanged(editing);
 	highlighter->setVisible(false);
 
 	// shouldn't see putter whilst editing
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic