Bug 414859 - Source->Implement method gives extra variants with Qt.
Summary: Source->Implement method gives extra variants with Qt.
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 8.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-12 07:30 EDT by soman namos CLA
Modified: 2020-09-04 15:22 EDT (History)
2 users (show)

See Also:


Attachments
Bug's screenshot (1.26 MB, image/png)
2013-08-12 07:30 EDT, soman namos CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description soman namos CLA 2013-08-12 07:30:16 EDT
Created attachment 234302 [details]
Bug's screenshot

I am programming a Qt project with Eclipse CDT Kepler and noticed some strange behaviour in "source->implement method...". There is a class and h + cpp files:

#pragma once
#include <QObject>

class MainInfoModel: public QObject
{
	Q_OBJECT

public:
	void getUserInfo();

	signals:
	void userInfoReceived(const QVariant &userInfo);
};

the I use Source->Implement method... and got some extra variants. In my case there are 4 Q_OBJECTs to implement, but it should be no Q_OBJECTs to implement.
Comment 1 Andrew Eidsness CLA 2013-08-24 12:34:53 EDT
There must be 4 methods declared in the Q_OBJECT macro, and the tooling is trying to tell you to implement them.  That option isn't really appropriate for Qt.  I'll see if there is a way to filter those options from this dialog.

Do you know of any other places in the UI that are similar to this?
Comment 2 soman namos CLA 2013-08-24 16:01:53 EDT
At this moment while I'm working with Qt project I didn't noticed any GUI parts with such behaviour.