ProjectExplorer: Consider build environment

... in "Open Terminal Here" action in the build configuration.

Change-Id: I0b1b15d4f1097cf48eb5a977f2ca5951b2f78377
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2020-11-09 15:57:47 +01:00
parent 6813d14872
commit ad48f2639c
8 changed files with 39 additions and 4 deletions

View File

@@ -195,6 +195,7 @@ public:
BinaryVersionToolTipEventFilter *m_binaryVersionToolTipEventFilter = nullptr;
QList<QAbstractButton *> m_buttons;
MacroExpander *m_macroExpander = globalMacroExpander();
std::function<void()> m_openTerminal;
bool m_isReadOnly = false;
bool m_isFileDialogOnly = false;
@@ -522,6 +523,16 @@ void PathChooser::setAboutToShowContextMenuHandler(PathChooser::AboutToShowConte
s_aboutToShowContextMenuHandler = handler;
}
void PathChooser::setOpenTerminalHandler(const std::function<void ()> &openTerminal)
{
d->m_openTerminal = openTerminal;
}
std::function<void()> PathChooser::openTerminalHandler() const
{
return d->m_openTerminal;
}
void PathChooser::setDefaultValue(const QString &defaultValue)
{
d->m_defaultValue = defaultValue;