From 1c9410e353337052bb141cbe4f519012545d735d Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 7 Sep 2018 13:29:45 +0200 Subject: ProjectExplorer: Rename 'extraAspect' to 'aspect' Using aspects is the standard pattern nowadays, there's nothing 'extra' to them anymore. Change-Id: I446f9d7b1db58a4899e5e44df33ce51f655e7be4 Reviewed-by: hjk Reviewed-by: Orgad Shaneh --- src/plugins/pythoneditor/pythoneditorplugin.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/plugins/pythoneditor/pythoneditorplugin.cpp') diff --git a/src/plugins/pythoneditor/pythoneditorplugin.cpp b/src/plugins/pythoneditor/pythoneditorplugin.cpp index b17f1990a4..5dd91d7067 100644 --- a/src/plugins/pythoneditor/pythoneditorplugin.cpp +++ b/src/plugins/pythoneditor/pythoneditorplugin.cpp @@ -241,9 +241,9 @@ private: Runnable runnable() const final; bool supportsDebugger() const { return true; } - QString mainScript() const { return extraAspect()->value(); } - QString arguments() const { return extraAspect()->arguments(macroExpander()); } - QString interpreter() const { return extraAspect()->value(); } + QString mainScript() const { return aspect()->value(); } + QString arguments() const { return aspect()->arguments(macroExpander()); } + QString interpreter() const { return aspect()->value(); } void updateTargetInformation(); }; @@ -283,7 +283,7 @@ void PythonRunConfiguration::updateTargetInformation() const BuildTargetInfo bti = buildTargetInfo(); const QString script = bti.targetFilePath.toString(); setDefaultDisplayName(tr("Run %1").arg(script)); - extraAspect()->setValue(script); + aspect()->setValue(script); } Runnable PythonRunConfiguration::runnable() const @@ -291,9 +291,9 @@ Runnable PythonRunConfiguration::runnable() const Runnable r; QtcProcess::addArg(&r.commandLineArguments, mainScript()); QtcProcess::addArgs(&r.commandLineArguments, - extraAspect()->arguments(macroExpander())); - r.executable = extraAspect()->value(); - r.environment = extraAspect()->environment(); + aspect()->arguments(macroExpander())); + r.executable = aspect()->value(); + r.environment = aspect()->environment(); return r; } -- cgit v1.2.1