ver:v0.2.4发布。

This commit is contained in:
2025-11-25 23:48:21 +08:00
parent 7e9b88402c
commit accf2b8123
5 changed files with 11 additions and 6 deletions

View File

@@ -4,6 +4,7 @@
"cmake.configureOnOpen": true, "cmake.configureOnOpen": true,
"editor.fontFamily": "'Maple Mono NL NF CN Light', 'Maple Mono NL NF CN Light', 'Maple Mono NL NF CN Light'", "editor.fontFamily": "'Maple Mono NL NF CN Light', 'Maple Mono NL NF CN Light', 'Maple Mono NL NF CN Light'",
"cmake.debugConfig": { "cmake.debugConfig": {
"type": "lldb",
"console": "externalTerminal", "console": "externalTerminal",
"setupCommands": [ "setupCommands": [
{ {
@@ -12,11 +13,10 @@
"ignoreFailures": true "ignoreFailures": true
} }
], ],
"visualizerFile": "${workspaceRoot}/.vscode/qt5.natvis",
"args": [] "args": []
}, },
"cmake.configureSettings": { "cmake.configureSettings": {
"CMAKE_PREFIX_PATH": "C:/Qt/Qt6", "CMAKE_PREFIX_PATH": "C:/local/Qt6",
}, },
"cmake.configureArgs": [ "cmake.configureArgs": [
"-Wno-dev", "-Wno-dev",

View File

@@ -38,6 +38,11 @@ int main(int argc, char* argv[])
auto core = std::make_shared<ClientCore>(); auto core = std::make_shared<ClientCore>();
auto helper = std::make_shared<ConsoleHelper>(); auto helper = std::make_shared<ConsoleHelper>();
QObject::connect(core.get(), &ClientCore::conFailed, [&app](){
qWarning() << "Abnormal state, quit...";
app.exit();
});
helper->SetIpPort(argv[1], QString("%1").arg(argv[2]).toInt()); helper->SetIpPort(argv[1], QString("%1").arg(argv[2]).toInt());
helper->RunWorker(core.get()); helper->RunWorker(core.get());
helper->Connect(); helper->Connect();

View File

@@ -38,8 +38,8 @@ public:
void SetType(const QString& sendType, const QString& ansType); void SetType(const QString& sendType, const QString& ansType);
void SetPath(const QString& stra, const QString& strb, const QString& type); void SetPath(const QString& stra, const QString& strb, const QString& type);
InfoMsg GetMsg() const; InfoMsg GetMsg() const;
virtual void interrupCheck(); void interrupCheck() override;
virtual void recvFrame(QSharedPointer<FrameBuffer> frame); void recvFrame(QSharedPointer<FrameBuffer> frame) override;
private: private:
bool recvMsg_{}; bool recvMsg_{};

View File

@@ -18,7 +18,7 @@ public:
protected: protected:
void dropEvent(QDropEvent* event) override; void dropEvent(QDropEvent* event) override;
void dragEnterEvent(QDragEnterEvent* event); void dragEnterEvent(QDragEnterEvent* event) override;
private: private:
bool isResource_{}; bool isResource_{};

View File

@@ -22,7 +22,7 @@ public:
protected: protected:
void dropEvent(QDropEvent* event) override; void dropEvent(QDropEvent* event) override;
void dragEnterEvent(QDragEnterEvent* event); void dragEnterEvent(QDragEnterEvent* event) override;
protected: protected:
bool isRemote_{false}; bool isRemote_{false};