Changeset 103705 in vbox
- Timestamp:
- Mar 6, 2024 3:26:38 PM (9 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/QIWithRestorableGeometry.h
r103704 r103705 47 47 #endif 48 48 49 /* Other VBox includes: */50 #ifdef VBOX_WS_MAC51 # include "iprt/cpp/utils.h" // for unconst stuff52 #endif53 49 54 50 /** Template with geometry saving/restoring capabilities. */ … … 138 134 139 135 /** Returns whether the window is currently maximized. */ 140 bool isCurrentlyMaximized() const136 bool isCurrentlyMaximized() 141 137 { 142 138 #ifdef VBOX_WS_MAC 143 return ::darwinIsWindowMaximized( unconst(this));139 return ::darwinIsWindowMaximized(this); 144 140 #else 145 141 return this->isMaximized(); -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMedium.cpp
r98103 r103705 43 43 #include "CSnapshot.h" 44 44 45 /* Other VBox includes: */ 46 #include "iprt/cpp/utils.h" // for unconst stuff 47 45 48 QUuid UIMedium::m_uNullID; 46 49 QString UIMedium::m_sstrTable = QString("<table>%1</table>"); … … 434 437 } 435 438 } 439 } 440 441 KMediumState UIMedium::state(bool fNoDiffs /* = false */) const 442 { 443 unconst(this)->checkNoDiffs(fNoDiffs); 444 return fNoDiffs ? m_noDiffs.state : m_state; 445 } 446 447 const COMResult &UIMedium::result(bool fNoDiffs /* = false */) const 448 { 449 unconst(this)->checkNoDiffs(fNoDiffs); 450 return fNoDiffs ? m_noDiffs.result : m_result; 436 451 } 437 452 -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMedium.h
r103704 r103705 44 44 #include "CMedium.h" 45 45 46 /* Other VBox includes: */47 #include "iprt/cpp/utils.h" // for unconst stuff48 49 46 /** Storage medium cache used to 50 47 * override some UIMedium attributes in the … … 147 144 * @note In "don't show diffs" mode, this method returns the worst state 148 145 * (in terms of inaccessibility) detected on the given hard drive chain. */ 149 KMediumState state(bool fNoDiffs = false) const 150 { 151 unconst(this)->checkNoDiffs(fNoDiffs); 152 return fNoDiffs ? m_noDiffs.state : m_state; 153 } 146 KMediumState state(bool fNoDiffs = false) const; 154 147 155 148 /** Returns the result of the last blockAndQueryState() call. … … 158 151 * @note In "don't show diffs" mode, this method returns the worst result 159 152 * (in terms of inaccessibility) detected on the given hard drive chain. */ 160 const COMResult& result(bool fNoDiffs = false) const 161 { 162 unconst(this)->checkNoDiffs(fNoDiffs); 163 return fNoDiffs ? m_noDiffs.result : m_result; 164 } 153 const COMResult& result(bool fNoDiffs = false) const; 165 154 166 155 /** Returns the error result of the last blockAndQueryState() call. */
Note:
See TracChangeset
for help on using the changeset viewer.