Changeset 71527 in vbox
- Timestamp:
- Mar 27, 2018 4:08:16 PM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/widgets
- Files:
-
- 2 edited
-
UIToolBar.cpp (modified) (4 diffs)
-
UIToolBar.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIToolBar.cpp
r69500 r71527 5 5 6 6 /* 7 * Copyright (C) 2006-201 7Oracle Corporation7 * Copyright (C) 2006-2018 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 28 28 # ifdef VBOX_WS_MAC 29 29 # include "VBoxUtils.h" 30 # endif /* !VBOX_WITH_PRECOMPILED_HEADERS */30 # endif 31 31 32 #endif /* VBOX_WS_MAC*/32 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 33 33 34 34 … … 68 68 void UIToolBar::updateLayout() 69 69 { 70 /* There is a bug in Qt Cocoa which result in showing a "more arrow" when 71 the necessary size of the toolbar is increased. Also for some languages 72 the with doesn't match if the text increase. So manually adjust the size 73 after changing the text. */ 70 // WORKAROUND: 71 // There is a bug in Qt Cocoa which result in showing a "more arrow" when 72 // the necessary size of the toolbar is increased. Also for some languages 73 // the with doesn't match if the text increase. So manually adjust the size 74 // after changing the text. 74 75 QSizePolicy sp = sizePolicy(); 75 76 setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred); … … 88 89 89 90 #ifdef VBOX_WS_MAC 90 setStyleSheet("QToolBar { border: 0px none black; }");91 #endif /* VBOX_WS_MAC */91 setStyleSheet("QToolBar { border: 0px none black; }"); 92 #endif 92 93 93 94 /* Configure tool-bar' layout: */ -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIToolBar.h
r69500 r71527 5 5 6 6 /* 7 * Copyright (C) 2006-201 7Oracle Corporation7 * Copyright (C) 2006-2018 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 33 33 public: 34 34 35 /** Construct or, passes @a pParent to the QToolBar constructor. */35 /** Constructs tool-bar passing @a pParent to the base-class. */ 36 36 UIToolBar(QWidget *pParent = 0); 37 37 38 /** Defines whether tool-bar should use text-labels. 39 * Default value if @a false. */ 38 /** Defines whether tool-bar should use text-labels. */ 40 39 void setUseTextLabels(bool fEnable); 41 40 … … 51 50 private: 52 51 53 /** Prepare routine. */52 /** Prepares all. */ 54 53 void prepare(); 55 54 … … 59 58 60 59 #endif /* !___UIToolBar_h___ */ 60
Note:
See TracChangeset
for help on using the changeset viewer.

