Compare commits

...

4 Commits

Author SHA1 Message Date
朱子楚\zhuzi 475cb54d73 update 2023-12-30 22:03:49 +08:00
朱子楚\zhuzi b0edf23f33 update 2023-12-30 21:10:49 +08:00
朱子楚\zhuzi c123db97b7 update 2023-12-30 20:34:14 +08:00
朱子楚\zhuzi 1450016c69 update 2023-12-30 20:33:33 +08:00
7 changed files with 20 additions and 4 deletions

View File

@ -55,6 +55,8 @@ jobs:
- name: package
run: |
# 先删除所有dSYM文件减少包的体积
sudo find /Users/runner/work/FluentUI/Qt/6.6.1/macos/qml -name "*.dSYM" | xargs rm -r
# 拷贝依赖
sudo macdeployqt bin/release/${targetName}.app -qmldir=. -dmg

View File

@ -94,6 +94,9 @@ QString Log::prettyProductInfoWrapper()
static inline void myMessageHandler(const QtMsgType type, const QMessageLogContext &context, const QString &message)
{
if(message == "Could not get the INetworkConnection instance for the adapter GUID."){
return;
}
if(logLevelMap[type]>g_logLevel){
return;
}
@ -165,12 +168,13 @@ static inline void myMessageHandler(const QtMsgType type, const QMessageLogConte
}
}
void Log::setup(const QString &app)
void Log::setup(const QString &app,int level)
{
Q_ASSERT(!app.isEmpty());
if (app.isEmpty()) {
return;
}
g_logLevel = level;
static bool once = false;
if (once) {
return;

View File

@ -5,7 +5,7 @@
namespace Log
{
QString prettyProductInfoWrapper();
void setup(const QString &app);
void setup(const QString &app,int level = 4);
}
#endif // LOG_H

View File

@ -44,4 +44,10 @@ private: \
return Singleton<Class>::getInstance(); \
}
#define HIDE_CONSTRUCTOR(Class) \
private: \
Class() = default; \
Class(const Class& other) = delete; \
Class& operator=(const Class& other) = delete;
#endif // SINGLETON_H

View File

@ -26,7 +26,6 @@ TextEdit {
anchors.fill: parent
cursorShape: Qt.IBeamCursor
acceptedButtons: Qt.RightButton
visible: !readOnly
onClicked: control.echoMode !== TextInput.Password && menu.popup()
}
FluTextBoxMenu{

View File

@ -26,7 +26,6 @@ TextEdit {
anchors.fill: parent
cursorShape: Qt.IBeamCursor
acceptedButtons: Qt.RightButton
visible: !readOnly
onClicked: control.echoMode !== TextInput.Password && menu.popup()
}
FluTextBoxMenu{

View File

@ -44,4 +44,10 @@ private: \
return Singleton<Class>::getInstance(); \
}
#define HIDE_CONSTRUCTOR(Class) \
private: \
Class() = default; \
Class(const Class& other) = delete; \
Class& operator=(const Class& other) = delete;
#endif // SINGLETON_H