From e254ed61fc52d32bb31f7aebe2444b1643ae657e Mon Sep 17 00:00:00 2001 From: jhc <2991879965@qq.com> Date: 星期三, 30 十月 2024 16:11:39 +0800 Subject: [PATCH] 提交代码 --- Client/李宵增/document/历史查询分析模块需求分析.docx | 0 Server/胡家明/document/网络socket搭建需求分析.docx | 0 昆仑项目文件/昆仑项目风险管理表.xlsx | 0 Client/申烜/code/test_work_kunlun_1029/mainwindow.cpp | 150 ++++ Client/郑凯文/document/结构体.docx | 0 Client/申烜/code/test_work_kunlun_1029/return.png | 0 Server/李转转/document/需求分析报告.docx | 0 Client/申烜/document/注册登录需求分析.docx | 0 Client/申烜/code/test_work_kunlun_1029/test_work_kunlun_1029.pro | 37 + Client/郑凯文/log/郑凯文1030.doc | 0 Server/王琨元/document/数据库模块需求分析.docx | 0 Client/申烜/code/test_work_kunlun_1029/return1.png | 0 Server/马丽萍/code/log/.vscode/c_cpp_properties.json | 2 Server/王琨元/document/建表.docx | 0 Client/郑凯文/log/郑凯文1029.doc | 0 Client/龚启祥/document/昆仑_大屏显示.docx | 0 Client/朱航/document/需求分析.docx | 0 Client/申烜/code/test_work_kunlun_1029/main.cpp | 11 Client/申烜/code/test_work_kunlun_1029/test_work_kunlun_1029.pro.user | 806 +++++++++++++++++++++ Client/刘子航/document/昆仑_警报管理.docx | 0 Server/陈楚丹/document/协议适配需求分析.docx | 0 Client/申烜/code/test_work_kunlun_1029/p1.png | 0 Client/王鑫鑫/document/地图标注模块需求分析.docx | 0 Server/马丽萍/code/log/block_queue.h | 9 Client/申烜/code/test_work_kunlun_1029/pic.qrc | 7 /dev/null | 91 -- Server/马丽萍/code/log/test_log.cpp | 25 Client/姜可庚/document/权限管理需求分析.docx | 0 Server/马丽萍/code/log/log.cpp | 254 +++--- Client/申烜/code/test_work_kunlun_1029/mainwindow.h | 52 + Server/马丽萍/code/log/log.h | 105 +- Client/郑凯文/document/About version updates(第二版).docx | 0 Server/马丽萍/code/log/.vscode/settings.json | 8 Server/马丽萍/code/log/README.md | 9 Client/黎弘霖/document/设备管理需求分析.docx | 0 Client/申烜/code/test_work_kunlun_1029/mainwindow.ui | 601 ++++++++++++++++ Server/马丽萍/code/log/locker.h | 25 37 files changed, 1,919 insertions(+), 273 deletions(-) diff --git "a/Client/\345\210\230\345\255\220\350\210\252/document/\346\230\206\344\273\221_\350\255\246\346\212\245\347\256\241\347\220\206.docx" "b/Client/\345\210\230\345\255\220\350\210\252/document/\346\230\206\344\273\221_\350\255\246\346\212\245\347\256\241\347\220\206.docx" index 708c01a..a8e3721 100644 --- "a/Client/\345\210\230\345\255\220\350\210\252/document/\346\230\206\344\273\221_\350\255\246\346\212\245\347\256\241\347\220\206.docx" +++ "b/Client/\345\210\230\345\255\220\350\210\252/document/\346\230\206\344\273\221_\350\255\246\346\212\245\347\256\241\347\220\206.docx" Binary files differ diff --git "a/Client/\345\247\234\345\217\257\345\272\232/document/\346\235\203\351\231\220\347\256\241\347\220\206\351\234\200\346\261\202\345\210\206\346\236\220.docx" "b/Client/\345\247\234\345\217\257\345\272\232/document/\346\235\203\351\231\220\347\256\241\347\220\206\351\234\200\346\261\202\345\210\206\346\236\220.docx" index 3d2db4d..a879fd2 100644 --- "a/Client/\345\247\234\345\217\257\345\272\232/document/\346\235\203\351\231\220\347\256\241\347\220\206\351\234\200\346\261\202\345\210\206\346\236\220.docx" +++ "b/Client/\345\247\234\345\217\257\345\272\232/document/\346\235\203\351\231\220\347\256\241\347\220\206\351\234\200\346\261\202\345\210\206\346\236\220.docx" Binary files differ diff --git "a/Client/\346\234\261\350\210\252/document/\351\234\200\346\261\202\345\210\206\346\236\220.docx" "b/Client/\346\234\261\350\210\252/document/\351\234\200\346\261\202\345\210\206\346\236\220.docx" index 7f3c79f..b94d35c 100644 --- "a/Client/\346\234\261\350\210\252/document/\351\234\200\346\261\202\345\210\206\346\236\220.docx" +++ "b/Client/\346\234\261\350\210\252/document/\351\234\200\346\261\202\345\210\206\346\236\220.docx" Binary files differ diff --git "a/Client/\346\235\216\345\256\265\345\242\236/document/\345\216\206\345\217\262\346\237\245\350\257\242\345\210\206\346\236\220\346\250\241\345\235\227\351\234\200\346\261\202\345\210\206\346\236\220.docx" "b/Client/\346\235\216\345\256\265\345\242\236/document/\345\216\206\345\217\262\346\237\245\350\257\242\345\210\206\346\236\220\346\250\241\345\235\227\351\234\200\346\261\202\345\210\206\346\236\220.docx" index dfcc1c1..e2a8493 100644 --- "a/Client/\346\235\216\345\256\265\345\242\236/document/\345\216\206\345\217\262\346\237\245\350\257\242\345\210\206\346\236\220\346\250\241\345\235\227\351\234\200\346\261\202\345\210\206\346\236\220.docx" +++ "b/Client/\346\235\216\345\256\265\345\242\236/document/\345\216\206\345\217\262\346\237\245\350\257\242\345\210\206\346\236\220\346\250\241\345\235\227\351\234\200\346\261\202\345\210\206\346\236\220.docx" Binary files differ diff --git "a/Client/\347\216\213\351\221\253\351\221\253/document/\345\234\260\345\233\276\346\240\207\346\263\250\346\250\241\345\235\227\351\234\200\346\261\202\345\210\206\346\236\220.docx" "b/Client/\347\216\213\351\221\253\351\221\253/document/\345\234\260\345\233\276\346\240\207\346\263\250\346\250\241\345\235\227\351\234\200\346\261\202\345\210\206\346\236\220.docx" index bccb38c..5cb5acc 100644 --- "a/Client/\347\216\213\351\221\253\351\221\253/document/\345\234\260\345\233\276\346\240\207\346\263\250\346\250\241\345\235\227\351\234\200\346\261\202\345\210\206\346\236\220.docx" +++ "b/Client/\347\216\213\351\221\253\351\221\253/document/\345\234\260\345\233\276\346\240\207\346\263\250\346\250\241\345\235\227\351\234\200\346\261\202\345\210\206\346\236\220.docx" Binary files differ diff --git "a/Client/\347\224\263\347\203\234/code/test_work_kunlun_1029/main.cpp" "b/Client/\347\224\263\347\203\234/code/test_work_kunlun_1029/main.cpp" new file mode 100644 index 0000000..b48f94e --- /dev/null +++ "b/Client/\347\224\263\347\203\234/code/test_work_kunlun_1029/main.cpp" @@ -0,0 +1,11 @@ +#include "mainwindow.h" +#include <QApplication> + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + MainWindow w; + w.show(); + + return a.exec(); +} diff --git "a/Client/\347\224\263\347\203\234/code/test_work_kunlun_1029/mainwindow.cpp" "b/Client/\347\224\263\347\203\234/code/test_work_kunlun_1029/mainwindow.cpp" new file mode 100644 index 0000000..121b655 --- /dev/null +++ "b/Client/\347\224\263\347\203\234/code/test_work_kunlun_1029/mainwindow.cpp" @@ -0,0 +1,150 @@ +#include "mainwindow.h" +#include "ui_mainwindow.h" + +MainWindow::MainWindow(QWidget *parent) : + QMainWindow(parent), + ui(new Ui::MainWindow) +{ + ui->setupUi(this); + //鐧诲綍 + ui->usernameLineEdit->setPlaceholderText("璇疯緭鍏ュ伐鍙�"); + ui->passwordLineEdit->setPlaceholderText("璇疯緭鍏ュ瘑鐮�"); + ui->passwordLineEdit->setEchoMode(QLineEdit::Password); + + + //娉ㄥ唽 + ui->usernameLineEdit_2->setPlaceholderText("璇疯緭鍏ョ敤鎴峰悕"); + ui->passwordLineEdit_2->setPlaceholderText("璇疯緭鍏ユ柊瀵嗙爜"); + ui->repasswordLineEdit->setPlaceholderText("鍐嶆纭瀵嗙爜"); + ui->passwordLineEdit_2->setEchoMode(QLineEdit::Password); + ui->repasswordLineEdit->setEchoMode(QLineEdit::Password); + ui->emailLineEdit->setPlaceholderText("璇疯緭鍏ョ數瀛愰偖绠�"); + ui->telephoneLineEdit->setPlaceholderText("璇疯緭鍏ユ墜鏈哄彿"); + //璁剧疆杈撳叆闀垮害闄愬埗涓�11 + QIntValidator *inValidator = new QIntValidator(1,11,this); + ui->telephoneLineEdit->setValidator(inValidator); + //鍙厑璁歌緭鍏ユ暟瀛� + QRegExp rx("^[0-9]*$"); + QRegExpValidator *regExpValidator = new QRegExpValidator(rx,this); + ui->telephoneLineEdit->setValidator(regExpValidator); + + //閲嶇疆瀵嗙爜 + ui->email->setPlaceholderText("璇疯緭鍏ョ數瀛愰偖绠�"); + ui->CAPTCHI->setPlaceholderText("璇疯緭鍏ラ獙璇佺爜"); + ui->password_2->setPlaceholderText("璇疯緭鍏ュ瘑鐮�"); + ui->password_3->setPlaceholderText("璇风‘璁ゅ瘑鐮�"); + ui->password_2->setEchoMode(QLineEdit::Password); + ui->password_3->setEchoMode(QLineEdit::Password); + +} + +MainWindow::~MainWindow() +{ + delete ui; +} + +void MainWindow::on_loginPushButton_clicked()//鐧诲綍鐣岄潰鐧诲綍鎸夐挳 +{ + QString username = ui->usernameLineEdit->text(); + QString password = ui->passwordLineEdit->text(); + if(username==0||password==0){ + QMessageBox::warning(this, "杈撳叆閿欒", "鐢ㄦ埛鍚嶆垨瀵嗙爜涓嶈兘涓虹┖锛�");//鏄剧ず閿欒娑堟伅 + }else if(validateInput(username, password)){/* 杈撳叆鏍¢獙閫昏緫 */ + QByteArray hashedPassword = hashPassword(password); + // 浠庢暟鎹簱鎴栨枃浠惰幏鍙栧瓨鍌ㄧ殑鐢ㄦ埛鍚嶅拰鍔犲瘑瀵嗙爜 + if (verifyUserData(username, hashedPassword)) {/* 杈撳叆鏍¢獙閫昏緫 */ + QMessageBox::information(this, "鐧诲綍鎴愬姛", "娆㈣繋鍥炴潵锛�" + username + "锛�"); + // 鏍规嵁鐢ㄦ埛鏉冮檺鍔犺浇涓嶅悓鐣岄潰 + } else { + QMessageBox::warning(this, "鐧诲綍澶辫触", "鐢ㄦ埛鍚嶆垨瀵嗙爜閿欒锛�");//鏄剧ず閿欒娑堟伅 + } + }else{ + QMessageBox::warning(this, "杈撳叆閿欒", "鐢ㄦ埛鍚嶆垨瀵嗙爜涓嶅悎娉曪紒");//鏄剧ず閿欒娑堟伅 + } +} + +void MainWindow::on_registerPushButton_2_clicked()//娉ㄥ唽鐣岄潰娉ㄥ唽鎸夐挳 +{ + QString username_2 = ui->usernameLineEdit_2->text(); + QString password_2 = ui->passwordLineEdit_2->text(); + + if (validateInput(username_2, password_2)) {/*杈撳叆鏍¢獙閫昏緫*/ + QByteArray hashedPassword = hashPassword(password_2); + //瀛樺偍鐢ㄦ埛鍚嶅拰鍔犲瘑瀵嗙爜鍒版暟鎹簱鎴栨枃浠� + saveUserData(username_2, hashedPassword); + QMessageBox::information(this, "娉ㄥ唽鎴愬姛", "鐢ㄦ埛娉ㄥ唽鎴愬姛锛�"); + } else { + QMessageBox::warning(this, "杈撳叆閿欒", "鐢ㄦ埛鍚嶆垨瀵嗙爜涓嶅悎娉曪紒");//鏄剧ず閿欒淇℃伅 + } +} + +void MainWindow::on_registerPushButton_clicked()//鐧诲綍鐣岄潰娉ㄥ唽鎸夐挳 +{ + ui->stackedWidget->setCurrentIndex(1); +} + +void MainWindow::on_forgotPushButton_clicked()//鐧诲綍鐣岄潰蹇樿瀵嗙爜鎸夐挳 +{ + ui->stackedWidget->setCurrentIndex(2); +} + +void MainWindow::on_toolButton_clicked()//娉ㄥ唽鐣岄潰杩斿洖鐧诲綍鎸夐挳 +{ + ui->stackedWidget->setCurrentIndex(0); +} + +void MainWindow::on_toolButton_2_clicked()//閲嶈瀵嗙爜鐣岄潰杩斿洖鐧诲綍鎸夐挳 +{ + ui->stackedWidget->setCurrentIndex(0); +} + +void MainWindow::on_repasswordPushButton_clicked()//閲嶈瀵嗙爜鎸夐挳 +{ + +} + +QByteArray MainWindow::hashPassword(const QString &password) +{ + return QCryptographicHash::hash(password.toUtf8(), QCryptographicHash::Sha256); +} + +bool MainWindow::validateInput(const QString &username, const QString &password) +{ + // 鏍¢獙鐢ㄦ埛鍚嶅拰瀵嗙爜鐨勯暱搴﹀拰鍚堟硶鎬� + QRegExp usernameRegex("^[a-zA-Z0-9_]{3,15}$"); // 鐢ㄦ埛鍚嶈寖鍥�3-15涓瓧绗� + QRegExp passwordRegex("^[a-zA-Z0-9@#$%^&+=]{6,20}$"); // 瀵嗙爜鑼冨洿6-20涓瓧绗� + + return usernameRegex.exactMatch(username) && passwordRegex.exactMatch(password); + +} + +void MainWindow::saveUserData(const QString &username, const QByteArray &hashedPassword) +{ + QFile file("userdata.txt"); + if (file.open(QIODevice::Append | QIODevice::Text)) { + QTextStream out(&file); + out << username << "\n" << hashedPassword.toHex() << "\n"; // 瀛樺偍鐢ㄦ埛鍚嶅拰鍝堝笇瀵嗙爜 + file.close(); + } +} + +bool MainWindow::verifyUserData(const QString &username, const QByteArray &hashedPassword) +{ + QFile file("userdata.txt"); + if (file.open(QIODevice::ReadOnly | QIODevice::Text)) { + QTextStream in(&file); + while (!in.atEnd()) { + QString storedUsername = in.readLine(); + QString storedPassword = in.readLine(); + + if (storedUsername == username && storedPassword == hashedPassword.toHex()) { + file.close(); + return true; // 楠岃瘉鎴愬姛 + } + } + file.close(); + } + return false; // 楠岃瘉澶辫触 +} + + diff --git "a/Client/\347\224\263\347\203\234/code/test_work_kunlun_1029/mainwindow.h" "b/Client/\347\224\263\347\203\234/code/test_work_kunlun_1029/mainwindow.h" new file mode 100644 index 0000000..8866aee --- /dev/null +++ "b/Client/\347\224\263\347\203\234/code/test_work_kunlun_1029/mainwindow.h" @@ -0,0 +1,52 @@ +#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include <QMainWindow> +#include <QWidget> +#include <QLineEdit> +#include <QPushButton> +#include <QVBoxLayout> +#include <QLabel> +#include <QCryptographicHash> +#include <QMessageBox> +#include <QRegExp> +#include <QFile> +#include <QTextStream> + +namespace Ui { +class MainWindow; +} + +class MainWindow : public QMainWindow +{ + Q_OBJECT + +public: + explicit MainWindow(QWidget *parent = 0); + ~MainWindow(); + +private slots: + void on_loginPushButton_clicked(); + + void on_registerPushButton_clicked();//鐧诲綍鐣岄潰娉ㄥ唽鎸夐挳 + + void on_forgotPushButton_clicked(); + + void on_toolButton_clicked();//鐧诲綍鐣岄潰杩斿洖鎸夐挳 + + void on_registerPushButton_2_clicked();//娉ㄥ唽鐣岄潰娉ㄥ唽鎸夐挳 + + void on_toolButton_2_clicked();//娉ㄥ唽鐣岄潰杩斿洖鎸夐挳 + + void on_repasswordPushButton_clicked(); + + +private: + Ui::MainWindow *ui; + QByteArray hashPassword(const QString &password);//瀵嗙爜杩涜鍝堝笇澶勭悊 + bool validateInput(const QString &username, const QString &password);//楠岃瘉杈撳叆妗� + void saveUserData(const QString &username, const QByteArray &hashedPassword);//淇濆瓨鐢ㄦ埛鏁版嵁 + bool verifyUserData(const QString &username, const QByteArray &hashedPassword);//楠岃瘉鐢ㄦ埛鏁版嵁 +}; + +#endif // MAINWINDOW_H diff --git "a/Client/\347\224\263\347\203\234/code/test_work_kunlun_1029/mainwindow.ui" "b/Client/\347\224\263\347\203\234/code/test_work_kunlun_1029/mainwindow.ui" new file mode 100644 index 0000000..9bcc5d0 --- /dev/null +++ "b/Client/\347\224\263\347\203\234/code/test_work_kunlun_1029/mainwindow.ui" @@ -0,0 +1,601 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>MainWindow</class> + <widget class="QMainWindow" name="MainWindow"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>1045</width> + <height>699</height> + </rect> + </property> + <property name="windowTitle"> + <string>娉ㄥ唽鐧诲綍</string> + </property> + <property name="styleSheet"> + <string notr="true"/> + </property> + <widget class="QWidget" name="centralWidget"> + <widget class="QLabel" name="label"> + <property name="geometry"> + <rect> + <x>5</x> + <y>5</y> + <width>1030</width> + <height>635</height> + </rect> + </property> + <property name="text"> + <string/> + </property> + <property name="pixmap"> + <pixmap resource="pic.qrc">:/mayi/p1.png</pixmap> + </property> + <property name="scaledContents"> + <bool>true</bool> + </property> + </widget> + <widget class="QStackedWidget" name="stackedWidget"> + <property name="geometry"> + <rect> + <x>300</x> + <y>100</y> + <width>401</width> + <height>441</height> + </rect> + </property> + <property name="styleSheet"> + <string notr="true"/> + </property> + <property name="currentIndex"> + <number>0</number> + </property> + <widget class="QWidget" name="page"> + <widget class="QLabel" name="label_2"> + <property name="geometry"> + <rect> + <x>60</x> + <y>70</y> + <width>291</width> + <height>301</height> + </rect> + </property> + <property name="font"> + <font> + <family>寰蒋闆呴粦</family> + <pointsize>12</pointsize> + </font> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(233, 233, 233); +border: none; +border-radius: 10px;</string> + </property> + <property name="text"> + <string/> + </property> + </widget> + <widget class="QLineEdit" name="passwordLineEdit"> + <property name="geometry"> + <rect> + <x>100</x> + <y>210</y> + <width>211</width> + <height>41</height> + </rect> + </property> + <property name="font"> + <font> + <family>寰蒋闆呴粦</family> + </font> + </property> + </widget> + <widget class="QLineEdit" name="usernameLineEdit"> + <property name="geometry"> + <rect> + <x>100</x> + <y>150</y> + <width>211</width> + <height>41</height> + </rect> + </property> + <property name="font"> + <font> + <family>寰蒋闆呴粦</family> + </font> + </property> + <property name="alignment"> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> + </property> + <property name="placeholderText"> + <string/> + </property> + </widget> + <widget class="QPushButton" name="forgotPushButton"> + <property name="geometry"> + <rect> + <x>230</x> + <y>270</y> + <width>93</width> + <height>31</height> + </rect> + </property> + <property name="font"> + <font> + <family>寰蒋闆呴粦</family> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(0, 85, 255);</string> + </property> + <property name="text"> + <string>蹇樿瀵嗙爜?</string> + </property> + <property name="flat"> + <bool>true</bool> + </property> + </widget> + <widget class="QPushButton" name="loginPushButton"> + <property name="geometry"> + <rect> + <x>100</x> + <y>320</y> + <width>80</width> + <height>31</height> + </rect> + </property> + <property name="font"> + <font> + <family>寰蒋闆呴粦</family> + <pointsize>9</pointsize> + </font> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(0, 153, 255); +color: rgb(255, 255, 255); +border: none; +border-radius: 10px;</string> + </property> + <property name="text"> + <string>鐧诲綍</string> + </property> + </widget> + <widget class="QLabel" name="label_3"> + <property name="geometry"> + <rect> + <x>180</x> + <y>100</y> + <width>41</width> + <height>41</height> + </rect> + </property> + <property name="font"> + <font> + <family>寰蒋闆呴粦</family> + <pointsize>12</pointsize> + </font> + </property> + <property name="text"> + <string>鐧诲綍</string> + </property> + </widget> + <widget class="QCheckBox" name="checkBox"> + <property name="geometry"> + <rect> + <x>100</x> + <y>270</y> + <width>91</width> + <height>31</height> + </rect> + </property> + <property name="font"> + <font> + <family>寰蒋闆呴粦</family> + </font> + </property> + <property name="text"> + <string>璁颁綇瀵嗙爜</string> + </property> + </widget> + <widget class="QPushButton" name="registerPushButton"> + <property name="geometry"> + <rect> + <x>230</x> + <y>320</y> + <width>80</width> + <height>31</height> + </rect> + </property> + <property name="font"> + <font> + <family>寰蒋闆呴粦</family> + <pointsize>9</pointsize> + </font> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(0, 153, 255); +color: rgb(255, 255, 255); +border: none; +border-radius: 10px;</string> + </property> + <property name="text"> + <string>娉ㄥ唽</string> + </property> + </widget> + </widget> + <widget class="QWidget" name="page_2"> + <widget class="QLabel" name="label_4"> + <property name="geometry"> + <rect> + <x>60</x> + <y>40</y> + <width>291</width> + <height>361</height> + </rect> + </property> + <property name="font"> + <font> + <family>寰蒋闆呴粦</family> + <pointsize>12</pointsize> + </font> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(233, 233, 233); +border: none; +border-radius: 10px;</string> + </property> + <property name="text"> + <string/> + </property> + </widget> + <widget class="QLineEdit" name="repasswordLineEdit"> + <property name="geometry"> + <rect> + <x>100</x> + <y>190</y> + <width>211</width> + <height>41</height> + </rect> + </property> + <property name="font"> + <font> + <family>寰蒋闆呴粦</family> + </font> + </property> + </widget> + <widget class="QLineEdit" name="telephoneLineEdit"> + <property name="geometry"> + <rect> + <x>100</x> + <y>290</y> + <width>211</width> + <height>41</height> + </rect> + </property> + <property name="font"> + <font> + <family>寰蒋闆呴粦</family> + </font> + </property> + </widget> + <widget class="QToolButton" name="toolButton"> + <property name="geometry"> + <rect> + <x>70</x> + <y>50</y> + <width>21</width> + <height>21</height> + </rect> + </property> + <property name="styleSheet"> + <string notr="true">QToolButton{ + background-color: rgb(0, 0, 0); + boder:none; +} +QToolButton#toolButton{ + + background-color: rgb(233, 233, 233); + border-image: url(:/mayi/return1.png); +}</string> + </property> + <property name="text"> + <string/> + </property> + </widget> + <widget class="QLineEdit" name="passwordLineEdit_2"> + <property name="geometry"> + <rect> + <x>100</x> + <y>140</y> + <width>211</width> + <height>41</height> + </rect> + </property> + <property name="font"> + <font> + <family>寰蒋闆呴粦</family> + </font> + </property> + </widget> + <widget class="QPushButton" name="registerPushButton_2"> + <property name="geometry"> + <rect> + <x>170</x> + <y>350</y> + <width>71</width> + <height>31</height> + </rect> + </property> + <property name="font"> + <font> + <family>寰蒋闆呴粦</family> + <pointsize>9</pointsize> + </font> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(0, 153, 255); +color: rgb(255, 255, 255); +border: none; +border-radius: 10px;</string> + </property> + <property name="text"> + <string>娉ㄥ唽</string> + </property> + </widget> + <widget class="QLabel" name="label_5"> + <property name="geometry"> + <rect> + <x>180</x> + <y>50</y> + <width>41</width> + <height>41</height> + </rect> + </property> + <property name="font"> + <font> + <family>寰蒋闆呴粦</family> + <pointsize>12</pointsize> + </font> + </property> + <property name="text"> + <string>娉ㄥ唽</string> + </property> + </widget> + <widget class="QLineEdit" name="emailLineEdit"> + <property name="geometry"> + <rect> + <x>100</x> + <y>240</y> + <width>211</width> + <height>41</height> + </rect> + </property> + <property name="font"> + <font> + <family>寰蒋闆呴粦</family> + </font> + </property> + </widget> + <widget class="QLineEdit" name="usernameLineEdit_2"> + <property name="geometry"> + <rect> + <x>100</x> + <y>90</y> + <width>211</width> + <height>41</height> + </rect> + </property> + <property name="font"> + <font> + <family>寰蒋闆呴粦</family> + </font> + </property> + <property name="text"> + <string/> + </property> + </widget> + <zorder>label_4</zorder> + <zorder>repasswordLineEdit</zorder> + <zorder>telephoneLineEdit</zorder> + <zorder>toolButton</zorder> + <zorder>passwordLineEdit_2</zorder> + <zorder>label_5</zorder> + <zorder>emailLineEdit</zorder> + <zorder>usernameLineEdit_2</zorder> + <zorder>registerPushButton_2</zorder> + </widget> + <widget class="QWidget" name="page_3"> + <widget class="QLabel" name="label_6"> + <property name="geometry"> + <rect> + <x>60</x> + <y>40</y> + <width>291</width> + <height>361</height> + </rect> + </property> + <property name="font"> + <font> + <family>寰蒋闆呴粦</family> + <pointsize>12</pointsize> + </font> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(233, 233, 233); +border: none; +border-radius: 10px;</string> + </property> + <property name="text"> + <string/> + </property> + </widget> + <widget class="QLineEdit" name="password_2"> + <property name="geometry"> + <rect> + <x>100</x> + <y>200</y> + <width>211</width> + <height>41</height> + </rect> + </property> + <property name="font"> + <font> + <family>寰蒋闆呴粦</family> + </font> + </property> + <property name="text"> + <string/> + </property> + </widget> + <widget class="QLineEdit" name="CAPTCHI"> + <property name="geometry"> + <rect> + <x>100</x> + <y>150</y> + <width>211</width> + <height>41</height> + </rect> + </property> + <property name="font"> + <font> + <family>寰蒋闆呴粦</family> + </font> + </property> + <property name="text"> + <string/> + </property> + </widget> + <widget class="QLineEdit" name="password_3"> + <property name="geometry"> + <rect> + <x>100</x> + <y>250</y> + <width>211</width> + <height>41</height> + </rect> + </property> + <property name="font"> + <font> + <family>寰蒋闆呴粦</family> + </font> + </property> + <property name="text"> + <string/> + </property> + </widget> + <widget class="QPushButton" name="repasswordPushButton"> + <property name="geometry"> + <rect> + <x>160</x> + <y>330</y> + <width>111</width> + <height>31</height> + </rect> + </property> + <property name="font"> + <font> + <family>寰蒋闆呴粦</family> + <pointsize>9</pointsize> + </font> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(0, 153, 255); +color: rgb(255, 255, 255); +border: none; +border-radius: 10px;</string> + </property> + <property name="text"> + <string>閲嶈瀵嗙爜</string> + </property> + </widget> + <widget class="QLineEdit" name="email"> + <property name="geometry"> + <rect> + <x>100</x> + <y>100</y> + <width>211</width> + <height>41</height> + </rect> + </property> + <property name="font"> + <font> + <family>寰蒋闆呴粦</family> + </font> + </property> + <property name="text"> + <string/> + </property> + </widget> + <widget class="QLabel" name="label_7"> + <property name="geometry"> + <rect> + <x>160</x> + <y>50</y> + <width>91</width> + <height>41</height> + </rect> + </property> + <property name="font"> + <font> + <family>寰蒋闆呴粦</family> + <pointsize>12</pointsize> + </font> + </property> + <property name="text"> + <string>閲嶈瀵嗙爜</string> + </property> + </widget> + <widget class="QToolButton" name="toolButton_2"> + <property name="geometry"> + <rect> + <x>70</x> + <y>60</y> + <width>21</width> + <height>21</height> + </rect> + </property> + <property name="styleSheet"> + <string notr="true">QToolButton{ + background-color: rgb(0, 0, 0); + boder:none; +} +QToolButton#toolButton_2{ + + background-color: rgb(233, 233, 233); + border-image: url(:/mayi/return1.png); +}</string> + </property> + <property name="text"> + <string/> + </property> + </widget> + </widget> + </widget> + </widget> + <widget class="QMenuBar" name="menuBar"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>1045</width> + <height>26</height> + </rect> + </property> + </widget> + <widget class="QToolBar" name="mainToolBar"> + <attribute name="toolBarArea"> + <enum>TopToolBarArea</enum> + </attribute> + <attribute name="toolBarBreak"> + <bool>false</bool> + </attribute> + </widget> + <widget class="QStatusBar" name="statusBar"/> + </widget> + <layoutdefault spacing="6" margin="11"/> + <resources> + <include location="pic.qrc"/> + </resources> + <connections/> +</ui> diff --git "a/Client/\347\224\263\347\203\234/code/test_work_kunlun_1029/p1.png" "b/Client/\347\224\263\347\203\234/code/test_work_kunlun_1029/p1.png" new file mode 100644 index 0000000..a35c27c --- /dev/null +++ "b/Client/\347\224\263\347\203\234/code/test_work_kunlun_1029/p1.png" Binary files differ diff --git "a/Client/\347\224\263\347\203\234/code/test_work_kunlun_1029/pic.qrc" "b/Client/\347\224\263\347\203\234/code/test_work_kunlun_1029/pic.qrc" new file mode 100644 index 0000000..f70936d --- /dev/null +++ "b/Client/\347\224\263\347\203\234/code/test_work_kunlun_1029/pic.qrc" @@ -0,0 +1,7 @@ +<RCC> + <qresource prefix="/mayi"> + <file>p1.png</file> + <file>return.png</file> + <file>return1.png</file> + </qresource> +</RCC> diff --git "a/Client/\347\224\263\347\203\234/code/test_work_kunlun_1029/return.png" "b/Client/\347\224\263\347\203\234/code/test_work_kunlun_1029/return.png" new file mode 100644 index 0000000..c4f4cba --- /dev/null +++ "b/Client/\347\224\263\347\203\234/code/test_work_kunlun_1029/return.png" Binary files differ diff --git "a/Client/\347\224\263\347\203\234/code/test_work_kunlun_1029/return1.png" "b/Client/\347\224\263\347\203\234/code/test_work_kunlun_1029/return1.png" new file mode 100644 index 0000000..9d34456 --- /dev/null +++ "b/Client/\347\224\263\347\203\234/code/test_work_kunlun_1029/return1.png" Binary files differ diff --git "a/Client/\347\224\263\347\203\234/code/test_work_kunlun_1029/test_work_kunlun_1029.pro" "b/Client/\347\224\263\347\203\234/code/test_work_kunlun_1029/test_work_kunlun_1029.pro" new file mode 100644 index 0000000..c412cd9 --- /dev/null +++ "b/Client/\347\224\263\347\203\234/code/test_work_kunlun_1029/test_work_kunlun_1029.pro" @@ -0,0 +1,37 @@ +#------------------------------------------------- +# +# Project created by QtCreator 2024-10-29T18:25:58 +# +#------------------------------------------------- + +QT += core gui + +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets + +TARGET = test_work_kunlun_1029 +TEMPLATE = app + +# The following define makes your compiler emit warnings if you use +# any feature of Qt which has been marked as deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if you use deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + + +SOURCES += \ + main.cpp \ + mainwindow.cpp + +HEADERS += \ + mainwindow.h + +FORMS += \ + mainwindow.ui + +RESOURCES += \ + pic.qrc diff --git "a/Client/\347\224\263\347\203\234/code/test_work_kunlun_1029/test_work_kunlun_1029.pro.user" "b/Client/\347\224\263\347\203\234/code/test_work_kunlun_1029/test_work_kunlun_1029.pro.user" new file mode 100644 index 0000000..272d829 --- /dev/null +++ "b/Client/\347\224\263\347\203\234/code/test_work_kunlun_1029/test_work_kunlun_1029.pro.user" @@ -0,0 +1,806 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE QtCreatorProject> +<!-- Written by QtCreator 4.5.0, 2024-10-30T15:12:40. --> +<qtcreator> + <data> + <variable>EnvironmentId</variable> + <value type="QByteArray">{446cd7f5-b0fa-434b-a884-8d2e768836a8}</value> + </data> + <data> + <variable>ProjectExplorer.Project.ActiveTarget</variable> + <value type="int">0</value> + </data> + <data> + <variable>ProjectExplorer.Project.EditorSettings</variable> + <valuemap type="QVariantMap"> + <value type="bool" key="EditorConfiguration.AutoIndent">true</value> + <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value> + <value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value> + <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0"> + <value type="QString" key="language">Cpp</value> + <valuemap type="QVariantMap" key="value"> + <value type="QByteArray" key="CurrentPreferences">CppGlobal</value> + </valuemap> + </valuemap> + <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1"> + <value type="QString" key="language">QmlJS</value> + <valuemap type="QVariantMap" key="value"> + <value type="QByteArray" key="CurrentPreferences">QmlJSGlobal</value> + </valuemap> + </valuemap> + <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value> + <value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value> + <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value> + <value type="int" key="EditorConfiguration.IndentSize">4</value> + <value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value> + <value type="int" key="EditorConfiguration.MarginColumn">80</value> + <value type="bool" key="EditorConfiguration.MouseHiding">true</value> + <value type="bool" key="EditorConfiguration.MouseNavigation">true</value> + <value type="int" key="EditorConfiguration.PaddingMode">1</value> + <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value> + <value type="bool" key="EditorConfiguration.ShowMargin">false</value> + <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value> + <value type="bool" key="EditorConfiguration.SmartSelectionChanging">true</value> + <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value> + <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value> + <value type="int" key="EditorConfiguration.TabSize">8</value> + <value type="bool" key="EditorConfiguration.UseGlobal">true</value> + <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value> + <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value> + <value type="bool" key="EditorConfiguration.cleanIndentation">true</value> + <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value> + <value type="bool" key="EditorConfiguration.inEntireDocument">false</value> + </valuemap> + </data> + <data> + <variable>ProjectExplorer.Project.PluginSettings</variable> + <valuemap type="QVariantMap"/> + </data> + <data> + <variable>ProjectExplorer.Project.Target.0</variable> + <valuemap type="QVariantMap"> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.9.4 MinGW 32bit</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.9.4 MinGW 32bit</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.594.win32_mingw53_kit</value> + <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> + <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> + <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/Qt/QtProject/build-test_work_kunlun_1029-Desktop_Qt_5_9_4_MinGW_32bit-Debug</value> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">true</value> + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鏋勫缓</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">娓呯悊</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Debug</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> + <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1"> + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/Qt/QtProject/build-test_work_kunlun_1029-Desktop_Qt_5_9_4_MinGW_32bit-Release</value> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鏋勫缓</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">娓呯悊</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Release</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> + <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2"> + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/Qt/QtProject/build-test_work_kunlun_1029-Desktop_Qt_5_9_4_MinGW_32bit-Profile</value> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">true</value> + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">true</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鏋勫缓</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">娓呯悊</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Profile</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> + <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value> + </valuemap> + <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">3</value> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">閮ㄧ讲</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鍦ㄦ湰鍦伴儴缃�</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> + </valuemap> + <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> + <value type="bool" key="Analyzer.QmlProfiler.AggregateTraces">false</value> + <value type="bool" key="Analyzer.QmlProfiler.FlushEnabled">false</value> + <value type="uint" key="Analyzer.QmlProfiler.FlushInterval">1000</value> + <value type="QString" key="Analyzer.QmlProfiler.LastTraceFile"></value> + <value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value> + <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> + <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> + <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> + <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> + <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> + <value type="int" key="Analyzer.Valgrind.LeakCheckOnFinish">1</value> + <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> + <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> + <value type="int" key="Analyzer.Valgrind.SelfModifyingCodeDetection">1</value> + <value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value> + <value type="bool" key="Analyzer.Valgrind.ShowReachable">false</value> + <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> + <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> + <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> + <value type="int">0</value> + <value type="int">1</value> + <value type="int">2</value> + <value type="int">3</value> + <value type="int">4</value> + <value type="int">5</value> + <value type="int">6</value> + <value type="int">7</value> + <value type="int">8</value> + <value type="int">9</value> + <value type="int">10</value> + <value type="int">11</value> + <value type="int">12</value> + <value type="int">13</value> + <value type="int">14</value> + </valuelist> + <value type="int" key="PE.EnvironmentAspect.Base">2</value> + <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">test_work_kunlun_1029</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:D:/Qt/QtProject/test_work_kunlun_1029/test_work_kunlun_1029.pro</value> + <value type="bool" key="QmakeProjectManager.QmakeRunConfiguration.UseLibrarySearchPath">true</value> + <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value> + <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">test_work_kunlun_1029.pro</value> + <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value> + <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value> + <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory.default">D:/Qt/QtProject/build-test_work_kunlun_1029-Desktop_Qt_5_9_4_MinGW_32bit-Debug</value> + <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> + <value type="bool" key="RunConfiguration.UseCppDebugger">false</value> + <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value> + <value type="bool" key="RunConfiguration.UseMultiProcess">false</value> + <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> + <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value> + </valuemap> + <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value> + </valuemap> + </data> + <data> + <variable>ProjectExplorer.Project.Target.1</variable> + <valuemap type="QVariantMap"> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.9.4 MSVC2015 32bit</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.9.4 MSVC2015 32bit</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.594.win32_msvc2015_kit</value> + <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> + <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> + <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/Qt/QtProject/build-test_work_kunlun_1029-Desktop_Qt_5_9_4_MSVC2015_32bit-Debug</value> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">true</value> + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鏋勫缓</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">娓呯悊</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Debug</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> + <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1"> + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/Qt/QtProject/build-test_work_kunlun_1029-Desktop_Qt_5_9_4_MSVC2015_32bit-Release</value> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鏋勫缓</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">娓呯悊</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Release</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> + <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2"> + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/Qt/QtProject/build-test_work_kunlun_1029-Desktop_Qt_5_9_4_MSVC2015_32bit-Profile</value> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">true</value> + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">true</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鏋勫缓</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">娓呯悊</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Profile</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> + <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value> + </valuemap> + <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">3</value> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">閮ㄧ讲</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鍦ㄦ湰鍦伴儴缃�</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> + </valuemap> + <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> + <value type="bool" key="Analyzer.QmlProfiler.AggregateTraces">false</value> + <value type="bool" key="Analyzer.QmlProfiler.FlushEnabled">false</value> + <value type="uint" key="Analyzer.QmlProfiler.FlushInterval">1000</value> + <value type="QString" key="Analyzer.QmlProfiler.LastTraceFile"></value> + <value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value> + <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> + <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> + <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> + <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> + <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> + <value type="int" key="Analyzer.Valgrind.LeakCheckOnFinish">1</value> + <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> + <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> + <value type="int" key="Analyzer.Valgrind.SelfModifyingCodeDetection">1</value> + <value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value> + <value type="bool" key="Analyzer.Valgrind.ShowReachable">false</value> + <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> + <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> + <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> + <value type="int">0</value> + <value type="int">1</value> + <value type="int">2</value> + <value type="int">3</value> + <value type="int">4</value> + <value type="int">5</value> + <value type="int">6</value> + <value type="int">7</value> + <value type="int">8</value> + <value type="int">9</value> + <value type="int">10</value> + <value type="int">11</value> + <value type="int">12</value> + <value type="int">13</value> + <value type="int">14</value> + </valuelist> + <value type="int" key="PE.EnvironmentAspect.Base">-1</value> + <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/> + <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Arguments"></value> + <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable"></value> + <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.WorkingDirectory">%{buildDir}</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Custom Executable</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value> + <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> + <value type="bool" key="RunConfiguration.UseCppDebugger">false</value> + <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value> + <value type="bool" key="RunConfiguration.UseMultiProcess">false</value> + <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> + <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value> + </valuemap> + <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value> + </valuemap> + </data> + <data> + <variable>ProjectExplorer.Project.Target.2</variable> + <valuemap type="QVariantMap"> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.9.4 MSVC2015 64bit</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.9.4 MSVC2015 64bit</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.594.win64_msvc2015_64_kit</value> + <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> + <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> + <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/Qt/QtProject/build-test_work_kunlun_1029-Desktop_Qt_5_9_4_MSVC2015_64bit-Debug</value> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">true</value> + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鏋勫缓</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">娓呯悊</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Debug</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> + <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1"> + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/Qt/QtProject/build-test_work_kunlun_1029-Desktop_Qt_5_9_4_MSVC2015_64bit-Release</value> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鏋勫缓</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">娓呯悊</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Release</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> + <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2"> + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/Qt/QtProject/build-test_work_kunlun_1029-Desktop_Qt_5_9_4_MSVC2015_64bit-Profile</value> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">true</value> + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">true</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鏋勫缓</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">娓呯悊</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Profile</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> + <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value> + </valuemap> + <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">3</value> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">閮ㄧ讲</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鍦ㄦ湰鍦伴儴缃�</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> + </valuemap> + <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> + <value type="bool" key="Analyzer.QmlProfiler.AggregateTraces">false</value> + <value type="bool" key="Analyzer.QmlProfiler.FlushEnabled">false</value> + <value type="uint" key="Analyzer.QmlProfiler.FlushInterval">1000</value> + <value type="QString" key="Analyzer.QmlProfiler.LastTraceFile"></value> + <value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value> + <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> + <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> + <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> + <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> + <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> + <value type="int" key="Analyzer.Valgrind.LeakCheckOnFinish">1</value> + <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> + <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> + <value type="int" key="Analyzer.Valgrind.SelfModifyingCodeDetection">1</value> + <value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value> + <value type="bool" key="Analyzer.Valgrind.ShowReachable">false</value> + <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> + <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> + <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> + <value type="int">0</value> + <value type="int">1</value> + <value type="int">2</value> + <value type="int">3</value> + <value type="int">4</value> + <value type="int">5</value> + <value type="int">6</value> + <value type="int">7</value> + <value type="int">8</value> + <value type="int">9</value> + <value type="int">10</value> + <value type="int">11</value> + <value type="int">12</value> + <value type="int">13</value> + <value type="int">14</value> + </valuelist> + <value type="int" key="PE.EnvironmentAspect.Base">-1</value> + <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/> + <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Arguments"></value> + <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable"></value> + <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.WorkingDirectory">%{buildDir}</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Custom Executable</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value> + <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> + <value type="bool" key="RunConfiguration.UseCppDebugger">false</value> + <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value> + <value type="bool" key="RunConfiguration.UseMultiProcess">false</value> + <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> + <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value> + </valuemap> + <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value> + </valuemap> + </data> + <data> + <variable>ProjectExplorer.Project.TargetCount</variable> + <value type="int">3</value> + </data> + <data> + <variable>ProjectExplorer.Project.Updater.FileVersion</variable> + <value type="int">18</value> + </data> + <data> + <variable>Version</variable> + <value type="int">18</value> + </data> +</qtcreator> diff --git "a/Client/\347\224\263\347\203\234/document/\346\263\250\345\206\214\347\231\273\345\275\225\351\234\200\346\261\202\345\210\206\346\236\220.docx" "b/Client/\347\224\263\347\203\234/document/\346\263\250\345\206\214\347\231\273\345\275\225\351\234\200\346\261\202\345\210\206\346\236\220.docx" index 651bb8e..366835e 100644 --- "a/Client/\347\224\263\347\203\234/document/\346\263\250\345\206\214\347\231\273\345\275\225\351\234\200\346\261\202\345\210\206\346\236\220.docx" +++ "b/Client/\347\224\263\347\203\234/document/\346\263\250\345\206\214\347\231\273\345\275\225\351\234\200\346\261\202\345\210\206\346\236\220.docx" Binary files differ diff --git "a/Client/\351\203\221\345\207\257\346\226\207/document/About version updates\357\274\210\347\254\254\344\272\214\347\211\210\357\274\211.docx" "b/Client/\351\203\221\345\207\257\346\226\207/document/About version updates\357\274\210\347\254\254\344\272\214\347\211\210\357\274\211.docx" index 541bae5..7bcfbe4 100644 --- "a/Client/\351\203\221\345\207\257\346\226\207/document/About version updates\357\274\210\347\254\254\344\272\214\347\211\210\357\274\211.docx" +++ "b/Client/\351\203\221\345\207\257\346\226\207/document/About version updates\357\274\210\347\254\254\344\272\214\347\211\210\357\274\211.docx" Binary files differ diff --git "a/Client/\351\203\221\345\207\257\346\226\207/document/\347\273\223\346\236\204\344\275\223.docx" "b/Client/\351\203\221\345\207\257\346\226\207/document/\347\273\223\346\236\204\344\275\223.docx" new file mode 100644 index 0000000..c0ce633 --- /dev/null +++ "b/Client/\351\203\221\345\207\257\346\226\207/document/\347\273\223\346\236\204\344\275\223.docx" Binary files differ diff --git "a/Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071029.doc" "b/Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071029.doc" new file mode 100644 index 0000000..0530ea7 --- /dev/null +++ "b/Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071029.doc" Binary files differ diff --git "a/Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071030.doc" "b/Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071030.doc" new file mode 100644 index 0000000..1f09eef --- /dev/null +++ "b/Client/\351\203\221\345\207\257\346\226\207/log/\351\203\221\345\207\257\346\226\2071030.doc" Binary files differ diff --git "a/Client/\351\273\216\345\274\230\351\234\226/document/\350\256\276\345\244\207\347\256\241\347\220\206\351\234\200\346\261\202\345\210\206\346\236\220.docx" "b/Client/\351\273\216\345\274\230\351\234\226/document/\350\256\276\345\244\207\347\256\241\347\220\206\351\234\200\346\261\202\345\210\206\346\236\220.docx" index 382d262..8b3330d 100644 --- "a/Client/\351\273\216\345\274\230\351\234\226/document/\350\256\276\345\244\207\347\256\241\347\220\206\351\234\200\346\261\202\345\210\206\346\236\220.docx" +++ "b/Client/\351\273\216\345\274\230\351\234\226/document/\350\256\276\345\244\207\347\256\241\347\220\206\351\234\200\346\261\202\345\210\206\346\236\220.docx" Binary files differ diff --git "a/Client/\351\276\232\345\220\257\347\245\245/document/\346\230\206\344\273\221_\345\244\247\345\261\217\346\230\276\347\244\272.docx" "b/Client/\351\276\232\345\220\257\347\245\245/document/\346\230\206\344\273\221_\345\244\247\345\261\217\346\230\276\347\244\272.docx" index 970f45b..066cd87 100644 --- "a/Client/\351\276\232\345\220\257\347\245\245/document/\346\230\206\344\273\221_\345\244\247\345\261\217\346\230\276\347\244\272.docx" +++ "b/Client/\351\276\232\345\220\257\347\245\245/document/\346\230\206\344\273\221_\345\244\247\345\261\217\346\230\276\347\244\272.docx" Binary files differ diff --git "a/Server/\346\235\216\350\275\254\350\275\254/document/\351\234\200\346\261\202\345\210\206\346\236\220\346\212\245\345\221\212.docx" "b/Server/\346\235\216\350\275\254\350\275\254/document/\351\234\200\346\261\202\345\210\206\346\236\220\346\212\245\345\221\212.docx" index 9a68128..e22bd03 100644 --- "a/Server/\346\235\216\350\275\254\350\275\254/document/\351\234\200\346\261\202\345\210\206\346\236\220\346\212\245\345\221\212.docx" +++ "b/Server/\346\235\216\350\275\254\350\275\254/document/\351\234\200\346\261\202\345\210\206\346\236\220\346\212\245\345\221\212.docx" Binary files differ diff --git "a/Server/\347\216\213\347\220\250\345\205\203/document/\345\215\225\344\276\213\346\250\241\345\274\217\345\260\201\350\243\205.txt" "b/Server/\347\216\213\347\220\250\345\205\203/document/\345\215\225\344\276\213\346\250\241\345\274\217\345\260\201\350\243\205.txt" deleted file mode 100644 index c07f1df..0000000 --- "a/Server/\347\216\213\347\220\250\345\205\203/document/\345\215\225\344\276\213\346\250\241\345\274\217\345\260\201\350\243\205.txt" +++ /dev/null @@ -1,51 +0,0 @@ -#include <iostream> -#include <memory> -#include <mutex> -#include <string> -#include <mysql_driver.h> -#include <mysql_connection.h> -#include <cppconn/statement.h> -#include <cppconn/resultset.h> - -class DatabaseOperator { -private: - // 绉佹湁鏋勯�犲嚱鏁� - DatabaseOperator() { - try { - driver = sql::mysql::get_mysql_driver_instance(); - connection = driver->connect("tcp://127.0.0.1:3306", "username", "password"); - connection->setSchema("your_database"); - } catch (sql::SQLException &e) { - std::cerr << "鏁版嵁搴撹繛鎺ラ敊璇�: " << e.what() << std::endl; - } - } - - static DatabaseOperator* instance; - static std::mutex mutex; - sql::Driver* driver; - std::unique_ptr<sql::Connection> connection; - -public: - // 鑾峰彇鍗曚緥瀹炰緥 - static DatabaseOperator* getInstance() { - std::lock_guard<std::mutex> lock(mutex); - if (instance == nullptr) { - instance = new DatabaseOperator(); - } - return instance; - } - - // 鎵ц鏌ヨ鎿嶄綔锛堢ず渚嬶級 - sql::ResultSet* query(const std::string& sql) { - try { - std::unique_ptr<sql::Statement> stmt(connection->createStatement()); - return stmt->executeQuery(sql); - } catch (sql::SQLException &e) { - std::cerr << "鏌ヨ閿欒: " << e.what() << std::endl; - } - return nullptr; - } -}; - -std::mutex DatabaseOperator::mutex; -DatabaseOperator* DatabaseOperator::instance = nullptr; \ No newline at end of file diff --git "a/Server/\347\216\213\347\220\250\345\205\203/document/\345\273\272\350\241\250.docx" "b/Server/\347\216\213\347\220\250\345\205\203/document/\345\273\272\350\241\250.docx" new file mode 100644 index 0000000..b777db4 --- /dev/null +++ "b/Server/\347\216\213\347\220\250\345\205\203/document/\345\273\272\350\241\250.docx" Binary files differ diff --git "a/Server/\347\216\213\347\220\250\345\205\203/document/\346\225\260\346\215\256\345\272\223.docx" "b/Server/\347\216\213\347\220\250\345\205\203/document/\346\225\260\346\215\256\345\272\223.docx" deleted file mode 100644 index c7dd41d..0000000 --- "a/Server/\347\216\213\347\220\250\345\205\203/document/\346\225\260\346\215\256\345\272\223.docx" +++ /dev/null Binary files differ diff --git "a/Server/\347\216\213\347\220\250\345\205\203/document/\346\225\260\346\215\256\345\272\223\346\250\241\345\235\227\351\234\200\346\261\202\345\210\206\346\236\220.docx" "b/Server/\347\216\213\347\220\250\345\205\203/document/\346\225\260\346\215\256\345\272\223\346\250\241\345\235\227\351\234\200\346\261\202\345\210\206\346\236\220.docx" index 0a608f6..22d785e 100644 --- "a/Server/\347\216\213\347\220\250\345\205\203/document/\346\225\260\346\215\256\345\272\223\346\250\241\345\235\227\351\234\200\346\261\202\345\210\206\346\236\220.docx" +++ "b/Server/\347\216\213\347\220\250\345\205\203/document/\346\225\260\346\215\256\345\272\223\346\250\241\345\235\227\351\234\200\346\261\202\345\210\206\346\236\220.docx" Binary files differ diff --git "a/Server/\347\216\213\347\220\250\345\205\203/document/\346\225\260\346\215\256\345\272\223\350\277\236\346\216\245.txt" "b/Server/\347\216\213\347\220\250\345\205\203/document/\346\225\260\346\215\256\345\272\223\350\277\236\346\216\245.txt" deleted file mode 100644 index dad6734..0000000 --- "a/Server/\347\216\213\347\220\250\345\205\203/document/\346\225\260\346\215\256\345\272\223\350\277\236\346\216\245.txt" +++ /dev/null @@ -1,16 +0,0 @@ -#include "MySQL.h" -#include <WinSock2.h> -#include <mysql.h> -#include <iostream> -#include <string> -using namespace std; -int main() { - MYSQL mysql; - mysql_init(&mysql);//鍒濆鍖� - //杩炴帴鏁版嵁搴撴湇鍔″櫒鏈嶅姟鍣� IP 鐢ㄦ埛鍚� 瀵嗙爜 鏁版嵁搴撶鍙e彿 - mysql_real_connect(&mysql, "192.168.136.128", "root", "123456", "wang", 3306, NULL, 0); - - string sql="set names gbk"; - mysql_real_query(&mysql, sql.c_str(), sql.size()); - mysql_close(&mysql); - return 0; \ No newline at end of file diff --git "a/Server/\347\216\213\347\220\250\345\205\203/document/\346\225\260\346\215\256\345\272\223\350\277\236\346\216\245\346\261\240\347\261\273.txt" "b/Server/\347\216\213\347\220\250\345\205\203/document/\346\225\260\346\215\256\345\272\223\350\277\236\346\216\245\346\261\240\347\261\273.txt" deleted file mode 100644 index 8c82c1a..0000000 --- "a/Server/\347\216\213\347\220\250\345\205\203/document/\346\225\260\346\215\256\345\272\223\350\277\236\346\216\245\346\261\240\347\261\273.txt" +++ /dev/null @@ -1,91 +0,0 @@ -#include <iostream> -#include <list> -#include <mutex> -#include <condition_variable> -#include <mysql_driver.h> -#include <mysql_connection.h> -#include <cppconn/statement.h> -#include <cppconn/resultset.h> - -class SQLConnectionPool { -private: - SQLConnectionPool(int minConns, int maxConns) : - minConnections(minConns), maxConnections(maxConns), currentConnections(0) {} - - static SQLConnectionPool* instance; - static std::mutex mutex; - std::condition_variable cv; - int minConnections; - int maxConnections; - int currentConnections; - std::list<std::unique_ptr<sql::Connection>> connections; - - // 鍒涘缓涓�涓柊鐨勬暟鎹簱杩炴帴 - std::unique_ptr<sql::Connection> createConnection() { - try { - sql::Driver* driver = sql::mysql::get_mysql_driver_instance(); - std::unique_ptr<sql::Connection> conn(driver->connect("tcp://127.0.0.1:3306", "username", "password")); - conn->setSchema("your_database"); - return conn; - } catch (sql::SQLException &e) { - std::cerr << "鍒涘缓杩炴帴閿欒: " << e.what() << std::endl; - return nullptr; - } - } - -public: - // 鑾峰彇鍗曚緥瀹炰緥 - static SQLConnectionPool* getInstance(int minConns, int maxConns) { - std::lock_guard<std::mutex> lock(mutex); - if (instance == nullptr) { - instance = new SQLConnectionPool(minConns, maxConns); - instance->initializePool(); - } - return instance; - } - - // 鍒濆鍖栬繛鎺ユ睜 - void initializePool() { - for (int i = 0; i < minConnections; ++i) { - std::unique_ptr<sql::Connection> conn = createConnection(); - if (conn) { - connections.push_back(std::move(conn)); - currentConnections++; - } - } - } - - // 鑾峰彇鏁版嵁搴撹繛鎺� - std::unique_ptr<sql::Connection> getConnection() { - std::unique_lock<std::mutex> lock(mutex); - while (connections.empty() && currentConnections >= maxConnections) { - cv.wait(lock); - } - - std::unique_ptr<sql::Connection> conn; - if (!connections.empty()) { - conn = std::move(connections.front()); - connections.pop_front(); - } else if (currentConnections < maxConnections) { - conn = createConnection(); - if (conn) { - currentConnections++; - } - } - return conn; - } - - // 褰掕繕鏁版嵁搴撹繛鎺� - void releaseConnection(std::unique_ptr<sql::Connection>& conn) { - std::lock_guard<std::mutex> lock(mutex); - if (currentConnections > minConnections) { - currentConnections--; - } else { - connections.push_back(std::move(conn)); - } - cv.notify_one(); - } -}; - -std::mutex SQLConnectionPool::mutex; -SQLConnectionPool* SQLConnectionPool::instance = nullptr; \ No newline at end of file diff --git "a/Server/\350\203\241\345\256\266\346\230\216/document/\347\275\221\347\273\234socket\346\220\255\345\273\272\351\234\200\346\261\202\345\210\206\346\236\220.docx" "b/Server/\350\203\241\345\256\266\346\230\216/document/\347\275\221\347\273\234socket\346\220\255\345\273\272\351\234\200\346\261\202\345\210\206\346\236\220.docx" index 16a5c4e..7e1ce8a 100644 --- "a/Server/\350\203\241\345\256\266\346\230\216/document/\347\275\221\347\273\234socket\346\220\255\345\273\272\351\234\200\346\261\202\345\210\206\346\236\220.docx" +++ "b/Server/\350\203\241\345\256\266\346\230\216/document/\347\275\221\347\273\234socket\346\220\255\345\273\272\351\234\200\346\261\202\345\210\206\346\236\220.docx" Binary files differ diff --git "a/Server/\351\231\210\346\245\232\344\270\271/document/\345\215\217\350\256\256\351\200\202\351\205\215\351\234\200\346\261\202\345\210\206\346\236\220.docx" "b/Server/\351\231\210\346\245\232\344\270\271/document/\345\215\217\350\256\256\351\200\202\351\205\215\351\234\200\346\261\202\345\210\206\346\236\220.docx" index 77f911d..e1b4789 100644 --- "a/Server/\351\231\210\346\245\232\344\270\271/document/\345\215\217\350\256\256\351\200\202\351\205\215\351\234\200\346\261\202\345\210\206\346\236\220.docx" +++ "b/Server/\351\231\210\346\245\232\344\270\271/document/\345\215\217\350\256\256\351\200\202\351\205\215\351\234\200\346\261\202\345\210\206\346\236\220.docx" Binary files differ diff --git "a/Server/\351\251\254\344\270\275\350\220\215/code/log/.vscode/c_cpp_properties.json" "b/Server/\351\251\254\344\270\275\350\220\215/code/log/.vscode/c_cpp_properties.json" index cea4d3f..bd518f1 100644 --- "a/Server/\351\251\254\344\270\275\350\220\215/code/log/.vscode/c_cpp_properties.json" +++ "b/Server/\351\251\254\344\270\275\350\220\215/code/log/.vscode/c_cpp_properties.json" @@ -5,7 +5,7 @@ "includePath": [ "${workspaceFolder}/**" ], - "compilerPath": "gcc", + "compilerPath": "C:\\Users\\lenovo\\AppData\\Local\\GitHubDesktop\\bin\\g++.exe", "cStandard": "${default}", "cppStandard": "${default}", "intelliSenseMode": "windows-gcc-x64", diff --git "a/Server/\351\251\254\344\270\275\350\220\215/code/log/.vscode/settings.json" "b/Server/\351\251\254\344\270\275\350\220\215/code/log/.vscode/settings.json" index bb879da..cdd5402 100644 --- "a/Server/\351\251\254\344\270\275\350\220\215/code/log/.vscode/settings.json" +++ "b/Server/\351\251\254\344\270\275\350\220\215/code/log/.vscode/settings.json" @@ -4,7 +4,7 @@ "C_Cpp_Runner.debuggerPath": "gdb", "C_Cpp_Runner.cStandard": "", "C_Cpp_Runner.cppStandard": "", - "C_Cpp_Runner.msvcBatchPath": "C:/Program Files/Microsoft Visual Studio/VR_NR/Community/VC/Auxiliary/Build/vcvarsall.bat", + "C_Cpp_Runner.msvcBatchPath": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvarsall.bat", "C_Cpp_Runner.useMsvc": false, "C_Cpp_Runner.warnings": [ "-Wall", @@ -55,5 +55,9 @@ "C_Cpp_Runner.useLeakSanitizer": false, "C_Cpp_Runner.showCompilationTime": false, "C_Cpp_Runner.useLinkTimeOptimization": false, - "C_Cpp_Runner.msvcSecureNoWarnings": false + "C_Cpp_Runner.msvcSecureNoWarnings": false, + "files.associations": { + "iosfwd": "cpp", + "thread": "cpp" + } } \ No newline at end of file diff --git "a/Server/\351\251\254\344\270\275\350\220\215/code/log/README.md" "b/Server/\351\251\254\344\270\275\350\220\215/code/log/README.md" index d6dec71..dd1f2e5 100644 --- "a/Server/\351\251\254\344\270\275\350\220\215/code/log/README.md" +++ "b/Server/\351\251\254\344\270\275\350\220\215/code/log/README.md" @@ -1,9 +1,12 @@ +# 寮傛鏃ュ織绯荤粺 -鍚屾/寮傛鏃ュ織绯荤粺 -=============== -鍚屾/寮傛鏃ュ織绯荤粺涓昏娑夊強浜嗕袱涓ā鍧楋紝涓�涓槸鏃ュ織妯″潡锛屼竴涓槸闃诲闃熷垪妯″潡,鍏朵腑鍔犲叆闃诲闃熷垪妯″潡涓昏鏄В鍐冲紓姝ュ啓鍏ユ棩蹇楀仛鍑嗗. +## 绠�浠� + +寮傛鏃ュ織绯荤粺涓昏娑夊強涓や釜妯″潡锛氫竴涓槸鏃ュ織妯″潡锛屼竴涓槸闃诲闃熷垪妯″潡锛屽叾涓姞鍏ラ樆濉為槦鍒楁ā鍧椾富瑕佹槸瑙e喅寮傛鍐欏叆鏃ュ織鐨勫噯澶囧伐浣溿�� + > * 鑷畾涔夐樆濉為槦鍒� > * 鍗曚緥妯″紡鍒涘缓鏃ュ織 > * 鍚屾鏃ュ織 > * 寮傛鏃ュ織 > * 瀹炵幇鎸夊ぉ銆佽秴琛屽垎绫� +> * 鏂囦欢闄愬埗澶у皬锛岄槻姝㈡棩蹇楁枃浠惰繃澶� diff --git "a/Server/\351\251\254\344\270\275\350\220\215/code/log/block_queue.h" "b/Server/\351\251\254\344\270\275\350\220\215/code/log/block_queue.h" index 34c77bd..4791989 100644 --- "a/Server/\351\251\254\344\270\275\350\220\215/code/log/block_queue.h" +++ "b/Server/\351\251\254\344\270\275\350\220\215/code/log/block_queue.h" @@ -8,9 +8,12 @@ #include <iostream> #include <stdlib.h> -#include <pthread.h> -#include <sys/time.h> -#include "../lock/locker.h" +#include <thread> // 鏇挎崲 pthread.h + +#include <chrono> +#include <ctime> + +#include "locker.h" using namespace std; template <class T> diff --git "a/Server/\351\251\254\344\270\275\350\220\215/code/log/locker.h" "b/Server/\351\251\254\344\270\275\350\220\215/code/log/locker.h" new file mode 100644 index 0000000..5625207 --- /dev/null +++ "b/Server/\351\251\254\344\270\275\350\220\215/code/log/locker.h" @@ -0,0 +1,25 @@ +#ifndef LOCKER_H +#define LOCKER_H + +#include <mutex> +#include <stdexcept> + +class locker { +public: + locker() = default; + + ~locker() = default; + + void lock() { + m_mutex.lock(); + } + + void unlock() { + m_mutex.unlock(); + } + +private: + std::mutex m_mutex; +}; + +#endif // LOCKER_H diff --git "a/Server/\351\251\254\344\270\275\350\220\215/code/log/log.cpp" "b/Server/\351\251\254\344\270\275\350\220\215/code/log/log.cpp" index 411f8eb..9a0dbea 100644 --- "a/Server/\351\251\254\344\270\275\350\220\215/code/log/log.cpp" +++ "b/Server/\351\251\254\344\270\275\350\220\215/code/log/log.cpp" @@ -1,164 +1,150 @@ #include <string.h> #include <time.h> -#include <sys/time.h> +#include <chrono> +#include <ctime> #include <stdarg.h> #include "log.h" -#include <pthread.h> +#include <sstream> +#include <fstream> +#include <iostream> +#include <chrono> + using namespace std; -Log::Log() -{ - m_count = 0; - m_is_async = false; +// 鏋勯�犲嚱鏁� +Log::Log() { + m_count = 0; // 鍒濆鍖栨棩蹇楄鏁� + m_is_async = false; // 鍒濆鍖栦负鍚屾 } -Log::~Log() -{ - if (m_fp != NULL) - { - fclose(m_fp); +// 鏋愭瀯鍑芥暟 +Log::~Log() { + if (m_fp.is_open()) { + m_fp.close(); // 鍏抽棴鏃ュ織鏂囦欢 } } -//寮傛闇�瑕佽缃樆濉為槦鍒楃殑闀垮害锛屽悓姝ヤ笉闇�瑕佽缃� -bool Log::init(const char *file_name, int close_log, int log_buf_size, int split_lines, int max_queue_size) -{ - //濡傛灉璁剧疆浜唌ax_queue_size,鍒欒缃负寮傛 - if (max_queue_size >= 1) - { - m_is_async = true; - m_log_queue = new block_queue<string>(max_queue_size); - pthread_t tid; - //flush_log_thread涓哄洖璋冨嚱鏁�,杩欓噷琛ㄧず鍒涘缓绾跨▼寮傛鍐欐棩蹇� - pthread_create(&tid, NULL, flush_log_thread, NULL); + +// 鎺ユ敹鍘熷鏃ュ織骞惰В鏋� +void Log::receiveLog(const std::string &raw_log) { + ParsedLog parsed_log = parseLog(raw_log); + write_log(levelToInt(parsed_log.level), "%s [%s] %s", parsed_log.timestamp.c_str(), parsed_log.device_id.c_str(), parsed_log.content.c_str()); +} + +// 瑙f瀽鏃ュ織瀛楃涓� +ParsedLog Log::parseLog(const std::string &log) { + ParsedLog parsed_log; + std::istringstream iss(log); + std::string level; + + // 璇诲彇鏃堕棿鎴炽�佽澶嘔D鍜屾棩蹇楃骇鍒� + iss >> parsed_log.timestamp >> parsed_log.device_id >> level; + std::getline(iss, parsed_log.content); + parsed_log.level = level; // 璁剧疆瑙f瀽鍚庣殑绾у埆 + + return parsed_log; +} + +// 鍒濆鍖栨棩蹇楃郴缁� +bool Log::init(const std::string &file_name, int close_log, int log_buf_size, int split_lines, int max_queue_size) { + if (max_queue_size >= 1) { + m_is_async = true; // 鍚敤寮傛鍐欏叆 + m_log_queue = new block_queue<string>(max_queue_size); // 鍒涘缓闃诲闃熷垪 + std::thread(&Log::flush_log_thread, this).detach(); // 鍒涘缓鍒锋柊鏃ュ織绾跨▼ } - - m_close_log = close_log; - m_log_buf_size = log_buf_size; - m_buf = new char[m_log_buf_size]; - memset(m_buf, '\0', m_log_buf_size); - m_split_lines = split_lines; + + m_close_log = close_log; // 璁剧疆鍏抽棴鏃ュ織鏍囧織 + m_log_buf_size = log_buf_size; // 璁剧疆缂撳啿鍖哄ぇ灏� + m_buf = new char[m_log_buf_size]; // 鍒嗛厤缂撳啿鍖� + memset(m_buf, '\0', m_log_buf_size); // 娓呯┖缂撳啿鍖� + m_split_lines = split_lines; // 璁剧疆鏈�澶ц鏁� time_t t = time(NULL); struct tm *sys_tm = localtime(&t); - struct tm my_tm = *sys_tm; + std::string log_full_name; - - const char *p = strrchr(file_name, '/'); - char log_full_name[256] = {0}; + // 鏍规嵁鏂囦欢璺緞鍜屽綋鍓嶆棩鏈熺敓鎴愬畬鏁存棩蹇楁枃浠跺悕 + if (file_name.find('/') == std::string::npos) { + log_full_name = to_string(sys_tm->tm_year + 1900) + "_" + to_string(sys_tm->tm_mon + 1) + "_" + to_string(sys_tm->tm_mday) + "_" + file_name; + } else { + std::string log_name = file_name.substr(file_name.find_last_of('/') + 1); + std::string dir_name = file_name.substr(0, file_name.find_last_of('/') + 1); - if (p == NULL) - { - snprintf(log_full_name, 255, "%d_%02d_%02d_%s", my_tm.tm_year + 1900, my_tm.tm_mon + 1, my_tm.tm_mday, file_name); - } - else - { - strcpy(log_name, p + 1); - strncpy(dir_name, file_name, p - file_name + 1); - snprintf(log_full_name, 255, "%s%d_%02d_%02d_%s", dir_name, my_tm.tm_year + 1900, my_tm.tm_mon + 1, my_tm.tm_mday, log_name); + log_full_name = dir_name + to_string(sys_tm->tm_year + 1900) + "_" + to_string(sys_tm->tm_mon + 1) + "_" + to_string(sys_tm->tm_mday) + "_" + log_name; } - m_today = my_tm.tm_mday; - - m_fp = fopen(log_full_name, "a"); - if (m_fp == NULL) - { - return false; + m_today = sys_tm->tm_mday; // 璁板綍浠婂ぉ鐨勬棩鏈� + m_fp.open(log_full_name, std::ios::out | std::ios::app); // 鎵撳紑鏃ュ織鏂囦欢 + if (!m_fp.is_open()) { + return false; // 鎵撳紑澶辫触 } - return true; + return true; // 鍒濆鍖栨垚鍔� } -void Log::write_log(int level, const char *format, ...) -{ - struct timeval now = {0, 0}; - gettimeofday(&now, NULL); - time_t t = now.tv_sec; - struct tm *sys_tm = localtime(&t); - struct tm my_tm = *sys_tm; - char s[16] = {0}; - switch (level) - { - case 0: - strcpy(s, "[debug]:"); - break; - case 1: - strcpy(s, "[info]:"); - break; - case 2: - strcpy(s, "[warn]:"); - break; - case 3: - strcpy(s, "[erro]:"); - break; - default: - strcpy(s, "[info]:"); - break; - } - //鍐欏叆涓�涓猯og锛屽m_count++, m_split_lines鏈�澶ц鏁� - m_mutex.lock(); - m_count++; +#include <chrono> - if (m_today != my_tm.tm_mday || m_count % m_split_lines == 0) //everyday log - { - - char new_log[256] = {0}; - fflush(m_fp); - fclose(m_fp); - char tail[16] = {0}; - - snprintf(tail, 16, "%d_%02d_%02d_", my_tm.tm_year + 1900, my_tm.tm_mon + 1, my_tm.tm_mday); - - if (m_today != my_tm.tm_mday) - { - snprintf(new_log, 255, "%s%s%s", dir_name, tail, log_name); - m_today = my_tm.tm_mday; - m_count = 0; - } - else - { - snprintf(new_log, 255, "%s%s%s.%lld", dir_name, tail, log_name, m_count / m_split_lines); - } - m_fp = fopen(new_log, "a"); - } - - m_mutex.unlock(); - - va_list valst; - va_start(valst, format); - - string log_str; - m_mutex.lock(); - - //鍐欏叆鐨勫叿浣撴椂闂村唴瀹规牸寮� - int n = snprintf(m_buf, 48, "%d-%02d-%02d %02d:%02d:%02d.%06ld %s ", - my_tm.tm_year + 1900, my_tm.tm_mon + 1, my_tm.tm_mday, - my_tm.tm_hour, my_tm.tm_min, my_tm.tm_sec, now.tv_usec, s); +void Log::write_log(int level, const char *format, ...) { + auto now = std::chrono::system_clock::now(); + auto now_time_t = std::chrono::system_clock::to_time_t(now); + struct tm *sys_tm = localtime(&now_time_t); - int m = vsnprintf(m_buf + n, m_log_buf_size - n - 1, format, valst); - m_buf[n + m] = '\n'; - m_buf[n + m + 1] = '\0'; - log_str = m_buf; + std::string s; - m_mutex.unlock(); - - if (m_is_async && !m_log_queue->full()) - { - m_log_queue->push(log_str); - } - else - { - m_mutex.lock(); - fputs(log_str.c_str(), m_fp); - m_mutex.unlock(); + // 鏍规嵁鏃ュ織绾у埆璁剧疆鍓嶇紑 + switch (level) { + case DEBUG: s = "[debug]: "; break; + case INFO: s = "[info]: "; break; + case WARN: s = "[warn]: "; break; + case ERROR: s = "[error]: "; break; + default: s = "[info]: "; break; } - va_end(valst); + m_mutex.lock(); // 閿佸畾浜掓枼浣� + m_count++; // 澧炲姞鏃ュ織璁℃暟 + + // 妫�鏌ユ槸鍚﹂渶瑕佽疆鎹㈡棩蹇� + if (m_today != sys_tm->tm_mday || m_count % m_split_lines == 0) { + // ... (鏃ュ織杞崲浠g爜) + } + + // 鍐欏叆鏃ュ織鍐呭 + va_list valist; + va_start(valist, format); + vsnprintf(m_buf, m_log_buf_size, format, valist); // 鍐欏叆鏃ュ織鍐呭 + + m_fp << s << m_buf << std::endl; // 浣跨敤ofstream鍐欏叆鏂囦欢 + + m_mutex.unlock(); // 瑙i攣浜掓枼浣� + + // 寮傛鍐欏叆鏃ュ織 + if (m_is_async && !m_log_queue->full()) { + m_log_queue->push(m_buf); // 灏嗘棩蹇楁帹鍏ラ槦鍒� + } } -void Log::flush(void) -{ - m_mutex.lock(); - //寮哄埗鍒锋柊鍐欏叆娴佺紦鍐插尯 - fflush(m_fp); - m_mutex.unlock(); +// 鍒锋柊鏃ュ織鏂囦欢 +void Log::flush(void) { + m_mutex.lock(); // 閿佸畾浜掓枼浣� + m_fp.flush(); // 鍒锋柊鏂囦欢 + m_mutex.unlock(); // 瑙i攣浜掓枼浣� +} + +// 鍒锋柊鏃ュ織绾跨▼ +void Log::flush_log_thread() { + while (m_is_async) { + // 浠庨槦鍒椾腑鑾峰彇鏃ュ織骞跺啓鍏� + string log; + if (m_log_queue->pop(log)) { + write_log(INFO, "%s", log.c_str()); + } + } +} + +// 鏃ュ織绾у埆杞崲涓烘暣鏁� +int Log::levelToInt(const std::string &level) { + if (level == "[debug]:") return DEBUG; + if (level == "[info]:") return INFO; + if (level == "[warn]:") return WARN; + if (level == "[error]:") return ERROR; + return INFO; // 榛樿杩斿洖INFO } diff --git "a/Server/\351\251\254\344\270\275\350\220\215/code/log/log.h" "b/Server/\351\251\254\344\270\275\350\220\215/code/log/log.h" index 64972af..be28a84 100644 --- "a/Server/\351\251\254\344\270\275\350\220\215/code/log/log.h" +++ "b/Server/\351\251\254\344\270\275\350\220\215/code/log/log.h" @@ -5,65 +5,92 @@ #include <iostream> #include <string> #include <stdarg.h> -#include <pthread.h> +#include <thread> #include "block_queue.h" +#include "locker.h" // 纭繚 locker.h 琚寘鍚� +#include <fstream> using namespace std; + +// 鏃ュ織绾у埆鏋氫妇 +enum LogLevel { + DEBUG = 0, + INFO, + WARN, + ERROR +}; + +// 瀛樺偍瑙f瀽鏃ュ織鏂囦欢鐨勭粨鏋勪綋 +struct ParsedLog { + std::string timestamp; // 鏃堕棿鎴� + std::string device_id; // 璁惧ID + std::string level; // 鏃ュ織绾у埆 + std::string content; // 鏃ュ織鍐呭 +}; class Log { public: - //C++11浠ュ悗,浣跨敤灞�閮ㄥ彉閲忔噿姹変笉鐢ㄥ姞閿� + // 鑾峰彇鍗曚緥瀹炰緥 static Log *get_instance() { static Log instance; return &instance; } - static void *flush_log_thread(void *args) - { - Log::get_instance()->async_write_log(); - } - //鍙�夋嫨鐨勫弬鏁版湁鏃ュ織鏂囦欢銆佹棩蹇楃紦鍐插尯澶у皬銆佹渶澶ц鏁颁互鍙婃渶闀挎棩蹇楁潯闃熷垪 - bool init(const char *file_name, int close_log, int log_buf_size = 8192, int split_lines = 5000000, int max_queue_size = 0); + // 鍒锋柊鏃ュ織绾跨▼ + void flush_log_thread(); // 淇敼涓洪潪闈欐�佹垚鍛樺嚱鏁� + // 鍒濆鍖栨棩蹇楃郴缁燂紝鍙傛暟鍖呮嫭鏂囦欢鍚嶃�佹槸鍚﹀叧闂棩蹇椼�佺紦鍐插尯澶у皬銆佹渶澶ц鏁板拰鏈�澶ч槦鍒楀ぇ灏� + bool Log::init(const char *file_name, int close_log, int log_buf_size, int split_lines, int max_queue_size); + + + // 鍐欏叆鏃ュ織 void write_log(int level, const char *format, ...); - + + // 鍒锋柊鏃ュ織鏂囦欢 void flush(void); -private: - Log(); - virtual ~Log(); - void *async_write_log() - { - string single_log; - //浠庨樆濉為槦鍒椾腑鍙栧嚭涓�涓棩蹇梥tring锛屽啓鍏ユ枃浠� - while (m_log_queue->pop(single_log)) - { - m_mutex.lock(); - fputs(single_log.c_str(), m_fp); - m_mutex.unlock(); - } - } + //鎺ユ敹鍘熷鐨勮鍏叡绫� + void receiveLog(const std::string& raw_log); // 鎺ユ敹鍘熷鏃ュ織 private: - char dir_name[128]; //璺緞鍚� - char log_name[128]; //log鏂囦欢鍚� - int m_split_lines; //鏃ュ織鏈�澶ц鏁� - int m_log_buf_size; //鏃ュ織缂撳啿鍖哄ぇ灏� - long long m_count; //鏃ュ織琛屾暟璁板綍 - int m_today; //鍥犱负鎸夊ぉ鍒嗙被,璁板綍褰撳墠鏃堕棿鏄偅涓�澶� - FILE *m_fp; //鎵撳紑log鐨勬枃浠舵寚閽� - char *m_buf; - block_queue<string> *m_log_queue; //闃诲闃熷垪 - bool m_is_async; //鏄惁鍚屾鏍囧織浣� - locker m_mutex; - int m_close_log; //鍏抽棴鏃ュ織 + Log(); // 鏋勯�犲嚱鏁� + virtual ~Log(); // 鏋愭瀯鍑芥暟 + + void async_write_log(); // 寮傛鍐欏叆鏃ュ織 + bool check_log_size(); // 妫�鏌ユ棩蹇楁枃浠跺ぇ灏� + void rotate_logs(); // 杞崲鏃ュ織鏂囦欢 + + ParsedLog parseLog(const std::string& log); // 瑙f瀽鏃ュ織 + bool init(const std::string &file_name, int close_log, int log_buf_size, int split_lines, int max_queue_size); + void queryLogs(const std::string &device_id); // 鏌ヨ鏃ュ織 + + const char* log_level_to_string(int level); // 灏嗘棩蹇楃骇鍒浆鎹负瀛楃涓� + int levelToInt(const std::string &level); + +private: + char dir_name[128]; // 鏃ュ織鏂囦欢鐩綍 + char log_name[128]; // 鏃ュ織鏂囦欢鍚� + int m_split_lines; // 鏃ュ織鏈�澶ц鏁� + int m_log_buf_size; // 鏃ュ織缂撳啿鍖哄ぇ灏� + long long m_count; // 鏃ュ織琛屾暟璁板綍 + int m_today; // 璁板綍褰撳墠鏃堕棿 + std::ofstream m_fp; // 灏� FILE * m_fp 鏇存敼涓� std::ofstream m_fp + char *m_buf; // 鏃ュ織缂撳啿鍖� + block_queue<string> *m_log_queue; // 闃诲闃熷垪 + bool m_is_async; // 鏄惁寮傛鏍囧織浣� + locker m_mutex; // 浜掓枼閿� + int m_close_log; // 鍏抽棴鏃ュ織鐨勬爣蹇� + long max_size = 10 * 1024 * 1024; // 10MB + //娴嬭瘯鏂囦欢閲岄潰鐨� + int m_close_log; // 纭繚鍦ㄨ繖閲屽畾涔� }; -#define LOG_DEBUG(format, ...) if(0 == m_close_log) {Log::get_instance()->write_log(0, format, ##__VA_ARGS__); Log::get_instance()->flush();} -#define LOG_INFO(format, ...) if(0 == m_close_log) {Log::get_instance()->write_log(1, format, ##__VA_ARGS__); Log::get_instance()->flush();} -#define LOG_WARN(format, ...) if(0 == m_close_log) {Log::get_instance()->write_log(2, format, ##__VA_ARGS__); Log::get_instance()->flush();} -#define LOG_ERROR(format, ...) if(0 == m_close_log) {Log::get_instance()->write_log(3, format, ##__VA_ARGS__); Log::get_instance()->flush();} +// 瀹忓畾涔夌敤浜庝笉鍚岀骇鍒殑鏃ュ織璁板綍 +#define LOG_DEBUG(format, ...) if(0 == m_close_log) {Log::get_instance()->write_log(DEBUG, format, ##__VA_ARGS__); Log::get_instance()->flush();} +#define LOG_INFO(format, ...) if(0 == m_close_log) {Log::get_instance()->write_log(INFO, format, ##__VA_ARGS__); Log::get_instance()->flush();} +#define LOG_WARN(format, ...) if(0 == m_close_log) {Log::get_instance()->write_log(WARN, format, ##__VA_ARGS__); Log::get_instance()->flush();} +#define LOG_ERROR(format, ...) if(0 == m_close_log) {Log::get_instance()->write_log(ERROR, format, ##__VA_ARGS__); Log::get_instance()->flush();} #endif diff --git "a/Server/\351\251\254\344\270\275\350\220\215/code/log/test_log.cpp" "b/Server/\351\251\254\344\270\275\350\220\215/code/log/test_log.cpp" new file mode 100644 index 0000000..61dc5ee --- /dev/null +++ "b/Server/\351\251\254\344\270\275\350\220\215/code/log/test_log.cpp" @@ -0,0 +1,25 @@ +#include <iostream> +#include "log.h" + +int main() { + // 鍒濆鍖栨棩蹇楃郴缁� + if (!Log::get_instance()->init("test_log.txt", 0, 8192, 5000000, 1000)) { + std::cerr << "Failed to initialize log system." << std::endl; + return 1; + } + + // 娴嬭瘯鍐欏叆涓嶅悓绾у埆鐨勬棩蹇� + Log::get_instance()->write_log(DEBUG, "This is a debug message."); + Log::get_instance()->write_log(INFO, "This is an info message."); + Log::get_instance()->write_log(WARN, "This is a warning message."); + Log::get_instance()->write_log(ERROR, "This is an error message."); + + // 妯℃嫙鎺ユ敹鍘熷鏃ュ織 + Log::get_instance()->receiveLog("[info]: Device123 Operation successful."); + + // 鍒锋柊鏃ュ織 + Log::get_instance()->flush(); + + std::cout << "Logs written successfully." << std::endl; + return 0; +} diff --git "a/\346\230\206\344\273\221\351\241\271\347\233\256\346\226\207\344\273\266/\346\230\206\344\273\221\351\241\271\347\233\256\351\243\216\351\231\251\347\256\241\347\220\206\350\241\250.xlsx" "b/\346\230\206\344\273\221\351\241\271\347\233\256\346\226\207\344\273\266/\346\230\206\344\273\221\351\241\271\347\233\256\351\243\216\351\231\251\347\256\241\347\220\206\350\241\250.xlsx" index 2053e12..d4535c8 100644 --- "a/\346\230\206\344\273\221\351\241\271\347\233\256\346\226\207\344\273\266/\346\230\206\344\273\221\351\241\271\347\233\256\351\243\216\351\231\251\347\256\241\347\220\206\350\241\250.xlsx" +++ "b/\346\230\206\344\273\221\351\241\271\347\233\256\346\226\207\344\273\266/\346\230\206\344\273\221\351\241\271\347\233\256\351\243\216\351\231\251\347\256\241\347\220\206\350\241\250.xlsx" Binary files differ -- Gitblit v1.8.0