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

QtFRED dialog title #6456

Open
Goober5000 opened this issue Dec 12, 2024 · 2 comments
Open

QtFRED dialog title #6456

Goober5000 opened this issue Dec 12, 2024 · 2 comments
Assignees
Labels
bug An issue from unintended consequences qtfred A feature or issue related to qtFred.

Comments

@Goober5000
Copy link
Contributor

From PR #6322:

The "qtFRED v24.1.0" suffix is only really needed on the application title bar, not the title bar of every dialog.

@Goober5000 Goober5000 added bug An issue from unintended consequences qtfred A feature or issue related to qtFred. labels Dec 12, 2024
@github-project-automation github-project-automation bot moved this to Open Tasks in qtFRED2 Dec 12, 2024
@TheForce172
Copy link
Contributor

Unfortunately it's not looking like this is possible
https://forum.qt.io/topic/160193/hide-applicationdisplayname-on-subdialogs/2

@Goober5000
Copy link
Contributor Author

Goober5000 commented Dec 13, 2024

I did a bit of searching and found other coders looking for the same thing:
https://forum.qt.io/topic/55613/solved-why-is-every-dialog-title-appended-with-application-name/8
https://stackoverflow.com/questions/43563746/show-qapplicationapplicationdisplayname-only-on-main-window

It seems like such a simple thing that can be controlled by a flag, but I can't find a flag for it.

Digging further, I found the original change:
https://codereview.qt-project.org/c/qt/qtbase/+/29254

So it looks like the application display name is used only for this feature:

For compatibility reasons, the app name is added to the caption only if setApplicationDisplayName() was called -- or if the caption would be completely empty.

This is good. In that case, just set the main window title and don't set the application display name.

Edit: there is a flag in the original code submission:

WA_NoApplicationNameInWindowTitle

But it looks like that flag may have not been included in the ultimately-merged change. It's worth trying first though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue from unintended consequences qtfred A feature or issue related to qtFred.
Projects
Status: Open Tasks
Development

No branches or pull requests

2 participants