help needed in solving bug 327760

Milian Wolff mail at milianw.de
Sun Oct 11 12:21:26 UTC 2015


On Sonntag, 27. September 2015 04:28:25 CEST RISHABH GUPTA wrote:
> hello,
> 
> I was trying to solve this bug  https://bugs.kde.org/show_bug.cgi?id=327760
> .After figuring out how this could be done  i made some changes to
> /kdevelop/projectmanagers/cmakebuilddirchooser.cpp  and
> /kdevplatform/shell/runcontroller.cpp
> 
> kdevplatforms builds fine but kdevelop doesn't build 100%
> 
> changes in cmakebuildirchooser.cpp
> 
> #include <shell/runcontroller.h> //included this header file
> 
> // inside funtion setbuildtype() called a function of class runcontroller
> 
> void CMakeBuildDirChooser::setBuildType(const QString& s)
> {
>   KDevelop::RunController::buildtype(s); //new funtion that i have called .
>   / /buildtype() function has been  defined  in runcontroller.cpp
> 
> 
> error that i am getting while  building  kdevelop
> 
> error: ‘buildtype’ is not a member of ‘KDevelop::RunController’
> KDevelop::RunController::buildtype(s)
> 
> 
> could  anyone please explain why am i getting this error and how it can be
> solved?

Hey, sorry for the late response.

You'll need to do something like

KDevelop::ICore::self()->runController()->buildType(...)

I.e. get the global instance of the run controller.

Furthermore, please add the API to IRunController, instead of the shell 
implementation in RunController. We don't want to leak internals (which we 
currently do in some places, but that must be cleaned up).

Cheers
-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20151011/a279b5b5/attachment.sig>


More information about the KDevelop-devel mailing list