|
SILICON
|
#include <componentSearchBox.hpp>
Signals | |
| void | requestHide () |
| void | requestCancel () |
| void | selectedComponent (std::string typeName, QPointF pos) |
Public Member Functions | |
| ComponentSearchBox (std::vector< std::string > completionList={}, QString title="Insert component...", QGraphicsItem *parent=nullptr) | |
| void | showCompleter () const |
| void | keyPressEvent (QKeyEvent *event) override |
| bool | eventFilter (QObject *watched, QEvent *event) override |
| void | focus () |
| void | clear () |
| void | setCompletionList (std::vector< std::string > list) |
Private Member Functions | |
| void | updateCompletionModel () const |
| std::string | selectedTypeName () const |
| QString | activeCompletionText () const |
| std::string | typeNameForCompletion (QString completion) const |
| void | acceptCompletion (QString completion) |
Private Attributes | |
| QLineEdit * | le |
| QCompleter * | completer |
| QStringListModel * | completionModel |
| QGraphicsTextItem * | titleItem |
| std::vector< std::string > | completionList |
Definition at line 35 of file componentSearchBox.hpp.
|
explicit |
Definition at line 29 of file componentSearchBox.cpp.
|
private |
Definition at line 183 of file componentSearchBox.cpp.
|
nodiscardprivate |
Definition at line 156 of file componentSearchBox.cpp.
|
inline |
Definition at line 47 of file componentSearchBox.hpp.
|
override |
Definition at line 116 of file componentSearchBox.cpp.
|
inline |
Definition at line 46 of file componentSearchBox.hpp.
|
override |
Definition at line 94 of file componentSearchBox.cpp.
|
signal |
|
signal |
|
signal |
|
nodiscardprivate |
Definition at line 151 of file componentSearchBox.cpp.
|
inline |
Definition at line 49 of file componentSearchBox.hpp.
| void showCompleter | ( | ) | const |
Definition at line 80 of file componentSearchBox.cpp.
|
nodiscardprivate |
Definition at line 168 of file componentSearchBox.cpp.
|
private |
Definition at line 131 of file componentSearchBox.cpp.
|
private |
Definition at line 69 of file componentSearchBox.hpp.
|
private |
Definition at line 73 of file componentSearchBox.hpp.
|
private |
Definition at line 70 of file componentSearchBox.hpp.
|
private |
Definition at line 68 of file componentSearchBox.hpp.
|
private |
Definition at line 71 of file componentSearchBox.hpp.