VirtualBox

Changeset 73231 in vbox


Ignore:
Timestamp:
Jul 19, 2018 10:18:09 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: UIEmptyFilePathSelector: A bit of macOS layout fixes.

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

Legend:

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

    r73019 r73231  
    5656
    5757    mMainLayout = new QHBoxLayout (this);
    58     mMainLayout->setMargin (0);
    59 
    60     mSelectButton = new QIToolButton(this);
     58    mMainLayout->setContentsMargins(0, 0, 0, 0);
     59#ifdef VBOX_WS_MAC
     60    mMainLayout->setSpacing(5);
     61#endif
     62
     63    mSelectButton = new QToolButton(this);
     64#ifdef VBOX_WS_MAC
     65    mSelectButton->setStyleSheet("QToolButton { border: 0px none black; margin: 0px 0px 0px 0px; } QToolButton::menu-indicator {image: none;}");
     66#endif
    6167    mSelectButton->setIcon(UIIconPool::iconSet(":/select_file_16px.png", ":/select_file_disabled_16px.png"));
    6268    connect(mSelectButton, SIGNAL(clicked()), this, SLOT(choose()));
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIEmptyFilePathSelector.h

    r71901 r73231  
    3232class QHBoxLayout;
    3333class QAction;
    34 class QIToolButton;
     34class QToolButton;
    3535
    3636
     
    108108    UIEmptyFilePathSelector::Mode mMode;
    109109    QILineEdit *mLineEdit;
    110     QIToolButton *mSelectButton;
     110    QToolButton *mSelectButton;
    111111    bool m_fButtonToolTipSet;
    112112    QString mFileDialogTitle;
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