swift
Signals | Public Member Functions | Protected Member Functions | List of all members
swift::gui::CLineEditHistory Class Reference

Line edit with history. More...

Inheritance diagram for swift::gui::CLineEditHistory:
[legend]

Signals

void returnPressedUnemptyLine ()
 Return has been pressed, line is NOT empty (spaces are trimmed) More...
 

Public Member Functions

QString getLastEnteredLine () const
 Get the last entered line.
 
QString getLastEnteredLineFormatted () const
 Get the last entered line but simplified and trimmed.
 
void clearHistory ()
 Clear the history.
 

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *event)
 
virtual void contextMenuEvent (QContextMenuEvent *event)
 

Detailed Description

Line edit with history.

lines are trimmed and empty lines are ignored

Definition at line 20 of file lineedithistory.h.

Member Function Documentation

◆ contextMenuEvent()

void swift::gui::CLineEditHistory::contextMenuEvent ( QContextMenuEvent *  event)
protectedvirtual

Definition at line 63 of file lineedithistory.cpp.

◆ keyPressEvent()

void swift::gui::CLineEditHistory::keyPressEvent ( QKeyEvent *  event)
protectedvirtual

Definition at line 24 of file lineedithistory.cpp.

◆ returnPressedUnemptyLine

void swift::gui::CLineEditHistory::returnPressedUnemptyLine ( )
signal

Return has been pressed, line is NOT empty (spaces are trimmed)

returnPressed alsofires on empty lines, but those are not in the history


The documentation for this class was generated from the following files: