Hello,

Qt 4.8 has a change to moc which makes virtual inheritance from QObject no
longer possible.  This caused a problem in Jovie that was fixed by not
virtually inheriting from QObject anymore.  There is a similar compile
problem in kdenetwork/kopete/libkopete at the moment and the attached patch
fixes the problem.  I can commit to 4.7 and trunk if it looks good to
others.

thanks,
Jeremy

P.S. I would have used reviewboard, but there's no kdenetwork or kopete
repository set up in there :)
Index: kopete/libkopete/kopetepassword.cpp
===================================================================
--- kopete/libkopete/kopetepassword.cpp	(revision 1244873)
+++ kopete/libkopete/kopetepassword.cpp	(working copy)
@@ -77,7 +77,7 @@
 {
 public:
 	KopetePasswordRequest( QObject *owner, Kopete::Password &pass )
-	 : QObject( owner ), mPassword( pass ), mWallet( 0 )
+	 : KopetePasswordRequestBase( owner ), mPassword( pass ), mWallet( 0 )
 	{
 	}
 
@@ -375,7 +375,7 @@
 		//  also, which cause a call to this function )
 		return;
 	}
-		  
+
 	KConfigGroup group = config->group( d->configGroup );
 
 	if ( d->remembered && !d->passwordFromKConfig.isNull() )
Index: kopete/libkopete/kopetepassword.h
===================================================================
--- kopete/libkopete/kopetepassword.h	(revision 1244873)
+++ kopete/libkopete/kopetepassword.h	(working copy)
@@ -183,9 +183,12 @@
  * @internal
  * @see KopetePassword
  */
-class KopetePasswordRequestBase : public virtual QObject
+class KopetePasswordRequestBase : public QObject
 {
 	Q_OBJECT
+public:
+    KopetePasswordRequestBase(QObject *parent)
+        :QObject(parent) {};
 signals:
 	void requestFinished( const QString &password );
 public slots:
_______________________________________________
kopete-devel mailing list
kopete-devel@kde.org
https://mail.kde.org/mailman/listinfo/kopete-devel

Reply via email to