重新上传
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
<item row="0" column="1">
|
||||
<widget class="QLineEdit" name="txtNtpIP">
|
||||
<property name="text">
|
||||
<string>ntp1.aliyun.com</string>
|
||||
<string>133.100.11.8</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
/**
|
||||
* Ntp校时类 作者:feiyangqingyun(QQ:517216493) 2017-2-16
|
||||
* 1:可设置Ntp服务器IP地址
|
||||
* 2:收到时间信号发出
|
||||
* 1. 可设置Ntp服务器IP地址
|
||||
* 2. 收到时间信号发出
|
||||
*/
|
||||
|
||||
#include <QObject>
|
||||
@@ -12,13 +12,7 @@
|
||||
class QUdpSocket;
|
||||
|
||||
#ifdef quc
|
||||
#if (QT_VERSION < QT_VERSION_CHECK(5,7,0))
|
||||
#include <QtDesigner/QDesignerExportWidget>
|
||||
#else
|
||||
#include <QtUiPlugin/QDesignerExportWidget>
|
||||
#endif
|
||||
|
||||
class QDESIGNER_WIDGET_EXPORT NtpClient : public QObject
|
||||
class Q_DECL_EXPORT NtpClient : public QObject
|
||||
#else
|
||||
class NtpClient : public QObject
|
||||
#endif
|
||||
@@ -45,10 +39,8 @@ signals:
|
||||
public slots:
|
||||
//设置NTP服务器IP
|
||||
void setNtpIP(const QString &ntpIP);
|
||||
|
||||
//获取日期时间
|
||||
void getDateTime();
|
||||
|
||||
};
|
||||
|
||||
#endif // NTPCLIENT_H
|
||||
|
||||
Reference in New Issue
Block a user