Changeset 10230 in vbox for trunk/src/VBox/Frontends/VirtualBox4
- Timestamp:
- Jul 4, 2008 2:10:42 PM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxToolBar.h
r10228 r10230 23 23 #ifndef __VBoxToolBar_h__ 24 24 #define __VBoxToolBar_h__ 25 26 27 #ifdef Q_WS_MAC 28 #include "VBoxUtils.h" 29 #endif 25 30 26 31 /* Qt includes */ … … 67 72 } 68 73 74 void setShowToolBarButton (bool aShow) 75 { 76 #ifdef Q_WS_MAC 77 ::darwinSetShowToolBarButton (this, aShow); 78 #else /* Q_WS_MAC */ 79 NOREF (aShow); 80 #endif /* !Q_WS_MAC */ 81 } 82 69 83 70 84 /** -
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxUtils.h
r10165 r10230 100 100 class QImage; 101 101 class QPixmap; 102 class QToolBar; 102 103 class VBoxFrameBuffer; 103 104 … … 162 163 } 163 164 165 void darwinSetShowToolBarButton (QToolBar *aToolBar, bool aShow); 166 164 167 /* Proxy icon creation */ 165 168 QPixmap darwinCreateDragPixmap (const QPixmap& aPixmap, const QString &aText); -
trunk/src/VBox/Frontends/VirtualBox4/src/darwin/VBoxUtils-darwin.cpp
r9438 r10230 33 33 #include <QPainter> 34 34 #include <QApplication> 35 #include <QToolBar> 35 36 36 37 #if QT_VERSION < 0x040400 … … 100 101 Assert (!qpm.isNull()); 101 102 return ::darwinToCGImageRef (&qpm); 103 } 104 105 void darwinSetShowToolBarButton (QToolBar *aToolBar, bool aShow) 106 { 107 QWidget *parent = aToolBar->parentWidget(); 108 if (parent) 109 { 110 int attr[] = { kHIWindowBitToolbarButton, 0 }; 111 int err = HIWindowChangeAttributes (::darwinToWindowRef (parent), aShow ? attr:NULL, aShow ? NULL:attr); 112 AssertCarbonOSStatus (err); 113 } 102 114 } 103 115
Note:
See TracChangeset
for help on using the changeset viewer.