Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
5adee37c
Commit
5adee37c
authored
Dec 03, 2008
by
mae
Browse files
fix mac compile
parent
20158a8c
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/editormanager/editormanager.cpp
View file @
5adee37c
...
...
@@ -74,10 +74,11 @@ using namespace Core::Internal;
enum
{
debugEditorManager
=
0
};
QString
EditorManager
::
defaultExternalEditor
()
{
QString
EditorManager
::
defaultExternalEditor
()
const
{
#ifdef Q_OS_MAC
return
m_d
->
m_externalEditor
=
m_d
->
m_core
->
resourcePath
()
+
QLatin1String
(
"/runInTerminal.command vi %f %l %c %W %H %x %y"
);
return
m_d
->
m_core
->
resourcePath
()
+
QLatin1String
(
"/runInTerminal.command vi %f %l %c %W %H %x %y"
);
#elif defined(Q_OS_UNIX)
return
QLatin1String
(
"xterm -geom %Wx%H+%x+%y -e vi %f +%l +
\"
normal %c|
\"
"
);
#elif defined (Q_OS_WIN)
...
...
src/plugins/coreplugin/editormanager/editormanager.h
View file @
5adee37c
...
...
@@ -156,7 +156,7 @@ public:
void
setExternalEditor
(
const
QString
&
);
QString
externalEditor
()
const
;
static
QString
defaultExternalEditor
();
QString
defaultExternalEditor
()
const
;
QString
externalEditorHelpText
()
const
;
signals:
...
...
src/plugins/coreplugin/generalsettings.cpp
View file @
5adee37c
...
...
@@ -99,7 +99,7 @@ void GeneralSettings::resetInterfaceColor()
void
GeneralSettings
::
resetExternalEditor
()
{
m_page
->
externalEditorEdit
->
setText
(
EditorManager
::
defaultExternalEditor
());
m_page
->
externalEditorEdit
->
setText
(
EditorManager
::
instance
()
->
defaultExternalEditor
());
}
void
GeneralSettings
::
showHelpForExternalEditor
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment