Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
朱子楚\zhuzi committed Aug 8, 2023
1 parent dba7332 commit 3c349da
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ endif()
file(TO_CMAKE_PATH "/" PATH_SEPARATOR)

#设置版本号
add_definitions(-DVERSION=1,4,0,0)
add_definitions(-DVERSION=1,5,0,0)

find_package(Qt6 REQUIRED COMPONENTS Quick Svg Network)

Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if(APPLE)
endif()

#设置版本号
add_definitions(-DVERSION=1,4,0,0)
add_definitions(-DVERSION=1,5,0,0)

find_package(Qt6 REQUIRED COMPONENTS Core Quick Qml)

Expand Down
2 changes: 1 addition & 1 deletion src/FluHttp.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class FluHttp : public QObject
public:
explicit FluHttp(QObject *parent = nullptr);
~FluHttp();
//神坑!!! 如果参数使用QVariantMap会有问题,在6.4.3版本中QML一调用就会编译失败。所有改用QMap<QString, QVariant>
//神坑!!! 如果参数使用QVariantMap会有问题,在6.4.3版本中QML一调用就会编译失败。所以改用QMap<QString, QVariant>
Q_INVOKABLE void get(QString url,QJSValue callable,QMap<QString, QVariant> = {},QMap<QString, QVariant> headers = {});
Q_INVOKABLE void post(QString url,QJSValue callable,QMap<QString, QVariant> = {},QMap<QString, QVariant> headers = {});
Q_INVOKABLE void postString(QString url,QJSValue callable,QString params = "",QMap<QString, QVariant> headers = {});
Expand Down

0 comments on commit 3c349da

Please sign in to comment.