forked from qt-creator/qt-creator
CMake: Add method to query server mode support to CMakeTool
Change-Id: I88ce643749d2d8f801b20a2c6d7555348292af94 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -199,6 +199,14 @@ TextEditor::Keywords CMakeTool::keywords()
|
||||
return TextEditor::Keywords(m_variables, m_functions, m_functionArgs);
|
||||
}
|
||||
|
||||
bool CMakeTool::hasServerMode() const
|
||||
{
|
||||
supportedGenerators(); // server mode is queried from the output of -E capabilities,
|
||||
// just like the generators
|
||||
|
||||
return m_hasServerMode;
|
||||
}
|
||||
|
||||
bool CMakeTool::isAutoDetected() const
|
||||
{
|
||||
return m_isAutoDetected;
|
||||
|
@@ -87,6 +87,7 @@ public:
|
||||
bool isAutoRun() const;
|
||||
QList<Generator> supportedGenerators() const;
|
||||
TextEditor::Keywords keywords();
|
||||
bool hasServerMode() const;
|
||||
|
||||
bool isAutoDetected() const;
|
||||
QString displayName() const;
|
||||
|
Reference in New Issue
Block a user