forked from qt-creator/qt-creator
Compile.
This commit is contained in:
@@ -74,20 +74,6 @@ using namespace Core::Internal;
|
|||||||
|
|
||||||
enum { debugEditorManager=0 };
|
enum { debugEditorManager=0 };
|
||||||
|
|
||||||
QString EditorManager::defaultExternalEditor() const
|
|
||||||
{
|
|
||||||
#ifdef Q_OS_MAC
|
|
||||||
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)
|
|
||||||
return QLatin1String("notepad %f");
|
|
||||||
#else
|
|
||||||
return QString();
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
//===================EditorManager=====================
|
//===================EditorManager=====================
|
||||||
|
|
||||||
EditorManagerPlaceHolder *EditorManagerPlaceHolder::m_current = 0;
|
EditorManagerPlaceHolder *EditorManagerPlaceHolder::m_current = 0;
|
||||||
@@ -388,6 +374,20 @@ QSize EditorManager::minimumSizeHint() const
|
|||||||
return QSize(400, 300);
|
return QSize(400, 300);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString EditorManager::defaultExternalEditor() const
|
||||||
|
{
|
||||||
|
#ifdef Q_OS_MAC
|
||||||
|
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)
|
||||||
|
return QLatin1String("notepad %f");
|
||||||
|
#else
|
||||||
|
return QString();
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
EditorSplitter *EditorManager::editorSplitter() const
|
EditorSplitter *EditorManager::editorSplitter() const
|
||||||
{
|
{
|
||||||
return m_d->m_splitter;
|
return m_d->m_splitter;
|
||||||
|
|||||||
Reference in New Issue
Block a user