Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 No refactoring on first method after Q_SLOTS

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
acenes Posted - Mar 01 2008 : 06:39:52 AM
The context menu does not show the create implementation (and other) items in the refactoring menu as enabled for the first method after private Q_SLOTS in the header file:



The 2nd and 3rd methods (save and undo) show the functions enabled as expected:



Visual Studio 2005 SP1
Qt 4.3.4 Commercial
Qt Visual Studio Integration 1.3.3
Visual Assist X 10.4.1626.0 Build 2008.01.17
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Mar 03 2008 : 1:25:06 PM
I have updated the FAQ with these new keywords. I am glad this fixed your problem
acenes Posted - Mar 03 2008 : 10:54:59 AM
Q_SIGNALS and Q_SLOTS were introduced in Qt 4.1 as alternate to the keywords signals and slots, to enable compatibility with the boost library:

http://trolltech.com/developer/notes/changes/changes-4.1.0/

Anyway thanks for the pointer to StdAfx.h. I added these lines and it works now:
#define slots
#define signals public
#define Q_SLOTS
#define Q_SIGNALS public
feline Posted - Mar 03 2008 : 07:57:00 AM
Have you added any #define lines to VA's stdafx.h file for Qt, as explained in this FAQ entry?

http://docs.wholetomato.com?W310

I do not recognise Q_SLOTS, is this new in Qt 4, or is this a macro you yourself have defined?

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000