Changeset 2311 in vbox for trunk/src/VBox
- Timestamp:
- Apr 23, 2007 8:51:39 AM (18 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile
r2240 r2311 154 154 VirtualBox_SOURCES.darwin = \ 155 155 src/darwin/DarwinKeyboard.cpp \ 156 src/darwin/DarwinCursor.cpp 156 src/darwin/DarwinCursor.cpp \ 157 src/darwin/VBoxAquaStyle.cpp 157 158 158 159 ## @todo how to detect what tool is used? … … 256 257 VirtualBox.nls_SOURCES += $(patsubst %.ts,$(PATH_VirtualBox)/nls/%.qm,$(notdir $(VirtualBox_QT_TRANSLATIONS_QT))) 257 258 VirtualBox.nls_MODE = 644 259 260 261 # 262 # Testcase for the darwin keyboard routines. 263 # 264 ifdef VBOX_WITH_TESTCASES 265 PROGRAMS.darwin += tstDarwinKeyboard 266 tstDarwinKeyboard_TEMPLATE = VBOXR3TSTEXE 267 tstDarwinKeyboard_INCS = include 268 tstDarwinKeyboard_SOURCES = \ 269 src/darwin/tstDarwinKeyboard.cpp \ 270 src/darwin/DarwinKeyboard.cpp 271 tstDarwinKeyboard_LDFLAGS = -framework IOKit -framework Carbon 272 tstDarwinKeyboard_LIBS = \ 273 $(LIB_RUNTIME) 274 endif 258 275 259 276 -
trunk/src/VBox/Frontends/VirtualBox/include/VBoxToolBar.h
r382 r2311 28 28 #include <qmainwindow.h> 29 29 #include <qobjectlist.h> 30 #ifdef Q_WS_MAC 31 # include "VBoxAquaStyle.h" 32 #endif 30 33 31 34 /** … … 88 91 } 89 92 } 93 94 #ifdef Q_WS_MAC 95 /** 96 * This is a temporary hack, we'll set the style globally later. 97 */ 98 void setMacStyle() 99 { 100 /* self */ 101 QStyle *qs = &VBoxAquaStyle::instance(); 102 setStyle(qs); 103 104 /* the buttons */ 105 QObjectList *list = queryList ("QToolButton"); 106 QObjectListIt it (*list); 107 QObject *obj; 108 while ((obj = it.current()) != 0) 109 { 110 QToolButton *btn = ::qt_cast <QToolButton *> (obj); 111 btn->setStyle (&VBoxAquaStyle::instance()); 112 ++ it; 113 } 114 delete list; 115 116 /** @todo the separator */ 117 } 118 #endif 90 119 }; 91 120 -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxSelectorWnd.cpp
r2257 r2311 485 485 vmStartAction->addTo (vmTools); 486 486 vmDiscardAction->addTo (vmTools); 487 #ifdef Q_WS_MAC 488 vmTools->setMacStyle(); 489 #endif 487 490 488 491 /* add actions to menubar */ -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxDiskImageManagerDlg.ui.h
r2139 r2311 351 351 toolBar->addSeparator(); 352 352 imRefreshAction->addTo (toolBar); 353 #ifdef Q_WS_MAC 354 toolBar->setMacStyle(); 355 #endif 353 356 354 357 -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxSnapshotsWgt.ui.h
r1236 r2311 304 304 toolBar->setSizePolicy (QSizePolicy::Fixed, QSizePolicy::Fixed); 305 305 VBoxSnapshotsWgtLayout->insertWidget (0, toolBar); 306 #ifdef Q_WS_MAC 307 toolBar->setMacStyle(); 308 #endif 306 309 307 310 /* context menu */
Note:
See TracChangeset
for help on using the changeset viewer.