Skip to content
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

Replace the tab key with 4 spaces in olstoy editor #1875

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rydrman
Copy link

@rydrman rydrman commented Sep 27, 2024

Description

Updates the osltoy application to use 4 spaces in the editor window instead of tab characters.

Tests

I'm not sure that this change warrants a test case, but I did launch the application and ensure that the tab key does indeed insert 4 spaces into the exitor.

Checklist:

  • I have read the contribution guidelines.
  • I have updated the documentation, if applicable.
  • I have ensured that the change is tested somewhere in the testsuite (adding new test cases if necessary).
  • My code follows the prevailing code style of this project. If I haven't
    already run clang-format v17 before submitting, I definitely will look at
    the CI test that runs clang-format and fix anything that it highlights as
    being nonconforming.

Copy link

linux-foundation-easycla bot commented Sep 27, 2024

CLA Not Signed

@rydrman
Copy link
Author

rydrman commented Sep 27, 2024

Sounds like ILM is going to handle the dev days CLAs all together in the coming days, but I'm aware that it needs to be done here still

@lgritz lgritz added Dev Days ASWF Dev Days suitable project devdays24 Dev Days 2024 labels Sep 27, 2024
Comment on lines +77 to +80
auto replacement
= QKeyEvent(QEvent::KeyPress, Qt::Key_Space,
Qt::KeyboardModifiers(event->nativeModifiers()),
" ");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm, in most editors, does TAB do the equivalent of hitting SPACE 4 times? Or does it do the number of spaces to take you to the next 4-space boundary?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, I'm not sure why I didn't think of that. I'll take another look when I have a moment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dev Days ASWF Dev Days suitable project devdays24 Dev Days 2024
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants