Loading...
Searching...
No Matches
score::PromptLineEdit Class Reference

PromptLineEdit - A QLineEdit with readline-like features. More...

Inheritance diagram for score::PromptLineEdit:

Detailed Description

PromptLineEdit - A QLineEdit with readline-like features.

This widget provides:

  • Command history navigation (Up/Down arrows)
  • Advanced popup-based QCompleter completion
  • History persistence

Public Member Functions

 PromptLineEdit (QWidget *parent=nullptr)
 
void historyAdd (const QString &line)
 
bool historySave (const QString &filename)
 
bool historyLoad (const QString &filename)
 
void historySetMaxLen (int len)
 
void historyClear ()
 
QStringList historyGetAll () const
 
void lineEntered (const QString &line)
 
void setCompleter (QCompleter *completer)
 
QCompleter * completer () const
 
void setHint (const QString &hint, const QColor &color=QColor(), bool bold=false)
 
void clearHint ()
 
void hintRequested (const QString &currentText)
 
void insertCompletion (const QString &s)
 

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