void KSession::setHistorySize(int lines) { if (lines < 0) m_session->setHistoryType(HistoryTypeFile()); else m_session->setHistoryType(HistoryTypeBuffer(lines)); }
void KSession::setHistorySize(int lines) { if ( historySize() != lines ) { if (lines < 0) m_session->setHistoryType(HistoryTypeFile()); else m_session->setHistoryType(HistoryTypeBuffer(lines)); emit historySizeChanged(); } }
void TESession::clearHistory() { if (history().isOn()) { int histSize = history().getSize(); setHistory(HistoryTypeNone()); if (histSize) setHistory(HistoryTypeBuffer(histSize)); else setHistory(HistoryTypeFile()); } }