-
Notifications
You must be signed in to change notification settings - Fork 37
fix: Add the functions of saving and restoring window status #288
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: Add the functions of saving and restoring window status #288
Conversation
Reviewer's GuideThis PR implements full window state persistence by introducing dedicated save/restore routines (including maximizing logic), updating lifecycle hooks to call them, and adding the corresponding configuration constant. ER diagram for window state persistence settingserDiagram
SETTINGS {
string MainWindowWidthName
string MainWindowHeightName
string MainWindowStateName
}
SETTINGS ||..|| MAINWINDOW : stores
Class diagram for updated MainWindow window state managementclassDiagram
class MainWindow {
+void saveConfigWinSize(int w, int h)
+void saveConfigWinState()
+void restoreConfigWinState()
-void saveConfigWinSize(int w, int h) (moved)
}
MainWindow --> QSettings : uses
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Realize the saving and restoration of the window state, including maximizing the state and size. The relevant functions have been updated to ensure that the state is correctly saved when the window is maximized and the saved state is applied when restored. Log: Add the functions of saving and restoring window status Bug: https://pms.uniontech.com/bug-view-318459.html
246a1e9 to
9ea146f
Compare
deepin pr auto review代码审查意见:
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: max-lvs, pppanghu77 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/merge |
Realize the saving and restoration of the window state, including maximizing the state and size. The relevant functions have been updated to ensure that the state is correctly saved when the window is maximized and the saved state is applied when restored.
Log: Add the functions of saving and restoring window status
Bug: https://pms.uniontech.com/bug-view-318459.html
Summary by Sourcery
Persist the main window’s size and maximization state across sessions using new saveConfigWinState and restoreConfigWinState methods
Bug Fixes:
Enhancements: