Refactoring: Use one common code to find the debugging helper library

Remove duplicated code from cmakeprojectmanager.
This commit is contained in:
dt
2009-04-24 14:59:47 +02:00
parent 55cc9fed5c
commit b419403b0f
5 changed files with 184 additions and 194 deletions

View File

@@ -33,6 +33,7 @@
#include "cmakeprojectconstants.h"
#include <projectexplorer/environment.h>
#include <projectexplorer/qtversionmanager.h>
#include <utils/qtcassert.h>
#include <QtGui/QFormLayout>
#include <QtGui/QLineEdit>
@@ -140,7 +141,9 @@ void CMakeRunConfiguration::setArguments(const QString &newText)
QString CMakeRunConfiguration::dumperLibrary() const
{
return CMakeManager::findDumperLibrary(environment());
QString qmakePath = ProjectExplorer::QtVersionManager::findSystemQt(environment());
QString dhl = ProjectExplorer::QtVersionManager::debuggingHelperLibrary(qmakePath);
return dhl;
}
// Factory