+void InputLine::resetLine() {
+ // every time the InputLine is cleared we also reset history index
+ idx = history.count();
+ clear();
+}
+
+void InputLine::showHistoryEntry() {
+ // if the user changed the history, display the changed line
+ tempHistory.contains(idx) ? setText(tempHistory[idx]) : setText(history[idx]);
+}