VirtualBox

Changeset 84039 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Apr 28, 2020 11:07:02 AM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9653: UIFormEditorWidget: Make items with disabled values disabled as well, not just non-editable.

File:
1 edited

Legend:

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

    r84008 r84039  
    10401040        case UIFormEditorDataType_Value:
    10411041        {
    1042             Qt::ItemFlags enmFlags = Qt::ItemIsEnabled | Qt::ItemIsSelectable;
     1042            Qt::ItemFlags enmFlags = Qt::NoItemFlags;
    10431043            if (m_dataList[index.row()]->isEnabled())
     1044            {
     1045                enmFlags |= Qt::ItemIsEnabled | Qt::ItemIsSelectable;
    10441046                enmFlags |= m_dataList[index.row()]->valueType() == KFormValueType_Boolean
    10451047                          ? Qt::ItemIsUserCheckable : Qt::ItemIsEditable;
     1048            }
    10461049            return enmFlags;
    10471050        }
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