Gui::ExpressionCompleter Class Reference

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)
 

Detailed Description

The ExpressionCompleter class extends the QCompleter class to provide a completer model of documentobject names and properties.

Constructor & Destructor Documentation

◆ ExpressionCompleter()

ExpressionCompleter::ExpressionCompleter ( const App::DocumentObject currentDocObj,
QObject parent = nullptr,
bool  noProperty = false,
bool  checkInList = true 
)

Construct an ExpressionCompleter object.

Parameters
currentDocCurrent document to generate the model from.
currentDocObjCurrent document object to generate model from.
parentParent object owning the completer.

Member Function Documentation

◆ getPrefixRange()

void Gui::ExpressionCompleter::getPrefixRange ( int start,
int end 
) const

◆ setDocumentObject()

void ExpressionCompleter::setDocumentObject ( const App::DocumentObject obj,
bool  checkInList = true 
)

◆ setNoProperty()

void ExpressionCompleter::setNoProperty ( bool  enabled = true)

◆ slotUpdate

void ExpressionCompleter::slotUpdate ( const QString &  prefix,
int  pos 
)
slot

◆ updatePrefixEnd()

void Gui::ExpressionCompleter::updatePrefixEnd ( int  end)

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