forked from qt-creator/qt-creator
QmlProjectManager: De-export QmlProjectRunConfiguration
Change-Id: I728c4f40f9cc4b559e18fcef10289eddcd5e87bf Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include "qmlproject.h"
|
||||
#include "qmlprojectmanagerconstants.h"
|
||||
#include "qmlmainfileaspect.h"
|
||||
#include "qmlmainfileaspect.h"
|
||||
|
||||
#include <coreplugin/editormanager/editormanager.h>
|
||||
#include <coreplugin/editormanager/ieditor.h>
|
||||
@@ -58,9 +59,30 @@ using namespace QtSupport;
|
||||
using namespace Utils;
|
||||
|
||||
namespace QmlProjectManager {
|
||||
namespace Internal {
|
||||
|
||||
// QmlProjectRunConfiguration
|
||||
|
||||
class QmlProjectRunConfiguration final : public RunConfiguration
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(QmlProjectManager::QmlProjectRunConfiguration)
|
||||
|
||||
public:
|
||||
QmlProjectRunConfiguration(Target *target, Core::Id id);
|
||||
|
||||
private:
|
||||
Runnable runnable() const final;
|
||||
QString disabledReason() const final;
|
||||
bool isEnabled() const final;
|
||||
|
||||
QString mainScript() const;
|
||||
Utils::FilePath qmlScenePath() const;
|
||||
QString commandLineArguments() const;
|
||||
|
||||
BaseStringAspect *m_qmlViewerAspect = nullptr;
|
||||
QmlMainFileAspect *m_qmlMainFileAspect = nullptr;
|
||||
};
|
||||
|
||||
QmlProjectRunConfiguration::QmlProjectRunConfiguration(Target *target, Id id)
|
||||
: RunConfiguration(target, id)
|
||||
{
|
||||
@@ -203,7 +225,7 @@ QString QmlProjectRunConfiguration::mainScript() const
|
||||
return m_qmlMainFileAspect->mainScript();
|
||||
}
|
||||
|
||||
namespace Internal {
|
||||
// QmlProjectRunConfigurationFactory
|
||||
|
||||
QmlProjectRunConfigurationFactory::QmlProjectRunConfigurationFactory()
|
||||
: FixedRunConfigurationFactory(QmlProjectRunConfiguration::tr("QML Scene"), false)
|
||||
|
||||
Reference in New Issue
Block a user