-
Notifications
You must be signed in to change notification settings - Fork 0
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
Pieces Coloring Permutation + Keyboard Input with QKeyEvents #119
Merged
Conversation
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
a79c029
to
e4e64b7
Compare
* prototype dynamically created menu items * remove unused * color pixmap minor * function signatur does not matter (?) * try to fix Qt5 Builds * dynamically create color menu, use QSignalMapper, connect all signals and slots * fix clang compile * fix clang * remove debug code * developer menu-> enable all menu bar items * review
|
* fix error: mappedInt is not a member of QSignalMapper * experimental: type trait check for member function existance * try fix gcc, clang * try fix gcc, clang * type traits stuff * try fix a gcc warning * try fix error * try fix gcc * try fix a check * try another implementation * try to use new implementation * test for negation in static assert * remove the static_assert and use the obtained pointer. * Delete src/custom_traits.cpp * review * review: renaming, doc-comments * review --------- Co-authored-by: Daniel Wehmeyer <r0ost3r@users.noreply.github.com> Co-authored-by: Maximilian Starke <maximilian.starke@medionmail.com>
Necktschnagge
commented
Feb 18, 2024
@@ -234,6 +235,14 @@ | |||
<string>&Highlight generated target cells</string> | |||
</property> | |||
</action> | |||
<action name="actionEnableAllMenuBarItems"> |
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.
needs some DEBUG / DEVELOP mode.
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.
to be resolved in
* keyboard input * SVG output
Broken by last commit:
|
Necktschnagge
commented
Feb 19, 2024
Necktschnagge
commented
Feb 19, 2024
This reverts commit a02a801.
Necktschnagge
commented
Feb 19, 2024
Necktschnagge
commented
Feb 19, 2024
Necktschnagge
commented
Feb 19, 2024
Necktschnagge
commented
Feb 19, 2024
Necktschnagge
commented
Feb 19, 2024
Necktschnagge
commented
Feb 19, 2024
This was referenced Feb 19, 2024
color selection via main menu: permutation missing -> fixed in 6ab36ec |
r0ost3r
approved these changes
Feb 20, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Conclusion
Features and Fixes
grabKeyboard()
for in-game keyboard inputDetails
dependencies:
feature requests:
Add MenuBar->Input->KeyCapture->{ ON AUTO OFF }(only valid as long as wegrabKeyboard()
)manual tests prior to merge:
TODOs:
Acquired Knowledge:
Qt - informative:
design decisions:
Disadvantages of
grabKeyboard()
on the level of MainWindowvoid MainWindow::keyPressEvent(QKeyEvent* e)
eats the QKeyEvents.grabKeyboard()
Can we use the grabKeyboard on just the ui elements outside menubar-> SVG, ListView, TreeView in our case?
void keyPressEvent(QKeyEvent* e);
How to check for keyboard input when focus is on one of a certain list of widgets?
class controlKeyEventAgent
inheriting fromQObject
that has a member functionui->graphicsView->installEventFilter(&controlKeyEventAgent);