Ref T215, fixed text message sending from keypad command line

* context menu delete history
* signals to relay messages which are not "dot" commands
This commit is contained in:
Klaus Basan
2018-01-03 02:58:54 +01:00
parent 26b5a6ce28
commit 2270c8c38b
10 changed files with 60 additions and 19 deletions

View File

@@ -33,10 +33,16 @@ namespace BlackGui
//! Get the last entered line but simplified and trimmed
QString getLastEnteredLineFormatted() const;
//! Clear the history
void clearHistory();
protected:
//! \copydoc QLineEdit::keyPressEvent
virtual void keyPressEvent(QKeyEvent *event) override;
//! \copydoc QLineEdit::keyPressEvent
virtual void contextMenuEvent(QContextMenuEvent *event) override;
private:
QStringList m_history;
int m_position = 0;