forked from qt-creator/qt-creator
ProjectExplorer: Add "Open Terminal Here" as default entry
Most often, a terminal with system environment is needed. Provide it as direct context menu entry, and leave the additional entries for build and run environment (which are probably more seldom used) as sub-menu as before, but rename it to "Open Terminal with >". Change-Id: I148395ca1e62eafff8844ba91db269a12b053de9 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
Eike Ziller
parent
504e0140bb
commit
e2f7380708
@@ -135,13 +135,20 @@ QString FileUtils::msgGraphicalShellAction()
|
||||
return QApplication::translate("Core::Internal", "Show Containing Folder");
|
||||
}
|
||||
|
||||
QString FileUtils::msgTerminalAction()
|
||||
QString FileUtils::msgTerminalHereAction()
|
||||
{
|
||||
if (HostOsInfo::isWindowsHost())
|
||||
return QApplication::translate("Core::Internal", "Open Command Prompt Here");
|
||||
return QApplication::translate("Core::Internal", "Open Terminal Here");
|
||||
}
|
||||
|
||||
QString FileUtils::msgTerminalWithAction()
|
||||
{
|
||||
if (HostOsInfo::isWindowsHost())
|
||||
return QApplication::translate("Core::Internal", "Open Command Prompt With");
|
||||
return QApplication::translate("Core::Internal", "Open Terminal With");
|
||||
}
|
||||
|
||||
void FileUtils::removeFile(const QString &filePath, bool deleteFromFS)
|
||||
{
|
||||
// remove from version control
|
||||
|
||||
Reference in New Issue
Block a user