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

List:       kdevelop-bugs
Subject:    [Bug 247257] New: "Create class" misbehave
From:       Serge Lussier <serge-lussier () bell ! net>
Date:       2010-08-10 15:24:19
Message-ID: bug-247257-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=247257

           Summary: "Create class" misbehave
           Product: kdevelop
           Version: 4.0.0
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: minor
          Priority: NOR
         Component: Language Support: CPP
        AssignedTo: kdevelop-bugs@kdevelop.org
        ReportedBy: serge-lussier@bell.net


Version:           4.0.0 (using KDE 4.4.2) 
OS:                Linux

Versions: 4.0.0, 4.0.1
Non Gui QT/KDE c++ projects and QT [GUI] c++ projets ( have not tried with KDE
projects ):

Creating new classes does not result minimum expectations in generated .h and
.c[c,pp] files





Reproducible: Didn't try

Steps to Reproduce:
Execute "Create class" dialog
- fill in the class name ( [namespace::] prefix result behaviour is ok)
- add a base class ( fill in the base class name then click "add" button )
- Next and if base class methods list is there, check mark on, on especially
the ~baseclass destructor method
- Next,Next( License and filename(s) .h, .cpp okay not related)
- Click Finish
- Click Ok on the cmake namager


Actual Results:  
( from real new class 'Agent::GestionContacts' in a QT CMake project )
GestionContacts.h:
#ifndef AGENT_GESTIONCONTACTS_H
#define AGENT_GESTIONCONTACTS_H

#include <qt4/QtGui/QWidget>


namespace Agent {

class GestionContacts : public QWidget
{

public:
    virtual ~QObject();
};

}

#endif // AGENT_GESTIONCONTACTS_H



GestionContacts.cpp:
#include "GestionContacts.h"

using namespace Agent;

GestionContacts::~QObject()
{

}

-------------------------------------------




Expected Results:  
GestionContatcs.h:
#ifndef AGENT_GESTIONCONTACTS_H
#define AGENT_GESTIONCONTACTS_H

#include <qt4/QtGui/QWidget>


namespace Agent {

class GestionContacts : public QWidget
{
    Q_OBJECT
public:
    virtual ~GestionContacts();
};

GestionContacts.cpp:

#include "GestionContacts.h"

using namespace Agent;

GestionContacts::~GestionContacts()
{

}

#include "GestionContacts.moc"


Involved CMakeFiles.txt modified, then Configure selection should be run to
generate GestionContacts.moc in build target

for QT based projects :
Q_OBJECT should be put in place since every QObject classes must have it using
moc.

for non-qt based projects, the destructor misbehave is the same.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

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