mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
Remove "toMSecsSinceEpoch" usage to be compatible with earlier versions of Qt
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2720 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
b50965ba9f
commit
59a8b90653
@ -440,6 +440,12 @@
|
||||
</item>
|
||||
<item row="7" column="1">
|
||||
<widget class="QProgressBar" name="progressBar_RSSI">
|
||||
<property name="font">
|
||||
<font>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Received Signal Strength Indicator</string>
|
||||
</property>
|
||||
@ -452,9 +458,15 @@
|
||||
<property name="value">
|
||||
<number>-60</number>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
<property name="textVisible">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="textDirection">
|
||||
<enum>QProgressBar::TopToBottom</enum>
|
||||
</property>
|
||||
<property name="format">
|
||||
<string>%v</string>
|
||||
</property>
|
||||
@ -472,6 +484,12 @@
|
||||
</item>
|
||||
<item row="8" column="1">
|
||||
<widget class="QLineEdit" name="lineEdit_RxAFC">
|
||||
<property name="font">
|
||||
<font>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QLineEdit {
|
||||
border: none;
|
||||
@ -756,6 +774,12 @@
|
||||
</item>
|
||||
<item row="9" column="1">
|
||||
<widget class="QLineEdit" name="lineEdit_Retries">
|
||||
<property name="font">
|
||||
<font>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QLineEdit {
|
||||
border: none;
|
||||
|
@ -114,7 +114,8 @@ PipXtremeGadgetWidget::PipXtremeGadgetWidget(QWidget *parent) :
|
||||
m_widget = new Ui_PipXtremeWidget();
|
||||
m_widget->setupUi(this);
|
||||
|
||||
qsrand(QDateTime::currentDateTime().toMSecsSinceEpoch());
|
||||
// qsrand(QDateTime::currentDateTime().toMSecsSinceEpoch()); // only available with Qt 4.7.1 and later
|
||||
qsrand(QDateTime::currentDateTime().toTime_t());
|
||||
|
||||
device_input_buffer.size = 8192;
|
||||
device_input_buffer.used = 0;
|
||||
@ -444,7 +445,8 @@ void PipXtremeGadgetWidget::enableTelemetry()
|
||||
|
||||
void PipXtremeGadgetWidget::randomiseAESKey()
|
||||
{
|
||||
uint32_t crc = ((uint32_t)qrand() << 16) ^ qrand() ^ QDateTime::currentDateTime().toMSecsSinceEpoch();
|
||||
// uint32_t crc = ((uint32_t)qrand() << 16) ^ qrand() ^ QDateTime::currentDateTime().toMSecsSinceEpoch(); // only available with Qt 4.7.1 and later
|
||||
uint32_t crc = ((uint32_t)qrand() << 16) ^ qrand() ^ QDateTime::currentDateTime().toTime_t();
|
||||
|
||||
QString key = "";
|
||||
for (int i = 0; i < 4; i++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user