MagicSmoke
$VERSION$
|
displays exactly one address; even though it offers to edit or delete addresses, it does not actually do any change on the database More...
#include <customerdlg.h>
Public Slots | |
void | clearAddress () |
clears the display, disables the buttons More... | |
void | setAddress (const MOAddress &) |
sets the address to be shown, enables the buttons if it is valid More... | |
void | setAddress (qint64) |
convenience method: sets the address to be shown, retrieves it from the database More... | |
Signals | |
void | addressChanged (const MOAddress &) |
emitted if the address has changed, the parameter contains the current content; this also emits if the address has changed or cleared programmatically, use addressEdited if you want only manual changes More... | |
void | addressDeleted (const MOAddress &) |
emitted if the address was deleted by the user, addressEdited is also emitted More... | |
void | addressEdited (const MOAddress &) |
emitted if the address was changed by the user, contains the current address content More... | |
void | addressSelected (const MOAddress &) |
emitted if the user presses the "select" button, contains the address More... | |
void | addressSelected (qint64) |
emitted if the user presses the "select" button, contains the address ID More... | |
void | addrValid (bool) |
internal: used to activate or de-activate buttons More... | |
Public Member Functions | |
MAddressWidget (QWidget *parent=0, bool isselect=false) | |
creates the widget, if isselect==true a "select" button is shown More... | |
MOAddress | address () const |
returns the currently shown address More... | |
displays exactly one address; even though it offers to edit or delete addresses, it does not actually do any change on the database
MAddressWidget::MAddressWidget | ( | QWidget * | parent = 0 , |
bool | isselect = false |
||
) |
creates the widget, if isselect==true a "select" button is shown
References addrValid().
MOAddress MAddressWidget::address | ( | ) | const |
returns the currently shown address
|
signal |
emitted if the address has changed, the parameter contains the current content; this also emits if the address has changed or cleared programmatically, use addressEdited if you want only manual changes
Referenced by clearAddress(), and setAddress().
|
signal |
emitted if the address was deleted by the user, addressEdited is also emitted
|
signal |
emitted if the address was changed by the user, contains the current address content
|
signal |
emitted if the user presses the "select" button, contains the address
|
signal |
emitted if the user presses the "select" button, contains the address ID
|
signal |
internal: used to activate or de-activate buttons
Referenced by clearAddress(), MAddressWidget(), and setAddress().
|
slot |
clears the display, disables the buttons
References addressChanged(), and addrValid().
|
slot |
sets the address to be shown, enables the buttons if it is valid
References addressChanged(), MOAddressAbstract::addressid(), addrValid(), and MOAddressAbstract::isdeleted().
Referenced by setAddress().
|
slot |
convenience method: sets the address to be shown, retrieves it from the database
References MTGetAddress::query(), and setAddress().