forked from qt-creator/qt-creator
		
	Rename namespace Core::Utils into Utils
Also move Designer::Internal::FormWindowEditor -> Designer::FormWindowEditor.
This commit is contained in:
		@@ -47,7 +47,7 @@
 | 
			
		||||
#include <QtGui/QTreeView>
 | 
			
		||||
 | 
			
		||||
using namespace QmlProjectManager::Internal;
 | 
			
		||||
using namespace Core::Utils;
 | 
			
		||||
using namespace Utils;
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
@@ -124,7 +124,7 @@ QmlNewProjectWizardDialog::QmlNewProjectWizardDialog(QWidget *parent)
 | 
			
		||||
{
 | 
			
		||||
    setWindowTitle(tr("New QML Project"));
 | 
			
		||||
 | 
			
		||||
    m_introPage = new Core::Utils::ProjectIntroPage();
 | 
			
		||||
    m_introPage = new Utils::ProjectIntroPage();
 | 
			
		||||
    m_introPage->setDescription(tr("This wizard generates a QML application project."));
 | 
			
		||||
 | 
			
		||||
    addPage(m_introPage);
 | 
			
		||||
 
 | 
			
		||||
@@ -43,14 +43,13 @@ class QStringList;
 | 
			
		||||
class QTreeView;
 | 
			
		||||
QT_END_NAMESPACE
 | 
			
		||||
 | 
			
		||||
namespace Core {
 | 
			
		||||
namespace Utils {
 | 
			
		||||
 | 
			
		||||
class FileWizardPage;
 | 
			
		||||
class ProjectIntroPage;
 | 
			
		||||
 | 
			
		||||
} // namespace Utils
 | 
			
		||||
} // namespace Core
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
namespace QmlProjectManager {
 | 
			
		||||
namespace Internal {
 | 
			
		||||
@@ -79,7 +78,7 @@ protected:
 | 
			
		||||
private:
 | 
			
		||||
    int m_secondPageId;
 | 
			
		||||
 | 
			
		||||
    Core::Utils::ProjectIntroPage *m_introPage;
 | 
			
		||||
    Utils::ProjectIntroPage *m_introPage;
 | 
			
		||||
 | 
			
		||||
    QTreeView *m_dirView;
 | 
			
		||||
    QDirModel *m_dirModel;
 | 
			
		||||
 
 | 
			
		||||
@@ -338,7 +338,7 @@ QmlRunConfiguration::QmlRunConfiguration(QmlProject *pro)
 | 
			
		||||
{
 | 
			
		||||
    setName(tr("QML Viewer"));
 | 
			
		||||
 | 
			
		||||
    m_qmlViewer = Core::Utils::SynchronousProcess::locateBinary(QLatin1String("qmlviewer"));
 | 
			
		||||
    m_qmlViewer = Utils::SynchronousProcess::locateBinary(QLatin1String("qmlviewer"));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
QmlRunConfiguration::~QmlRunConfiguration()
 | 
			
		||||
@@ -428,8 +428,8 @@ QWidget *QmlRunConfiguration::configurationWidget()
 | 
			
		||||
 | 
			
		||||
    connect(combo, SIGNAL(activated(QString)), this, SLOT(setMainScript(QString)));
 | 
			
		||||
 | 
			
		||||
    Core::Utils::PathChooser *qmlViewer = new Core::Utils::PathChooser;
 | 
			
		||||
    qmlViewer->setExpectedKind(Core::Utils::PathChooser::Command);
 | 
			
		||||
    Utils::PathChooser *qmlViewer = new Utils::PathChooser;
 | 
			
		||||
    qmlViewer->setExpectedKind(Utils::PathChooser::Command);
 | 
			
		||||
    qmlViewer->setPath(executable());
 | 
			
		||||
    connect(qmlViewer, SIGNAL(changed(QString)), this, SLOT(onQmlViewerChanged()));
 | 
			
		||||
 | 
			
		||||
@@ -463,7 +463,7 @@ void QmlRunConfiguration::setMainScript(const QString &scriptFile)
 | 
			
		||||
 | 
			
		||||
void QmlRunConfiguration::onQmlViewerChanged()
 | 
			
		||||
{
 | 
			
		||||
    if (Core::Utils::PathChooser *chooser = qobject_cast<Core::Utils::PathChooser *>(sender())) {
 | 
			
		||||
    if (Utils::PathChooser *chooser = qobject_cast<Utils::PathChooser *>(sender())) {
 | 
			
		||||
        m_qmlViewer = chooser->path();
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@@ -492,7 +492,7 @@ void QmlRunConfiguration::restore(const ProjectExplorer::PersistentSettingsReade
 | 
			
		||||
    m_scriptFile = reader.restoreValue(QLatin1String("mainscript")).toString();
 | 
			
		||||
 | 
			
		||||
    if (m_qmlViewer.isEmpty())
 | 
			
		||||
        m_qmlViewer = Core::Utils::SynchronousProcess::locateBinary(QLatin1String("qmlviewer"));
 | 
			
		||||
        m_qmlViewer = Utils::SynchronousProcess::locateBinary(QLatin1String("qmlviewer"));
 | 
			
		||||
 | 
			
		||||
    if (m_scriptFile.isEmpty())
 | 
			
		||||
        m_scriptFile = tr("<Current File>");
 | 
			
		||||
 
 | 
			
		||||
@@ -46,7 +46,7 @@
 | 
			
		||||
#include <QtGui/QTreeView>
 | 
			
		||||
 | 
			
		||||
using namespace QmlProjectManager::Internal;
 | 
			
		||||
using namespace Core::Utils;
 | 
			
		||||
using namespace Utils;
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -44,13 +44,9 @@ class QStringList;
 | 
			
		||||
class QTreeView;
 | 
			
		||||
QT_END_NAMESPACE
 | 
			
		||||
 | 
			
		||||
namespace Core {
 | 
			
		||||
namespace Utils {
 | 
			
		||||
 | 
			
		||||
class FileWizardPage;
 | 
			
		||||
 | 
			
		||||
} // namespace Utils
 | 
			
		||||
} // namespace Core
 | 
			
		||||
 | 
			
		||||
namespace QmlProjectManager {
 | 
			
		||||
namespace Internal {
 | 
			
		||||
@@ -79,7 +75,7 @@ protected:
 | 
			
		||||
private:
 | 
			
		||||
    int m_secondPageId;
 | 
			
		||||
 | 
			
		||||
    Core::Utils::FileWizardPage *m_firstPage;
 | 
			
		||||
    Utils::FileWizardPage *m_firstPage;
 | 
			
		||||
 | 
			
		||||
    QTreeView *m_dirView;
 | 
			
		||||
    QDirModel *m_dirModel;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user