2#include <NDEVR/QCustomLineEdit.h>
15 void setCompleter(QCompleter* completer)
26 c->setCompletionMode(QCompleter::PopupCompletion);
27 c->setCaseSensitivity(Qt::CaseInsensitive);
28 QObject::connect(c, QOverload<const QString&>::of(&QCompleter::activated),
29 this, &CommandLineEdit::insertCompletion);
55 void insertCompletion(
const QString& completion)
57 if (c->widget() !=
this)
62 QString textUnderCursor()
const;
65 QCompleter* c =
nullptr;
66 Buffer<String> m_last_commands;
67 uint04 m_scroll_back_index;
Definition CommandLineEdit.h:8
void focusInEvent(QFocusEvent *e) override
Definition CommandLineEdit.h:47
void keyPressEvent(QKeyEvent *e) override
Definition CommandLineEdit.h:32
Definition QCustomLineEdit.h:118
virtual void focusInEvent(QFocusEvent *e) override
Definition QCustomLineEdit.cpp:525
QCustomLineEdit(QWidget *parent=Q_NULLPTR)
Definition QCustomLineEdit.cpp:17
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:120
Definition BaseValues.hpp:272