派生自 development/c++

zhangjixing
2019-01-15 abd9036f024a77d22b47a108bc88b27b9732e3c5
QiaoJiaSystem/StructureApp/JudgmentRetrogradeTool.cpp
@@ -10,10 +10,10 @@
#include <basic/util/app/AppPreference.hpp>
JudgmentRetrogradeTool::JudgmentRetrogradeTool(const SdkRule &rule) :
    TimerElement(1000),
    m_triggerElement(rule.nTriggerDelay * 8, 0),
    m_sdkRule(rule),
    pManagerEsDB(nullptr) {
    pManagerEsDB(nullptr)
{
    pManagerEsDB = new EsDBTool(appPref.getStringData("ipAdd"), appPref.getIntData("ipPort"));
}
@@ -29,7 +29,7 @@
    //#todo string ->json
    QJsonArray arrayAreas = getJsonArrayFromQString(area);
    if (arrayAreas.isEmpty()) {
        return false;//do not detect
        return false;
    }
    QVector<QPoint> vec;
    for (int i = 0; i < arrayAreas.size(); ++i) {
@@ -137,7 +137,7 @@
    return JRTOOL::getAngelOfTwoVector(directionVectorPoint, point);
}
void JudgmentRetrogradeTool::timerFunc() {
void JudgmentRetrogradeTool::threadFunc() {
    func();
    fireConnectors();
}