void XmlOutput::decreaseIndent() { if (currentLevel) --currentLevel; updateIndent(); if (!currentLevel) currentState = Bare; }
/** * 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; }
void XmlOutput::increaseIndent() { ++currentLevel; updateIndent(); }