KVIrc
4.9.2
DeveloperAPIs
|
#include <KviIpEditor.h>
Public Types | |
enum | AddressType { IPv4, IPv6 } |
Public Member Functions | |
QString | address () const |
AddressType | addressType () const |
void | clear () |
bool | hasEmptyFields () const |
KviIpEditor (QWidget *parent, AddressType=IPv4, const QString &ipAddr=QString(), const char *name=0) | |
bool | setAddress (const QString &ipAddr) |
void | setAddressType (AddressType addrType) |
virtual void | setEnabled (bool bEnabled) |
~KviIpEditor () | |
Protected Member Functions | |
virtual bool | eventFilter (QObject *o, QEvent *e) |
virtual void | resizeEvent (QResizeEvent *e) |
virtual QSize | sizeHint () const |
Private Member Functions | |
void | recreateChildren () |
Private Attributes | |
AddressType | m_addrType |
QLineEdit * | m_pEdit [8] |
QLabel * | m_pLabel [7] |
KviIpEditor::KviIpEditor | ( | QWidget * | parent, |
AddressType | addrType = IPv4 , |
||
const QString & | ipAddr = QString() , |
||
const char * | name = 0 |
||
) |
References i, m_pEdit, m_pLabel, setAddress(), and setAddressType().
|
default |
QString KviIpEditor::address | ( | ) | const |
References i, IPv6, m_addrType, and m_pEdit.
Referenced by IrcServerDetailsWidget::fillData(), and OptionsWidget_proxy::saveLastItem().
KviIpEditor::AddressType KviIpEditor::addressType | ( | ) | const |
References m_addrType.
void KviIpEditor::clear | ( | ) |
References i, IPv4, m_addrType, and m_pEdit.
Referenced by setAddress().
|
protectedvirtual |
bool KviIpEditor::hasEmptyFields | ( | ) | const |
Referenced by IrcServerDetailsWidget::fillData(), and OptionsWidget_proxy::saveLastItem().
|
private |
References KviHtmlGenerator::Background, i, IPv4, m_addrType, m_pEdit, m_pLabel, resizeEvent(), and sizeHint().
Referenced by setAddressType().
|
protectedvirtual |
References i, IPv4, m_addrType, m_pEdit, and m_pLabel.
Referenced by recreateChildren().
bool KviIpEditor::setAddress | ( | const QString & | ipAddr | ) |
References c, clear(), i, IPv4, m_addrType, and m_pEdit.
Referenced by OptionsWidget_proxy::currentItemChanged(), IrcServerDetailsWidget::IrcServerDetailsWidget(), and KviIpEditor().
void KviIpEditor::setAddressType | ( | AddressType | addrType | ) |
|
virtual |
References KviHtmlGenerator::Background, i, m_pEdit, and m_pLabel.
Referenced by OptionsWidget_proxy::currentItemChanged().
|
protectedvirtual |
References IPv4, m_addrType, m_pEdit, and m_pLabel.
Referenced by recreateChildren().
|
private |
Referenced by address(), addressType(), clear(), eventFilter(), recreateChildren(), resizeEvent(), setAddress(), setAddressType(), and sizeHint().
|
private |
Referenced by address(), clear(), eventFilter(), hasEmptyFields(), KviIpEditor(), recreateChildren(), resizeEvent(), setAddress(), setEnabled(), and sizeHint().
|
private |
Referenced by KviIpEditor(), recreateChildren(), resizeEvent(), setEnabled(), and sizeHint().