VirtualBox

Changeset 8211 in vbox for trunk/src


Ignore:
Timestamp:
Apr 21, 2008 9:31:21 AM (17 years ago)
Author:
vboxsync
Message:

FE/Qt-OSX: Like on Windows setting the main window icon isn't necessary on MacOS X.

Location:
trunk/src/VBox/Frontends
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp

    r8155 r8211  
    142142    idle_timer = new QTimer (this);
    143143
    144 #ifndef Q_WS_WIN
    145     /* default application icon (will change to the VM-specific icon in
    146      * openView()). On Win32, it's built-in to the executable. */
     144#if !(defined (Q_WS_WIN) || defined (Q_WS_MAC))
     145    /* The aplication icon. On Win32, it's built-in to the executable. On Mac
     146     * OS X the icon referenced in info.plist is used. */
    147147    setIcon (QPixmap::fromMimeSource ("VirtualBox_48px.png"));
    148148#endif
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxSelectorWnd.cpp

    r8155 r8211  
    392392    statusBar();
    393393
    394 #ifndef Q_WS_WIN
    395     /* Application icon. On Win32, it's built-in to the executable. */
     394#if !(defined (Q_WS_WIN) || defined (Q_WS_MAC))
     395    /* The aplication icon. On Win32, it's built-in to the executable. On Mac
     396     * OS X the icon referenced in info.plist is used. */
    396397    setIcon (QPixmap::fromMimeSource ("VirtualBox_48px.png"));
    397398#endif
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleWnd.cpp

    r8155 r8211  
    5757#include "VBoxUtils.h"
    5858#include "VBoxIChatTheaterWrapper.h"
     59//#include <Carbon/Carbon.h>
    5960/* Qt includes */
    6061#include <QPainter>
     
    145146    idle_timer = new QTimer (this);
    146147
    147 #ifndef Q_WS_WIN
    148     /* default application icon (will change to the VM-specific icon in
    149      * openView()). On Win32, it's built-in to the executable. */
     148#if !(defined (Q_WS_WIN) || defined (Q_WS_MAC))
     149    /* The default application icon (will change to the VM-specific icon in
     150     * openView()). On Win32, it's built-in to the executable. On Mac OS X the
     151     * icon referenced in info.plist is used. */
    150152    setWindowIcon (QIcon (":/VirtualBox_48px.png"));
    151153#endif
     
    594596#ifdef Q_WS_MAC
    595597# ifdef VBOX_WITH_ICHAT_THEATER
     598//    int setAttr[] = { kHIWindowBitDoesNotShowBadgeInDock, 0 };
     599//    HIWindowChangeAttributes (window, setAttr, NULL);
    596600    initSharedAVManager();
    597601# endif
     
    27652769         * in the paint engine. */
    27662770        HIViewReshapeStructure (::darwinToHIViewRef (console->viewport()));
     2771//        HIWindowInvalidateShadow (::darwinToWindowRef (console->viewport()));
    27672772//        ReshapeCustomWindow (mapToWindowRef (this));
    27682773    }
     
    27872792//        ReshapeCustomWindow (reinterpret_cast <WindowPtr> (winId()));
    27882793        QMainWindow::setMask (region);
     2794//        HIWindowInvalidateShadow (::darwinToWindowRef (console->viewport()));
    27892795    }
    27902796#else
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxSelectorWnd.cpp

    r8210 r8211  
    390390    statusBar();
    391391
    392 #ifndef Q_WS_WIN
    393     /* application icon. On Win32, it's built-in to the executable. */
     392#if !(defined (Q_WS_WIN) || defined (Q_WS_MAC))
     393    /* The aplication icon. On Win32, it's built-in to the executable. On Mac
     394     * OS X the icon referenced in info.plist is used. */
    394395    setWindowIcon (QIcon (":/VirtualBox_48px.png"));
    395396#endif
Note: See TracChangeset for help on using the changeset viewer.

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