eteran / edb-debugger

edb is a cross-platform AArch32/x86/x86-64 debugger.
GNU General Public License v2.0
2.68k stars 322 forks source link

Typo in the UI - v.1.2.0 #777

Closed vitellolabs closed 3 years ago

vitellolabs commented 3 years ago

Hello, As seen bellow. There is a typo on the UI in Data Dump section.

image

The code located at: ./build/src/edb_autogen/include/ui_Debugger.h:437: dataDock->setWindowTitle(QCoreApplication::translate("Debugger", "Data D&ump", nullptr));

And another one on Stack view. image

The code at: ./build/src/edb_autogen/include/ui_Debugger.h:439: stackDock->setWindowTitle(QCoreApplication::translate("Debugger", "Stac&k", nullptr));

10110111 commented 3 years ago

It seems label buddies are broken. An older version, 6764e031c6fe406dd95cc3bf19c9494fc07a3659, running with Qt 5.13, shows underlined letters correctly, although the shortcuts Alt+u and Alt+k don't change focus.

vitellolabs commented 3 years ago

It seems label buddies are broken. An older version, 6764e03, running with Qt 5.13, shows underlined letters correctly, although the shortcuts Alt+u and Alt+k don't change focus.

Ahh so that's what it is. Thanks for clarifying.

eteran commented 3 years ago

Did we conclude that this isn't a problem with edb itself? Or that it's a Qt configuration or version issue?

10110111 commented 3 years ago

I definitely didn't. As you can see in my previous comment, this is a regression in EDB.

eteran commented 3 years ago

Interesting. The ampersand conversation to underscores is kinda a built in Qt thing. So not sure where we are going wrong.

10110111 commented 3 years ago

The ampersand in a label only disappears if the label has a buddy. Also, since it's a regression, git bisect is your friend ;)

10110111 commented 3 years ago

In fact, I've just checked, and neither with 1.2.0, nor with current master can I reproduce this issue. I'm using Qt 5.13, and accelerators are always underlined for me (don't remember where I configured this option). And I don't get any ampersands in the GUI.

@eteran do you reproduce this problem?

@NotepadExpert what's your Qt version?

eteran commented 3 years ago

I've actually NEVER experienced this issue locally that I can recall.

I'm running Qt 5.15 (I tend to upgrade pretty aggressively)

eteran commented 3 years ago

Indo suppose that there's no real harm in removing the ampersands from the .ui files for things which have no meaningful focus to switch to 🤷‍♂️

10110111 commented 3 years ago

Indo suppose that there's no real harm in removing the ampersands from the .ui files for things which have no meaningful focus to switch to

Well, I'd expect the focus to switch to the memory views of the Stack and Dump windows. But yeah, if it doesn't work, then may be worth simply removing the fake accelerator.

eteran commented 3 years ago

Yes th accelerators don't even do anything, I'll just chop em for those two .

eteran commented 3 years ago

Done!

@NotepadExpert please re-open if this problem persists in either master or a release > 1.2.0