forked from qt-creator/qt-creator
Qt4projectManager: Refactor Qt4Target, split up in per target classes
Almost(*) all of the symbian and maemo specific code is now theoretically moveable to a separate plugin. Thus making it possible to implement new targets in a plugin. (*) Noteable missing is the qtversion, which needs to be split up per target too. Also fixes Task-Nr: QTCREATORBUG-2440 Reviewed-By: hunger Reviewed-By: ck
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
#include "qtversionmanager.h"
|
||||
#include "qt4project.h"
|
||||
#include "qt4projectmanagerconstants.h"
|
||||
#include "qt4maemotarget.h"
|
||||
|
||||
#include <coreplugin/actionmanager/actionmanager.h>
|
||||
#include <coreplugin/actionmanager/command.h>
|
||||
@@ -506,7 +507,7 @@ void MaemoQemuManager::toggleStarterButton(Target *target)
|
||||
{
|
||||
int uniqueId = -1;
|
||||
if (target) {
|
||||
if (Qt4Target *qt4Target = qobject_cast<Qt4Target*>(target)) {
|
||||
if (Qt4MaemoTarget *qt4Target = qobject_cast<Qt4MaemoTarget*>(target)) {
|
||||
if (Qt4BuildConfiguration *bc = qt4Target->activeBuildConfiguration()) {
|
||||
if (QtVersion *version = bc->qtVersion())
|
||||
uniqueId = version->uniqueId();
|
||||
|
||||
Reference in New Issue
Block a user