Changeset 7282 in vbox
- Timestamp:
- Mar 4, 2008 4:59:05 PM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox4
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/Makefile.kmk
r7260 r7282 439 439 src/darwin/DarwinKeyboard.cpp \ 440 440 src/darwin/DarwinCursor.cpp \ 441 src/darwin/VBoxAquaStyle.cpp \442 441 src/darwin/VBoxUtils-darwin.cpp \ 443 442 src/VBoxFBQuartz2D.cpp 443 # src/darwin/VBoxAquaStyle.cpp \ 444 444 445 445 ifdef VBOX_WITH_ICHAT_THEATER … … 522 522 endif 523 523 VirtualBox_LDFLAGS.os2 = -Zlinker /PM:PM -Zno-fork 524 VirtualBox_LDFLAGS.darwin = -framework IOKit 524 VirtualBox_LDFLAGS.darwin = -framework IOKit -framework AppKit -framework ApplicationServices -framework Foundation -lz 525 525 ifdef VBOX_WITH_ICHAT_THEATER 526 VirtualBox_LDFLAGS.darwin += -framework Foundation -framework AppKit -frameworkInstantMessage -framework QuartzCore526 VirtualBox_LDFLAGS.darwin += -framework InstantMessage -framework QuartzCore 527 527 endif 528 528 VirtualBox_LIBS.win = \ -
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxToolBar.h
r7246 r7282 26 26 #include <QContextMenuEvent> 27 27 #ifdef Q_WS_MAC 28 # include "VBoxAquaStyle.h"28 //# include "VBoxAquaStyle.h" 29 29 #endif 30 30 … … 78 78 { 79 79 /* self */ 80 QStyle *qs = &VBoxAquaStyle::instance();81 setStyle(qs);82 83 /* the buttons */84 QObjectList *list = queryList ("QToolButton");85 QObjectListIt it (*list);86 QObject *obj;87 while ((obj = it.current()) != 0)88 {89 QToolButton *btn = ::qt_cast <QToolButton *> (obj);90 btn->setStyle (&VBoxAquaStyle::instance());91 ++ it;92 }93 delete list;80 // QStyle *qs = &VBoxAquaStyle::instance(); 81 // setStyle(qs); 82 // 83 // /* the buttons */ 84 // QObjectList *list = queryList ("QToolButton"); 85 // QObjectListIt it (*list); 86 // QObject *obj; 87 // while ((obj = it.current()) != 0) 88 // { 89 // QToolButton *btn = ::qt_cast <QToolButton *> (obj); 90 // btn->setStyle (&VBoxAquaStyle::instance()); 91 // ++ it; 92 // } 93 // delete list; 94 94 95 95 /** @todo the separator */ -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleView.cpp
r7220 r7282 2527 2527 } 2528 2528 #elif defined (Q_WS_MAC) 2529 if (aUniKey && aUniKey [0] && !aUniKey [1]) 2530 processed = processHotKey (QKeySequence (Qt::UNICODE_ACCEL + 2531 QChar (aUniKey [0]).upper().unicode()), 2532 mMainWnd->menuBar()); 2529 #warning port me 2530 // if (aUniKey && aUniKey [0] && !aUniKey [1]) 2531 // processed = processHotKey (QKeySequence (Qt::UNICODE_ACCEL + 2532 // QChar (aUniKey [0]).upper().unicode()), 2533 // mMainWnd->menuBar()); 2533 2534 2534 2535 /* Don't consider the hot key as pressed since the guest never saw -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleWnd.cpp
r7250 r7282 823 823 QImage osImg100x75 = vboxGlobal().vmGuestOSTypeIcon (osTypeId).convertToImage().smoothScale (100, 75); 824 824 QImage osImg = QImage (":/dock_1.png"); 825 bitBlt (&osImg, 14, 22, 826 &osImg100x75, 0, 0, 827 100, 75, /* conversion_flags */ 0); 828 QImage VBoxOverlay = QImage (":/VirtualBox_48px.png"); 829 bitBlt (&osImg, osImg.width() - VBoxOverlay.width(), osImg.height() - VBoxOverlay.height(), 830 &VBoxOverlay, 0, 0, 831 VBoxOverlay.width(), VBoxOverlay.height(), /* conversion_flags */ 0); 832 if (dockImgOS) 833 CGImageRelease (dockImgOS); 825 #warning port me 826 // bitBlt (&osImg, 14, 22, 827 // &osImg100x75, 0, 0, 828 // 100, 75, /* conversion_flags */ 0); 829 // QImage VBoxOverlay = QImage (":/VirtualBox_48px.png"); 830 // bitBlt (&osImg, osImg.width() - VBoxOverlay.width(), osImg.height() - VBoxOverlay.height(), 831 // &VBoxOverlay, 0, 0, 832 // VBoxOverlay.width(), VBoxOverlay.height(), /* conversion_flags */ 0); 833 // if (dockImgOS) 834 // CGImageRelease (dockImgOS); 834 835 dockImgOS = ::DarwinQImageToCGImage (&osImg); 835 836 SetApplicationDockTileImage (dockImgOS); -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxProblemReporter.cpp
r7220 r7282 2025 2025 Q3Process openApp (QString("/usr/bin/open")); 2026 2026 openApp.addArgument (qApp->applicationDirPath() + "/UserManual.pdf"); 2027 openApp.launch ( "");2027 openApp.launch (QString("")); 2028 2028 #endif 2029 2029 #endif /* VBOX_OSE */ -
trunk/src/VBox/Frontends/VirtualBox4/src/darwin/VBoxUtils-darwin.cpp
r7235 r7282 76 76 CGImageRef DarwinQImageFromMimeSourceToCGImage (const char *aSource) 77 77 { 78 QImage qim = QImage::fromMimeSource(QString(":/") + aSource);78 QImage qim (QString(":/") + aSource); 79 79 Assert (!qim.isNull()); 80 80 return DarwinQImageToCGImage (&qim); … … 102 102 CGImageRef DarwinQPixmapFromMimeSourceToCGImage (const char *aSource) 103 103 { 104 QPixmap qpm = QPixmap::fromMimeSource (QString(":/"+ aSource);104 QPixmap qpm (QString(":/") + aSource); 105 105 Assert (!qpm.isNull()); 106 106 return DarwinQPixmapToCGImage (&qpm); … … 126 126 127 127 /* load the badge */ 128 QPixmap badge = QPixmap::fromMimeSource(aSource);128 QPixmap badge (aSource); 129 129 Assert (!badge.isNull()); 130 130 -
trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxNewVMWzd.ui.h
r7220 r7282 185 185 /* setup minimum width for the sizeHint to be calculated correctly */ 186 186 #warning port me: check this 187 int wid = spacerItem->minimumSize().width();187 int wid = 1; 188 188 // int wid = widthSpacer->minimumSize().width(); 189 189 txWelcome->setMinimumWidth (wid);
Note:
See TracChangeset
for help on using the changeset viewer.