Changeset 95082 in vbox
- Timestamp:
- May 24, 2022 6:06:45 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/VBoxUtils-darwin-cocoa.mm
r95078 r95082 405 405 406 406 return toolbarHeight; 407 } 408 409 int darwinWindowTitleHeight(NativeNSWindowRef pWindow) 410 { 411 NSView *pSuperview = [[pWindow standardWindowButton:NSWindowCloseButton] superview]; 412 NSSize sz = [pSuperview frame].size; 413 return sz.height; 407 414 } 408 415 -
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/VBoxUtils-darwin.cpp
r95078 r95082 213 213 NOREF(pWidget); 214 214 return 0; 215 } 216 217 int darwinWindowTitleHeight(QWidget *pWidget) 218 { 219 return ::darwinWindowTitleHeight(::darwinToNativeWindow(pWidget)); 215 220 } 216 221 -
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/VBoxUtils-darwin.h
r95078 r95082 105 105 void darwinWindowInvalidateShadowImpl(NativeNSWindowRef pWindow); 106 106 int darwinWindowToolBarHeight(NativeNSWindowRef pWindow); 107 SHARED_LIBRARY_STUFF int darwinWindowTitleHeight(NativeNSWindowRef pWindow); 107 108 bool darwinIsToolbarVisible(NativeNSWindowRef pWindow); 108 109 SHARED_LIBRARY_STUFF bool darwinIsWindowMaximized(NativeNSWindowRef pWindow); … … 280 281 void darwinWindowInvalidateShadow(QWidget *pWidget); 281 282 int darwinWindowToolBarHeight(QWidget *pWidget); 283 SHARED_LIBRARY_STUFF int darwinWindowTitleHeight(QWidget *pWidget); 282 284 bool darwinIsToolbarVisible(QToolBar *pToolBar); 283 285 SHARED_LIBRARY_STUFF bool darwinIsWindowMaximized(QWidget *pWidget);
Note:
See TracChangeset
for help on using the changeset viewer.