VirtualBox

Ignore:
Timestamp:
May 12, 2016 2:29:15 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: ​​​​​​​​​​bugref:6769: Rework/cleanup file-path selector widget (part 14): Workaround for list-view icon size issue.

File:
1 edited

Legend:

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

    r60928 r60953  
    2828# include <QHBoxLayout>
    2929# include <QLineEdit>
     30# ifdef VBOX_WS_WIN
     31#  include <QListView>
     32# endif /* VBOX_WS_WIN */
    3033
    3134/* GUI includes: */
     
    6972    , m_pCopyAction(new QAction(this))
    7073{
     74#ifdef VBOX_WS_WIN
     75    // WORKAROUND:
     76    // On at least Windows host there is a bug with
     77    // the QListView which doesn't take into account
     78    // the item size change caused by assigning item's
     79    // icon of another size or unassigning icon at all.
     80    if (view()->inherits("QListView"))
     81        qobject_cast<QListView*>(view())->setUniformItemSizes(true);
     82#endif /* VBOX_WS_WIN */
     83
    7184    /* Populate items: */
    7285    insertItem(PathId, "");
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