更新文档
This commit is contained in:
@@ -144,11 +144,6 @@ void IPAddress::textChanged(const QString &text)
|
||||
ip = QString("%1.%2.%3.%4").arg(txtIP1->text()).arg(txtIP2->text()).arg(txtIP3->text()).arg(txtIP4->text());
|
||||
}
|
||||
|
||||
QString IPAddress::getIP() const
|
||||
{
|
||||
return this->ip;
|
||||
}
|
||||
|
||||
QSize IPAddress::sizeHint() const
|
||||
{
|
||||
return QSize(250, 20);
|
||||
@@ -159,6 +154,11 @@ QSize IPAddress::minimumSizeHint() const
|
||||
return QSize(30, 10);
|
||||
}
|
||||
|
||||
QString IPAddress::getIP() const
|
||||
{
|
||||
return this->ip;
|
||||
}
|
||||
|
||||
void IPAddress::setIP(const QString &ip)
|
||||
{
|
||||
//先检测IP地址是否合法
|
||||
|
||||
@@ -52,15 +52,14 @@ private slots:
|
||||
void textChanged(const QString &text);
|
||||
|
||||
public:
|
||||
//获取IP地址
|
||||
QString getIP() const;
|
||||
//默认尺寸和最小尺寸
|
||||
QSize sizeHint() const;
|
||||
QSize minimumSizeHint() const;
|
||||
|
||||
QSize sizeHint() const;
|
||||
QSize minimumSizeHint() const;
|
||||
|
||||
public Q_SLOTS:
|
||||
//设置IP地址
|
||||
//获取和设置IP地址
|
||||
QString getIP() const;
|
||||
void setIP(const QString &ip);
|
||||
|
||||
//清空
|
||||
void clear();
|
||||
|
||||
@@ -70,7 +69,6 @@ public Q_SLOTS:
|
||||
void setBorderColor(const QString &borderColor);
|
||||
//设置边框圆角角度
|
||||
void setBorderRadius(int borderRadius);
|
||||
|
||||
};
|
||||
|
||||
#endif // IPADDRESS_H
|
||||
|
||||
Reference in New Issue
Block a user