Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuzichu committed Jul 3, 2024
1 parent 8d1ee6f commit 5794d8d
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 27 deletions.
8 changes: 4 additions & 4 deletions example/example_en_US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,22 +143,22 @@
<context>
<name>InitializrHelper</name>
<message>
<location filename="src/helper/InitializrHelper.cpp" line="69"/>
<location filename="src/helper/InitializrHelper.cpp" line="70"/>
<source>The name cannot be empty</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="src/helper/InitializrHelper.cpp" line="73"/>
<location filename="src/helper/InitializrHelper.cpp" line="74"/>
<source>The creation path cannot be empty</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="src/helper/InitializrHelper.cpp" line="78"/>
<location filename="src/helper/InitializrHelper.cpp" line="79"/>
<source>The path does not exist</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="src/helper/InitializrHelper.cpp" line="84"/>
<location filename="src/helper/InitializrHelper.cpp" line="85"/>
<source>%1 folder already exists</source>
<translation type="unfinished"></translation>
</message>
Expand Down
8 changes: 4 additions & 4 deletions example/example_zh_CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,22 +143,22 @@
<context>
<name>InitializrHelper</name>
<message>
<location filename="src/helper/InitializrHelper.cpp" line="69"/>
<location filename="src/helper/InitializrHelper.cpp" line="70"/>
<source>The name cannot be empty</source>
<translation type="unfinished">名称不能为空</translation>
</message>
<message>
<location filename="src/helper/InitializrHelper.cpp" line="73"/>
<location filename="src/helper/InitializrHelper.cpp" line="74"/>
<source>The creation path cannot be empty</source>
<translation type="unfinished">创建路径不能为空</translation>
</message>
<message>
<location filename="src/helper/InitializrHelper.cpp" line="78"/>
<location filename="src/helper/InitializrHelper.cpp" line="79"/>
<source>The path does not exist</source>
<translation type="unfinished">路径不存在</translation>
</message>
<message>
<location filename="src/helper/InitializrHelper.cpp" line="84"/>
<location filename="src/helper/InitializrHelper.cpp" line="85"/>
<source>%1 folder already exists</source>
<translation type="unfinished">%1 文件夹已经存在</translation>
</message>
Expand Down
17 changes: 9 additions & 8 deletions example/src/AppInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@

#include <QObject>
#include <QQmlApplicationEngine>
#include "stdafx.h"

#include "singleton.h"
#include "stdafx.h"

class AppInfo : public QObject {
Q_OBJECT
Q_PROPERTY_AUTO(QString, version)
private:
explicit AppInfo(QObject *parent = nullptr);
Q_OBJECT
Q_PROPERTY_AUTO(QString, version)
private:
explicit AppInfo(QObject *parent = nullptr);

public:
SINGLETON(AppInfo)
Q_INVOKABLE [[maybe_unused]] void testCrash();
public:
SINGLETON(AppInfo)
[[maybe_unused]] Q_INVOKABLE void testCrash();
};
2 changes: 1 addition & 1 deletion example/src/component/CircularReveal.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CircularReveal : public QQuickPaintedItem {
public:
explicit CircularReveal(QQuickItem *parent = nullptr);
void paint(QPainter *painter) override;
Q_INVOKABLE [[maybe_unused]] void start(int w, int h, const QPoint &center, int radius);
[[maybe_unused]] Q_INVOKABLE void start(int w, int h, const QPoint &center, int radius);
Q_SIGNAL void imageChanged();
Q_SIGNAL void animationFinished();
Q_SLOT void handleGrabResult();
Expand Down
2 changes: 1 addition & 1 deletion example/src/helper/InitializrHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class InitializrHelper : public QObject {
public:
SINGLETON(InitializrHelper)
~InitializrHelper() override;
Q_INVOKABLE [[maybe_unused]] void generate(const QString &name, const QString &path);
[[maybe_unused]] Q_INVOKABLE void generate(const QString &name, const QString &path);
Q_SIGNAL void error(const QString &message);
Q_SIGNAL void success(const QString &path);
};
19 changes: 10 additions & 9 deletions example/src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
#include <QtQml/qqmlextensionplugin.h>

#include <QApplication>
#include <QDir>
#include <QLoggingCategory>
#include <QNetworkProxy>
#include <QProcess>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include <QDir>
#include <QQuickWindow>
#include <QNetworkProxy>
#include <QSslConfiguration>
#include <QProcess>
#include <QtQml/qqmlextensionplugin.h>
#include <QLoggingCategory>
#include "Version.h"

#include "AppInfo.h"
#include "Version.h"
#include "helper/Log.h"
#include "src/component/CircularReveal.h"
#include "src/component/FileWatcher.h"
#include "src/component/FpsItem.h"
#include "src/component/OpenGLItem.h"
#include "src/helper/SettingsHelper.h"
#include "src/helper/InitializrHelper.h"
#include "src/helper/TranslateHelper.h"
#include "src/helper/Network.h"

#include "src/helper/SettingsHelper.h"
#include "src/helper/TranslateHelper.h"

#ifdef FLUENTUI_BUILD_STATIC_LIB
# if (QT_VERSION > QT_VERSION_CHECK(6, 2, 0))
Expand Down

0 comments on commit 5794d8d

Please sign in to comment.