This commit is contained in:
zhuzichu 2024-07-04 00:23:00 +08:00
parent 8d1ee6fc36
commit 5794d8d9ce
6 changed files with 29 additions and 27 deletions

View File

@ -143,22 +143,22 @@
<context> <context>
<name>InitializrHelper</name> <name>InitializrHelper</name>
<message> <message>
<location filename="src/helper/InitializrHelper.cpp" line="69"/> <location filename="src/helper/InitializrHelper.cpp" line="70"/>
<source>The name cannot be empty</source> <source>The name cannot be empty</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<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> <source>The creation path cannot be empty</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<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> <source>The path does not exist</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="src/helper/InitializrHelper.cpp" line="84"/> <location filename="src/helper/InitializrHelper.cpp" line="85"/>
<source>%1 folder already exists</source> <source>%1 folder already exists</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

View File

@ -143,22 +143,22 @@
<context> <context>
<name>InitializrHelper</name> <name>InitializrHelper</name>
<message> <message>
<location filename="src/helper/InitializrHelper.cpp" line="69"/> <location filename="src/helper/InitializrHelper.cpp" line="70"/>
<source>The name cannot be empty</source> <source>The name cannot be empty</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<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> <source>The creation path cannot be empty</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<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> <source>The path does not exist</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="src/helper/InitializrHelper.cpp" line="84"/> <location filename="src/helper/InitializrHelper.cpp" line="85"/>
<source>%1 folder already exists</source> <source>%1 folder already exists</source>
<translation type="unfinished">%1 </translation> <translation type="unfinished">%1 </translation>
</message> </message>

View File

@ -2,16 +2,17 @@
#include <QObject> #include <QObject>
#include <QQmlApplicationEngine> #include <QQmlApplicationEngine>
#include "stdafx.h"
#include "singleton.h" #include "singleton.h"
#include "stdafx.h"
class AppInfo : public QObject { class AppInfo : public QObject {
Q_OBJECT Q_OBJECT
Q_PROPERTY_AUTO(QString, version) Q_PROPERTY_AUTO(QString, version)
private: private:
explicit AppInfo(QObject *parent = nullptr); explicit AppInfo(QObject *parent = nullptr);
public: public:
SINGLETON(AppInfo) SINGLETON(AppInfo)
Q_INVOKABLE [[maybe_unused]] void testCrash(); [[maybe_unused]] Q_INVOKABLE void testCrash();
}; };

View File

@ -13,7 +13,7 @@ class CircularReveal : public QQuickPaintedItem {
public: public:
explicit CircularReveal(QQuickItem *parent = nullptr); explicit CircularReveal(QQuickItem *parent = nullptr);
void paint(QPainter *painter) override; 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 imageChanged();
Q_SIGNAL void animationFinished(); Q_SIGNAL void animationFinished();
Q_SLOT void handleGrabResult(); Q_SLOT void handleGrabResult();

View File

@ -17,7 +17,7 @@ private:
public: public:
SINGLETON(InitializrHelper) SINGLETON(InitializrHelper)
~InitializrHelper() override; ~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 error(const QString &message);
Q_SIGNAL void success(const QString &path); Q_SIGNAL void success(const QString &path);
}; };

View File

@ -1,25 +1,26 @@
#include <QtQml/qqmlextensionplugin.h>
#include <QApplication> #include <QApplication>
#include <QDir>
#include <QLoggingCategory>
#include <QNetworkProxy>
#include <QProcess>
#include <QQmlApplicationEngine> #include <QQmlApplicationEngine>
#include <QQmlContext> #include <QQmlContext>
#include <QDir>
#include <QQuickWindow> #include <QQuickWindow>
#include <QNetworkProxy>
#include <QSslConfiguration> #include <QSslConfiguration>
#include <QProcess>
#include <QtQml/qqmlextensionplugin.h>
#include <QLoggingCategory>
#include "Version.h"
#include "AppInfo.h" #include "AppInfo.h"
#include "Version.h"
#include "helper/Log.h" #include "helper/Log.h"
#include "src/component/CircularReveal.h" #include "src/component/CircularReveal.h"
#include "src/component/FileWatcher.h" #include "src/component/FileWatcher.h"
#include "src/component/FpsItem.h" #include "src/component/FpsItem.h"
#include "src/component/OpenGLItem.h" #include "src/component/OpenGLItem.h"
#include "src/helper/SettingsHelper.h"
#include "src/helper/InitializrHelper.h" #include "src/helper/InitializrHelper.h"
#include "src/helper/TranslateHelper.h"
#include "src/helper/Network.h" #include "src/helper/Network.h"
#include "src/helper/SettingsHelper.h"
#include "src/helper/TranslateHelper.h"
#ifdef FLUENTUI_BUILD_STATIC_LIB #ifdef FLUENTUI_BUILD_STATIC_LIB
# if (QT_VERSION > QT_VERSION_CHECK(6, 2, 0)) # if (QT_VERSION > QT_VERSION_CHECK(6, 2, 0))