fs2open.github.com icon indicating copy to clipboard operation
fs2open.github.com copied to clipboard

QtFRED dialog title

Open Goober5000 opened this issue 1 year ago • 2 comments

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 avatar Dec 12 '24 20:12 Goober5000

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

TheForce172 avatar Dec 13 '24 09:12 TheForce172

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.

Goober5000 avatar Dec 13 '24 19:12 Goober5000