10#ifndef FIELDFILTEREDIT_H
11#define FIELDFILTEREDIT_H
96 void changeEvent(QEvent*
event)
override;
100 QString placeholder_text_;
103 bool list_mode_ =
false;
109 QString list_message_;
116 static QStringList splitFieldList(
const QString &text);
122 void checkFieldList(
const QString &filter_text);
127 void setDefaultPlaceholderText();
134 void buildCompletionList(
const QString &field_word,
const QString &preamble)
override;
void focusInEvent(QFocusEvent *event) override
Handles focus in events, triggering completion logic if necessary.
Definition field_filter_edit.h:70
void pushFilterSyntaxStatus(const QString &status)
Signal emitted to display a syntax status message.
void pushFilterSyntaxWarning(const QString &warning)
Signal emitted to display a syntax warning message.
FieldFilterEdit(QWidget *parent=0)
Constructs a new FieldFilterEdit.
Definition field_filter_edit.cpp:36
QString fieldListMessage() const
Returns the message of the last list mode check.
Definition field_filter_edit.h:57
bool checkFilter()
Checks the validity of the current filter text.
Definition field_filter_edit.cpp:117
void keyPressEvent(QKeyEvent *event) override
Handles key press events, routing them to completion logic.
Definition field_filter_edit.h:64
QStringList fieldList() const
Returns the entered fields.
Definition field_filter_edit.cpp:77
void popFilterSyntaxStatus()
Signal emitted to remove or pop the current syntax status message.
void focusOutEvent(QFocusEvent *event) override
Handles focus out events.
Definition field_filter_edit.cpp:110
void setMaxFields(int max_fields)
Sets the maximum number of fields accepted in list mode.
Definition field_filter_edit.cpp:58
void setFieldListMode(bool enabled)
Switches between single field mode (default) and list mode.
Definition field_filter_edit.cpp:51
SyntaxLineEdit(QWidget *parent=0)
Constructs the SyntaxLineEdit in the Empty state with no completer.
Definition syntax_line_edit.cpp:38
void completionKeyPressEvent(QKeyEvent *event)
Handles key press events while the completer popup is visible, forwarding navigation keys to the popu...
Definition syntax_line_edit.cpp:337
void completionFocusInEvent(QFocusEvent *event)
Triggers a completion refresh when the widget gains focus.
Definition syntax_line_edit.cpp:385
virtual bool event(QEvent *event) override
Intercepts Tab and other keys to trigger or dismiss the completer.
Definition syntax_line_edit.cpp:300