VirtualBox

Changeset 61244 in vbox


Ignore:
Timestamp:
May 27, 2016 1:01:47 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
107533
Message:

FE/Qt: Fixing GUI warnings: A bunch of Objective-C warnings.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/UICocoaDockIconPreview.mm

    r52727 r61244  
    134134 * Class for arranging/updating the layers for the glossy monitor preview.
    135135 */
    136 @implementation UIDockTileMonitor;
     136@implementation UIDockTileMonitor
    137137- (id)initWithFrame:(NSRect)frame parent:(UICocoaDockIconPreviewPrivate*)parent
    138138{
     
    157157}
    158158
    159 - (void)drawRect:(NSRect)aRect;
     159- (void)drawRect:(NSRect)aRect
    160160{
    161161    NSImage *dockMonitor = ::darwinToNSImageRef(p->m_dockMonitor);
     
    169169}
    170170
    171 - (void)resize:(NSSize)size;
     171- (void)resize:(NSSize)size
    172172{
    173173    /* Calculate the new size based on the aspect ratio of the original screen
     
    210210}
    211211
    212 - (void)drawRect:(NSRect)aRect;
     212- (void)drawRect:(NSRect)aRect
    213213{
    214214    NSGraphicsContext *nsContext = [NSGraphicsContext currentContext];
     
    319319}
    320320
    321 - (void)resizeMonitor:(NSSize)size;
     321- (void)resizeMonitor:(NSSize)size
    322322{
    323323    [self restoreMonitor];
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/UICocoaSpecialControls.mm

    r59098 r61244  
    105105}
    106106
    107 -(IBAction)clicked:(id)sender;
     107-(IBAction)clicked:(id)sender
    108108{
    109109    mRealTarget->onClicked();
     
    121121}
    122122
    123 -(IBAction)segControlClicked:(id)sender;
     123-(IBAction)segControlClicked:(id)sender
    124124{
    125125    mRealTarget->onClicked([sender selectedSegment]);
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/VBoxUtils-darwin-cocoa.mm

    r59308 r61244  
    678678       user have to press shift before he start to resize. */
    679679    if ([NSEvent respondsToSelector:@selector(modifierFlags)])
     680    {
    680681        if (((int)(intptr_t)[NSEvent performSelector:@selector(modifierFlags)] & NSShiftKeyMask) == NSShiftKeyMask)
    681682            return qtSize;
     683    }
    682684    else
     685    {
    683686        /* Shift key pressed when this resize event was initiated? */
    684687        if (([pWindow resizeFlags] & NSShiftKeyMask) == NSShiftKeyMask)
    685688            return qtSize;
     689    }
    686690    /* The default case is to calculate the aspect radio of the old size and
    687691       used it for the new size. */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette