This class defines the API for the FilterObject.
#include <configitemfilterobject.h>
|
void | append (QString expression) |
| Appends the given expression to the internal list of filter expressions.
|
|
void | clear () |
| Clears the internal list of filter expressions.
|
|
QString | get (int index) |
| Get the expression at the given index.
|
|
int | length () |
| Gives the length of the internal expression list.
|
|
void | remove (int index) |
| Removes the expression at the given index.
|
|
◆ append
void append |
( |
QString | expression | ) |
|
|
slot |
Appends the given expression to the internal list of filter expressions. This added filter will not be visible in the ConfigureDialog nor saved to the project file.
Example:
filter = so.configItem("Filter1");
filter.clear();
filter.append("this is an expression");
trace("The filter contains " + filter.size() + " elements");
- Parameters
-
◆ clear
Clears the internal list of filter expressions.
Example:
filter = so.configItem("Filter1");
filter.clear();
trace("The filter contains " + filter.size() + " elements");
◆ get
Get the expression at the given index.
Example:
filter = so.configItem("Filter1");
trace("The filter contains at first position " + filter.get(0) + " as expression");
- Parameters
-
- Returns
- The filter expression
◆ length
Gives the length of the internal expression list.
Example:
filter = so.configItem("Filter1");
trace(
"The filter contains " +
length +
" elements");
int length()
Gives the length of the internal expression list.
Definition configitemfilterobject.cpp:203
◆ remove
Removes the expression at the given index.
Example:
filter = so.configItem("Filter1");
filter.remove(0);
- Parameters
-