Documents > BPS V2 C++ API
BpsRelationInput Class Reference

A combo box to select an option from a relation table. More...

#include <bpsrelationinput.h>

List of all members.

Public Slots

void setRelationKey (const QVariant &aKey)
 Set the current relation table key.

Signals

void relationKeyChanged (const QVariant &aKey)
 This signal is emitted when another option got selected.

Public Member Functions

 BpsRelationInput (BpsDatastore *aDatastore, const QString &aRelTable, const QString &aRelColumn, QWidget *aParent=0)
QVariant relationKey () const

Detailed Description

A combo box to select an option from a relation table.


Constructor & Destructor Documentation

BpsRelationInput::BpsRelationInput ( BpsDatastore aDatastore,
const QString &  aRelTable,
const QString &  aRelColumn,
QWidget *  aParent = 0 
)
Parameters:
[in]aDatastoreThe datastore connection to use.
[in]aRelTableThe relation table name.
[in]aRelColumnThe relation table column for display. May also be a function call or concatenated string for example.
[in]aParentThe parent widget.

Member Function Documentation

QVariant BpsRelationInput::relationKey ( ) const
Returns:
The current relation table key.
void BpsRelationInput::relationKeyChanged ( const QVariant &  aKey) [signal]

This signal is emitted when another option got selected.

Parameters:
[in]aKeyThe new relation table key.
void BpsRelationInput::setRelationKey ( const QVariant &  aKey) [slot]

Set the current relation table key.

Parameters:
[in]aKeyThe new key to set.

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