VirtualBox

Ignore:
Timestamp:
Apr 29, 2008 7:20:12 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
30349
Message:

FE/Qt: Network UI: Make the line editor of the editable combobox read-only to disable modifications by the user. The combobox itself remains "editable" to allow for setting text missing in the drop-down list.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMNetworkSettings.ui.h

    r8474 r8478  
    5959    /* disable unused interface name UI */
    6060    grbTAP->setHidden (true);
     61    /* Make the line editor of the editable combobox read-only to disable
     62     * modifications by the user. The combobox itself remains "editable" to
     63     * allow for setting text missing in the drop-down list. */
     64    cbHostInterfaceName->lineEdit()->setReadOnly (true);
     65
    6166    connect (grbEnabled, SIGNAL (toggled (bool)),
    6267             this, SLOT (grbEnabledToggled (bool)));
     
    117122        cbHostInterfaceName->insertStringList (aList);
    118123    else
    119         cbHostInterfaceName->insertItem (aNillItem);
     124        cbHostInterfaceName->setCurrentText (aNillItem);
    120125
    121126    if (currentListItemName.isEmpty() || currentListItemName == aNillItem)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette