-
Notifications
You must be signed in to change notification settings - Fork 73
fix: runtime not correct #1133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: runtime not correct #1133
Conversation
Log: Change-Id: I3b0e46adb702f8190b1c178e819ccadcc5581e44
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deepin-mozart The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Warning
详情 {
"export": {
"debian/rules": {
"a": [
"export DEB_CFLAGS_MAINT_APPEND = -Wall -fPIE -fstack-protector-strong -D_FORTIFY_SOURCE=1 -fPIC",
"export DEB_CXXFLAGS_MAINT_APPEND = -Wall -fPIE -fstack-protector-strong -D_FORTIFY_SOURCE=1 -fPIC"
],
"b": [
"export DEB_CFLAGS_MAINT_APPEND = -Wall -fPIE -fstack-protector-strong -D_FORTIFY_SOURCE=2 -fPIC",
"export DEB_CXXFLAGS_MAINT_APPEND = -Wall -fPIE -fstack-protector-strong -D_FORTIFY_SOURCE=2 -fPIC"
]
}
}
} |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR corrects runtime plugin library loading by dynamically configuring library paths in main.cpp, revamps the CMake translation workflow for both Qt5/Qt6 (including mandatory LinguistTools, TS collection, translation targets, and installation), and removes obsolete code in the UI controller header. Sequence diagram for updated plugin library path setup at runtimesequenceDiagram
participant App as "Application Startup"
participant CustomPaths as "CustomPaths"
participant QCoreApp as "QCoreApplication"
participant LifeCycle as "LifeCycle"
App->>CustomPaths: global(DependLibs)
CustomPaths-->>App: dependlibs path
App->>QCoreApp: addLibraryPath(dependlibs)
App->>QCoreApp: addLibraryPath(pluginsPath)
App->>LifeCycle: setPluginPaths({pluginsPath})
App->>QCoreApp: libraryPaths()
App->>LifeCycle: pluginPaths()
Class diagram for updated UIController (controller.h)classDiagram
class UIController {
+void raiseMode(QString mode)
+void registerWidgetToMode(QString name, AbstractWidget* abstractWidget, QString mode, Position pos, bool replace, bool isVisible)
+void registerWidget(QString name, AbstractWidget* abstractWidget)
+void registerWidgetCreator(QString name, function<AbstractWidget*()> &widgetCreateFunc)
}
class AbstractWidget
UIController --> AbstractWidget
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
deepin pr auto review我来对这段代码变更进行详细审查:
总体建议:
建议添加的错误处理示例: QString dependlibs = CustomPaths::global(CustomPaths::DependLibs);
if (!QDir(dependlibs).exists()) {
qWarning() << "Dependency library path does not exist:" << dependlibs;
}
QCoreApplication::addLibraryPath(dependlibs); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
/forcemerge |
|
This pr force merged! (status: blocked) |
Log:
Change-Id: I3b0e46adb702f8190b1c178e819ccadcc5581e44
Summary by Sourcery
Enhance translation handling in CMake and fix runtime library path configuration for plugin loading
Bug Fixes:
Enhancements:
Chores: