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

View File

@@ -38,6 +38,11 @@ int main(int argc, char* argv[])
auto core = std::make_shared<ClientCore>();
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->RunWorker(core.get());
helper->Connect();

View File

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

View File

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

View File

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