src/gui/widgets/qmainwindowlayout.cpp
changeset 37 758a864f9613
parent 18 2f34d5167611
equal deleted inserted replaced
36:ef0373b55136 37:758a864f9613
   941 {
   941 {
   942     bool updateNonUnifiedParts = true;
   942     bool updateNonUnifiedParts = true;
   943 #ifdef Q_WS_MAC
   943 #ifdef Q_WS_MAC
   944     if (layoutState.mainWindow->unifiedTitleAndToolBarOnMac()) {
   944     if (layoutState.mainWindow->unifiedTitleAndToolBarOnMac()) {
   945         // If we hit this case, someone has pressed the "toolbar button" which will
   945         // If we hit this case, someone has pressed the "toolbar button" which will
   946         // toggle the unified toolbar visiblity, because that's what the user wants.
   946         // toggle the unified toolbar visibility, because that's what the user wants.
   947         // We might be in a situation where someone has hidden all the toolbars
   947         // We might be in a situation where someone has hidden all the toolbars
   948         // beforehand (maybe in construction), but now they've hit this button and
   948         // beforehand (maybe in construction), but now they've hit this button and
   949         // and are expecting the items to show. What do we do?
   949         // and are expecting the items to show. What do we do?
   950         // 1) Check the visibility of all the toolbars, if one is visible, do nothing, this
   950         // 1) Check the visibility of all the toolbars, if one is visible, do nothing, this
   951         //    preserves what people would expect (these toolbars were visible when I clicked last time).
   951         //    preserves what people would expect (these toolbars were visible when I clicked last time).