diff options
author | hjk <hjk@qt.io> | 2018-04-24 14:11:51 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2018-04-24 14:06:06 +0000 |
commit | 76312d7786fdb6e37de087e76ca347234ca15607 (patch) | |
tree | 591c3f94f7ce7eb10fb1d90cae05f7f03158970f /src/plugins/projectexplorer/runconfigurationaspects.h | |
parent | f8937daf717597f696a5ba3963e02878b01ab4ae (diff) |
ProjectExplorer: Make string based aspect widgets more flexible
By making some of the underlying PathChooser etc. functions
accessible.
Change-Id: Iaea1543af8b6711bd7594a029e0612d6c6fc4b4b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/runconfigurationaspects.h')
-rw-r--r-- | src/plugins/projectexplorer/runconfigurationaspects.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/plugins/projectexplorer/runconfigurationaspects.h b/src/plugins/projectexplorer/runconfigurationaspects.h index 83f5e5a70f..d8c84da265 100644 --- a/src/plugins/projectexplorer/runconfigurationaspects.h +++ b/src/plugins/projectexplorer/runconfigurationaspects.h @@ -29,6 +29,7 @@ #include "applicationlauncher.h" #include <utils/fileutils.h> +#include <utils/pathchooser.h> #include <utils/osspecificaspects.h> QT_BEGIN_NAMESPACE @@ -39,11 +40,6 @@ class QFormLayout; class QToolButton; QT_END_NAMESPACE -namespace Utils { -class FancyLineEdit; -class PathChooser; -} - namespace ProjectExplorer { class PROJECTEXPLORER_EXPORT TerminalAspect : public IRunConfigurationAspect @@ -189,6 +185,9 @@ public: void setDisplayFilter(const std::function<QString (const QString &)> &displayFilter); void setPlaceHolderText(const QString &placeHolderText); + void setHistoryCompleter(const QString &historyCompleterKey); + void setExpectedKind(const Utils::PathChooser::Kind expectedKind); + void setEnvironment(const Utils::Environment &env); bool isChecked() const; void makeCheckable(const QString &optionalLabel, const QString &optionalBaseKey); @@ -212,6 +211,9 @@ private: QString m_value; QString m_placeHolderText; + QString m_historyCompleterKey; + Utils::PathChooser::Kind m_expectedKind = Utils::PathChooser::File; + Utils::Environment m_environment; QPointer<QLabel> m_label; QPointer<QLabel> m_labelDisplay; QPointer<Utils::FancyLineEdit> m_lineEditDisplay; @@ -233,6 +235,9 @@ public: void setLabelText(const QString &labelText); void setPlaceHolderText(const QString &placeHolderText); void setExecutablePathStyle(Utils::OsType osType); + void setHistoryCompleter(const QString &historyCompleterKey); + void setExpectedKind(const Utils::PathChooser::Kind expectedKind); + void setEnvironment(const Utils::Environment &env); protected: void fromMap(const QVariantMap &map) override; |