The ExpressionCompleter class extends the QCompleter class to provide a completer model of documentobject names and properties. More...
#include <ExpressionCompleter.h>
Public Slots | |
void | slotUpdate (const QString &prefix, int pos) |
Public Member Functions | |
ExpressionCompleter (const App::DocumentObject *currentDocObj, QObject *parent=nullptr, bool noProperty=false, bool checkInList=true) | |
Construct an ExpressionCompleter object. More... | |
void | getPrefixRange (int &start, int &end) const |
void | setDocumentObject (const App::DocumentObject *, bool checkInList=true) |
void | setNoProperty (bool enabled=true) |
void | updatePrefixEnd (int end) |
The ExpressionCompleter class extends the QCompleter class to provide a completer model of documentobject names and properties.
ExpressionCompleter::ExpressionCompleter | ( | const App::DocumentObject * | currentDocObj, |
QObject * | parent = nullptr , |
||
bool | noProperty = false , |
||
bool | checkInList = true |
||
) |
Construct an ExpressionCompleter object.
currentDoc | Current document to generate the model from. |
currentDocObj | Current document object to generate model from. |
parent | Parent object owning the completer. |
void ExpressionCompleter::setDocumentObject | ( | const App::DocumentObject * | obj, |
bool | checkInList = true |
||
) |
References setDocumentObject().
Referenced by setDocumentObject(), Gui::ExpressionTextEdit::setDocumentObject(), and Gui::ExpressionLineEdit::setDocumentObject().
void ExpressionCompleter::setNoProperty | ( | bool | enabled = true | ) |
References setNoProperty().
Referenced by setNoProperty(), and Gui::ExpressionLineEdit::setNoProperty().
|
slot |
References Base::Tools::fromStdString(), and Base::Tools::toStdString().
void Gui::ExpressionCompleter::updatePrefixEnd | ( | int | end | ) |