AISelectorPrivate Class Reference

#include <aiselectorprivate.h>

Public Slots

virtual void sClearFormats ()
 Restore default formatting on the line edit.
 
virtual void sCompleterActivated (const QModelIndex &pIndex)
 
virtual void sHandleCompleter ()
 Create a completer when the user types in the selector or clicks on the combo button (▽).
 
virtual QWidgetsOpenWindow (const QString &pUiName, ParameterList &params)
 
virtual void sPopulateMenu ()
 

Public Member Functions

 AISelectorPrivate (AISelector *pParent)
 
virtual void addAllowedId (const int pId)
 
virtual bool canNew () const
 
virtual bool canOpen () const
 
virtual int getRowForValue (const QVariant &pValue, int pCol, Qt::MatchFlags pMatchFlag=Qt::MatchFixedString) const
 Find the row containing a given value in a given column.
 
virtual void setDefault ()
 
virtual bool setQueryStr (const QString &pQueryStr)
 

Public Attributes

QFont activeFont
 
bool allowNull
 
QString baseQueryStr
 
QFont buttonFont
 
QAbstractButton * comboButton
 
QCompleter * completer
 
int completerId
 
int dataColumn
 
QString editPriv
 
QString idColName
 
QFont inactiveFont
 
QPersistentModelIndex lastIndex
 
int listMax
 
QAbstractButton * menuButton
 
QString newPriv
 
QTreeViewpopup
 
InactiveFilterProxyModelproxyModel
 
QString queryStr
 
AISelectorselector
 
bool showInactive
 
QString sourceName
 
QString title
 
QString uiName
 
QString viewPriv
 
QList< QPair< QString, QVariant > > wherevals
 

Static Public Attributes

static AISelectorCache * cache
 

Constructor & Destructor Documentation

◆ AISelectorPrivate()

AISelectorPrivate::AISelectorPrivate ( AISelector * pParent)

Member Function Documentation

◆ addAllowedId()

void AISelectorPrivate::addAllowedId ( const int pId)
virtual

◆ canNew()

bool AISelectorPrivate::canNew ( ) const
virtual

◆ canOpen()

bool AISelectorPrivate::canOpen ( ) const
virtual

◆ getRowForValue()

int AISelectorPrivate::getRowForValue ( const QVariant & pValue,
int pCol,
Qt::MatchFlags pMatchFlags = Qt::MatchFixedString ) const
virtual

Find the row containing a given value in a given column.

Look for the given value in the given column. This looks for matches several different ways, as people have reported multiple bugs in the past about invisible spaces in data and in search fields.

Parameters
pValueThe value to search for
pColThe column to search in
Returns
The row number in the source model

◆ sClearFormats

void AISelectorPrivate::sClearFormats ( )
virtualslot

Restore default formatting on the line edit.

◆ sCompleterActivated

void AISelectorPrivate::sCompleterActivated ( const QModelIndex & pIndex)
virtualslot

◆ setDefault()

void AISelectorPrivate::setDefault ( )
virtual

◆ setQueryStr()

bool AISelectorPrivate::setQueryStr ( const QString & pQueryStr)
virtual

◆ sHandleCompleter

void AISelectorPrivate::sHandleCompleter ( )
virtualslot

Create a completer when the user types in the selector or clicks on the combo button (▽).

When the user is typing, this throws away leading whitespace as that's invisible and usually unintended. It keeps trailing whitespace to narrow the search when values may contain embedded whitespace.

◆ sOpenWindow

QWidget * AISelectorPrivate::sOpenWindow ( const QString & pUiName,
ParameterList & params )
virtualslot

◆ sPopulateMenu

void AISelectorPrivate::sPopulateMenu ( )
virtualslot

Member Data Documentation

◆ activeFont

QFont AISelectorPrivate::activeFont

◆ allowNull

bool AISelectorPrivate::allowNull

◆ baseQueryStr

QString AISelectorPrivate::baseQueryStr

◆ buttonFont

QFont AISelectorPrivate::buttonFont

◆ cache

AISelectorCache * AISelectorPrivate::cache
static

◆ comboButton

QAbstractButton* AISelectorPrivate::comboButton

◆ completer

QCompleter* AISelectorPrivate::completer

◆ completerId

int AISelectorPrivate::completerId

◆ dataColumn

int AISelectorPrivate::dataColumn

◆ editPriv

QString AISelectorPrivate::editPriv

◆ idColName

QString AISelectorPrivate::idColName

◆ inactiveFont

QFont AISelectorPrivate::inactiveFont

◆ lastIndex

QPersistentModelIndex AISelectorPrivate::lastIndex

◆ listMax

int AISelectorPrivate::listMax

◆ menuButton

QAbstractButton* AISelectorPrivate::menuButton

◆ newPriv

QString AISelectorPrivate::newPriv

◆ popup

QTreeView* AISelectorPrivate::popup

◆ proxyModel

InactiveFilterProxyModel* AISelectorPrivate::proxyModel

◆ queryStr

QString AISelectorPrivate::queryStr

◆ selector

AISelector* AISelectorPrivate::selector

◆ showInactive

bool AISelectorPrivate::showInactive

◆ sourceName

QString AISelectorPrivate::sourceName

◆ title

QString AISelectorPrivate::title

◆ uiName

QString AISelectorPrivate::uiName

◆ viewPriv

QString AISelectorPrivate::viewPriv

◆ wherevals

QList<QPair<QString, QVariant> > AISelectorPrivate::wherevals

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

Generated on Mon Feb 17 2025 xTuple ERP Programmer Reference, Version 6.1.0 doxygen 1.11.0