Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 No refactoring on first method after Q_SLOTS
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

acenes
New Member

2 Posts

Posted - Mar 01 2008 :  06:39:52 AM  Show Profile  Reply with Quote
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

Edited by - acenes on Mar 01 2008 06:58:50 AM

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Mar 03 2008 :  07:57:00 AM  Show Profile  Reply with Quote
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?

zen is the art of being at one with the two'ness
Go to Top of Page

acenes
New Member

2 Posts

Posted - Mar 03 2008 :  10:54:59 AM  Show Profile  Reply with Quote
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
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Mar 03 2008 :  1:25:06 PM  Show Profile  Reply with Quote
I have updated the FAQ with these new keywords. I am glad this fixed your problem

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000