Problem encountered in writing a class which extends QList

Jens Zurheide jens.zurheide at gmx.de
Fri Mar 1 18:49:57 GMT 2002


>rule.h:
>#ifndef RULE_H
>#define RULE_H
>#include <qlist.h>
>
>class Rule : public QList {
Isn't QList a template class?

This would require something like (no guarantee for the syntax!)
template 
  class Rule : public QList<typename T> {
   ...
  }

>From a design point of view making the inheritance private might be worth 
thinking about.

>public:
>     Rule();
>     ~Rule();
>};
>#endif
>
>rule.cpp:
>#include "rule.h"
>Rule::Rule(){
>}
>Rule::~Rule(){
>}

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list