forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.3' into 4.4
Conflicts: src/plugins/projectexplorer/projectexplorer.cpp This temporarily breaks handling of IRunControlFactory priorities. Change-Id: Ibbc3c296ac82179f8e627a77436db2ac8fd505a2
This commit is contained in:
@@ -538,6 +538,19 @@ IRunConfigurationAspect *IRunControlFactory::createRunConfigurationAspect(RunCon
|
||||
than it needs to be.
|
||||
*/
|
||||
|
||||
|
||||
const char PRIORITY_KEY[] = "RunControlFactoryPriority";
|
||||
|
||||
int ProjectExplorer::IRunControlFactory::priority() const
|
||||
{
|
||||
return property(PRIORITY_KEY).toInt(); // 0 by default.
|
||||
}
|
||||
|
||||
void IRunControlFactory::setPriority(int priority)
|
||||
{
|
||||
setProperty(PRIORITY_KEY, priority);
|
||||
}
|
||||
|
||||
namespace Internal {
|
||||
|
||||
enum class RunWorkerState
|
||||
|
@@ -341,6 +341,10 @@ public:
|
||||
virtual RunControl *create(RunConfiguration *runConfiguration, Core::Id runMode, QString *errorMessage);
|
||||
|
||||
virtual IRunConfigurationAspect *createRunConfigurationAspect(RunConfiguration *rc);
|
||||
|
||||
int priority() const;
|
||||
protected:
|
||||
void setPriority(int priority); // Higher values will be preferred.
|
||||
};
|
||||
|
||||
class PROJECTEXPLORER_EXPORT RunConfigWidget : public QWidget
|
||||
|
Reference in New Issue
Block a user