VirtualBox

Changeset 71527 in vbox


Ignore:
Timestamp:
Mar 27, 2018 4:08:16 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9049: Small cleanup for UIToolBar.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/widgets
Files:
2 edited

Legend:

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

    r69500 r71527  
    55
    66/*
    7  * Copyright (C) 2006-2017 Oracle Corporation
     7 * Copyright (C) 2006-2018 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2828# ifdef VBOX_WS_MAC
    2929#  include "VBoxUtils.h"
    30 # endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
     30# endif
    3131
    32 #endif /* VBOX_WS_MAC */
     32#endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
    3333
    3434
     
    6868void UIToolBar::updateLayout()
    6969{
    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.
    7475    QSizePolicy sp = sizePolicy();
    7576    setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
     
    8889
    8990#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
    9293
    9394    /* Configure tool-bar' layout: */
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIToolBar.h

    r69500 r71527  
    55
    66/*
    7  * Copyright (C) 2006-2017 Oracle Corporation
     7 * Copyright (C) 2006-2018 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    3333public:
    3434
    35     /** Constructor, passes @a pParent to the QToolBar constructor. */
     35    /** Constructs tool-bar passing @a pParent to the base-class. */
    3636    UIToolBar(QWidget *pParent = 0);
    3737
    38     /** Defines whether tool-bar should use text-labels.
    39       * Default value if @a false. */
     38    /** Defines whether tool-bar should use text-labels. */
    4039    void setUseTextLabels(bool fEnable);
    4140
     
    5150private:
    5251
    53     /** Prepare routine. */
     52    /** Prepares all. */
    5453    void prepare();
    5554
     
    5958
    6059#endif /* !___UIToolBar_h___ */
     60
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