|
MagicSmoke
$VERSION$
|
wrapper dialog to chose an address; updates the customer is there is a change More...
#include <customerdlg.h>
Public Slots | |
| void | addUnselectButton (const QString &) |
| add an unselect button More... | |
| void | preselect (const MOAddress &) |
| pre-select an address More... | |
Public Member Functions | |
| MAddressChoiceDialog (QWidget *, const MOCustomer &) | |
| creates the dialog More... | |
| MOAddress | address () const |
| returns the chosen address or an invalid address if none was chosen More... | |
| qint64 | addressId () const |
| returns the ID of the chosen address or -1 if the unselect button was used More... | |
| MOCustomer | customer () const |
| returns the (modified) customer object More... | |
wrapper dialog to chose an address; updates the customer is there is a change
| MAddressChoiceDialog::MAddressChoiceDialog | ( | QWidget * | par, |
| const MOCustomer & | c | ||
| ) |
creates the dialog
References MOCustomerAbstract::addresses().
| MOAddress MAddressChoiceDialog::address | ( | ) | const |
returns the chosen address or an invalid address if none was chosen
References MAddressListWidget::selection().
Referenced by addressId().
| qint64 MAddressChoiceDialog::addressId | ( | ) | const |
returns the ID of the chosen address or -1 if the unselect button was used
References address(), and MOAddressAbstract::addressid().
|
slot |
add an unselect button
|
inline |
returns the (modified) customer object
|
slot |
pre-select an address
References MAddressListWidget::preselect().