forked from linuxdeepin/deepin-terminal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remove the limit of term splitting (linuxdeepin#353)
* feat: remove the limit of term splitting a feature request from here: https://bbs.deepin.org/post/277237 * fix: no term gets focus after closing one fix no term gets focus after closing one, which will cause crashes if you hit Alt+Q in sequence. * fix: change minimum size set on TermWidget original minimum size relies on the limit of one can only split the terminal once, since we removed the limits, the minimum size should change accordingly * fix: new term not showing in the right position fix the bug that new term not showing right after the old one after the splitting * fix: new term resized wrongly fix the bug that new term has wrong size after splitting * fix: disable splitting menu if there's no room disable splitting menu when there's no enough room for splitting * fix: shortcut can still do splitting on room left fix shortcut still work even when there's no room for splitting * fix: crash of unfound size createSubSplit has side effects, it removes the term form its parent, so find size of it in QSplitter::sizes crashes. * chore: some code refactory - change CanSplit to a public funtion of TermWidget - change MIN_WIDTH and MIN_HEIGHT of TermWidget to private
- Loading branch information
Showing
4 changed files
with
144 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters