mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 18:35:35 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user