Module implementing a widget to enter an IPv4 address.
None |
EricIPv4InputWidget | Class implementing a widget to enter an IPv4 address. |
None |
Class implementing a widget to enter an IPv4 address.
None |
None |
EricIPv4InputWidget | Constructor |
__clear | Private slot to handle the clear button press. |
address | Public method to get the IPv4 address as an ipaddress.IPv4Address object. |
clear | Public slot to clear the input fields. |
eventFilter | Public method to filter pressing '.' to give focus to the next input field. |
hasAcceptableInput | Public method to check, if the input is acceptable. |
setAddress | Public method to set the IPv4 address given an ipaddress.IPv4Address object. |
setText | Public method to set the IPv4 address given a string. |
text | Public method to get the IPv4 address as a string. |
None |
Constructor
Private slot to handle the clear button press.
Public method to get the IPv4 address as an ipaddress.IPv4Address object.
Public slot to clear the input fields.
Public method to filter pressing '.' to give focus to the next input field.
Public method to check, if the input is acceptable.
Public method to set the IPv4 address given an ipaddress.IPv4Address object.
Public method to set the IPv4 address given a string.
Note: If an invalid address is given, the input is cleared.
Public method to get the IPv4 address as a string.