Diff file for Qt Creator 2.7.0

Added by Andreas Wass over 5 years ago

I was bored and wanted to get this plugin working with Qt Creator 2.7.0. Seems like they changed some things in this release but finally managed to get it to work (although I have only performed some small scale testing).

I have only tried it with qmake for Qt 4.8.3, no testing for Qt 5 has been done. The diff is a diff from Rev 55 of trunk.

The most notable change seems to be that I had to undefine QT_NO_CAST_FROM_ASCII and QT_NO_CAST_TO_ASCII at the beginning of all source files. It was either that or all string constants had to be converted to QStrings using QString/QChar::fromAscii since the const char* constructor was private unless I undefined the above. They also removed some functions in favor of a bit field, but that was a rather minor change. Also the CppModelManagerInterface instance now has to be fetched via CPlusPlus::CppModelManagerInterface::instance(), ExtensionSystem::PluginManager::instance()->getObject<CPlusPlus::CppModelManagerInterface>() does not appear to work at all.

Anyway, attached is the diff that will allow the doxygen plugin to work with Qt Creator 2.7.0, at least with Qt 4.8.3, hopefully it can be useful :)

qtcreator_2.7.diff Magnifier (7.919 KB)


Replies (3)

RE: Diff file for Qt Creator 2.7.0 - Added by Kevin Tanguy about 5 years ago

Hi,

I'm not ignoring you, just don't have the time to review the changes yet. However, the undefine part seems odd, I guess there's a better way.

Kevin

RE: Diff file for Qt Creator 2.7.0 - Added by Andreas Wass about 5 years ago

Hehe no problems.

Tell me about it but I did some digging tonight (that first solution was a quick and dirty way, late at night) and it seems that those two are added to the DEFINES variable in qt-creator-src-dir/qtcreator.pri which is included in qt-creator-src-dir/src/qtcreatorplugin.pri which is included in your doxygen.pro.

Attached is an updated diff where the two defines are removed in the .pro file in an appropriate place instead.

Not expecting it to end up in your repo but hopefully it can serve as a basis at least.

qtcreator_2.7.diff Magnifier (6.633 KB)

RE: Diff file for Qt Creator 2.7.0 - Added by Kevin Tanguy about 5 years ago

Hi,

Actually applied it, should have taken the time to review it before.
Thanks a lot :)

k

(1-3/3)