Fix various EF dialog issues. - #4688
Conversation
…maya's main window Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Give the dialog an object name, which Maya uses as the key for its saved window preference. Replace the unconditional resize() in the constructor with a sizeHint() override so the default size no longer overwrites the geometry Maya restores. Skip show() when the dialog is already visible, since showing a saveWindowPref window re-applies its stored position and moved an already-open dialog back to where it was last saved. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
|
||
| // Tell Maya to treat this as a Maya-managed window. This is the same | ||
| // mechanism Maya uses internally to keep its own dialogs from going behind | ||
| // the main window. This should not be combined with other flags. |
There was a problem hiding this comment.
"This should not be combined with other flags." what does this mean?
There was a problem hiding this comment.
"Per Maya dev guidance these two calls should be applied alone, without combining with any other Qt window flags."
Is what that other commit wrote.
There was a problem hiding this comment.
@AramAzhari-adsk Do you know specifics?
There was a problem hiding this comment.
Sorry for the late reply as I was OoO. For the record, we are referring to the line after: WindowFlags
This should not be combined
// with other flags.
g_assetResolverDialog->setWindowFlags(Qt::Window);
I hope that clears it up.
| { | ||
| auto* ss = &_sessionState; | ||
| if (_editForwardDialog) { | ||
| if (!_editForwardDialog) { |
There was a problem hiding this comment.
Changes here are also bascially the same as what was done in AR 3aa943c
| { | ||
| setAttribute(Qt::WA_DeleteOnClose); | ||
| setWindowTitle(title); | ||
| resize( |
There was a problem hiding this comment.
Stop forcing the size everytime. Via size hint and with the other changes below, keeps the user size
Clarified comments regarding window flags usage in Maya.
Adresses several small issues with the Usd Edit Forward configuration dialog.
https://autodesk.atlassian.net/browse/EMSUSD-3907 menu / windows titles
https://autodesk.atlassian.net/browse/EMSUSD-3936 windows goes behind maya on macOs
https://autodesk.atlassian.net/browse/EMSUSD-3940 position/size lost on toggle open/close
https://autodesk.atlassian.net/browse/EMSUSD-3904