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

List:       kde-kafka
Subject:    Re: patch again for inserting lists
From:       Nikolas Zimmermann <wildfox () kde ! org>
Date:       2001-06-13 13:20:03
[Download RAW message or body]

On Tuesday 12 June 2001 22:33, Emmanuel Touzery wrote:
> Le Lundi 11 Juin 2001 23:34, vous avez écrit :
> hi!
>
> > Your patch looks very good
> >
> > 2 issues:
> >  * get rid o
> > f this textcontrolimpl
> >     just do NOT use these virtual slots
> >     do a normal connect(textControl->buttonLiorSthLikeThis, .....)
> >     and do it without this new file
>
> ok, but for that i need kafkaedittextobject to inherit from
> kafkaeditcontrol, no? if i do that, i get:
>
> In file included from kafkaedittextobject.cpp:23:
> kafkaedittextobject.moc: In method `void
> KafkaEditTextObject::initMetaObject()':
> kafkaedittextobject.moc:34: request for member `badSuperclassWarning' is
> ambiguous in multiple inheritance lattice
> /usr/lib/qt/include/qobject.h:164: candidates are: static void
> QObject::badSuperclassWarning(const char *, const char *)
> /usr/lib/qt/include/qobject.h:164:                 static void
> QObject::badSuperclassWarning(const char *, const char *)
> kafkaedittextobject.moc: In function `static class QMetaObject *
> KafkaEditTextObject::staticMetaObject()':
> kafkaedittextobject.moc:76: type `QObject' is ambiguous base class for
> type `KafkaEditTextObject'
> kafkaedittextobject.moc:78: type `QObject' is ambiguous base class for
> type `KafkaEditTextObject'
> kafkaedittextobject.moc:80: type `QObject' is ambiguous base class for
> type `KafkaEditTextObject'
> kafkaedittextobject.moc:82: type `QObject' is ambiguous base class for
> type `KafkaEditTextObject'
> kafkaedittextobject.moc:84: type `QObject' is ambiguous base class for
> type `KafkaEditTextObject'
> kafkaedittextobject.moc:86: type `QObject' is ambiguous base class for
> type `KafkaEditTextObject'
> kafkaedittextobject.moc:88: type `QObject' is ambiguous base class for
> type `KafkaEditTextObject'
> kafkaedittextobject.moc:90: type `QObject' is ambiguous base class for
> type `KafkaEditTextObject'
> make: *** [kafkaedittextobject.lo] Error 1
>
> i just typed:
>
> class KafkaEditTextObject : public KafkaEditObject, public
> KafkaEditTextControl
>
> well basically g++ is not happy that this class inherits from two classes
> that inherit from QObject no? but as of now i don't know c++ well enough to
> handle that. i need to read some book someday soon. was i misunderstood? or
> what is the solution?
>
> > * create and use deleteElement, as it's a very good idea

Why do you do this all?
you just do _not_ need to inherit from KafkaEditTextControl!
you do _not_ need to reimplement the virtual slots
just  use connect(textControl->myControl, SIGNAL(mySignal()), this, 
SLOT(mySlot())));

Bye
 Bye
  Niko

>
> no pb :o)
>
> bye!
>
> emmanuel :o)
> _______________________________________________
> Kde-kafka mailing list
> Kde-kafka@master.kde.org
> http://master.kde.org/mailman/listinfo/kde-kafka

-- 
Nikolas Zimmermann
wildfox@kde.org
_______________________________________________
Kde-kafka mailing list
Kde-kafka@master.kde.org
http://master.kde.org/mailman/listinfo/kde-kafka

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

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