-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
TYPE(FEAT): ToggleFullScreen Shortcut #6943
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -115,6 +115,7 @@ class MainWindow : public QMainWindow, public Ui::MainWindow { | |
| GlobalShortcut *gsMoveBack; | ||
| GlobalShortcut *gsCycleListenerAttenuationMode, *gsListenerAttenuationUp, *gsListenerAttenuationDown; | ||
| GlobalShortcut *gsAdaptivePush; | ||
| GlobalShortcut *gsToggleFullScreen; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainVerify that the handler slot is implemented. The declaration of Please verify that:
Run the following script to check if the handler is implemented: 🏁 Script executed: #!/bin/bash
# Search for the handler slot declaration and implementation
rg -n "on_gsToggleFullScreen" --type=cpp --type=hLength of output: 0 🏁 Script executed: #!/bin/bash
# Search for any references to gsToggleFullScreen across the repository
rg -n "gsToggleFullScreen" -C2Length of output: 919 🏁 Script executed: #!/bin/bash
# Show context around gsToggleFullScreen instantiation and any connect calls
rg -n -C5 "gsToggleFullScreen" src/mumble/MainWindow.cppLength of output: 685 🏁 Script executed: #!/bin/bash
rg -n "connectSlotsByName" src/mumble/MainWindow.cpp
rg -n -C3 "on_gsToggleSearch_triggered" src/mumble/MainWindow.hLength of output: 412 Add missing fullscreen toggle slot 🤖 Prompt for AI Agents |
||
|
|
||
| DockTitleBar *dtbLogDockTitle, *dtbChatDockTitle; | ||
|
|
||
|
|
||
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.
🧩 Analysis chain
Fix display name formatting and connect the shortcut to its handler.
There are two issues with this initialization:
Inconsistent display name: The display name
"ToggleFullScreen"(line 459) doesn't follow the naming convention used by other shortcuts in this file. Compare with:"Toggle positional audio""Move back""Toggle search dialog"It should be
"Toggle fullscreen"or"Toggle full screen"with spaces and consistent capitalization.Missing handler connection: Unlike other global shortcuts (e.g., line 533 shows
gsMinimalconnected toqaConfigMinimal), I don't see wheregsToggleFullScreenis connected to its handler. The shortcut needs to be connected to either:on_gsToggleFullScreen_triggeredthat implements the toggle logicApply this diff to fix the display name:
Additionally, please verify where the handler connection is made, or add the appropriate connection and implementation. For reference, see how other shortcuts are connected around line 531-533 in setupGui().
Run the following script to verify if the handler connection exists:
🏁 Script executed:
Length of output: 0
🏁 Script executed:
Length of output: 20501
Fix display name, tooltip, and add missing gsToggleFullScreen handler connection
connect(gsToggleFullScreen, SIGNAL(down(QVariant)), this, SLOT(on_gsToggleFullScreen_triggered(QVariant)));Implement
on_gsToggleFullScreen_triggered(...)to toggle the window’s fullscreen state.🤖 Prompt for AI Agents