예제 #1
0
void XmlOutput::decreaseIndent()
{
    if (currentLevel)
        --currentLevel;
    updateIndent();
    if (!currentLevel)
        currentState = Bare;
}
예제 #2
0
/**
 * Push a line of code, returning true if code is now complete
 */
bool InputSplitter::push(const QString & line)
{
  store(line);
  QString source = m_source;
  if(source.endsWith("\\"))
  {
    return true;
  }

  updateIndent(line);
  m_complete = m_compiler->compilesToCompleteStatement(source);
  return m_complete;
}
예제 #3
0
void XmlOutput::increaseIndent()
{
    ++currentLevel;
    updateIndent();
}