On 05/22/2015 01:47 PM, Daniel Teske wrote: > On Friday 22 May 2015 13:32:25 Petr Vanek wrote: >> hi all, >> >> my plugin exposes two types of >> ProjectExplorer::LocalApplicationRunConfiguration: >> >> class QorusExecutableRunConfiguration : public >> ProjectExplorer::LocalApplicationRunConfiguration >> and >> class QoreExecutableRunConfiguration : public >> ProjectExplorer::LocalApplicationRunConfiguration >> >> my idea is to switch between these configurations whenever the current >> edited document changes. Then the lookup into registered mime types >> shows what run configuration should be used. >> But I cannot find how I can set the current run configuration in the >> code. I'm able to do it only by hands in the UI - MiniProjectTargetSelector. >> >> Is there some hidden build/run target handler inside qt creator, please? >> > project()->target()->setActiveRunConfiguration(), but that's sounds very > strange to want.
thanks, Daniel. It is not for regular creator but for my internal builds only - it should switch special mimetype document to use different language interpreters binaries. Anyway, is it possible to create an empty Kit if there is no present? > > daniel > _______________________________________________ > Qt-creator mailing list > [email protected] > http://lists.qt-project.org/mailman/listinfo/qt-creator _______________________________________________ Qt-creator mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/qt-creator
