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

List:       atlantik-devel
Subject:    Re: [atlantik-devel] Problem compiling on RH 7.3
From:       Rob Kaper <cap () capsi ! com>
Date:       2002-08-30 12:47:45
[Download RAW message or body]

On Thursday 29 August 2002 23:03, Daniel Loomis wrote:
> In method `void BoardDisplay::butttonPressed ()': display widget.cpp:62:
> cannot convert `const QObject *' to `QObject *' in initialization
>
> Is there a workaround for this problem?

Use the attached patch which was committed to CVS shortly after the release.

Rob
-- 
Rob Kaper     | Gimme some love, gimme some skin,
cap@capsi.com | if we ain't got that then we ain't got much
www.capsi.com | and we ain't got nothing, nothing! -- "Nothing" by A

["display_widget.cpp.diff" (text/x-diff)]

===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/display_widget.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- kdegames/atlantik/libatlantikui/display_widget.cpp	2002/07/23 23:39:41	1.14
+++ kdegames/atlantik/libatlantikui/display_widget.cpp	2002/07/29 09:03:02	1.15
@@ -59,7 +59,7 @@
 
 void BoardDisplay::buttonPressed()
 {
-	QObject *o = QObject::sender();
+	QObject *o = const_cast<QObject*>(QObject::sender());
 	emit buttonCommand(m_buttonCommandMap[o]);
 }
 

_______________________________________________
atlantik-devel mailing list
atlantik-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/atlantik-devel

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

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