更新NTP时间校对
This commit is contained in:
@@ -33,7 +33,7 @@
|
|||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="QLineEdit" name="txtNtpIP">
|
<widget class="QLineEdit" name="txtNtpIP">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>133.100.11.8</string>
|
<string>ntp1.aliyun.com</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ NtpClient *NtpClient::Instance()
|
|||||||
|
|
||||||
NtpClient::NtpClient(QObject *parent) : QObject(parent)
|
NtpClient::NtpClient(QObject *parent) : QObject(parent)
|
||||||
{
|
{
|
||||||
ntpIP = "202.120.2.101";
|
ntpIP = "ntp1.aliyun.com";
|
||||||
|
|
||||||
udpSocket = new QUdpSocket(this);
|
udpSocket = new QUdpSocket(this);
|
||||||
connect(udpSocket, SIGNAL(connected()), this, SLOT(sendData()));
|
connect(udpSocket, SIGNAL(connected()), this, SLOT(sendData()));
|
||||||
|
|||||||
Reference in New Issue
Block a user